Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members  

mpcl::util::MSumPointer< TItem, TSizeType, MFunction > Struct Template Reference

#include <general-functions.hh>

List of all members.

Public Methods

 MSumPointer (const MFunction &rkmFUNCTION)
void operator() (const TItem &rktITEM)
 operator TSizeType (void) const


Detailed Description

template<typename TItem, typename TSizeType, typename MFunction>
struct mpcl::util::MSumPointer< TItem, TSizeType, MFunction >

Unary function object to sum all the sizes of the items passed (as pointers).

Definition at line 272 of file general-functions.hh.


Constructor & Destructor Documentation

template<typename TItem, typename TSizeType, typename MFunction>
mpcl::util::MSumPointer< TItem, TSizeType, MFunction >::MSumPointer const MFunction &    rkmFUNCTION [inline]
 

Builds a new instance.

Parameters:
rmFUNCTION  Function to execute over each instance.

Definition at line 290 of file general-functions.hh.


Member Function Documentation

template<typename TItem, typename TSizeType, typename MFunction>
mpcl::util::MSumPointer< TItem, TSizeType, MFunction >::operator TSizeType void    const [inline]
 

Returns the computed size.

Returns:
The computed size.

Definition at line 307 of file general-functions.hh.

template<typename TItem, typename TSizeType, typename MFunction>
void mpcl::util::MSumPointer< TItem, TSizeType, MFunction >::operator() const TItem &    rktITEM [inline]
 

Deletes the item rktITEM (that must be a pointer).

Parameters:
rktITEM  Item to delete.

Definition at line 298 of file general-functions.hh.


The documentation for this struct was generated from the following file:
Generated on Mon Oct 13 02:35:26 2003 for MPCL by doxygen1.2.18