Navigation
API > API/Runtime > API/Runtime/CoreUObject
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.
| Name | FClassTree |
| Type | class |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/UObject/ClassTree.h |
| Include Path | #include "UObject/ClassTree.h" |
Syntax
class FClassTree
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FClassTree
(
UClass* BaseClass |
Constructor | UObject/ClassTree.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FClassTree() |
Destructor. Frees the memory for all child nodes, recursively. | UObject/ClassTree.h |
Structs
| Name | Remarks |
|---|---|
| FScopedRecurseDepthCounter |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Children | TArray< FClassTree * > | UObject/ClassTree.h | ||
| Class | UClass * | UObject/ClassTree.h | ||
| Instances | TDoubleLinkedList< UObject * > | UObject/ClassTree.h | ||
| Parent | FClassTree * | UObject/ClassTree.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Public interface for adding a new class to the tree. | UObject/ClassTree.h | ||
| Move a class node in the hierarchy tree after a class has changed its SuperClass | UObject/ClassTree.h | ||
void DumpClassTree
(
int32 IndentCount, |
UObject/ClassTree.h | ||
const FClassTree * FindNode
(
UClass* SearchClass |
Find the node associated with the class specified | UObject/ClassTree.h | |
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. | UObject/ClassTree.h | |
const FClassTree * GetChild
(
int32 Index |
UObject/ClassTree.h | ||
void GetChildClasses
(
TArray< UClass* >& ChildClasses, |
Retrieve the child nodes of this node that match the flags specified | UObject/ClassTree.h | |
void GetChildClasses
(
TArray< const FClassTree* >& ChildClasses, |
Retrieve the child nodes of this node | UObject/ClassTree.h | |
void GetChildClasses
(
TArray< FClassTree* >& ChildClasses, |
Retrieve the child nodes of this node | UObject/ClassTree.h | |
UClass * GetClass() |
Get the class associated with this node | UObject/ClassTree.h | |
FClassTree * GetNode
(
UClass* SearchClass |
Find the node associated with the class specified | UObject/ClassTree.h | |
FClassTree * GetRootNode () |
Gets the root node for this class tree | UObject/ClassTree.h | |
const FClassTree * GetRootNode () |
Gets the root node for this class tree | UObject/ClassTree.h | |
int32 Num() |
Get the number of classes represented by this node, including any child nodes | UObject/ClassTree.h | |
int32 NumChildren() |
Get the number of child nodes of this node | UObject/ClassTree.h | |
void PopulateTree() |
Utility/convenience method for populating a class tree. | UObject/ClassTree.h | |
void Validate() |
Verify that this node is at the correct location in the class tree | UObject/ClassTree.h |