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

mpcl::util::MAppend< TTargetItem, TSourceItem > Struct Template Reference

#include <general-functions.hh>

List of all members.

Public Methods

 MAppend (const TSourceItem &rktSOURCE_ITEM)
void operator() (TTargetItem &rtTARGET_ITEM) const

Public Attributes

const TSourceItem & rktSourceItem
 Source item for append from.


Detailed Description

template<typename TTargetItem, typename TSourceItem>
struct mpcl::util::MAppend< TTargetItem, TSourceItem >

Unary function object to append an instance (type TSourceItem) to a pointer to object (type TTargetItem).

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


Constructor & Destructor Documentation

template<typename TTargetItem, typename TSourceItem>
mpcl::util::MAppend< TTargetItem, TSourceItem >::MAppend const TSourceItem &    rktSOURCE_ITEM [inline]
 

Builds a new instance for appending rktSOURCE_ITEM to a provided TTargetItem instance (that must be a pointer).

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

References mpcl::util::MAppend< TTargetItem, TSourceItem >::rktSourceItem.


Member Function Documentation

template<typename TTargetItem, typename TSourceItem>
void mpcl::util::MAppend< TTargetItem, TSourceItem >::operator() TTargetItem &    rtTARGET_ITEM const [inline]
 

Appends the item rktSourceItem to rktTARGET_ITEM (that must be have support for the operator '<<').

Parameters:
rktTARGET_ITEM  Item to append.

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

References mpcl::util::MAppend< TTargetItem, TSourceItem >::rktSourceItem.


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