STK::IContainerBase< Container > Class Template Reference
[Subproject STKernel::Tcontainer]

Interface base class for all containers implementing the curious recursive template paradigm. More...

#include <STK_IContainerBase.h>

List of all members.

Public Member Functions

virtual ~IContainerBase ()
Container & asLeaf ()
const Container & asLeaf () const

Protected Member Functions

 IContainerBase ()


Detailed Description

template<class Container>
class STK::IContainerBase< Container >

Implement the curious recursive template paradigm : the template parameter Container is the type of the leaf class that implements IContainerBase.

Definition at line 67 of file STK_IContainerBase.h.


Constructor & Destructor Documentation

template<class Container>
STK::IContainerBase< Container >::IContainerBase (  )  [inline, protected]

Default Ctor

Definition at line 73 of file STK_IContainerBase.h.

00073 { ;}

template<class Container>
virtual STK::IContainerBase< Container >::~IContainerBase (  )  [inline, virtual]

Virtual Dtor.

Definition at line 78 of file STK_IContainerBase.h.

00078 { ;}


Member Function Documentation

template<class Container>
Container& STK::IContainerBase< Container >::asLeaf (  )  [inline]

static cast : return a reference of this with a cast to the derived class. This allow to delegate public methods to derived classes.

Definition at line 86 of file STK_IContainerBase.h.

00087     { return static_cast<Container&>(*this); }

template<class Container>
const Container& STK::IContainerBase< Container >::asLeaf (  )  const [inline]

static cast : return a const reference of this with a cast to the derived class. This allow to delegate public method to derived classes.

Definition at line 93 of file STK_IContainerBase.h.

00094     { return static_cast<Container const &>(*this); }


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

Generated on Fri Sep 25 10:31:01 2009 for STK++ by  doxygen 1.5.8