로딩중...
검색중...
일치하는것 없음
by::typeProvidable 클래스 참조abstract

Interface for objects that can provide their type information 더 자세히 ...

#include <typeProvidable.hpp>

by::typeProvidable에 대한 상속 다이어그램 :
by::tworker< programRes, flagArgs > by::tworker< tstr< pod >, pod > by::tworker< str, pod > by::tworker< str, node > by::tworker< void, node > by::binder by::exprMaker by::instance by::life by::podLoader by::smartDedent by::tokenScan by::tworker< R, T >

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)
 

상세한 설명

Interface for objects that can provide their type information

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

멤버 함수 문서화

◆ cast()

template<typename T >
const T * by::typeProvidable::cast ( ) const &

Safe cast to target type using type hierarchy information

반환값
Pointer to object if cast is valid, nullptr otherwise
주의
Uses O(1) tier algorithm instead of slow dynamic_cast

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