LSSTApplications
20.0.0
LSSTDataManagementBasePackage
|
A value and associated validity flag. More...
#include <FitsChan.h>
Public Member Functions | |
FoundValue (bool found, T const &value) | |
Construct a FoundValue. More... | |
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.
Definition at line 69 of file FitsChan.h.
|
inline |
Construct a FoundValue.
[in] | found | Was the value found? |
[in] | value | The value (must be a valid value, even if found false) |
Definition at line 77 of file FitsChan.h.
|
inline |
Default constructor: found false, value is default-constructed.
Definition at line 80 of file FitsChan.h.
bool ast::FoundValue< T >::found |
Was the value found?
Definition at line 81 of file FitsChan.h.
T ast::FoundValue< T >::value |
The found value; ignore if found
is false.
Definition at line 82 of file FitsChan.h.