casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Static Public Member Functions | Private Attributes | Friends
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::ArrayTime asdm::UTCCorrection 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
 Interval ()
 Interval (const Interval &)
 Interval (const string &s)
 Interval (const IDLInterval &)
 Interval (int64_t value)
virtual ~Interval ()
Intervaloperator= (const Interval &)
Intervaloperator= (const int64_t)
Intervaloperator+= (const Interval &)
Intervaloperator-= (const Interval &)
Intervaloperator*= (const int64_t)
Intervaloperator/= (const int64_t)
Interval operator+ (const Interval &) const
Interval operator- (const Interval &) const
Interval operator* (const int64_t) const
Interval operator/ (const int64_t) const
bool operator< (const Interval &) const
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
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
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 ()
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 &)
 Friend functions.
ostream & operator<< (ostream &, const Interval &)
istream & operator>> (istream &, Interval &)
Interval operator* (int64_t, const Interval &)
 Friend functions.
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

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.

asdm::Interval::Interval ( const string &  s)
asdm::Interval::Interval ( const IDLInterval &  )
asdm::Interval::Interval ( int64_t  value)
virtual asdm::Interval::~Interval ( ) [virtual]

Member Function Documentation

bool asdm::Interval::equals ( const Interval x) const [inline]

Definition at line 267 of file Interval.h.

References value.

bool asdm::Interval::equals ( const Interval ) const
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:
eisthe EndianIStream to be read
Returns:
a vector of Interval

Reimplemented in asdm::ArrayTime, and asdm::ArrayTime.

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:
eisthe EndianIStream to be read
Returns:
a vector of Interval

Reimplemented in asdm::ArrayTime, and 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:
eisthe EndianIStream to be read
Returns:
a vector of vector of Interval

Reimplemented in asdm::ArrayTime, and 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:
eisthe EndianIStream to be read
Returns:
a vector of vector of Interval

Reimplemented in asdm::ArrayTime, and 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:
eisthe EndianIStream to be read
Returns:
an Interval

Reimplemented in asdm::ArrayTime, and 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:
eisthe EndianIStream to be read
Returns:
an Interval

Reimplemented in asdm::ArrayTime, and asdm::ArrayTime.

static int64_t asdm::Interval::fromString ( const string &  ) [static]
static int64_t asdm::Interval::fromString ( const string &  ) [static]
int64_t asdm::Interval::get ( ) const
int64_t asdm::Interval::get ( ) const [inline]
bool asdm::Interval::isZero ( ) const
bool asdm::Interval::isZero ( ) const
asdm::Interval::operator string ( ) const [inline]

Conversion functions.

Definition at line 289 of file Interval.h.

References toString().

asdm::Interval::operator string ( ) const
bool asdm::Interval::operator!= ( const Interval x) const [inline]

Definition at line 271 of file Interval.h.

References value.

bool asdm::Interval::operator!= ( const Interval ) const
Interval asdm::Interval::operator* ( const int64_t  ) const
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 int64_t  )
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 ) const
Interval asdm::Interval::operator+ ( ) const [inline]

Definition at line 282 of file Interval.h.

References value.

Interval asdm::Interval::operator+ ( ) const
Interval& asdm::Interval::operator+= ( const Interval )
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 Interval t2) const [inline]

Definition at line 230 of file Interval.h.

References value.

Interval asdm::Interval::operator- ( const Interval ) const
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& asdm::Interval::operator-= ( const Interval )
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  ) const
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.

Interval& asdm::Interval::operator/= ( const int64_t  )
bool asdm::Interval::operator< ( const Interval ) const
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 ) const
bool asdm::Interval::operator<= ( const Interval x) const [inline]

Definition at line 256 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.

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

assignment operator

Definition at line 197 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 ) const
bool asdm::Interval::operator> ( const Interval ) const
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.

bool asdm::Interval::operator>= ( const Interval ) const

Write the binary representation of this into an EndianOSStream.

Parameters:
eoss

Reimplemented in asdm::ArrayTime, and asdm::ArrayTime.

Write the binary representation of this into an EndianOSStream.

Parameters:
eoss

Reimplemented in asdm::ArrayTime, and asdm::ArrayTime.

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
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
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< vector< Interval > >  interval,
EndianOSStream eoss 
) [static]

Write the binary representation of a vector of vector of Interval into a EndianOSStream.

Parameters:
interval
eoss
IDLInterval asdm::Interval::toIDLInterval ( ) const [inline]

Definition at line 306 of file Interval.h.

References value.

IDLInterval asdm::Interval::toIDLInterval ( ) const
static string asdm::Interval::toString ( int64_t  ) [static]
static string asdm::Interval::toString ( int64_t  ) [static]
string asdm::Interval::toString ( ) const
string asdm::Interval::toString ( ) const [inline]

Definition at line 293 of file Interval.h.

References value.

Referenced by operator string(), and toStringI().

string asdm::Interval::toStringI ( ) const [inline]

Definition at line 297 of file Interval.h.

References toString(), and value.

string asdm::Interval::toStringI ( ) const
string asdm::Interval::unit ( ) [inline, static]

Definition at line 331 of file Interval.h.

static string asdm::Interval::unit ( ) [static]

Friends And Related Function Documentation

Interval operator* ( int64_t  n,
const Interval x 
) [friend]

Friend functions.

Interval operator* ( int64_t  n,
const Interval x 
) [friend]

Friend functions.

ostream& operator<< ( ostream &  o,
const Interval x 
) [friend]
ostream& operator<< ( ostream &  o,
const Interval x 
) [friend]
istream& operator>> ( istream &  i,
Interval x 
) [friend]
istream& operator>> ( istream &  i,
Interval x 
) [friend]

Member Data Documentation

int64_t asdm::Interval::value [private]

The documentation for this class was generated from the following files: