ug4
|
provides the name for a class More...
#include <class_name_provider.h>
Static Public Member Functions | |
static const ClassNameNode & | class_name_node () |
return the class name node in the class hierarchy More... | |
static bool | forward_declared () |
returns if class name is forward declared More... | |
static const std::string & | group () |
groups More... | |
static bool | is_a (const std::string &parent, bool strict=false) |
static const std::string & | name () |
name of this class More... | |
static bool | named () |
returns if the class has been named by user More... | |
static const std::vector< const char * > & | names () |
returns vector of all names including parent class names More... | |
static void | set_name (const std::string &nameIn, const std::string &group, bool newName=false) |
set name of class and copy parent names More... | |
template<typename TParent1 > | |
static void | set_name (const std::string &nameIn, const std::string &group, bool newName=false) |
set name of class and copy parent names More... | |
template<typename TParent1 , typename TParent2 > | |
static void | set_name (const std::string &nameIn, const std::string &group, bool newName=false) |
set name of class and copy parent names More... | |
Static Protected Member Functions | |
static void | set_foreward_declared () |
sets a temporary name to the class More... | |
Static Private Attributes | |
static bool | m_bForwardDeclared |
set to true if class has not been named by user, but a default name given More... | |
static ClassNameNode | m_ClassNameNode |
class name node holding own name and pointers to base class name nodes More... | |
static std::string | m_group |
Name of group, we're this class is sorted. More... | |
static std::vector< const char * > | m_names |
vector of parent class names (depreciated) More... | |
provides the name for a class
|
inlinestatic |
return the class name node in the class hierarchy
Referenced by ug::bridge::ParameterInfo::_push_type(), ug::bridge::ParameterInfo::_push_vector_type(), and ug::bridge::ExportedClass< TClass >::class_name_node().
|
inlinestatic |
returns if class name is forward declared
|
inlinestatic |
groups
Referenced by ug::bridge::ExportedClass< TClass >::group().
|
static |
check if a given class name is equal This function checks if a given class name is equal to this class name. If the flag 'strict' is set to true, the class name must match exactly. If it is set to false, also parent names (of the class hierarchy) are checked and if this class inherits from the parent class true is returned.
References ug::bridge::ClassNameTreeContains(), name, and UG_THROW_REGISTRY_ERROR.
|
static |
name of this class
Referenced by ug::bridge::Registry::get_class_(), ug::bridge::GetClassName(), and ug::bridge::ExportedClass< TClass >::name().
|
inlinestatic |
returns if the class has been named by user
|
static |
returns vector of all names including parent class names
References ug::bridge::ExtractClassNameVec().
Referenced by ug::bridge::ExportedClass< TClass >::class_names().
|
staticprotected |
sets a temporary name to the class
References name.
|
static |
set name of class and copy parent names
References name, UG_ERR_LOG, UG_THROW_REGISTRY_ERROR, and UG_THROW_REGISTRY_MSG.
Referenced by ug::bridge::ExportedClass< TClass >::ExportedClass().
|
static |
set name of class and copy parent names
|
static |
set name of class and copy parent names
|
staticprivate |
set to true if class has not been named by user, but a default name given
|
staticprivate |
class name node holding own name and pointers to base class name nodes
|
staticprivate |
Name of group, we're this class is sorted.
|
staticprivate |
vector of parent class names (depreciated)