fastjet 2.4.5
Public Member Functions | Private Attributes
fastjet::SearchTree< T >::const_circulator Class Reference

#include <SearchTree.hh>

Collaboration diagram for fastjet::SearchTree< T >::const_circulator:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 const_circulator ()
 const_circulator (const Node *node)
 const_circulator (const circulator &circ)
const T * operator-> ()
const T & operator* () const
const_circulatoroperator++ ()
 prefix increment (structure copied from stl_bvector.h)
const_circulator operator++ (int)
 postfix increment ["int" argument tells compiler it's postfix] (structure copied from stl_bvector.h)
const_circulatoroperator-- ()
 prefix decrement (structure copied from stl_bvector.h)
const_circulator operator-- (int)
 postfix decrement ["int" argument tells compiler it's postfix] (structure copied from stl_bvector.h)
const_circulator next () const
 return a circulator referring to the next node
const_circulator previous () const
 return a circulator referring to the previous node
bool operator!= (const const_circulator &other) const
bool operator== (const const_circulator &other) const

Private Attributes

const Node_node

Detailed Description

template<class T>
class fastjet::SearchTree< T >::const_circulator

Definition at line 231 of file SearchTree.hh.


Constructor & Destructor Documentation

template<class T >
fastjet::SearchTree< T >::const_circulator::const_circulator ( ) [inline]

Definition at line 234 of file SearchTree.hh.

: _node(NULL) {}
template<class T >
fastjet::SearchTree< T >::const_circulator::const_circulator ( const Node node) [inline]

Definition at line 236 of file SearchTree.hh.

: _node(node) {}
template<class T >
fastjet::SearchTree< T >::const_circulator::const_circulator ( const circulator circ) [inline]

Definition at line 237 of file SearchTree.hh.

:_node(circ._node) {}

Member Function Documentation

template<class T >
const_circulator fastjet::SearchTree< T >::const_circulator::next ( ) const [inline]

return a circulator referring to the next node

Definition at line 268 of file SearchTree.hh.

                                {
    return const_circulator(_node->successor);}
template<class T >
bool fastjet::SearchTree< T >::const_circulator::operator!= ( const const_circulator other) const [inline]

Definition at line 277 of file SearchTree.hh.

References fastjet::SearchTree< T >::const_circulator::_node.

{return other._node != _node;}
template<class T >
const T& fastjet::SearchTree< T >::const_circulator::operator* ( ) const [inline]

Definition at line 240 of file SearchTree.hh.

{return _node->value;}
template<class T >
const_circulator fastjet::SearchTree< T >::const_circulator::operator++ ( int  ) [inline]

postfix increment ["int" argument tells compiler it's postfix] (structure copied from stl_bvector.h)

Definition at line 249 of file SearchTree.hh.

                                   {
    const_circulator tmp = *this;
    _node = _node->successor; 
    return tmp;}
template<class T >
const_circulator& fastjet::SearchTree< T >::const_circulator::operator++ ( ) [inline]

prefix increment (structure copied from stl_bvector.h)

Definition at line 243 of file SearchTree.hh.

                                  {
    _node = _node->successor; 
    return *this;}
template<class T >
const_circulator& fastjet::SearchTree< T >::const_circulator::operator-- ( ) [inline]

prefix decrement (structure copied from stl_bvector.h)

Definition at line 256 of file SearchTree.hh.

                                  {
    _node = _node->predecessor; 
    return *this;}
template<class T >
const_circulator fastjet::SearchTree< T >::const_circulator::operator-- ( int  ) [inline]

postfix decrement ["int" argument tells compiler it's postfix] (structure copied from stl_bvector.h)

Definition at line 262 of file SearchTree.hh.

                                   {
    const_circulator tmp = *this;
    _node = _node->predecessor; 
    return tmp;}
template<class T >
const T* fastjet::SearchTree< T >::const_circulator::operator-> ( ) [inline]

Definition at line 239 of file SearchTree.hh.

{return &(_node->value);}
template<class T >
bool fastjet::SearchTree< T >::const_circulator::operator== ( const const_circulator other) const [inline]

Definition at line 278 of file SearchTree.hh.

References fastjet::SearchTree< T >::const_circulator::_node.

{return other._node == _node;}
template<class T >
const_circulator fastjet::SearchTree< T >::const_circulator::previous ( ) const [inline]

return a circulator referring to the previous node

Definition at line 272 of file SearchTree.hh.

                                    {
    return const_circulator(_node->predecessor);}

Member Data Documentation

template<class T >
const Node* fastjet::SearchTree< T >::const_circulator::_node [private]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines