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

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

#include <HeterogeneousList.hpp>

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

List of all members.

Public Member Functions

 Link ()
 Default constructor.
 Link (HeterogeneousListBase *list)
 Appending constructor.
void freeLink ()
 Detach Link from any list.

Protected Member Functions

virtual ~Link ()

Friends

class HeterogeneousListBase

Detailed Description

Base class for nodes in any HeterogeneousList.


Constructor & Destructor Documentation

CXXR::HeterogeneousListBase::Link::Link ( )
inline

Default constructor.

Constructs a free Link (i.e. a Link not yet on any list).

CXXR::HeterogeneousListBase::Link::Link ( HeterogeneousListBase list)
inline

Appending constructor.

Parameters:
listNon-null pointer to a list inheriting from HeterogeneousListBase. The constructed link will be inserted at the end of list.
virtual CXXR::HeterogeneousListBase::Link::~Link ( )
inlineprotectedvirtual
Note:
The destructor is protected to ensure that Link objects are allocated using 'new'. (See Meyers 'More Effective C++' Item 27.) Derived classes should likewise declare their destructors private or protected.

Member Function Documentation

void CXXR::HeterogeneousListBase::Link::freeLink ( )
inline

Detach Link from any list.

This function detaches the Link from any list it may currently be on, turning it back into a free Link.


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