Go to the documentation of this file.
64 typedef void* (*instantiationMethod)(void);
82 static const Type createType(
const Type parent,
const char* name, instantiationMethod method = 0);
84 unsigned int getKey(
void)
const;
85 bool isBad(
void)
const;
88 inline void operator=(
const Type type);
89 inline bool operator==(
const Type type)
const;
92 inline bool operator<(
const Type type)
const;
93 inline bool operator<=(
const Type type)
const;
94 inline bool operator>=(
const Type type)
const;
95 inline bool operator>(
const Type type)
const;
107 static std::map<std::string, unsigned int> typemap;
108 static std::vector<TypeData*> typedata;
109 static std::set<std::string> loadModuleSet;
111 static std::vector<unsigned int> typeVector;
112 static std::map<unsigned int, unsigned int> typederivated;
128 this->index = type.
getKey();
158 return (this->index == 0);
const std::string & getName(void) const
bool operator==(const Type type) const
Definition: Type.h:131
void getChildren(std::set< Type > &children) const
bool operator>=(const Type type) const
Definition: Type.h:146
static const Type badType(void)
Definition: Type.h:97
static int getAllDerivedFrom(const Type type, std::vector< Type > &List)
Returns all types derived from type.
const Type getParent(void) const
void getAllChildren(std::set< Type > &children) const
static std::vector< Type > getAllDerivedFrom(const Type type)
bool operator<=(const Type type) const
Definition: Type.h:141
bool isDerivedFrom(const Type type) const
static const Type createType(const Type parent, const char *name, instantiationMethod method=0)
static void * createInstanceByName(const char *TypeName, bool bLoadModule=false)
creates a instance of the named type
unsigned int getKey(void) const
Definition: Type.h:116
bool isDerivedFrom(const std::vector< Base::Type > &types) const
void operator=(const Type type)
Definition: Type.h:126
void * createInstance(void)
creates a instance of this type
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
static std::string getHierarchyAsString(Base::Type t)
Returns the hierarchy of type t in backward order as a string.
static int getNumTypes(void)
virtual ~Type()=default
Destruction.
static std::string getModuleName(const char *ClassName)
static Type fromName(const char *name)
bool operator!=(const Type type) const
Definition: Type.h:121
Type(const Type &type)
Construction.
bool operator<(const Type type) const
Definition: Type.h:136
bool isBad(void) const
Definition: Type.h:156
Definition: AbstractXMLReader.h:5
bool operator>(const Type type) const
Definition: Type.h:151