Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

TimeVal.h File Reference

#include <sys/time.h>
#include <unistd.h>
#include <string>

Go to the source code of this file.

Namespaces

namespace  ASSA

Functions

TimeVal operator+ (const TimeVal &lhs_, const TimeVal &rhs_)
TimeVal operator- (const TimeVal &lhs_, const TimeVal &rhs_)
bool operator> (const TimeVal &lhs_, const TimeVal &rhs_)
bool operator!= (const TimeVal &lhs_, const TimeVal &rhs_)
bool operator<= (const TimeVal &lhs_, const TimeVal &rhs_)
bool operator>= (const TimeVal &lhs_, const TimeVal &rhs_)


Detailed Description

Class TimeVal is a wrapper around UNIX timeval structure.

Definition in file TimeVal.h.


Function Documentation

bool ASSA::operator!= const TimeVal &  lhs_,
const TimeVal &  rhs_
[inline]
 

Definition at line 312 of file TimeVal.h.

00313 {
00314     return !( lhs_ == rhs_ );
00315 }

TimeVal ASSA::operator+ const TimeVal &  lhs_,
const TimeVal &  rhs_
[inline]
 

Definition at line 273 of file TimeVal.h.

References ASSA::TimeVal::normalize().

00274 {
00275     TimeVal temp(lhs_);
00276     temp += rhs_;
00277     temp.normalize ();
00278     return temp;
00279 }

TimeVal ASSA::operator- const TimeVal &  lhs_,
const TimeVal &  rhs_
[inline]
 

Definition at line 282 of file TimeVal.h.

References ASSA::TimeVal::normalize().

00283 {
00284     TimeVal temp(lhs_);
00285     temp -= rhs_;
00286     temp.normalize ();
00287     return temp;
00288 }

bool ASSA::operator<= const TimeVal &  lhs_,
const TimeVal &  rhs_
[inline]
 

Definition at line 318 of file TimeVal.h.

00319 {
00320     return !(rhs_ < lhs_);
00321 }

bool ASSA::operator> const TimeVal &  lhs_,
const TimeVal &  rhs_
[inline]
 

Definition at line 306 of file TimeVal.h.

00307 {
00308     return rhs_ < lhs_;
00309 }

bool ASSA::operator>= const TimeVal &  lhs_,
const TimeVal &  rhs_
[inline]
 

Definition at line 324 of file TimeVal.h.

00325 {
00326     return !(lhs_ < rhs_);
00327 }


Generated on Mon Mar 26 22:47:36 2007 for libassa by  doxygen 1.4.2