arsa  2.7
Public Member Functions | Friends | List of all members
irr::core::map< KeyType, ValueType >::AccessClass Class Reference

#include <irrMap.h>

Public Member Functions

void operator= (const ValueType &value)
 
 operator ValueType ()
 

Friends

class map< KeyType, ValueType >
 

Detailed Description

template<class KeyType, class ValueType>
class irr::core::map< KeyType, ValueType >::AccessClass

Definition at line 622 of file irrMap.h.

Member Function Documentation

◆ operator ValueType()

template<class KeyType, class ValueType>
irr::core::map< KeyType, ValueType >::AccessClass::operator ValueType ( )
inline

Definition at line 637 of file irrMap.h.

638  {
639  Node* node = Tree.find(Key);
640 
641  // Not found
642  _IRR_DEBUG_BREAK_IF(node==0) // access violation
643 
644  return node->getValue();
645  }
RBTree< KeyType, ValueType > Node
Definition: irrMap.h:125
#define _IRR_DEBUG_BREAK_IF(_CONDITION_)
define a break macro for debugging.
Definition: irrTypes.h:185
Node * find(const KeyType &keyToFind) const
Definition: irrMap.h:892

◆ operator=()

template<class KeyType, class ValueType>
void irr::core::map< KeyType, ValueType >::AccessClass::operator= ( const ValueType &  value)
inline

Definition at line 630 of file irrMap.h.

631  {
632  // Just use the Set method, it handles already exist/not exist situation
633  Tree.set(Key,value);
634  }
void set(const KeyType &k, const ValueType &v)
Replaces the value if the key already exists, otherwise inserts a new element.
Definition: irrMap.h:761
GLsizei const GLfloat * value

Friends And Related Function Documentation

◆ map< KeyType, ValueType >

template<class KeyType, class ValueType>
friend class map< KeyType, ValueType >
friend

Definition at line 625 of file irrMap.h.


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