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

mpcl::util::MComparePointer< 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

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

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

void operator() (const TItem &rktITEM)
void operator() (TItem &rtITEM)
 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::MComparePointer< TItem, TSizeType, MOperation, MFunction >

Unary function object to compare item features.

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


Member Function Documentation

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

Returns the computed value.

Returns:
The computed value.

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

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

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

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

Parameters:
rtITEM  Item to operate over.

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

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

template<typename TItem, typename TSizeType, typename MOperation, typename MFunction>
void mpcl::util::MComparePointer< 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 operate over.

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

References mpcl::util::MComparePointer< TItem, TSizeType, MOperation, MFunction >::mFunction, mpcl::util::MComparePointer< TItem, TSizeType, MOperation, MFunction >::mOperation, and mpcl::util::MComparePointer< 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