asdm::Interval Class Reference

The Interval class implements an interval of time in units of nanoseconds. More...

#include <Interval.h>

Inheritance diagram for asdm::Interval:
asdm::ArrayTime asdm::UTCCorrection

List of all members.

Public Member Functions

 Interval ()
 Interval constructors.
 Interval (const Interval &)
 Interval (const string &s)
 Interval (const IDLInterval &)
 Interval (int64_t value)
virtual ~Interval ()
 Interval destructor.
Intervaloperator= (const Interval &)
 assignment operator
Intervaloperator= (const int64_t)
 assignment operator
Intervaloperator+= (const Interval &)
 assignment with arithmetic operators
Intervaloperator-= (const Interval &)
Intervaloperator*= (const int64_t)
Intervaloperator/= (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< Intervalfrom1DBin (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 &)

Detailed Description

The Interval class implements an interval of time in units of nanoseconds.

Version:
1.00 Jan. 7, 2005
Author:
Allen Farris

Definition at line 64 of file Interval.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.

Parameters:
eis the EndianIStream to be read
Returns:
a vector of Interval

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.

Parameters:
eis the EndianIStream to be read
Returns:
a vector of vector of Interval

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.

Parameters:
eis the EndianIStream to be read
Returns:
an Interval

Reimplemented in asdm::ArrayTime.

static int64_t asdm::Interval::fromString ( const string &   )  [static]
int64_t asdm::Interval::get (  )  const [inline]
static Interval asdm::Interval::getInterval ( StringTokenizer t  )  throw (NumberFormatException) [static]
bool asdm::Interval::isZero (  )  const
asdm::Interval::operator string (  )  const [inline]

Conversion functions.

Definition at line 289 of file Interval.h.

References toString().

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 Interval t2  )  const [inline]

arithmetic functions

Definition at line 224 of file Interval.h.

References value.

Interval & asdm::Interval::operator+= ( const Interval t  )  [inline]

assignment with arithmetic operators

Definition at line 203 of file Interval.h.

References value.

Interval asdm::Interval::operator- (  )  const [inline]

unary - and + operators

Definition at line 276 of file Interval.h.

References value.

Interval asdm::Interval::operator- ( const Interval t2  )  const [inline]

Definition at line 230 of file Interval.h.

References value.

Interval & asdm::Interval::operator-= ( const Interval t  )  [inline]

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]

comparison operators

Definition at line 248 of file Interval.h.

References value.

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]

assignment operator

Definition at line 197 of file Interval.h.

References value.

Interval & asdm::Interval::operator= ( const Interval t  )  [inline]

assignment operator

Definition at line 191 of file Interval.h.

References value.

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.

Parameters:
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.

Parameters:
interval 
eoss 
void asdm::Interval::toBin ( EndianOSStream eoss  ) 

Write the binary representation of this into an EndianOSStream.

Parameters:
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.


Friends And Related Function Documentation

Interval operator* ( int64_t  ,
const Interval  
) [friend]
ostream& operator<< ( ostream &  ,
const Interval  
) [friend]
istream& operator>> ( istream &  ,
Interval  
) [friend]

Member Data Documentation

int64_t asdm::Interval::value [private]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1