![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <ClassTree.h>
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.
|
inline |
Constructor
| BaseClass | the class that should be associated with this node. |
|
inline |
Destructor. Frees the memory for all child nodes, recursively.
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 |
|
inline |
Move a class node in the hierarchy tree after a class has changed its SuperClass
| SearchClass | the class that has changed parents |
| InNewParentClass | if non-null force reparenting to this instead of the SuperClass |
|
inline |
|
inline |
Find the node associated with the class specified
| SearchClass | the class to search for |
|
inline |
Creates a new class tree rooted at this node's class, which contains only classes which match the class flags specified.
| Mask | information about the types of classes to include. Must implement bool IsValidClass(const FClassTree* Node) const. |
|
inline |
|
inline |
Retrieve the child nodes of this node
| ChildClasses | [out] this node's children |
| bRecurse | if false, only direct children of this node's class will be considered |
|
inline |
Retrieve the child nodes of this node
| ChildClasses | [out] this node's children |
| bRecurse | if false, only direct children of this node's class will be considered |
|
inline |
Retrieve the child nodes of this node that match the flags specified
| ChildClasses | [out] array of child classes with class flags matching the flags specified |
| Mask | info on how to determine whether classes are included in the results. Must implement bool IsValidClass(const FClassTree* Node) const. |
| bRecurse | if false, only direct children of this node's class will be considered |
|
inline |
Get the class associated with this node
|
inline |
Find the node associated with the class specified
| SearchClass | the class to search for |
|
inline |
Gets the root node for this class tree
|
inline |
Gets the root node for this class tree
|
inline |
Get the number of classes represented by this node, including any child nodes
|
inline |
Get the number of child nodes of this node
|
inline |
Utility/convenience method for populating a class tree.
|
inline |
Verify that this node is at the correct location in the class tree