System::TypeInfoPtr Struct Reference

Wrapper for a pointer to an instance of TypeInfo class. This type should be allocated on stack and passed to functions by value or by reference. Never use System::SmartPtr class to manage objects of this type. More...

Inherited by System::MulticastDelegateTypeInfo, and System::TypeInfo::BoxedValue< T >.

Public Member Functions

 operator TypeInfo * ()
 Returns a raw pointer to the represented TypeInfo object. More...
 
 TypeInfoPtr ()=default
 Default constructor. More...
 
ASPOSECPP_SHARED_API TypeInfoPtr (const std::type_info &info)
 Constructor. More...
 
ASPOSECPP_SHARED_API TypeInfoPtr (const char_t *name, uint32_t hash)
 Constructor. More...
 
ASPOSECPP_SHARED_API TypeInfoPtr (const char_t *name)
 Constructor. More...
 
ASPOSECPP_SHARED_API TypeInfoPtr (const String &name)
 Constructor. More...
 
ASPOSECPP_SHARED_API ~TypeInfoPtr ()
 Destructor. More...
 

Public Attributes

std::unique_ptr< TypeInfoptr
 Unique pointer to the TypeInfo object. More...
 

Detailed Description

Wrapper for a pointer to an instance of TypeInfo class. This type should be allocated on stack and passed to functions by value or by reference. Never use System::SmartPtr class to manage objects of this type.

Constructor & Destructor Documentation

◆ TypeInfoPtr() [1/5]

System::TypeInfoPtr::TypeInfoPtr ( )
default

Default constructor.

◆ TypeInfoPtr() [2/5]

ASPOSECPP_SHARED_API System::TypeInfoPtr::TypeInfoPtr ( const std::type_info &  info)

Constructor.

Parameters
infoInformation about a type.

◆ TypeInfoPtr() [3/5]

ASPOSECPP_SHARED_API System::TypeInfoPtr::TypeInfoPtr ( const char_t *  name,
uint32_t  hash 
)

Constructor.

Parameters
nameType name.
hashType name hash.

◆ TypeInfoPtr() [4/5]

ASPOSECPP_SHARED_API System::TypeInfoPtr::TypeInfoPtr ( const char_t *  name)

Constructor.

Parameters
nameType name.

◆ TypeInfoPtr() [5/5]

ASPOSECPP_SHARED_API System::TypeInfoPtr::TypeInfoPtr ( const String name)

Constructor.

Parameters
nameType name.

◆ ~TypeInfoPtr()

ASPOSECPP_SHARED_API System::TypeInfoPtr::~TypeInfoPtr ( )

Destructor.

Member Function Documentation

◆ operator TypeInfo *()

System::TypeInfoPtr::operator TypeInfo * ( )
inline

Returns a raw pointer to the represented TypeInfo object.

Member Data Documentation

◆ ptr

std::unique_ptr<TypeInfo> System::TypeInfoPtr::ptr

Unique pointer to the TypeInfo object.