pgList< T >::pgList::Item Class Reference

An element of pgList. More...

#include <pg_list.h>

List of all members.

Public Member Functions

 pgDefineException (ExceptionInvalidArgument)
 pgDefineException (ExceptionInvalidCall)
 pgDefineException (ExceptionNotInitialized)
 Item ()
 Constructs a pgList::Item.
 ~Item ()
 Destructs this pgList::Item.
void init (T *self)
 Initializes this pgList::Item to have the specified value.
T * getSelf () const
 Returns the value of this pgList::Item.
ItemgetPrevN () const
 Returns the previous pgList::Item of this pgList::Item.
ItemgetNextN () const
 Returns the next pgList::Item of this pgList::Item.
bool hasList () const
 Returns whether this pgList::Item belongs to a pgList.
pgList< T > * getListN () const
 Returns the pgList which this pgList::Item belongs to.
void joinBefore (Item *item)
 Insertes this pgList::Item before the specified pgList::Item.
void joinAfter (Item *item)
 Insertes this pgList::Item after the specified pgList::Item.
void leave ()
 Removes this pgList::Item from the pgList which the pgList::Item belongs to.

Friends

class pgList< T >


Detailed Description

template<class T>
class pgList< T >::Item

An element of pgList.

Member Function Documentation

template<class T>
pgList<T>* pgList< T >::pgList::Item::getListN (  )  const [inline]

Returns the pgList which this pgList::Item belongs to.

If ths pgList::Item does not belong to any pgList, returns NULL.

Returns:
The pgList which this pgList::Item belongs to.

template<class T>
Item* pgList< T >::pgList::Item::getNextN (  )  const [inline]

Returns the next pgList::Item of this pgList::Item.

If the pgList::Item has no next pgList::Item, returns NULL.

Returns:
The next pgList::Item of this pgList::Item.

template<class T>
Item* pgList< T >::pgList::Item::getPrevN (  )  const [inline]

Returns the previous pgList::Item of this pgList::Item.

If the pgList::Item has no previous pgList::Item, returns NULL.

Returns:
The previous pgList::Item of this pgList::Item.

template<class T>
T* pgList< T >::pgList::Item::getSelf (  )  const [inline]

Returns the value of this pgList::Item.

Returns:
The value of this pgList::Item.

template<class T>
bool pgList< T >::pgList::Item::hasList (  )  const [inline]

Returns whether this pgList::Item belongs to a pgList.

Returns:
Wheter this pgList::Item belongs to a pgList.

template<class T>
void pgList< T >::pgList::Item::init ( T *  self  )  [inline]

Initializes this pgList::Item to have the specified value.

This method can be called more than once.

Parameters:
[in] self The pointer to a value.

template<class T>
void pgList< T >::pgList::Item::joinAfter ( Item item  )  [inline]

Insertes this pgList::Item after the specified pgList::Item.

Parameters:
[in] item A pgList::Item.

template<class T>
void pgList< T >::pgList::Item::joinBefore ( Item item  )  [inline]

Insertes this pgList::Item before the specified pgList::Item.

Parameters:
[in] item A pgList::Item.


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

Generated on Sat Aug 15 11:24:38 2009 for Pogolyn by  doxygen 1.5.8