ug4
ug::bridge::ClassNameNode Class Reference

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 ClassNameNodebase_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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ ClassNameNode()

ug::bridge::ClassNameNode::ClassNameNode ( )

constructor

References m_name.

Member Function Documentation

◆ add_base_class()

void ug::bridge::ClassNameNode::add_base_class ( const ClassNameNode node)

add a base class

References ug::find(), and m_vBaseClass.

◆ base_class()

◆ empty()

◆ name()

◆ named()

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().

◆ num_base_classes()

size_t ug::bridge::ClassNameNode::num_base_classes ( ) const
inline

◆ set_name()

void ug::bridge::ClassNameNode::set_name ( const std::string &  name)

set name

References m_name, name(), and UG_THROW_REGISTRY_MSG.

Member Data Documentation

◆ m_name

std::string ug::bridge::ClassNameNode::m_name
protected

own name

Referenced by ClassNameNode(), named(), and set_name().

◆ m_vBaseClass

std::vector<const ClassNameNode*> ug::bridge::ClassNameNode::m_vBaseClass
protected

base classes

Referenced by add_base_class().


The documentation for this class was generated from the following files: