로딩중...
검색중...
일치하는것 없음
by::tweak< T, TACTIC > 클래스 템플릿 참조

Weak reference smart pointer with type-safe access 더 자세히 ...

#include <tweak.hpp>

by::tweak< T, TACTIC >에 대한 상속 다이어그램 :
by::binder by::typeProvidable by::tbindable< instance > by::tstr< by::errReport > by::tstr< flagArgs > by::tstr< by::baseObj > by::tstr< by::baseFunc > by::tstr< pod > by::tstr< node > by::tstr< by::src > by::tstr< super > by::tstr< by::frames > by::tstr< by::modifier > by::tstr< by::arr > by::tstr< by::tnchain > by::tstr< by::tnarr > by::tstr< by::func > by::tstr< by::nStr > by::tstr< by::srcFile > by::tstr< by::obj > by::tstr< by::blockExpr > by::tstr< by::args > by::tstr< by::tnmap > by::tstr< by::stela > by::tstr< by::thread > by::tstr< T, TACTIC >

Public 멤버 함수

 tweak (const type &subtype)
 
 tweak (const T &it)
 
 tweak (const T *it)
 
 tweak (const tmedium< T > &it)
 
 tweak (const me &rhs)
 
 tweak (const binder &rhs)
 
T * operator-> ()
 
T & operator* ()
 
const T * operator-> () const BY_CONST_FUNC(operator->()) const T &operator*() const BY_CONST_FUNC(operator*()) me &operator=(const binder &rhs)
 
me & operator= (const me &rhs)
 
T * get ()
 
const T *get() const BY_CONST_FUNC(get()) using super nbool bind (const T &new1)
 Binds a weak reference to the specified instance.
 
- by::binder(으)로부터 상속된 Public 멤버 함수
 binder (const type &type, bindTacticable &tactic)
 Constructs a binder with a specific type and binding tactic.
 
 binder (const me &rhs)
 
instanceoperator-> ()
 Dereference operator to access bound instance
 
const instanceoperator-> () const BY_CONST_FUNC(operator->()) instance &operator*()
 
const instanceoperator* () const BY_CONST_FUNC(operator*()) me &operator
 Assigns another binder's bound instance to this binder.
 
id getItsId () const
 Retrieves the unique ID of the instance currently bound by this binder.
 
nbool isBind () const override
 
void rel () override
 
nbool canBind (const type &it) const override
 Checks if given type can be bound to this binder
 
nbool bind (const instance &it) override
 Binds instance to this binder with reference counting
 
instanceget ()
 
const instanceget () const BY_CONST_FUNC(get()) template< typename E > E *get()
 
template<typename E >
const Eget () const BY_CONST_FUNC(get< E >()) const type &getType() const override
 
void * cast (const type &to) override
 
nbool canBind (const T &it) const
 
nbool canBind (const T *it) const BY_SIDE_FUNC(canBind)
 
virtual nbool canBind (const type &it) const=0
 
nbool canBind (const type *it) const BY_SIDE_FUNC(canBind)
 
virtual nbool bind (const T &it)
 
nbool bind (const T *it)
 Bind to instance pointer
 
template<typename T >
T * cast ()
 
template<typename T >
const T * cast () const BY_CONST_FUNC(cast< T >()) virtual void *cast(const type &to)
 Safe cast to target type using type hierarchy information
 
const void * cast (const type &to) const BY_CONST_FUNC(cast(to)) void *cast(const type *it) BY_SIDE_FUNC(cast)
 
- by::typeProvidable(으)로부터 상속된 Public 멤버 함수
nbool operator== (const me &rhs) const
 
nbool operator!= (const me &rhs) const
 
virtual const typegetType () const =0
 
nbool isSub (const type &it) const
 
nbool isSub (const type *it) const BY_SIDE_FUNC(isSub)
 
nbool isSub (const me &it) const
 
nbool isSub (const me *it) const BY_SIDE_FUNC(isSub)
 
nbool isSuper (const type &it) const
 
nbool isSuper (const type *it) const BY_SIDE_FUNC(isSuper)
 
nbool isSuper (const me &it) const
 
nbool isSuper (const me *it) const BY_SIDE_FUNC(isSuper)
 
template<typename T >
nint isSub () const
 
template<typename T >
nint isSuper () const
 
template<typename T >
T * cast ()
 
template<typename T >
const T * cast () const BY_CONST_FUNC(cast< T >()) virtual void *cast(const type &to)
 Safe cast to target type using type hierarchy information
 
const void * cast (const type &to) const BY_CONST_FUNC(cast(to)) void *cast(const type *it) BY_SIDE_FUNC(cast)
 
- by::tbindable< instance >(으)로부터 상속된 Public 멤버 함수
 operator nbool () const
 
nbool bind (const instance *it)
 Bind to instance pointer
 
nbool canBind (const instance &it) const
 
nbool canBind (const instance *it) const BY_SIDE_FUNC(canBind)
 
nbool canBind (const type *it) const BY_SIDE_FUNC(canBind)
 

추가로 상속된 멤버들

- by::binder(으)로부터 상속된 Protected 멤버 함수
nbool _assign (const binder &rhs)
 Assigns binder from another binder
 
nbool _onSame (const typeProvidable &rhs) const override
 Checks if two typeProvidable objects are same instance
 
life_getBindTag () const
 Retrieves life object associated with bound instance
 
- by::binder(으)로부터 상속된 Protected 속성
id _itsId
 
const type_type
 
bindTacticable_tactic
 

상세한 설명

template<typename T, typename TACTIC = weakTactic>
class by::tweak< T, TACTIC >

Weak reference smart pointer with type-safe access

Template-based weak reference binder that provides type-safe access to instances without affecting their lifetime. Uses configurable tactics for memory management.

멤버 함수 문서화

◆ bind()

template<typename T , typename TACTIC = weakTactic>
const T *get() const BY_CONST_FUNC(get()) using super nbool by::tweak< T, TACTIC >::bind ( const T & new1)

Binds a weak reference to the specified instance.

This method establishes a weak binding to the instance, meaning it does not increment the instance's strong reference count and thus does not affect its lifetime.

매개변수
new1The instance to bind a weak reference to.
반환값
true on successful binding, false on failure (e.g., type mismatch).

이 클래스에 대한 문서화 페이지는 다음의 파일로부터 생성되었습니다.: