C4 Engine Terathon Software C4 Engine API Documentation

• Utility Library

API Links
Developer Links

class UpdatableTree

Defined in:  C4Tree.h
Objects inherit from the UpdatableTree class so that they can be stored in a hierarchical tree and have update flags tracked.
Definition

template <class type> class UpdatableTree : public Tree<type>

Member Functions
UpdatableTree::GetActiveUpdateFlags Returns the active update flags for a node.
UpdatableTree::SetActiveUpdateFlags Sets the active update flags for a node.
UpdatableTree::GetCurrentUpdateFlags Returns the current update flags for a node.
UpdatableTree::GetSubtreeUpdateFlags Returns the cumulative update flags for all subnodes.
UpdatableTree::Invalidate Invalidates a node and its subnodes.
UpdatableTree::Update Updates a node and its subnodes.
Template Parameters
type The type of the class that can be stored in a tree. This parameter should be the type of the class that inherits directly from the UpdatableTree class.
Constructor

UpdatableTree();

The constructor has protected access takes no parameters. The UpdatableTree class can only exist as a base class for another class.
Description
Base Classes
Tree<type> An UpdatableTree object is an extension of a Tree object.