ocra-recipes
Doxygen documentation for the ocra-recipes repository
Public Types | Protected Member Functions | List of all members
ocra::Leaf< LeafDerived > Class Template Reference

Base class for the Leaf class of the Composite pattern. More...

#include <Composite.h>

Public Types

typedef LeafDerived leaf_t
 

Protected Member Functions

 Leaf ()
 
 ~Leaf ()
 
void printTree_impl (int depth, std::ostream &os) const
 

Detailed Description

template<class LeafDerived>
class ocra::Leaf< LeafDerived >

Base class for the Leaf class of the Composite pattern.

See the wikipedia article about the Composite design pattern for more information.

See also
class ocra::Component
class ocra::Composite

This class does nothing except allowing discrimination between leaves and other kind of nodes.

Template Parameters
LeafDerivedis the type of the leaves.
Precondition
LeafDerived publicly derives Leaf<LeafDerived>

Definition at line 774 of file Composite.h.

Member Typedef Documentation

template<class LeafDerived>
typedef LeafDerived ocra::Leaf< LeafDerived >::leaf_t

Definition at line 777 of file Composite.h.

Constructor & Destructor Documentation

template<class LeafDerived>
ocra::Leaf< LeafDerived >::Leaf ( )
inlineprotected

Definition at line 780 of file Composite.h.

template<class LeafDerived>
ocra::Leaf< LeafDerived >::~Leaf ( )
inlineprotected

Definition at line 795 of file Composite.h.

Member Function Documentation

template<class LeafDerived>
void ocra::Leaf< LeafDerived >::printTree_impl ( int  depth,
std::ostream &  os 
) const
inlineprotected

Definition at line 797 of file Composite.h.


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