casa
$Rev:20696$
|
#include <fits.h>
Public Member Functions | |
FitsLogical () | |
FitsLogical (Bool x) | |
FitsLogical (const FitsLogical &x) | |
FitsLogical & | operator= (const FitsLogical &x) |
FitsLogical & | operator= (Bool x) |
Bool | isdefined () const |
void | undefine () |
operator Bool () | |
Protected Attributes | |
char | v |
Friends | |
ostream & | operator<< (ostream &o, const FitsLogical &) |
FITS helper class.
FitsLogical is a helper class that is not intended for general use.
Here is an example of the FitsLogical class.
FitsLogical x; FitsLogical y(True); FitsLogical z = x; ..\. x = y; y = False; x.undefine(); Bool b; if (x.isdefined()) b = x; b = y; If y is undefined, b will be false.
casa::FitsLogical::FitsLogical | ( | ) | [inline] |
casa::FitsLogical::FitsLogical | ( | Bool | x | ) | [inline] |
Definition at line 98 of file fits.h.
References casa::True, and v.
casa::FitsLogical::FitsLogical | ( | const FitsLogical & | x | ) | [inline] |
Bool casa::FitsLogical::isdefined | ( | ) | const [inline] |
Definition at line 104 of file fits.h.
References casa::False, casa::True, and v.
casa::FitsLogical::operator Bool | ( | ) | [inline] |
Definition at line 106 of file fits.h.
References casa::False, casa::True, and v.
FitsLogical& casa::FitsLogical::operator= | ( | const FitsLogical & | x | ) | [inline] |
FitsLogical& casa::FitsLogical::operator= | ( | Bool | x | ) | [inline] |
Definition at line 102 of file fits.h.
References casa::True, and v.
void casa::FitsLogical::undefine | ( | ) | [inline] |
ostream& operator<< | ( | ostream & | o, |
const FitsLogical & | |||
) | [friend] |
char casa::FitsLogical::v [protected] |
Definition at line 108 of file fits.h.
Referenced by FitsLogical(), isdefined(), operator Bool(), operator=(), and undefine().