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

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

Unary function object to compare item features. More...

#include <general-functions.hh>

List of all members.

Public Methods

 MCompare (const TSizeType &rkzVALUE, const MOperation &rkmOPERATION, const MFunction &rkmFUNCTION)
 Builds a new instance.

 MCompare (const TSizeType &rkzVALUE, const MFunction &rkmFUNCTION)
 Builds a new instance.

void operator() (const TItem &rktITEM)
 operator TSizeType (void) const

Public Attributes

MFunction mFunction
 Function to apply to source objects.

MOperation mOperation
 Operation to apply to source objects.

TSizeType zComputedValue
 Computed value.


Detailed Description

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

Unary function object to compare item features.

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


Member Function Documentation

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

Returns the computed value.

Returns:
The computed value.

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

References mpcl::util::MCompare< TItem, TSizeType, MOperation, MFunction >::zComputedValue.

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

Stores the result of the execution of the compare function onto rktITEM.

Parameters:
rktITEM  Item to delete.

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

References mpcl::util::MCompare< TItem, TSizeType, MOperation, MFunction >::mFunction, mpcl::util::MCompare< TItem, TSizeType, MOperation, MFunction >::mOperation, and mpcl::util::MCompare< TItem, TSizeType, MOperation, MFunction >::zComputedValue.


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