CSEngine
Loading...
Searching...
No Matches
CSE::ReflectionRef< T > Class Template Reference

Public Member Functions

 ReflectionRef (std::string type)
 
bool IsSameClass (const ReflectionObject *object) const
 

Detailed Description

template<class T>
class CSE::ReflectionRef< T >

Definition at line 9 of file ReflectionRef.h.

Constructor & Destructor Documentation

◆ ReflectionRef() [1/2]

template<class T >
CSE::ReflectionRef< T >::ReflectionRef ( std::string type)
inlineexplicit

Definition at line 11 of file ReflectionRef.h.

11: m_class(std::move(type)) {}

◆ ReflectionRef() [2/2]

template<class T >
CSE::ReflectionRef< T >::ReflectionRef ( )
inlineexplicit

Definition at line 12 of file ReflectionRef.h.

12 {
13 const char* type = T::GetClassStaticType();
14 m_class = type;
15 }

Member Function Documentation

◆ IsSameClass()

template<class T >
bool CSE::ReflectionRef< T >::IsSameClass ( const ReflectionObject * object) const
inline

Definition at line 19 of file ReflectionRef.h.

19 {
20 if(object == nullptr) return false;
21 return std::strcmp(m_class.c_str(), object->GetClassType()) == 0;
22 }

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