Base class for nodes in any HeterogeneousList.
More...
#include <HeterogeneousList.hpp>
List of all members.
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).
Appending constructor.
- Parameters:
-
list | Non-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: