lsst.astshim
22.0.0+01bcf6a671
|
#include <FitsChan.h>
Public Member Functions | |
FoundValue (bool found, T const &value) | |
FoundValue () | |
Default constructor: found false, value is default-constructed. More... | |
Public Attributes | |
bool | found |
Was the value found? More... | |
T | value |
The found value; ignore if found is false. More... | |
A value and associated validity flag
One could use std::pair instead, but this is a bit nicer, and also easier to python-wrap for complicated types.
|
inline |
Construct a FoundValue
[in] | found | Was the value found? |
[in] | value | The value (must be a valid value, even if found false) |
|
inline |
Default constructor: found false, value is default-constructed.
bool ast::FoundValue< T >::found |
Was the value found?
T ast::FoundValue< T >::value |
The found value; ignore if found
is false.