62 void* createInstance(
void);
64 static void* createInstanceByName(
const char* TypeName,
bool bLoadModule =
false);
66 typedef void* (*instantiationMethod)(void);
68 static Type fromName(
const char*
name);
70 inline const Type getParent(
void)
const;
71 inline void getChildren(std::set<Type>& children)
const;
72 inline void getAllChildren(std::set<Type>& children)
const;
73 inline bool isDerivedFrom(
const Type type)
const;
74 inline bool isDerivedFrom(
const std::vector<Base::Type>& types)
const;
77 static int getAllDerivedFrom(
const Type type, std::vector<Type>& List);
78 static std::vector<Type> getAllDerivedFrom(
const Type type);
80 static std::string getHierarchyAsString(
Base::Type t);
82 static int getNumTypes(
void);
84 static const Type createType(
const Type parent,
const char*
name, instantiationMethod method = 0);
86 unsigned int getKey(
void)
const;
87 bool isBad(
void)
const;
88 const std::string& getName(
void)
const;
90 inline void operator=(
const Type type);
91 inline bool operator==(
const Type type)
const;
94 inline bool operator<(
const Type type)
const;
95 inline bool operator<=(
const Type type)
const;
96 inline bool operator>=(
const Type type)
const;
97 inline bool operator>(
const Type type)
const;
100 static void init(
void);
103 static std::string getModuleName(
const char* ClassName);
109 static std::map<std::string, unsigned int> typemap;
110 static std::vector<TypeData*> typedata;
111 static std::set<std::string> loadModuleSet;
113 static std::vector<unsigned int> typeVector;
114 static std::map<unsigned int, unsigned int> typederivated;
130 this->index = type.
getKey();
160 return (this->index == 0);
167 #endif // __FILETEMPLATE_H__ bool operator<=(const Type type) const
Definition: Type.h:143
bool operator>(const Type type) const
Definition: Type.h:153
bool operator>=(const Type type) const
Definition: Type.h:148
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:158
Core::PropertyText name
Definition: CoreDocument.h:167
void operator=(const Type type)
Definition: Type.h:128
unsigned int getKey(void) const
Definition: Type.h:118
static const Type badType(void)
Definition: Type.h:99
Definition: AbstractXMLReader.h:5
bool operator<(const Type type) const
Definition: Type.h:138
bool operator==(const Type type) const
Definition: Type.h:133
bool operator!=(const Type type) const
Definition: Type.h:123