FreePOOMA  2.4.1
Public Member Functions
ReductionValue< T > Class Template Reference

This class associates a value with a flag that indicates whether or not it is valid. More...

#include <ReduceOverContexts.h>

List of all members.

Public Member Functions

 ReductionValue (bool valid, const T &val)
 ReductionValue (const ReductionValue< T > &model)
ReductionValue< T > & operator= (const ReductionValue< T > &rhs)
bool valid () const
const T & value () const
T & value ()

Detailed Description

template<class T>
class ReductionValue< T >

This class associates a value with a flag that indicates whether or not it is valid.

It takes special care to not read the value if it is invalid.


Constructor & Destructor Documentation

template<class T>
ReductionValue< T >::ReductionValue ( bool  valid,
const T &  val 
) [inline]
template<class T>
ReductionValue< T >::ReductionValue ( const ReductionValue< T > &  model) [inline]

Member Function Documentation

template<class T>
ReductionValue<T>& ReductionValue< T >::operator= ( const ReductionValue< T > &  rhs) [inline]
template<class T>
bool ReductionValue< T >::valid ( ) const [inline]
template<class T>
const T& ReductionValue< T >::value ( ) const [inline]
template<class T>
T& ReductionValue< T >::value ( ) [inline]

The documentation for this class was generated from the following file: