Loading...
Searching...
No Matches
by::tbindable< T > Class Template Referenceabstract

Template interface for bindable objects. More...

#include <tbindable.hpp>

Public Member Functions

 operator nbool () const
 
virtual nbool bind (const T &it)
 
nbool bind (const T *it)
 Bind to instance pointer.
 
virtual void rel ()=0
 
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 isBind () const =0
 

Detailed Description

template<typename T>
class by::tbindable< T >

Template interface for bindable objects.

Provides generic binding interface for objects of type T. Supports binding validation, type checking, and lifecycle management.

Member Function Documentation

◆ bind() [1/2]

template<typename T >
virtual nbool by::tbindable< T >::bind ( const T & it)
virtual

Reimplemented in by::binder, and by::life.

◆ bind() [2/2]

template<typename T >
nbool by::tbindable< T >::bind ( const T * it)

Bind to instance pointer.

binder will loose previous binding instance whether given parameter it isn't nullptr or not.

◆ canBind()

template<typename T >
virtual nbool by::tbindable< T >::canBind ( const type & it) const
pure virtual

Implemented in by::binder.

◆ rel()

template<typename T >
virtual void by::tbindable< T >::rel ( )
pure virtual

Implemented in by::life.


The documentation for this class was generated from the following file: