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 sc_dt::uint64 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

Definition at line 77 of file sc_time.h.

Constructor & Destructor Documentation

sc_core::sc_time::sc_time ( )
inline

Definition at line 155 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 160 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 205 of file sc_time.h.

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

Definition at line 295 of file sc_time.h.

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

Definition at line 275 of file sc_time.h.

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

Definition at line 243 of file sc_time.h.

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

Definition at line 251 of file sc_time.h.

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

Definition at line 285 of file sc_time.h.

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

Definition at line 212 of file sc_time.h.

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

Definition at line 219 of file sc_time.h.

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

Definition at line 169 of file sc_time.h.

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

Definition at line 198 of file sc_time.h.

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

Definition at line 226 of file sc_time.h.

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

Definition at line 233 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 188 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 180 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 334 of file sc_time.h.

const sc_time operator* ( const sc_time t,
double  d 
)
friend

Definition at line 303 of file sc_time.h.

const sc_time operator* ( double  d,
const sc_time t 
)
friend

Definition at line 311 of file sc_time.h.

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

Definition at line 260 of file sc_time.h.

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

Definition at line 267 of file sc_time.h.

const sc_time operator/ ( const sc_time t,
double  d 
)
friend

Definition at line 319 of file sc_time.h.

double operator/ ( const sc_time t1,
const sc_time t2 
)
friend

Definition at line 327 of file sc_time.h.


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