CXXR (C++ R)
Classes | Public Member Functions | Static Protected Member Functions | Friends
CXXR::HeterogeneousListBase Class Reference

Untemplated base class for HeterogeneousList. More...

#include <HeterogeneousList.hpp>

Inheritance diagram for CXXR::HeterogeneousListBase:
Inheritance graph
[legend]

List of all members.

Classes

class  Link
 Base class for nodes in any HeterogeneousList. More...

Public Member Functions

 HeterogeneousListBase ()
 Create an empty list.
 ~HeterogeneousListBase ()
 Destructor.
void clear ()
 Delete all the objects on the list, leaving an empty list.
bool empty () const
 Is the list empty?
void freeLinks ()
 Convert all objects on the list to free Links.

Static Protected Member Functions

static Linkpredecessor (Link *link)
 Get link preceding a specified link.
static Linksuccessor (Link *link)
 Get link following a specified link.

Friends

class HeterogeneousList

Detailed Description

Untemplated base class for HeterogeneousList.


Constructor & Destructor Documentation

CXXR::HeterogeneousListBase::~HeterogeneousListBase ( )
inline

Destructor.

This deletes all objects remaining on the list.


Member Function Documentation

bool CXXR::HeterogeneousListBase::empty ( ) const
inline

Is the list empty?

Returns:
true iff the list is empty.
void HeterogeneousListBase::freeLinks ( )

Convert all objects on the list to free Links.

This leaves the List empty.

static Link* CXXR::HeterogeneousListBase::predecessor ( Link link)
inlinestaticprotected

Get link preceding a specified link.

Parameters:
linkPointer to the link whose predecessor is desired.
Returns:
Pointer to the predecessor of link.
static Link* CXXR::HeterogeneousListBase::successor ( Link link)
inlinestaticprotected

Get link following a specified link.

Parameters:
linkPointer to the link whose successor is desired.
Returns:
Pointer to the successor of link.

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