by::typeProvidable Class Referenceabstract

Interface for objects that can provide their type information. More...

#include <typeProvidable.hpp>

Inheritance diagram for by::typeProvidable:
by::worker< tstr< slot >, slot > by::worker< str, slot > by::worker< str, node > by::worker< void, node > by::bindTag by::binder by::exprMaker by::instance by::slotLoader by::smartDedent by::tokenScan by::worker< R, T >

Public Member Functions

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)
 
const void * cast (const type &to) const BY_CONST_FUNC(cast(to)) void *cast(const type *it) BY_SIDE_FUNC(cast)
 

Detailed Description

Interface for objects that can provide their type information.

Provides type introspection capabilities including type comparison, hierarchy checking, and safe casting operations.


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