gem5  v20.1.0.0
Public Member Functions | Private Attributes | List of all members
sc_core::sc_time_tuple Class Reference

#include <sc_time.hh>

Public Member Functions

 sc_time_tuple ()
 
 sc_time_tuple (const sc_time &)
 
bool has_value () const
 
sc_dt::uint64 value () const
 
sc_time_unit unit () const
 
const char * unit_symbol () const
 
 operator sc_time () const
 
double to_double () const
 
std::string to_string () const
 

Private Attributes

sc_dt::uint64 _value
 
sc_time_unit _unit
 
bool _set
 

Detailed Description

Definition at line 114 of file sc_time.hh.

Constructor & Destructor Documentation

◆ sc_time_tuple() [1/2]

sc_core::sc_time_tuple::sc_time_tuple ( )
inline

Definition at line 117 of file sc_time.hh.

◆ sc_time_tuple() [2/2]

sc_core::sc_time_tuple::sc_time_tuple ( const sc_time t)

Definition at line 395 of file sc_time.cc.

References _unit, _value, SimClock::Frequency, sc_core::SC_SEC, and ArmISA::t.

Member Function Documentation

◆ has_value()

bool sc_core::sc_time_tuple::has_value ( ) const

Definition at line 431 of file sc_time.cc.

References _set.

◆ operator sc_time()

sc_core::sc_time_tuple::operator sc_time ( ) const
inline

Definition at line 127 of file sc_time.hh.

References _unit, and to_double().

◆ to_double()

double sc_core::sc_time_tuple::to_double ( ) const

Definition at line 444 of file sc_time.cc.

References _value.

Referenced by operator sc_time().

◆ to_string()

std::string sc_core::sc_time_tuple::to_string ( ) const

Definition at line 447 of file sc_time.cc.

References _value, ArmISA::ss, and unit_symbol().

Referenced by sc_core::sc_time::print().

◆ unit()

sc_time_unit sc_core::sc_time_tuple::unit ( ) const
inline

Definition at line 123 of file sc_time.hh.

References _unit.

◆ unit_symbol()

const char * sc_core::sc_time_tuple::unit_symbol ( ) const

Definition at line 439 of file sc_time.cc.

References _unit, and sc_gem5::TimeUnitNames.

Referenced by to_string().

◆ value()

sc_dt::uint64 sc_core::sc_time_tuple::value ( ) const

Definition at line 436 of file sc_time.cc.

References _value.

Member Data Documentation

◆ _set

bool sc_core::sc_time_tuple::_set
private

Definition at line 135 of file sc_time.hh.

Referenced by has_value().

◆ _unit

sc_time_unit sc_core::sc_time_tuple::_unit
private

Definition at line 134 of file sc_time.hh.

Referenced by operator sc_time(), sc_time_tuple(), unit(), and unit_symbol().

◆ _value

sc_dt::uint64 sc_core::sc_time_tuple::_value
private

Definition at line 133 of file sc_time.hh.

Referenced by sc_time_tuple(), to_double(), to_string(), and value().


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

Generated on Wed Sep 30 2020 14:03:09 for gem5 by doxygen 1.8.17