Deleted Added
sdiff udiff text old ( 12927:6be191c20575 ) new ( 12983:fb1f462ae89e )
full compact
1/*
2 * Copyright 2018 Google, Inc.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are
6 * met: redistributions of source code must retain the above copyright
7 * notice, this list of conditions and the following disclaimer;
8 * redistributions in binary form must reproduce the above copyright

--- 19 unchanged lines hidden (view full) ---

28 */
29
30#include "base/logging.hh"
31#include "systemc/ext/core/sc_time.hh"
32
33namespace sc_core
34{
35
36sc_time::sc_time()
37{
38 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
39}
40
41sc_time::sc_time(double, sc_time_unit)
42{
43 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
44}
45
46sc_time::sc_time(const sc_time &)
47{
48 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
49}
50
51sc_time::sc_time(double, bool)
52{
53 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
54}
55
56sc_time::sc_time(sc_dt::uint64, bool)
57{
58 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
59}
60
61sc_time &
62sc_time::operator = (const sc_time &)
63{
64 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
65 return *this;
66}
67
68sc_dt::uint64
69sc_time::value() const
70{
71 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
72 return 0;
73}
74
75double
76sc_time::to_double() const
77{
78 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
79 return 0.0;
80}

--- 7 unchanged lines hidden (view full) ---

88const std::string
89sc_time::to_string() const
90{
91 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
92 return "";
93}
94
95bool
96sc_time::operator == (const sc_time &) const
97{
98 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
99 return true;
100}
101
102bool
103sc_time::operator != (const sc_time &) const
104{
105 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
106 return false;
107}
108
109bool
110sc_time::operator < (const sc_time &) const
111{
112 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
113 return false;
114}
115
116bool
117sc_time::operator <= (const sc_time &) const
118{
119 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
120 return true;
121}
122
123bool
124sc_time::operator > (const sc_time &) const
125{
126 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
127 return false;
128}
129
130bool
131sc_time::operator >= (const sc_time &) const
132{
133 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
134 return true;
135}
136
137sc_time &
138sc_time::operator += (const sc_time &)
139{
140 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
141 return *this;
142}
143
144sc_time &
145sc_time::operator -= (const sc_time &)
146{
147 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
148 return *this;
149}
150
151sc_time &
152sc_time::operator *= (double)
153{
154 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
155 return *this;
156}
157
158sc_time &
159sc_time::operator /= (double)
160{
161 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
162 return *this;
163}
164
165void
166sc_time::print(std::ostream &) const
167{
168 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
169}
170
171sc_time
172sc_time::from_value(sc_dt::uint64)
173{
174 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
175 return sc_time();
176}
177
178sc_time
179sc_time::from_seconds(double)
180{
181 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
182 return sc_time();
183}

--- 43 unchanged lines hidden (view full) ---

227double
228operator / (const sc_time &, const sc_time &)
229{
230 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
231 return 0.0;
232}
233
234std::ostream &
235operator << (std::ostream &os, const sc_time &)
236{
237 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
238 return os;
239}
240
241const sc_time SC_ZERO_TIME;
242
243void
244sc_set_time_resolution(double, sc_time_unit)
245{

--- 71 unchanged lines hidden ---