The Interval class implements an interval of time in units of nanoseconds. More...
#include <Interval.h>
Public Member Functions | |
| Interval () | |
| Interval constructors. | |
| Interval (const Interval &) | |
| Interval (const string &s) | |
| Interval (const IDLInterval &) | |
| Interval (int64_t value) | |
| virtual | ~Interval () |
| Interval destructor. | |
| Interval & | operator= (const Interval &) |
| assignment operator | |
| Interval & | operator= (const int64_t) |
| assignment operator | |
| Interval & | operator+= (const Interval &) |
| assignment with arithmetic operators | |
| Interval & | operator-= (const Interval &) |
| Interval & | operator*= (const int64_t) |
| Interval & | operator/= (const int64_t) |
| Interval | operator+ (const Interval &) const |
| arithmetic functions | |
| Interval | operator- (const Interval &) const |
| Interval | operator* (const int64_t) const |
| Interval | operator/ (const int64_t) const |
| bool | operator< (const Interval &) const |
| comparison operators | |
| 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 | |
| Interval | operator+ () const |
| string | toString () const |
| string | toStringI () const |
| void | toBin (EndianOSStream &eoss) |
| Write the binary representation of this into an EndianOSStream. | |
| operator string () const | |
| Conversion functions. | |
| int64_t | get () const |
| IDLInterval | toIDLInterval () const |
Static Public Member Functions | |
| static int64_t | fromString (const string &) |
| static string | toString (int64_t) |
| static Interval | getInterval (StringTokenizer &t) throw (NumberFormatException) |
| static void | toBin (vector< Interval > interval, EndianOSStream &eoss) |
| Write the binary representation of a vector of Interval into a EndianOSStream. | |
| static void | toBin (vector< vector< Interval > > interval, EndianOSStream &eoss) |
| Write the binary representation of a vector of vector of Interval into a EndianOSStream. | |
| static Interval | fromBin (EndianIStream &eis) |
| Read the binary representation of an Interval from an EndianIStream and use the read value to set an Interval. | |
| static 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. | |
| static vector< 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. | |
| static string | unit () |
Private Attributes | |
| int64_t | value |
Friends | |
| Interval | operator* (int64_t, const Interval &) |
| ostream & | operator<< (ostream &, const Interval &) |
| istream & | operator>> (istream &, Interval &) |
The Interval class implements an interval of time in units of nanoseconds.
Definition at line 64 of file Interval.h.
| asdm::Interval::Interval | ( | ) | [inline] |
Interval constructors.
Definition at line 170 of file Interval.h.
| asdm::Interval::Interval | ( | const Interval & | t | ) | [inline] |
Definition at line 173 of file Interval.h.
| asdm::Interval::Interval | ( | const string & | s | ) | [inline] |
Definition at line 181 of file Interval.h.
| asdm::Interval::Interval | ( | const IDLInterval & | l | ) | [inline] |
Definition at line 177 of file Interval.h.
| asdm::Interval::Interval | ( | int64_t | value | ) | [inline] |
Definition at line 184 of file Interval.h.
| asdm::Interval::~Interval | ( | ) | [inline, virtual] |
Interval destructor.
Definition at line 188 of file Interval.h.
| bool asdm::Interval::equals | ( | const Interval & | x | ) | const [inline] |
Definition at line 267 of file Interval.h.
References value.
| static vector<Interval> asdm::Interval::from1DBin | ( | EndianIStream & | eis | ) | [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 |
Reimplemented in asdm::ArrayTime.
| static vector<vector<Interval> > asdm::Interval::from2DBin | ( | EndianIStream & | eis | ) | [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 |
Reimplemented in asdm::ArrayTime.
| static Interval asdm::Interval::fromBin | ( | EndianIStream & | eis | ) | [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 |
Reimplemented in asdm::ArrayTime.
| static int64_t asdm::Interval::fromString | ( | const string & | ) | [static] |
| int64_t asdm::Interval::get | ( | ) | const [inline] |
Definition at line 301 of file Interval.h.
References value.
Referenced by asdm::ArrayTimeInterval::ArrayTimeInterval(), ASDM_TABLE_BASE::ati2CASA1D(), asdm::ArrayTimeInterval::contains(), asdm::ArrayTimeInterval::equals(), asdm::ArrayTimeInterval::getDurationInDays(), asdm::ArrayTimeInterval::getDurationInNanoSeconds(), asdm::ArrayTimeInterval::getMidPoint(), asdm::ArrayTimeInterval::getStartInNanoSeconds(), asdm::operator<<(), and asdm::ArrayTimeInterval::overlaps().
| static Interval asdm::Interval::getInterval | ( | StringTokenizer & | t | ) | throw (NumberFormatException) [static] |
| bool asdm::Interval::isZero | ( | ) | const |
| asdm::Interval::operator string | ( | ) | const [inline] |
| bool asdm::Interval::operator!= | ( | const Interval & | x | ) | const [inline] |
Definition at line 271 of file Interval.h.
References value.
| Interval asdm::Interval::operator* | ( | const int64_t | n | ) | const [inline] |
Definition at line 235 of file Interval.h.
References value.
| Interval & asdm::Interval::operator*= | ( | const int64_t | n | ) | [inline] |
Definition at line 213 of file Interval.h.
References value.
| Interval asdm::Interval::operator+ | ( | ) | const [inline] |
Definition at line 282 of file Interval.h.
References value.
| Interval asdm::Interval::operator- | ( | ) | const [inline] |
Definition at line 230 of file Interval.h.
References value.
Definition at line 208 of file Interval.h.
References value.
| Interval asdm::Interval::operator/ | ( | const int64_t | n | ) | const [inline] |
Definition at line 241 of file Interval.h.
References value.
| Interval & asdm::Interval::operator/= | ( | const int64_t | n | ) | [inline] |
Definition at line 218 of file Interval.h.
References value.
| bool asdm::Interval::operator< | ( | const Interval & | x | ) | const [inline] |
| bool asdm::Interval::operator<= | ( | const Interval & | x | ) | const [inline] |
Definition at line 256 of file Interval.h.
References value.
| Interval & asdm::Interval::operator= | ( | const int64_t | v | ) | [inline] |
| bool asdm::Interval::operator== | ( | const Interval & | x | ) | const [inline] |
Definition at line 264 of file Interval.h.
References value.
| bool asdm::Interval::operator> | ( | const Interval & | x | ) | const [inline] |
Definition at line 252 of file Interval.h.
References value.
| bool asdm::Interval::operator>= | ( | const Interval & | x | ) | const [inline] |
Definition at line 260 of file Interval.h.
References value.
| static void asdm::Interval::toBin | ( | vector< vector< Interval > > | interval, | |
| EndianOSStream & | eoss | |||
| ) | [static] |
Write the binary representation of a vector of vector of Interval into a EndianOSStream.
| interval | ||
| eoss |
| static void asdm::Interval::toBin | ( | vector< Interval > | interval, | |
| EndianOSStream & | eoss | |||
| ) | [static] |
Write the binary representation of a vector of Interval into a EndianOSStream.
| interval | ||
| eoss |
| void asdm::Interval::toBin | ( | EndianOSStream & | eoss | ) |
Write the binary representation of this into an EndianOSStream.
| eoss |
Reimplemented in asdm::ArrayTime.
| IDLInterval asdm::Interval::toIDLInterval | ( | ) | const [inline] |
Definition at line 306 of file Interval.h.
References value.
| string asdm::Interval::toString | ( | ) | const [inline] |
Definition at line 293 of file Interval.h.
References value.
Referenced by operator string(), and toStringI().
| static string asdm::Interval::toString | ( | int64_t | ) | [static] |
| string asdm::Interval::toStringI | ( | ) | const [inline] |
Definition at line 297 of file Interval.h.
References toString(), and value.
| string asdm::Interval::unit | ( | ) | [inline, static] |
Definition at line 331 of file Interval.h.
| ostream& operator<< | ( | ostream & | , | |
| const Interval & | ||||
| ) | [friend] |
| istream& operator>> | ( | istream & | , | |
| Interval & | ||||
| ) | [friend] |
int64_t asdm::Interval::value [private] |
Definition at line 165 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().
1.6.1