|
FreePOOMA
2.4.1
|
This class associates a value with a flag that indicates whether or not it is valid. More...
#include <ReduceOverContexts.h>
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 () |
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.
| ReductionValue< T >::ReductionValue | ( | bool | valid, |
| const T & | val | ||
| ) | [inline] |
| ReductionValue< T >::ReductionValue | ( | const ReductionValue< T > & | model | ) | [inline] |
References ReductionValue< T >::valid(), and ReductionValue< T >::value().
| ReductionValue<T>& ReductionValue< T >::operator= | ( | const ReductionValue< T > & | rhs | ) | [inline] |
References ReductionValue< T >::valid(), and ReductionValue< T >::value().
| bool ReductionValue< T >::valid | ( | ) | const [inline] |
| const T& ReductionValue< T >::value | ( | ) | const [inline] |
References PAssert, and ReductionValue< T >::valid().
Referenced by ReductionValue< T >::operator=(), and ReductionValue< T >::ReductionValue().
| T& ReductionValue< T >::value | ( | ) | [inline] |
References PAssert, and ReductionValue< T >::valid().
1.7.6.1