casa
5.7.0-16
|
The Interval class implements an interval of time in units of nanoseconds. More...
#include <Interval.h>
Public Member Functions | |
Interval () | |
Interval constructors. More... | |
Interval (const Interval &) | |
Interval (const std::string &s) | |
Interval (const asdmIDLTypes::IDLInterval &) | |
Interval (int64_t value) | |
virtual | ~Interval () |
Interval destructor. More... | |
Interval & | operator= (const Interval &) |
assignment operator More... | |
Interval & | operator= (const int64_t) |
assignment operator More... | |
Interval & | operator+= (const Interval &) |
assignment with arithmetic operators More... | |
Interval & | operator-= (const Interval &) |
Interval & | operator*= (const int64_t) |
Interval & | operator/= (const int64_t) |
Interval | operator+ (const Interval &) const |
arithmetic functions More... | |
Interval | operator- (const Interval &) const |
Interval | operator* (const int64_t) const |
Interval | operator/ (const int64_t) const |
bool | operator< (const Interval &) const |
comparison operators More... | |
bool | operator> (const Interval &) const |
bool | operator<= (const Interval &) const |
bool | operator>= (const Interval &) const |
bool | operator== (const Interval &) const |
bool | equals (const Interval &) const |
bool | operator!= (const Interval &) const |
bool | isZero () const |
Interval | operator- () const |
unary - and + operators More... | |
Interval | operator+ () const |
std::string | toString () const |
std::string | toStringI () const |
void | toBin (EndianOSStream &eoss) |
Write the binary representation of this into an EndianOSStream. More... | |
operator std::string () const | |
Conversion functions. More... | |
int64_t | get () const |
asdmIDLTypes::IDLInterval | toIDLInterval () const |
Static Public Member Functions | |
static int64_t | fromString (const std::string &) |
static std::string | toString (int64_t) |
static Interval | getInterval (StringTokenizer &t) throw (NumberFormatException) |
static void | toBin (std::vector< Interval > interval, EndianOSStream &eoss) |
Write the binary representation of a vector of Interval into a EndianOSStream. More... | |
static void | toBin (std::vector< std::vector< Interval > > interval, EndianOSStream &eoss) |
Write the binary representation of a vector of vector of Interval into a EndianOSStream. More... | |
static Interval | fromBin (EndianIStream &eis) |
Read the binary representation of an Interval from an EndianIStream and use the read value to set an Interval. More... | |
static std::vector< Interval > | from1DBin (EndianIStream &eis) |
Read the binary representation of a vector of Interval from a EndianIStream and use the read value to set a vector of Interval. More... | |
static std::vector < std::vector< Interval > > | from2DBin (EndianIStream &eis) |
Read the binary representation of a vector of vector of Interval from a EndianIStream and use the read value to set a vector of vector of Interval. More... | |
static std::string | unit () |
Private Attributes | |
int64_t | value |
Friends | |
Interval | operator* (int64_t, const Interval &) |
Friend functions. More... | |
std::ostream & | operator<< (std::ostream &, const Interval &) |
std::istream & | operator>> (std::istream &, Interval &) |
The Interval class implements an interval of time in units of nanoseconds.
Definition at line 58 of file Interval.h.
|
inline |
Interval constructors.
Definition at line 164 of file Interval.h.
|
inline |
Definition at line 167 of file Interval.h.
|
inline |
Definition at line 175 of file Interval.h.
|
inline |
Definition at line 171 of file Interval.h.
|
inline |
Definition at line 178 of file Interval.h.
|
inlinevirtual |
Interval destructor.
Definition at line 182 of file Interval.h.
|
inline |
Definition at line 261 of file Interval.h.
References value.
|
static |
Read the binary representation of a vector of Interval from a EndianIStream and use the read value to set a vector of Interval.
eis | the EndianIStream to be read |
|
static |
Read the binary representation of a vector of vector of Interval from a EndianIStream and use the read value to set a vector of vector of Interval.
eis | the EndianIStream to be read |
|
static |
Read the binary representation of an Interval from an EndianIStream and use the read value to set an Interval.
eis | the EndianIStream to be read |
|
static |
|
inline |
Definition at line 295 of file Interval.h.
References value.
Referenced by asdm::ArrayTimeInterval::ArrayTimeInterval(), asdm::ASDM_TABLE_BASE::ati2CASA1D(), asdm::ArrayTimeInterval::contains(), asdm::ArrayTimeInterval::equals(), asdm::ArrayTimeInterval::getDurationInDays(), asdm::ArrayTimeInterval::getDurationInNanoSeconds(), asdm::ArrayTimeInterval::getMidPoint(), asdm::ArrayTimeInterval::getStartInNanoSeconds(), casa::MS2ASDM::MSTimeSecs(), asdm::operator<<(), and asdm::ArrayTimeInterval::overlaps().
|
static |
bool asdm::Interval::isZero | ( | ) | const |
|
inline |
|
inline |
Definition at line 265 of file Interval.h.
References value.
|
inline |
Definition at line 229 of file Interval.h.
References value.
|
inline |
Definition at line 207 of file Interval.h.
References value.
|
inline |
Definition at line 276 of file Interval.h.
References value.
Definition at line 224 of file Interval.h.
References value.
|
inline |
Definition at line 202 of file Interval.h.
References value.
|
inline |
Definition at line 235 of file Interval.h.
References value.
|
inline |
Definition at line 212 of file Interval.h.
References value.
|
inline |
|
inline |
Definition at line 250 of file Interval.h.
References value.
|
inline |
|
inline |
Definition at line 258 of file Interval.h.
References value.
|
inline |
Definition at line 246 of file Interval.h.
References value.
|
inline |
Definition at line 254 of file Interval.h.
References value.
void asdm::Interval::toBin | ( | EndianOSStream & | eoss | ) |
Write the binary representation of this into an EndianOSStream.
eoss |
|
static |
Write the binary representation of a vector of Interval into a EndianOSStream.
interval | |
eoss |
|
static |
Write the binary representation of a vector of vector of Interval into a EndianOSStream.
interval | |
eoss |
|
inline |
Definition at line 300 of file Interval.h.
References value.
|
static |
|
inline |
|
inline |
Definition at line 291 of file Interval.h.
References toString(), and value.
|
inlinestatic |
Definition at line 325 of file Interval.h.
|
friend |
|
friend |
|
private |
Definition at line 159 of file Interval.h.
Referenced by equals(), get(), operator!=(), asdm::operator*(), operator*(), operator*=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator<(), asdm::operator<<(), operator<=(), operator=(), operator==(), operator>(), operator>=(), asdm::operator>>(), toIDLInterval(), toString(), and toStringI().