5 #pragma warning(disable : 4251) 66 void* createInstance(
void);
68 static void* createInstanceByName(
const char* TypeName,
bool bLoadModule =
false);
70 typedef void* (*instantiationMethod)(void);
72 static Type fromName(
const char*
name);
74 inline const Type getParent(
void)
const;
75 inline void getChildren(std::set<Type>& children)
const;
76 inline void getAllChildren(std::set<Type>& children)
const;
77 inline bool isDerivedFrom(
const Type type)
const;
78 inline bool isDerivedFrom(
const std::vector<Base::Type>& types)
const;
81 static int getAllDerivedFrom(
const Type type, std::vector<Type>& List);
82 static std::vector<Type> getAllDerivedFrom(
const Type type);
84 static std::string getHierarchyAsString(
Base::Type t);
86 static int getNumTypes(
void);
88 static const Type createType(
const Type parent,
const char*
name, instantiationMethod method = 0);
90 unsigned int getKey(
void)
const;
91 bool isBad(
void)
const;
92 const std::string& getName(
void)
const;
94 inline void operator=(
const Type type);
95 inline bool operator==(
const Type type)
const;
98 inline bool operator<(
const Type type)
const;
99 inline bool operator<=(
const Type type)
const;
100 inline bool operator>=(
const Type type)
const;
101 inline bool operator>(
const Type type)
const;
104 static void init(
void);
107 static std::string getModuleName(
const char* ClassName);
113 #pragma warning(disable : 4251) 114 static std::map<std::string, unsigned int> typemap;
115 static std::vector<TypeData*> typedata;
116 static std::set<std::string> loadModuleSet;
118 static std::vector<unsigned int> typeVector;
119 static std::map<unsigned int, unsigned int> typederivated;
135 this->index = type.
getKey();
165 return (this->index == 0);
172 #endif // __FILETEMPLATE_H__ bool operator<=(const Type type) const
Definition: Type.h:148
bool operator>(const Type type) const
Definition: Type.h:158
bool operator>=(const Type type) const
Definition: Type.h:153
#define BASE_EXPORT
Definition: base_defines.h:12
constexpr bool operator!=(const basic_hashed_string< Char > &lhs, const basic_hashed_string< Char > &rhs) ENTT_NOEXCEPT
Compares two hashed strings.
Definition: entt.hpp:570
bool isBad(void) const
Definition: Type.h:163
Core::PropertyText name
Definition: CoreDocument.h:143
void operator=(const Type type)
Definition: Type.h:133
unsigned int getKey(void) const
Definition: Type.h:123
static const Type badType(void)
Definition: Type.h:103
Definition: AbstractXMLReader.h:8
bool operator<(const Type type) const
Definition: Type.h:143
bool operator==(const Type type) const
Definition: Type.h:138
bool operator!=(const Type type) const
Definition: Type.h:128