GVectors::ForEachMinMax Class Reference

Class for using GetMinMax with std::for_each(). More...

#include <vstorefuncs.h>

List of all members.

Public Member Functions

 ForEachMinMax (GetMinMax &gmm)
 Constructor.
 ForEachMinMax (const ForEachMinMax &mm)
 Copy constructor.
const ForEachMinMaxoperator= (const ForEachMinMax &femm)
 Assignment operator.
 ~ForEachMinMax ()
 Destructor.
void operator() (VStoreItem *i)
 Function operator.
GetMinMax get () const
 Get the minimum and maximum.
void reset ()
 Reset the object.

Private Attributes

GetMinMaxgetminmax
 A reference to a GetMinMax object.


Detailed Description

Class for using GetMinMax with std::for_each().


Constructor & Destructor Documentation

GVectors::ForEachMinMax::ForEachMinMax ( GetMinMax gmm  )  [inline, explicit]

Constructor.

Parameters:
gmm A reference to a GetMinMax object.

GVectors::ForEachMinMax::ForEachMinMax ( const ForEachMinMax mm  )  [inline]

Copy constructor.

Parameters:
mm A const reference to a ForEachMinMax object.

GVectors::ForEachMinMax::~ForEachMinMax (  )  [inline]

Destructor. Does nothing. Just for completeness.


Member Function Documentation

const ForEachMinMax & ForEachMinMax::operator= ( const ForEachMinMax femm  ) 

Assignment operator.

Parameters:
femm A const reference to a ForEachMinMax object.
Returns:
A const reference to this.

void ForEachMinMax::operator() ( VStoreItem i  ) 

Calls VStoreItem::dimension() for the given VStoreItem.

Parameters:
i A pointer to a VStoreItem.

GetMinMax GVectors::ForEachMinMax::get (  )  const [inline]

Gets the minimum and maximum x and y values as a GetMinMax object.

Returns:
A GetMinMax object holding the extrema.

void GVectors::ForEachMinMax::reset (  )  [inline]

Reset the object.


Member Data Documentation

GetMinMax& GVectors::ForEachMinMax::getminmax [private]

This is a reference to the GetMinMax object that is used to store the minimum and maximum x and y values.


The documentation for this class was generated from the following files:
Generated on Sat Sep 8 19:37:30 2007 for libgvectors by  doxygen 1.4.7