|
libdballe
8.6
|
Information on how a value has been sampled or computed with regards to time. More...
#include <types.h>
Public Member Functions | |
| Trange (int pind=MISSING_INT, int p1=MISSING_INT, int p2=MISSING_INT) | |
| bool | is_missing () const |
| Check if this level is fully set to the missing value. | |
| int | compare (const Trange &t) const |
| Generic comparison. More... | |
| bool | operator== (const Trange &o) const |
| bool | operator!= (const Trange &o) const |
| bool | operator< (const Trange &o) const |
| bool | operator> (const Trange &o) const |
| bool | operator<= (const Trange &o) const |
| bool | operator>= (const Trange &o) const |
| std::string | describe () const |
| Return a string description of this time range. | |
| void | to_stream (std::ostream &out, const char *undef="-") const |
| Format to an output stream. | |
| std::string | to_string (const char *undef="-") const |
| Format to a string. | |
| void | to_csv (CSVWriter &out) const |
| Write the datetime to a CSV writer as 3 fields. | |
| int | print (FILE *out, const char *undef="-", const char *end="\n") const |
| Print to an output stream. | |
Static Public Member Functions | |
| static Trange | instant () |
| Time range for instant values. | |
Public Attributes | |
| int | pind |
| Time range type indicator. | |
| int | p1 |
| Time range P1 indicator. | |
| int | p2 |
| Time range P2 indicator. | |
Information on how a value has been sampled or computed with regards to time.
| int dballe::Trange::compare | ( | const Trange & | t | ) | const |
Generic comparison.
Returns a negative number if *this < other Returns zero if *this == other Returns a positive number if *this > other
1.8.16