FClassTree

Manages an inheritance tree.

Windows
MacOS
Linux

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

Name Description

Public function

FClassTree

(
    UClass* BaseClass
)

Constructor

Destructors

Name Description

Public function

~FClassTree()

  1. Frees the memory for all child nodes, recursively.

Functions

Name Description

Public function

bool

 

AddClass

(
    UClass* ChildClass
)

Public interface for adding a new class to the tree.

Public function

bool

 

ChangeParentClass

(
    UClass* SearchClass,
    UClass* InNewParentClass
)

Move a class node in the hierarchy tree after a class has changed its SuperClass

Public function

void

 

DumpClassTree

(
    int32 IndentCount,
    FOutputDevice& Ar
)

Public function Const

const FClass...

 

FindNode

(
    UClass* SearchClass
)

Find the node associated with the class specified

Public function Const

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.

Public function Const

const FClass...

 

GetChild

(
    int32 Index
)

Public function Const

void

 

GetChildClasses

(
    TArray< UClass* >& ChildClass...,
    const Comparator& Mask,
    bool bRecurse
)

Retrieve the child nodes of this node that match the flags specified

Public function Const

void

 

GetChildClasses

(
    TArray< const FClassTree* >& ...,
    bool bRecurse
)

Retrieve the child nodes of this node

Public function

void

 

GetChildClasses

(
    TArray< FClassTree* >& ChildC...,
    bool bRecurse
)

Retrieve the child nodes of this node

Public function Const

UClass *

 

GetClass()

Get the class associated with this node

Public function

FClassTree &...

 

GetNode

(
    UClass* SearchClass
)

Find the node associated with the class specified

Public function Const

const FClass...

 

GetRootNode()

Gets the root node for this class tree

Public function

FClassTree &...

 

GetRootNode()

Gets the root node for this class tree

Public function Const

int32

 

Num()

Get the number of classes represented by this node, including any child nodes

Public function Const

int32

 

NumChildren()

Get the number of child nodes of this node

Public function

void

 

PopulateTree()

Utility/convenience method for populating a class tree.

Public function Const

void

 

Validate()

Verify that this node is at the correct location in the class tree

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss