STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
_Tree_val< _Val_types > Class Template Reference
Inheritance diagram for _Tree_val< _Val_types >:
_Container_base0

Public Types

enum  _Redbl { _Red, _Black }
 
typedef _Tree_val< _Val_types > _Myt
 
typedef _Val_types::_Nodeptr _Nodeptr
 
typedef _Nodeptr_Nodepref
 
typedef _Val_types::value_type value_type
 
typedef _Val_types::size_type size_type
 
typedef _Val_types::difference_type difference_type
 
typedef _Val_types::pointer pointer
 
typedef _Val_types::const_pointer const_pointer
 
typedef _Val_types::reference reference
 
typedef _Val_types::const_reference const_reference
 
typedef _Tree_const_iterator< _Mytconst_iterator
 
typedef _Tree_iterator< _Mytiterator
 

Public Member Functions

 _Tree_val ()
 
- Public Member Functions inherited from _Container_base0
void _Orphan_all ()
 
void _Swap_all (_Container_base0 &)
 

Static Public Member Functions

static char & _Color (_Nodeptr _Pnode)
 
static char & _Isnil (_Nodeptr _Pnode)
 
static _Nodepref _Left (_Nodeptr _Pnode)
 
static _Nodepref _Parent (_Nodeptr _Pnode)
 
static _Nodepref _Right (_Nodeptr _Pnode)
 
static reference _Myval (_Nodeptr _Pnode)
 
static _Nodeptr _Max (_Nodeptr _Pnode)
 
static _Nodeptr _Min (_Nodeptr _Pnode)
 

Public Attributes

_Nodeptr _Myhead
 
size_type _Mysize
 

Member Typedef Documentation

template<class _Val_types >
typedef _Tree_val<_Val_types> _Tree_val< _Val_types >::_Myt
template<class _Val_types >
typedef _Nodeptr& _Tree_val< _Val_types >::_Nodepref
template<class _Val_types >
typedef _Val_types::_Nodeptr _Tree_val< _Val_types >::_Nodeptr
template<class _Val_types >
typedef _Tree_const_iterator<_Myt> _Tree_val< _Val_types >::const_iterator
template<class _Val_types >
typedef _Val_types::const_pointer _Tree_val< _Val_types >::const_pointer
template<class _Val_types >
typedef _Val_types::const_reference _Tree_val< _Val_types >::const_reference
template<class _Val_types >
typedef _Val_types::difference_type _Tree_val< _Val_types >::difference_type
template<class _Val_types >
typedef _Tree_iterator<_Myt> _Tree_val< _Val_types >::iterator
template<class _Val_types >
typedef _Val_types::pointer _Tree_val< _Val_types >::pointer
template<class _Val_types >
typedef _Val_types::reference _Tree_val< _Val_types >::reference
template<class _Val_types >
typedef _Val_types::size_type _Tree_val< _Val_types >::size_type
template<class _Val_types >
typedef _Val_types::value_type _Tree_val< _Val_types >::value_type

Member Enumeration Documentation

template<class _Val_types >
enum _Tree_val::_Redbl
Enumerator
_Red 
_Black 
573  { // colors for link to parent
574  _Red, _Black};
Definition: xtree:574
Definition: xtree:574

Constructor & Destructor Documentation

template<class _Val_types >
_Tree_val< _Val_types >::_Tree_val ( )
inline
567  : _Myhead(),
568  _Mysize(0)
569  { // initialize data
570  }
_Nodeptr _Myhead
Definition: xtree:620
size_type _Mysize
Definition: xtree:621

Member Function Documentation

template<class _Val_types >
static char& _Tree_val< _Val_types >::_Color ( _Nodeptr  _Pnode)
inlinestatic
577  { // return reference to color in node
578  return ((char&)_Pnode->_Color);
579  }
template<class _Val_types >
static char& _Tree_val< _Val_types >::_Isnil ( _Nodeptr  _Pnode)
inlinestatic
582  { // return reference to nil flag in node
583  return ((char&)_Pnode->_Isnil);
584  }
template<class _Val_types >
static _Nodepref _Tree_val< _Val_types >::_Left ( _Nodeptr  _Pnode)
inlinestatic
587  { // return reference to left pointer in node
588  return ((_Nodepref)_Pnode->_Left);
589  }
_Nodeptr & _Nodepref
Definition: xtree:553
template<class _Val_types >
static _Nodeptr _Tree_val< _Val_types >::_Max ( _Nodeptr  _Pnode)
inlinestatic
607  { // return rightmost node in subtree at _Pnode
608  while (!_Isnil(_Right(_Pnode)))
609  _Pnode = _Right(_Pnode);
610  return (_Pnode);
611  }
static char & _Isnil(_Nodeptr _Pnode)
Definition: xtree:581
static _Nodepref _Right(_Nodeptr _Pnode)
Definition: xtree:596
template<class _Val_types >
static _Nodeptr _Tree_val< _Val_types >::_Min ( _Nodeptr  _Pnode)
inlinestatic
614  { // return leftmost node in subtree at _Pnode
615  while (!_Isnil(_Left(_Pnode)))
616  _Pnode = _Left(_Pnode);
617  return (_Pnode);
618  }
static char & _Isnil(_Nodeptr _Pnode)
Definition: xtree:581
static _Nodepref _Left(_Nodeptr _Pnode)
Definition: xtree:586
template<class _Val_types >
static reference _Tree_val< _Val_types >::_Myval ( _Nodeptr  _Pnode)
inlinestatic
602  { // return reference to value in node
603  return ((reference)_Pnode->_Myval);
604  }
_Val_types::reference reference
Definition: xtree:560
template<class _Val_types >
static _Nodepref _Tree_val< _Val_types >::_Parent ( _Nodeptr  _Pnode)
inlinestatic
592  { // return reference to parent pointer in node
593  return ((_Nodepref)_Pnode->_Parent);
594  }
_Nodeptr & _Nodepref
Definition: xtree:553
template<class _Val_types >
static _Nodepref _Tree_val< _Val_types >::_Right ( _Nodeptr  _Pnode)
inlinestatic
597  { // return reference to right pointer in node
598  return ((_Nodepref)_Pnode->_Right);
599  }
_Nodeptr & _Nodepref
Definition: xtree:553

Member Data Documentation

template<class _Val_types >
_Nodeptr _Tree_val< _Val_types >::_Myhead
template<class _Val_types >
size_type _Tree_val< _Val_types >::_Mysize

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