LSST Applications g0265f82a02+d6b5cd48b5,g02d81e74bb+7bcba2e4e8,g2079a07aa2+14824f138e,g212a7c68fe+4b38ad7149,g2305ad1205+906def1e41,g295015adf3+564da5d084,g2bbee38e9b+d6b5cd48b5,g337abbeb29+d6b5cd48b5,g3ddfee87b4+cff7e20090,g487adcacf7+50712f9db4,g50ff169b8f+5929b3527e,g52b1c1532d+a6fc98d2e7,g591dd9f2cf+d19d1a10d7,g5a732f18d5+66d966b544,g64a986408d+7bcba2e4e8,g858d7b2824+7bcba2e4e8,g8a8a8dda67+a6fc98d2e7,g99cad8db69+808e2eeadf,g9ddcbc5298+d4bad12328,ga1e77700b3+246acaaf9c,ga8c6da7877+9e3c062e8e,gb0e22166c9+3863383f4c,gb6a65358fc+d6b5cd48b5,gb983acf43b+60bb7664b7,gba4ed39666+9664299f35,gbb8dafda3b+6623599aa9,gc07e1c2157+f6e5778202,gc120e1dc64+6e28925a4e,gc28159a63d+d6b5cd48b5,gcf0d15dbbd+cff7e20090,gdaeeff99f8+a38ce5ea23,ge6526c86ff+bcc88f9437,ge79ae78c31+d6b5cd48b5,gee10cc3b42+a6fc98d2e7,gf1cff7945b+7bcba2e4e8,v24.1.5.rc1
LSST Data Management Base Package
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
ast::FoundValue< T > Class Template Reference

A value and associated validity flag. More...

#include <FitsChan.h>

Public Member Functions

 FoundValue (bool found, T const &value)
 Construct a FoundValue.
 
 FoundValue ()
 Default constructor: found false, value is default-constructed.
 

Public Attributes

bool found
 Was the value found?
 
value
 The found value; ignore if found is false.
 

Detailed Description

template<typename T>
class ast::FoundValue< T >

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.

Constructor & Destructor Documentation

◆ FoundValue() [1/2]

template<typename T >
ast::FoundValue< T >::FoundValue ( bool found,
T const & value )
inline

Construct a FoundValue.

Parameters
[in]foundWas the value found?
[in]valueThe value (must be a valid value, even if found false)

Definition at line 77 of file FitsChan.h.

77: found(found), value(value) {}
T value
The found value; ignore if found is false.
Definition FitsChan.h:82
bool found
Was the value found?
Definition FitsChan.h:81

◆ FoundValue() [2/2]

template<typename T >
ast::FoundValue< T >::FoundValue ( )
inline

Default constructor: found false, value is default-constructed.

Definition at line 80 of file FitsChan.h.

80: found(false), value() {}

Member Data Documentation

◆ found

template<typename T >
bool ast::FoundValue< T >::found

Was the value found?

Definition at line 81 of file FitsChan.h.

◆ value

template<typename T >
T ast::FoundValue< T >::value

The found value; ignore if found is false.

Definition at line 82 of file FitsChan.h.


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