ug4
|
node for class names More...
#include <class_name_provider.h>
Public Member Functions | |
void | add_base_class (const ClassNameNode &node) |
add a base class More... | |
const ClassNameNode & | base_class (size_t i) const |
return a base class More... | |
ClassNameNode () | |
constructor More... | |
bool | empty () const |
returns if a name has been set More... | |
const std::string & | name () const |
returns own name More... | |
bool | named () const |
returns if a name has been set by the user More... | |
size_t | num_base_classes () const |
returns number of parents More... | |
void | set_name (const std::string &name) |
set name More... | |
Protected Attributes | |
std::string | m_name |
own name More... | |
std::vector< const ClassNameNode * > | m_vBaseClass |
base classes More... | |
node for class names
A ClassNameNode stores the name of a registered class and pointers to the ClassNameNodes of the direct base classes of this class. By traversing the tree of ClassNameNodes all parent classes of a class can be found.
ug::bridge::ClassNameNode::ClassNameNode | ( | ) |
constructor
References m_name.
void ug::bridge::ClassNameNode::add_base_class | ( | const ClassNameNode & | node | ) |
add a base class
References ug::find(), and m_vBaseClass.
|
inline |
|
inline |
returns if a name has been set
Referenced by ug::bridge::lua::LuaParsing< const void * >::checkAndGet(), ug::bridge::lua::LuaParsing< ConstSmartPtr< void > >::checkAndGet(), ug::bridge::lua::LuaParsing< SmartPtr< void > >::checkAndGet(), ug::bridge::lua::LuaParsing< void * >::checkAndGet(), ug::bridge::GetLuaTypeString(), named(), and ug::script::UGIsBaseClass().
|
inline |
returns own name
Referenced by ug::bridge::ClassCastProvider::cast_to_base_class(), ug::bridge::ParameterInfo::class_name(), ug::bridge::ClassNameTreeContains(), ug::bridge::ClassNameTreeWay(), ug::bridge::lua::ExecuteMethod(), ug::bridge::ExtractClassNameVec(), ug::bridge::GetLuaTypeString(), ug::bridge::lua::LuaProxyMethod(), ug::bridge::lua::MetatableIndexer(), set_name(), ug::script::UGGetClassGroup(), and ug::script::UGGetClassName().
bool ug::bridge::ClassNameNode::named | ( | ) | const |
returns if a name has been set by the user
References empty(), and m_name.
Referenced by ug::bridge::ParameterInfo::parameter_named().
|
inline |
returns number of parents
Referenced by ug::bridge::ClassNameTreeContains(), ug::bridge::ClassNameTreeWay(), ug::bridge::lua::ExecuteMethod(), ug::bridge::ExtractClassNameVec(), and ug::bridge::lua::MetatableIndexer().
void ug::bridge::ClassNameNode::set_name | ( | const std::string & | name | ) |
set name
References m_name, name(), and UG_THROW_REGISTRY_MSG.
|
protected |
own name
Referenced by ClassNameNode(), named(), and set_name().
|
protected |
base classes
Referenced by add_base_class().