|
| bool | AddClass (UClass *ChildClass) |
| | Public interface for adding a new class to the tree. 更多...
|
| |
| bool | ChangeParentClass (UClass *SearchClass, UClass *InNewParentClass=NULL) |
| | Move a class node in the hierarchy tree after a class has changed its SuperClass 更多...
|
| |
| | FClassTree (UClass *BaseClass) |
| | Constructor 更多...
|
| |
| const FClassTree * | FindNode (UClass *SearchClass) const |
| | Find the node associated with the class specified 更多...
|
| |
| template<class Comparator > |
| FClassTree * | GenerateMaskedClassTree (const Comparator &Mask) const |
| | Creates a new class tree rooted at this node's class, which contains only classes which match the class flags specified. 更多...
|
| |
| void | GetChildClasses (TArray< const FClassTree * > &ChildClasses, bool bRecurse=false) const |
| | Retrieve the child nodes of this node 更多...
|
| |
| void | GetChildClasses (TArray< FClassTree * > &ChildClasses, bool bRecurse=false) |
| | Retrieve the child nodes of this node 更多...
|
| |
| template<class Comparator > |
| void | GetChildClasses (TArray< UClass * > &ChildClasses, const Comparator &Mask, bool bRecurse=false) const |
| | Retrieve the child nodes of this node that match the flags specified 更多...
|
| |
| UClass * | GetClass () const |
| | Get the class associated with this node 更多...
|
| |
| FClassTree * | GetNode (UClass *SearchClass) |
| | Find the node associated with the class specified 更多...
|
| |
|
FClassTree * | GetRootNode () |
| | Gets the root node for this class tree
|
| |
|
const FClassTree * | GetRootNode () const |
| | Gets the root node for this class tree
|
| |
| int32 | Num () const |
| | Get the number of classes represented by this node, including any child nodes 更多...
|
| |
| FORCEINLINE int32 | NumChildren () const |
| | Get the number of child nodes of this node 更多...
|
| |
|
void | PopulateTree () |
| | Utility/convenience method for populating a class tree.
|
| |
|
void | Validate () const |
| | Verify that this node is at the correct location in the class tree
|
| |
| | ~FClassTree () |
| | Destructor. 更多...
|
| |
Manages an inheritance tree.
There is one FClassTree node for each UClass. Each node stores pointers to its parent and child nodes. New nodes should always be added to the root node. This is enforced by allowing const references to child nodes.
| bool FClassTree::AddClass |
( |
UClass * |
ChildClass | ) |
|
|
inline |
Public interface for adding a new class to the tree.
Actual functionality implemented separately in order to support being able to call AddClass() on any node in the tree structure and have it inserted into the correct location.
Can be called on any node in the tree. Takes care of inserting the class into the correct location in the structure. Correctly handles adding classes in any arbitrary order (i.e. parent classes do not need to be added before child classes, etc.)
- 参数
-
| ChildClass | the class to add to the tree |
- 返回
- buffer that will contain the post processed text