SystemC 3.0.0
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_TIME_DT value_type
 

Public Member Functions

 sc_time ()
 
 sc_time (const sc_time &)
 
 sc_time (double, sc_time_unit)
 
 sc_time (std::string_view strv)
 
 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_seconds () const
 
double to_default_time_units () 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_string (std::string_view strv)
 
static sc_time from_value (value_type)
 
static sc_time from_seconds (double)
 

Friends

class sc_module
 
class sc_prim_channel
 
class sc_event
 
class sc_clock
 
SC_API void next_trigger (const sc_time &, const sc_event_or_list &, sc_simcontext *)
 
SC_API void next_trigger (const sc_time &, const sc_event &, sc_simcontext *)
 
SC_API void next_trigger (const sc_time &, const sc_event_and_list &, sc_simcontext *)
 
SC_API void next_trigger (double v, sc_time_unit, sc_simcontext *)
 
SC_API void next_trigger (double v, sc_time_unit, const sc_event &, sc_simcontext *)
 
SC_API void next_trigger (double v, sc_time_unit, const sc_event_and_list &, sc_simcontext *)
 
SC_API void next_trigger (double v, sc_time_unit, const sc_event_or_list &, sc_simcontext *)
 
SC_API void wait (const sc_time &, sc_simcontext *)
 
SC_API void wait (const sc_time &, const sc_event &, sc_simcontext *)
 
SC_API void wait (const sc_time &, const sc_event_and_list &, sc_simcontext *)
 
SC_API void wait (double v, sc_time_unit, sc_simcontext *)
 
SC_API void wait (double v, sc_time_unit, const sc_event &, sc_simcontext *)
 
SC_API void wait (double v, sc_time_unit, const sc_event_and_list &, sc_simcontext *)
 
SC_API void wait (double v, sc_time_unit, const sc_event_or_list &, sc_simcontext *)
 
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 91 of file sc_time.h.

Member Typedef Documentation

◆ value_type

Definition at line 115 of file sc_time.h.

Constructor & Destructor Documentation

◆ sc_time() [1/6]

sc_core::sc_time::sc_time ( )
inline

Definition at line 232 of file sc_time.h.

◆ sc_time() [2/6]

sc_core::sc_time::sc_time ( const sc_time t)
inline

Definition at line 237 of file sc_time.h.

◆ sc_time() [3/6]

sc_core::sc_time::sc_time ( double  ,
sc_time_unit   
)

◆ sc_time() [4/6]

sc_core::sc_time::sc_time ( std::string_view  strv)
explicit

◆ sc_time() [5/6]

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

◆ sc_time() [6/6]

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

Member Function Documentation

◆ from_seconds()

sc_time sc_core::sc_time::from_seconds ( double  v)
inlinestatic

Definition at line 259 of file sc_time.h.

◆ from_string()

static sc_time sc_core::sc_time::from_string ( std::string_view  strv)
static

◆ from_value()

static sc_time sc_core::sc_time::from_value ( value_type  )
static

◆ operator!=()

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

Definition at line 321 of file sc_time.h.

◆ operator%=()

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

Definition at line 411 of file sc_time.h.

◆ operator*=()

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

Definition at line 391 of file sc_time.h.

◆ operator+=()

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

Definition at line 359 of file sc_time.h.

◆ operator-=()

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

Definition at line 367 of file sc_time.h.

◆ operator/=()

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

Definition at line 401 of file sc_time.h.

◆ operator<()

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

Definition at line 327 of file sc_time.h.

◆ operator<=()

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

Definition at line 334 of file sc_time.h.

◆ operator=()

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

Definition at line 269 of file sc_time.h.

◆ operator==()

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

Definition at line 314 of file sc_time.h.

◆ operator>()

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

Definition at line 342 of file sc_time.h.

◆ operator>=()

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

Definition at line 349 of file sc_time.h.

◆ print()

void sc_core::sc_time::print ( ::std::ostream &  os = std::cout) const

◆ to_default_time_units()

double sc_core::sc_time::to_default_time_units ( ) const

◆ to_double()

double sc_core::sc_time::to_double ( ) const
inline

Definition at line 288 of file sc_time.h.

◆ to_seconds()

double sc_core::sc_time::to_seconds ( ) const

◆ to_string()

const std::string sc_core::sc_time::to_string ( ) const
inline

Definition at line 304 of file sc_time.h.

◆ value()

sc_time::value_type sc_core::sc_time::value ( ) const
inline

Definition at line 280 of file sc_time.h.

Friends And Related Function Documentation

◆ next_trigger [1/7]

SC_API void next_trigger ( const sc_time ,
const sc_event ,
sc_simcontext  
)
friend

◆ next_trigger [2/7]

SC_API void next_trigger ( const sc_time ,
const sc_event_and_list ,
sc_simcontext  
)
friend

◆ next_trigger [3/7]

SC_API void next_trigger ( const sc_time ,
const sc_event_or_list ,
sc_simcontext  
)
friend

◆ next_trigger [4/7]

SC_API void next_trigger ( double  v,
sc_time_unit  tu,
const sc_event e,
sc_simcontext simc = sc_get_curr_simcontext() 
)
friend

Definition at line 173 of file sc_wait.h.

◆ next_trigger [5/7]

SC_API void next_trigger ( double  v,
sc_time_unit  tu,
const sc_event_and_list el,
sc_simcontext simc = sc_get_curr_simcontext() 
)
friend

Definition at line 203 of file sc_wait.h.

◆ next_trigger [6/7]

SC_API void next_trigger ( double  v,
sc_time_unit  tu,
const sc_event_or_list el,
sc_simcontext simc = sc_get_curr_simcontext() 
)
friend

Definition at line 188 of file sc_wait.h.

◆ next_trigger [7/7]

SC_API void next_trigger ( double  v,
sc_time_unit  tu,
sc_simcontext simc = sc_get_curr_simcontext() 
)
friend

Definition at line 159 of file sc_wait.h.

◆ operator%

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

Definition at line 450 of file sc_time.h.

◆ operator* [1/2]

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

Definition at line 419 of file sc_time.h.

◆ operator* [2/2]

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

Definition at line 427 of file sc_time.h.

◆ operator+

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

Definition at line 376 of file sc_time.h.

◆ operator-

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

Definition at line 383 of file sc_time.h.

◆ operator/ [1/2]

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

Definition at line 443 of file sc_time.h.

◆ operator/ [2/2]

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

Definition at line 435 of file sc_time.h.

◆ sc_clock

friend class sc_clock
friend

Definition at line 96 of file sc_time.h.

◆ sc_event

friend class sc_event
friend

Definition at line 95 of file sc_time.h.

◆ sc_module

friend class sc_module
friend

Definition at line 93 of file sc_time.h.

◆ sc_prim_channel

friend class sc_prim_channel
friend

Definition at line 94 of file sc_time.h.

◆ wait [1/7]

SC_API void wait ( const sc_time ,
const sc_event ,
sc_simcontext  
)
friend

◆ wait [2/7]

SC_API void wait ( const sc_time ,
const sc_event_and_list ,
sc_simcontext  
)
friend

◆ wait [3/7]

SC_API void wait ( const sc_time ,
sc_simcontext  
)
friend

◆ wait [4/7]

SC_API void wait ( double  v,
sc_time_unit  tu,
const sc_event e,
sc_simcontext simc = sc_get_curr_simcontext() 
)
friend

Definition at line 90 of file sc_wait.h.

◆ wait [5/7]

SC_API void wait ( double  v,
sc_time_unit  tu,
const sc_event_and_list el,
sc_simcontext simc = sc_get_curr_simcontext() 
)
friend

Definition at line 120 of file sc_wait.h.

◆ wait [6/7]

SC_API void wait ( double  v,
sc_time_unit  tu,
const sc_event_or_list el,
sc_simcontext simc = sc_get_curr_simcontext() 
)
friend

Definition at line 105 of file sc_wait.h.

◆ wait [7/7]

SC_API void wait ( double  v,
sc_time_unit  tu,
sc_simcontext simc = sc_get_curr_simcontext() 
)
friend

Definition at line 76 of file sc_wait.h.


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