MeVisLab Resolution Independence API
SbMapItem< KeyType, ValueType > Class Template Reference

Class SbMapItem is the element type of the SbMap tree. More...

#include <SbMap.h>

Public Member Functions

 SbMapItem (const KeyType &k, const ValueType &v)
 
virtual ~SbMapItem ()
 
void setLeftChild (SbMapItem *p)
 
void setRightChild (SbMapItem *p)
 
void setParent (SbMapItem *p)
 
void setValue (const ValueType &v)
 
void setRed ()
 
void setBlack ()
 
SbMapItemgetLeftChild () const
 
SbMapItemgetRightChild () const
 
SbMapItemgetParent () const
 
ValueType getValue ()
 
const ValueType & getValue () const
 
KeyType getKey ()
 
const KeyTypegetKey () const
 
bool isRoot () const
 
bool isLeftChild () const
 
bool isRightChild () const
 
bool isLeaf () const
 
unsigned int GetLevel () const
 
bool isRed () const
 
bool isBlack () const
 

Detailed Description

template<class KeyType, class ValueType>
class SbMapItem< KeyType, ValueType >

Class SbMapItem is the element type of the SbMap tree.

Definition at line 67 of file SbMap.h.

Constructor & Destructor Documentation

◆ SbMapItem()

template<class KeyType , class ValueType >
SbMapItem< KeyType, ValueType >::SbMapItem ( const KeyType & k,
const ValueType & v )
inline

Definition at line 72 of file SbMap.h.

◆ ~SbMapItem()

template<class KeyType , class ValueType >
virtual SbMapItem< KeyType, ValueType >::~SbMapItem ( )
inlinevirtual

Definition at line 77 of file SbMap.h.

Member Function Documentation

◆ getKey() [1/2]

template<class KeyType , class ValueType >
KeyType SbMapItem< KeyType, ValueType >::getKey ( )
inline

Definition at line 128 of file SbMap.h.

Referenced by SbMap< KeyType, ValueType >::find().

◆ getKey() [2/2]

template<class KeyType , class ValueType >
const KeyType & SbMapItem< KeyType, ValueType >::getKey ( ) const
inline

Definition at line 131 of file SbMap.h.

◆ getLeftChild()

template<class KeyType , class ValueType >
SbMapItem * SbMapItem< KeyType, ValueType >::getLeftChild ( ) const
inline

◆ GetLevel()

template<class KeyType , class ValueType >
unsigned int SbMapItem< KeyType, ValueType >::GetLevel ( ) const
inline

◆ getParent()

template<class KeyType , class ValueType >
SbMapItem * SbMapItem< KeyType, ValueType >::getParent ( ) const
inline

◆ getRightChild()

template<class KeyType , class ValueType >
SbMapItem * SbMapItem< KeyType, ValueType >::getRightChild ( ) const
inline

◆ getValue() [1/2]

template<class KeyType , class ValueType >
ValueType SbMapItem< KeyType, ValueType >::getValue ( )
inline

◆ getValue() [2/2]

template<class KeyType , class ValueType >
const ValueType & SbMapItem< KeyType, ValueType >::getValue ( ) const
inline

Definition at line 125 of file SbMap.h.

◆ isBlack()

template<class KeyType , class ValueType >
bool SbMapItem< KeyType, ValueType >::isBlack ( ) const
inline

Definition at line 155 of file SbMap.h.

◆ isLeaf()

template<class KeyType , class ValueType >
bool SbMapItem< KeyType, ValueType >::isLeaf ( ) const
inline

Definition at line 145 of file SbMap.h.

◆ isLeftChild()

template<class KeyType , class ValueType >
bool SbMapItem< KeyType, ValueType >::isLeftChild ( ) const
inline

◆ isRed()

template<class KeyType , class ValueType >
bool SbMapItem< KeyType, ValueType >::isRed ( ) const
inline

Definition at line 152 of file SbMap.h.

Referenced by SbMap< KeyType, ValueType >::insert().

◆ isRightChild()

template<class KeyType , class ValueType >
bool SbMapItem< KeyType, ValueType >::isRightChild ( ) const
inline

◆ isRoot()

template<class KeyType , class ValueType >
bool SbMapItem< KeyType, ValueType >::isRoot ( ) const
inline

◆ setBlack()

template<class KeyType , class ValueType >
void SbMapItem< KeyType, ValueType >::setBlack ( )
inline

Definition at line 106 of file SbMap.h.

Referenced by SbMap< KeyType, ValueType >::insert().

◆ setLeftChild()

template<class KeyType , class ValueType >
void SbMapItem< KeyType, ValueType >::setLeftChild ( SbMapItem< KeyType, ValueType > * p)
inline

Definition at line 83 of file SbMap.h.

References SbMapItem< KeyType, ValueType >::setParent().

Referenced by SbMap< KeyType, ValueType >::remove().

◆ setParent()

template<class KeyType , class ValueType >
void SbMapItem< KeyType, ValueType >::setParent ( SbMapItem< KeyType, ValueType > * p)
inline

◆ setRed()

template<class KeyType , class ValueType >
void SbMapItem< KeyType, ValueType >::setRed ( )
inline

Definition at line 103 of file SbMap.h.

Referenced by SbMap< KeyType, ValueType >::insert().

◆ setRightChild()

template<class KeyType , class ValueType >
void SbMapItem< KeyType, ValueType >::setRightChild ( SbMapItem< KeyType, ValueType > * p)
inline

Definition at line 88 of file SbMap.h.

References SbMapItem< KeyType, ValueType >::setParent().

Referenced by SbMap< KeyType, ValueType >::remove().

◆ setValue()

template<class KeyType , class ValueType >
void SbMapItem< KeyType, ValueType >::setValue ( const ValueType & v)
inline

Definition at line 97 of file SbMap.h.

Referenced by SbMap< KeyType, ValueType >::set().


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