Navigation
Unreal Engine C++ API Reference > Runtime > CoreUObject > UObject
References
Module | CoreUObject |
Header | /Engine/Source/Runtime/CoreUObject/Public/UObject/ClassTree.h |
Include | #include "UObject/ClassTree.h" |
Syntax
class FClassTree
Remarks
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.
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
FClassTree
(
UClass* BaseClass |
Constructor |
Destructors
Type | Name | Description | |
---|---|---|---|
![]() |
~FClassTree () |
Destructor. Frees the memory for all child nodes, recursively. |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
bool | Public interface for adding a new class to the tree. | |
![]() |
bool | ChangeParentClass
(
UClass* SearchClass, |
Move a class node in the hierarchy tree after a class has changed its SuperClass |
![]() |
void | DumpClassTree
(
int32 IndentCount, |
|
![]() ![]() |
const FClassTree * | Find the node associated with the class specified | |
![]() ![]() |
FClassTree * | GenerateMaskedClassTree
(
const Comparator& Mask |
Creates a new class tree rooted at this node's class, which contains only classes which match the class flags specified. |
![]() ![]() |
const FClassTree * | GetChild
(
int32 Index |
|
![]() ![]() |
void | GetChildClasses
(
TArray< UClass* >& ChildClasses, |
Retrieve the child nodes of this node that match the flags specified |
![]() ![]() |
void | GetChildClasses
(
TArray< const FClassTree* >& ChildClasses, |
Retrieve the child nodes of this node |
![]() |
void | GetChildClasses
(
TArray< FClassTree* >& ChildClasses, |
Retrieve the child nodes of this node |
![]() ![]() |
UClass * | GetClass () |
Get the class associated with this node |
![]() |
FClassTree * | Find the node associated with the class specified | |
![]() ![]() |
const FClassTree * | GetRootNode () |
Gets the root node for this class tree |
![]() |
FClassTree * | GetRootNode () |
Gets the root node for this class tree |
![]() ![]() |
int32 | Num () |
Get the number of classes represented by this node, including any child nodes |
![]() ![]() |
int32 | NumChildren () |
Get the number of child nodes of this node |
![]() |
void | PopulateTree () |
Utility/convenience method for populating a class tree. |
![]() ![]() |
void | Validate () |
Verify that this node is at the correct location in the class tree |