neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
neolib::index_array_tree< ForeignIndex, Alloc >::node Class Reference

#include <index_array_tree.hpp>

Classes

struct  no_left_node
 
struct  no_right_node
 

Public Types

enum  color_e { NIL , BLACK , RED }
 

Public Member Functions

 node (color_e aColor=RED)
 
 node (const node &aOther)
 
 ~node ()
 
bool is_nil () const
 
color_e color () const
 
void set_color (color_e aColor)
 
nodeparent () const
 
void set_parent (node *aParent)
 
nodeleft () const
 
void set_left (node *aLeft)
 
noderight () const
 
void set_right (node *aRight)
 
nodeprevious () const
 
void set_previous (node *aPrevoius)
 
nodenext () const
 
void set_next (node *aNext)
 
size_type size () const
 
size_type left_size () const
 
size_type right_size () const
 
size_type centre_size () const
 
void set_size (size_type aSize)
 
foreign_index_type foreign_index () const
 
foreign_index_type left_foreign_index () const
 
foreign_index_type right_foreign_index () const
 
foreign_index_type centre_foreign_index () const
 
void set_foreign_index (foreign_index_type aForeignIndex)
 
void replace (node *aGarbage, node *aNil)
 

Detailed Description

template<typename ForeignIndex, typename Alloc>
class neolib::index_array_tree< ForeignIndex, Alloc >::node

Definition at line 52 of file index_array_tree.hpp.

Member Enumeration Documentation

◆ color_e

Enumerator
NIL 
BLACK 
RED 

Definition at line 61 of file index_array_tree.hpp.

Constructor & Destructor Documentation

◆ node() [1/2]

neolib::index_array_tree< ForeignIndex, Alloc >::node::node ( color_e  aColor = RED)
inline

Definition at line 69 of file index_array_tree.hpp.

◆ node() [2/2]

neolib::index_array_tree< ForeignIndex, Alloc >::node::node ( const node aOther)
inline

Definition at line 73 of file index_array_tree.hpp.

◆ ~node()

Definition at line 77 of file index_array_tree.hpp.

Member Function Documentation

◆ centre_foreign_index()

foreign_index_type neolib::index_array_tree< ForeignIndex, Alloc >::node::centre_foreign_index ( ) const
inline

Definition at line 180 of file index_array_tree.hpp.

◆ centre_size()

size_type neolib::index_array_tree< ForeignIndex, Alloc >::node::centre_size ( ) const
inline

Definition at line 151 of file index_array_tree.hpp.

◆ color()

color_e neolib::index_array_tree< ForeignIndex, Alloc >::node::color ( ) const
inline

Definition at line 86 of file index_array_tree.hpp.

◆ foreign_index()

foreign_index_type neolib::index_array_tree< ForeignIndex, Alloc >::node::foreign_index ( ) const
inline

Definition at line 168 of file index_array_tree.hpp.

◆ is_nil()

bool neolib::index_array_tree< ForeignIndex, Alloc >::node::is_nil ( ) const
inline

Definition at line 82 of file index_array_tree.hpp.

◆ left()

node * neolib::index_array_tree< ForeignIndex, Alloc >::node::left ( ) const
inline

Definition at line 103 of file index_array_tree.hpp.

◆ left_foreign_index()

foreign_index_type neolib::index_array_tree< ForeignIndex, Alloc >::node::left_foreign_index ( ) const
inline

Definition at line 172 of file index_array_tree.hpp.

◆ left_size()

size_type neolib::index_array_tree< ForeignIndex, Alloc >::node::left_size ( ) const
inline

Definition at line 143 of file index_array_tree.hpp.

◆ next()

node * neolib::index_array_tree< ForeignIndex, Alloc >::node::next ( ) const
inline

Definition at line 131 of file index_array_tree.hpp.

◆ parent()

node * neolib::index_array_tree< ForeignIndex, Alloc >::node::parent ( ) const
inline

Definition at line 95 of file index_array_tree.hpp.

◆ previous()

node * neolib::index_array_tree< ForeignIndex, Alloc >::node::previous ( ) const
inline

Definition at line 123 of file index_array_tree.hpp.

◆ replace()

void neolib::index_array_tree< ForeignIndex, Alloc >::node::replace ( node aGarbage,
node aNil 
)
inline

Definition at line 197 of file index_array_tree.hpp.

◆ right()

node * neolib::index_array_tree< ForeignIndex, Alloc >::node::right ( ) const
inline

Definition at line 113 of file index_array_tree.hpp.

◆ right_foreign_index()

foreign_index_type neolib::index_array_tree< ForeignIndex, Alloc >::node::right_foreign_index ( ) const
inline

Definition at line 176 of file index_array_tree.hpp.

◆ right_size()

size_type neolib::index_array_tree< ForeignIndex, Alloc >::node::right_size ( ) const
inline

Definition at line 147 of file index_array_tree.hpp.

◆ set_color()

void neolib::index_array_tree< ForeignIndex, Alloc >::node::set_color ( color_e  aColor)
inline

Definition at line 90 of file index_array_tree.hpp.

◆ set_foreign_index()

void neolib::index_array_tree< ForeignIndex, Alloc >::node::set_foreign_index ( foreign_index_type  aForeignIndex)
inline

Definition at line 184 of file index_array_tree.hpp.

◆ set_left()

void neolib::index_array_tree< ForeignIndex, Alloc >::node::set_left ( node aLeft)
inline

Definition at line 109 of file index_array_tree.hpp.

◆ set_next()

void neolib::index_array_tree< ForeignIndex, Alloc >::node::set_next ( node aNext)
inline

Definition at line 135 of file index_array_tree.hpp.

◆ set_parent()

void neolib::index_array_tree< ForeignIndex, Alloc >::node::set_parent ( node aParent)
inline

Definition at line 99 of file index_array_tree.hpp.

◆ set_previous()

void neolib::index_array_tree< ForeignIndex, Alloc >::node::set_previous ( node aPrevoius)
inline

Definition at line 127 of file index_array_tree.hpp.

◆ set_right()

void neolib::index_array_tree< ForeignIndex, Alloc >::node::set_right ( node aRight)
inline

Definition at line 119 of file index_array_tree.hpp.

◆ set_size()

void neolib::index_array_tree< ForeignIndex, Alloc >::node::set_size ( size_type  aSize)
inline

Definition at line 155 of file index_array_tree.hpp.

◆ size()

Definition at line 139 of file index_array_tree.hpp.


The documentation for this class was generated from the following file: