Panda3D
|
This is a single entry in the TypeRegistry. More...
#include "typeRegistryNode.h"
Public Types | |
typedef vector< TypeRegistryNode * > | Classes |
Public Member Functions | |
TypeRegistryNode (TypeHandle handle, const string &name, TypeHandle &ref) | |
void | clear_subtree () |
Removes any subtree definition previously set up via define_subtree(), in preparation for rebuilding the subtree data. More... | |
void | define_subtree () |
Indicates that this TypeRegistryNode is the top of a subtree within the inheritance graph (typically, this indicates a multiple-inheritance node). More... | |
Static Public Member Functions | |
static TypeHandle | get_parent_towards (const TypeRegistryNode *child, const TypeRegistryNode *base) |
Returns the first parent class of child that is a descendant of the indicated base class. More... | |
static bool | is_derived_from (const TypeRegistryNode *child, const TypeRegistryNode *base) |
Returns true if the child RegistryNode represents a class that inherits directly or indirectly from the class represented by the base RegistryNode. More... | |
Public Attributes | |
Classes | _child_classes |
TypeHandle | _handle |
string | _name |
Classes | _parent_classes |
TypeHandle & | _ref |
Static Public Attributes | |
static bool | _paranoid_inheritance = false |
This is a single entry in the TypeRegistry.
Normally, user code will never directly access this class; this class is hidden within the TypeRegistry accessors.
Definition at line 33 of file typeRegistryNode.h.
void TypeRegistryNode::clear_subtree | ( | ) |
Removes any subtree definition previously set up via define_subtree(), in preparation for rebuilding the subtree data.
Definition at line 186 of file typeRegistryNode.cxx.
References define_subtree().
Referenced by get_parent_towards(), and TypeRegistry::ptr().
void TypeRegistryNode::define_subtree | ( | ) |
Indicates that this TypeRegistryNode is the top of a subtree within the inheritance graph (typically, this indicates a multiple-inheritance node).
Builds all the subtree_mask etc. flags for nodes at this level and below.
Definition at line 202 of file typeRegistryNode.cxx.
Referenced by clear_subtree(), and TypeRegistry::ptr().
|
static |
Returns the first parent class of child that is a descendant of the indicated base class.
Definition at line 160 of file typeRegistryNode.cxx.
References clear_subtree(), TypeRegistry::is_derived_from(), and TypeHandle::none().
Referenced by TypeRegistry::get_parent_towards(), and is_derived_from().
|
static |
Returns true if the child RegistryNode represents a class that inherits directly or indirectly from the class represented by the base RegistryNode.
Definition at line 45 of file typeRegistryNode.cxx.
References get_parent_towards().
Referenced by TypeRegistry::is_derived_from().