ug4
|
Class Hierarchy Helper Class for UG Registry This class stores class names and their subclasses. More...
#include <class_helper.h>
Public Member Functions | |
ClassHierarchy () | |
ClassHierarchy * | find_class (const char *name) |
void | insert_class (const IExportedClass &c) |
bool | operator< (const ClassHierarchy &other) const |
void | sort () |
Public Attributes | |
bool | bGroup |
std::string | name |
std::vector< ClassHierarchy > | subclasses |
Class Hierarchy Helper Class for UG Registry This class stores class names and their subclasses.
|
inline |
ClassHierarchy * ug::bridge::ClassHierarchy::find_class | ( | const char * | name | ) |
searches the hierarchy for the classname name.
name | class name to be searched |
References find_class(), and name.
Referenced by ug::bridge::ClassHierarchyString(), and find_class().
void ug::bridge::ClassHierarchy::insert_class | ( | const IExportedClass & | c | ) |
adds the class c to the class hierarchy by attaching it to its base hierarchy (base hierarchy taken from c->class_names()). automatically creates nonexisting base hierarchy.
c | Class to be inserted |
References bGroup, ug::bridge::IExportedClass::class_names(), ug::bridge::IExportedClass::group(), name, subclasses, ug::TokenizeString(), and ug::TrimString().
Referenced by ug::bridge::GetClassHierarchy().
|
inline |
void ug::bridge::ClassHierarchy::sort | ( | ) |
Referenced by ug::bridge::GetClassHierarchy().
bool ug::bridge::ClassHierarchy::bGroup |
Referenced by insert_class().
std::string ug::bridge::ClassHierarchy::name |
Referenced by ug::bridge::GetClassHierarchy(), insert_class(), operator<(), and ug::bridge::PrintClassSubHierarchy().
std::vector<ClassHierarchy> ug::bridge::ClassHierarchy::subclasses |
Referenced by ug::bridge::GetClassHierarchy(), insert_class(), and ug::bridge::PrintClassSubHierarchy().