27 #ifndef Interval_CLASS
28 #define Interval_CLASS
36 #include <asdmIDLTypesC.h>
47 Interval
operator * ( int64_t ,
const Interval & );
48 std::ostream &
operator << ( std::ostream &,
const Interval & );
49 std::istream &
operator >> ( std::istream &, Interval&);
65 static std::string
toString(int64_t);
72 Interval(
const asdmIDLTypes::IDLInterval &);
151 operator std::string ()
const;
156 static std::string
unit();
283 inline Interval::operator std::string ()
const {
301 asdmIDLTypes::IDLInterval tmp;
326 return std::string (
"nanosec");
bool operator>(const Interval &) const
Interval & operator/=(const int64_t)
Interval & operator+=(const Interval &)
assignment with arithmetic operators
The Interval class implements an interval of time in units of nanoseconds.
friend Interval operator*(int64_t, const Interval &)
Friend functions.
friend std::ostream & operator<<(std::ostream &, const Interval &)
bool operator==(const Interval &) const
friend std::istream & operator>>(std::istream &, Interval &)
Interval & operator=(const Interval &)
assignment operator
static Interval fromBin(EndianIStream &eis)
Read the binary representation of an Interval from an EndianIStream and use the read value to set an ...
std::istream & operator>>(std::istream &, EntityId &)
virtual ~Interval()
Interval destructor.
The StringTokenizer class is a translation into C++ of the Java class of the same name in Java's util...
void toBin(EndianOSStream &eoss)
Write the binary representation of this into an EndianOSStream.
Length operator*(double, const Length &)
Friend functions.
Interval & operator*=(const int64_t)
bool equals(const Interval &) const
static std::string unit()
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 rea...
asdmIDLTypes::IDLInterval toIDLInterval() const
std::string toString() const
std::ostream & operator<<(std::ostream &, const EntityId &)
Friend functions.
casacore::String toString(VisibilityProcessor::ProcessingType p)
Interval operator/(const int64_t) const
Interval operator-() const
unary - and + operators
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...
static int64_t fromString(const std::string &)
Interval()
Interval constructors.
std::string toStringI() const
bool operator!=(const Interval &) const
bool operator<=(const Interval &) const
Interval operator+() const
bool operator>=(const Interval &) const
bool operator<(const Interval &) const
comparison operators
static Interval getInterval(StringTokenizer &t)
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
Interval & operator-=(const Interval &)