Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

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

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


Constructor & Destructor Documentation

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

Definition at line 233 of file SearchTree.hh.

00233 : _node(NULL) {}

template<class T>
fastjet::SearchTree< T >::const_circulator::const_circulator const Node node  )  [inline]
 

Definition at line 235 of file SearchTree.hh.

00235 : _node(node) {}

template<class T>
fastjet::SearchTree< T >::const_circulator::const_circulator const circulator circ  )  [inline]
 

Definition at line 236 of file SearchTree.hh.

00236 :_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 267 of file SearchTree.hh.

00267                                 {
00268     return const_circulator(_node->successor);}

template<class T>
const T& fastjet::SearchTree< T >::const_circulator::operator *  )  const [inline]
 

Definition at line 239 of file SearchTree.hh.

00239 {return _node->value;}

template<class T>
bool fastjet::SearchTree< T >::const_circulator::operator!= const const_circulator other  )  const [inline]
 

Definition at line 276 of file SearchTree.hh.

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

00276 {return other._node != _node;}

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 248 of file SearchTree.hh.

00248                                    {
00249     const_circulator tmp = *this;
00250     _node = _node->successor; 
00251     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 242 of file SearchTree.hh.

00242                                   {
00243     _node = _node->successor; 
00244     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 261 of file SearchTree.hh.

00261                                    {
00262     const_circulator tmp = *this;
00263     _node = _node->predecessor; 
00264     return tmp;}

template<class T>
const_circulator& fastjet::SearchTree< T >::const_circulator::operator--  )  [inline]
 

prefix decrement (structure copied from stl_bvector.h)

Definition at line 255 of file SearchTree.hh.

00255                                   {
00256     _node = _node->predecessor; 
00257     return *this;}

template<class T>
const T* fastjet::SearchTree< T >::const_circulator::operator->  )  [inline]
 

Definition at line 238 of file SearchTree.hh.

00238 {return &(_node->value);}

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.

00277 {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 271 of file SearchTree.hh.

00271                                     {
00272     return const_circulator(_node->predecessor);}


Member Data Documentation

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

Definition at line 280 of file SearchTree.hh.

Referenced by fastjet::SearchTree< T >::const_circulator::operator!=(), and fastjet::SearchTree< T >::const_circulator::operator==().


The documentation for this class was generated from the following file:
Generated on Mon Dec 3 11:54:38 2007 for fastjet by doxygen 1.3.4