Lines Matching defs:const
56 sc_time(const sc_time &);
59 sc_time(double, const char *);
65 sc_time &operator = (const sc_time &);
67 sc_dt::uint64 value() const;
68 double to_double() const;
69 double to_seconds() const;
70 const std::string to_string() const;
72 bool operator == (const sc_time &) const;
73 bool operator != (const sc_time &) const;
74 bool operator < (const sc_time &) const;
75 bool operator <= (const sc_time &) const;
76 bool operator > (const sc_time &) const;
77 bool operator >= (const sc_time &) const;
79 sc_time &operator += (const sc_time &);
80 sc_time &operator -= (const sc_time &);
84 void print(std::ostream & =std::cout) const;
89 static sc_time from_string(const char *str);
95 const sc_time operator + (const sc_time &, const sc_time &);
96 const sc_time operator - (const sc_time &, const sc_time &);
98 const sc_time operator * (const sc_time &, double);
99 const sc_time operator * (double, const sc_time &);
100 const sc_time operator / (const sc_time &, double);
101 double operator / (const sc_time &, const sc_time &);
103 std::ostream &operator << (std::ostream &, const sc_time &);
105 extern const sc_time SC_ZERO_TIME;
109 const sc_time &sc_max_time();
120 sc_time_tuple(const sc_time &);
122 bool has_value() const;
123 sc_dt::uint64 value() const;
125 sc_time_unit unit() const { return _unit; }
127 const char *unit_symbol() const;
129 operator sc_time() const { return sc_time(to_double(), _unit); }
131 double to_double() const; // Relative to the normalized unit.
132 std::string to_string() const;