|
| TypeImpl (const std::string &name, const std::shared_ptr< Type > &base, const std::string &category) |
|
virtual bool | tryToString (const void *p, std::string &s) const override |
|
virtual bool | fromStringSupported () const |
|
virtual void | fromStringOrThrow (void *value, const std::string &s) const override |
|
virtual void | properties (const void *ptr, std::vector< Property > &props) const override |
|
virtual bool | tryToPointerList (const void *object, std::vector< std::shared_ptr< void >> &out) const override |
|
virtual bool | tryFromPointerList (void *object, const std::vector< std::shared_ptr< void >> &in) const override |
|
const std::type_index & | typeId () const |
|
const std::string & | name () const |
|
const std::shared_ptr< Type > & | base () const |
|
bool | constructable () const |
|
const std::string & | category () const |
|
template<class T > |
std::shared_ptr< T > | instantiate () const |
|
std::vector< std::shared_ptr< Type > > | list () const |
|
|
static std::shared_ptr< Type > | tryFind (const std::string &name) |
|
static std::shared_ptr< Type > | tryFind (const std::type_index &id) |
|
static std::shared_ptr< Type > | find (const std::string &name) |
|
static std::shared_ptr< Type > | find (const std::type_index &id) |
|
template<class T > |
static std::shared_ptr< Type > | find () |
|
template<class T > |
static std::shared_ptr< Type > | tryFind () |
|
template<class T > |
static std::shared_ptr< Type > | global (const std::string &name="", const std::shared_ptr< Type > &base=nullptr, const std::string &category="") |
|
template<class T > |
static std::shared_ptr< Type > | create (const std::string &name="", const std::shared_ptr< Type > &base=nullptr, const std::string &category="") |
|
template<class T > |
void | _initConstructor (...) |
|
template<class T > |
void | _initConstructor (decltype(new T()) i) |
|
| Type (const Type &)=delete |
|
Type & | operator= (const Type &)=delete |
|
static void | _registerType (const std::shared_ptr< Type > &t) |
|
static bool | _tryToPointerList (...) |
|
template<class T > |
static bool | _tryToPointerList (const std::vector< std::shared_ptr< T >> *list, std::vector< std::shared_ptr< void >> &out) |
|
static bool | _tryFromPointerList (...) |
|
template<class T > |
static bool | _tryFromPointerList (std::vector< std::shared_ptr< T >> *list, const std::vector< std::shared_ptr< void >> &in) |
|
std::string | _name |
|
std::type_index | _type_id = typeid(void) |
|
std::shared_ptr< Type > | _base |
|
bool | _constructable = false |
|
std::function< std::shared_ptr< void >)> | _create |
|
std::string | _category |
|
template<class T>
class TypeImpl< T >
Definition at line 334 of file type.h.
The documentation for this class was generated from the following file: