SystemC  Recoding Infrastructure for SystemC v0.6.0 derived from Accellera SystemC 2.3.1
Accellera SystemC proof-of-concept library
Public Types | Public Member Functions | Static Public Member Functions | Friends | List of all members
sc_core::sc_time Class Reference

#include <sysc/kernel/sc_time.h>

Public Types

typedef long long value_type
 

Public Member Functions

 sc_time ()
 
 sc_time (double, sc_time_unit)
 
 sc_time (double, sc_time_unit, sc_simcontext *)
 
 sc_time (const sc_time &)
 
 sc_time (double, bool scale)
 
 sc_time (value_type, bool scale)
 
sc_timeoperator= (const sc_time &)
 
value_type value () const
 
double to_double () const
 
double to_default_time_units () const
 
double to_seconds () const
 
const std::string to_string () const
 
bool operator== (const sc_time &) const
 
bool operator!= (const sc_time &) const
 
bool operator< (const sc_time &) const
 
bool operator<= (const sc_time &) const
 
bool operator> (const sc_time &) const
 
bool operator>= (const sc_time &) const
 
sc_timeoperator+= (const sc_time &)
 
sc_timeoperator-= (const sc_time &)
 
sc_timeoperator*= (double)
 
sc_timeoperator/= (double)
 
sc_timeoperator%= (const sc_time &)
 
void print (::std::ostream &os=std::cout) const
 

Static Public Member Functions

static sc_time from_value (value_type)
 

Friends

const sc_time operator+ (const sc_time &, const sc_time &)
 
const sc_time operator- (const sc_time &, const sc_time &)
 
const sc_time operator* (const sc_time &, double)
 
const sc_time operator* (double, const sc_time &)
 
const sc_time operator/ (const sc_time &, double)
 
double operator/ (const sc_time &, const sc_time &)
 
const sc_time operator% (const sc_time &, const sc_time &)
 

Detailed Description

Definition at line 73 of file sc_time.h.

Member Typedef Documentation

typedef long long sc_core::sc_time::value_type

Definition at line 81 of file sc_time.h.

Constructor & Destructor Documentation

sc_core::sc_time::sc_time ( )
inline

Definition at line 159 of file sc_time.h.

sc_core::sc_time::sc_time ( double  ,
sc_time_unit   
)
sc_core::sc_time::sc_time ( double  ,
sc_time_unit  ,
sc_simcontext  
)
sc_core::sc_time::sc_time ( const sc_time t)
inline

Definition at line 164 of file sc_time.h.

sc_core::sc_time::sc_time ( double  ,
bool  scale 
)
sc_core::sc_time::sc_time ( value_type  ,
bool  scale 
)

Member Function Documentation

static sc_time sc_core::sc_time::from_value ( value_type  )
static
bool sc_core::sc_time::operator!= ( const sc_time t) const
inline

Definition at line 209 of file sc_time.h.

sc_time & sc_core::sc_time::operator%= ( const sc_time t)
inline

Definition at line 299 of file sc_time.h.

sc_time & sc_core::sc_time::operator*= ( double  d)
inline

Definition at line 279 of file sc_time.h.

sc_time & sc_core::sc_time::operator+= ( const sc_time t)
inline

Definition at line 247 of file sc_time.h.

sc_time & sc_core::sc_time::operator-= ( const sc_time t)
inline

Definition at line 255 of file sc_time.h.

sc_time & sc_core::sc_time::operator/= ( double  d)
inline

Definition at line 289 of file sc_time.h.

bool sc_core::sc_time::operator< ( const sc_time t) const
inline

Definition at line 216 of file sc_time.h.

bool sc_core::sc_time::operator<= ( const sc_time t) const
inline

Definition at line 223 of file sc_time.h.

sc_time & sc_core::sc_time::operator= ( const sc_time t)
inline

Definition at line 173 of file sc_time.h.

bool sc_core::sc_time::operator== ( const sc_time t) const
inline

Definition at line 202 of file sc_time.h.

bool sc_core::sc_time::operator> ( const sc_time t) const
inline

Definition at line 230 of file sc_time.h.

bool sc_core::sc_time::operator>= ( const sc_time t) const
inline

Definition at line 237 of file sc_time.h.

void sc_core::sc_time::print ( ::std::ostream &  os = std::cout) const
double sc_core::sc_time::to_default_time_units ( ) const
double sc_core::sc_time::to_double ( ) const
inline

Definition at line 192 of file sc_time.h.

double sc_core::sc_time::to_seconds ( ) const
const std::string sc_core::sc_time::to_string ( ) const
sc_time::value_type sc_core::sc_time::value ( ) const
inline

Definition at line 184 of file sc_time.h.

Friends And Related Function Documentation

const sc_time operator% ( const sc_time t1,
const sc_time t2 
)
friend

Definition at line 338 of file sc_time.h.

const sc_time operator* ( const sc_time t,
double  d 
)
friend
const sc_time operator* ( double  d,
const sc_time t 
)
friend
const sc_time operator+ ( const sc_time t1,
const sc_time t2 
)
friend
const sc_time operator- ( const sc_time t1,
const sc_time t2 
)
friend
const sc_time operator/ ( const sc_time t,
double  d 
)
friend
double operator/ ( const sc_time t1,
const sc_time t2 
)
friend

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