#include <PhysicalLiteral.hh>
Inheritance diagram for PhysicalLiteral:


Public Member Functions | |
| PhysicalLiteral () | |
| PhysicalLiteral (LONG initValue, const string &unitName) | |
| PhysicalLiteral (const PhysicalTypeInfo &initTypeInfo, LONG initValue, const string &unitName) | |
| PhysicalLiteral (const PhysicalTypeInfo &) | |
| PhysicalLiteral (const PhysicalTypeInfo &, const RValue &initValue) | |
| PhysicalLiteral (const PhysicalTypeInfo &, LONG initValue) | |
| PhysicalLiteral (const PhysicalLiteral &that) | |
| virtual | ~PhysicalLiteral () |
| RValue & | operator= (const RValue &) |
| PhysicalLiteral & | operator= (const PhysicalLiteral &) |
| bool | isScalarType () const |
| Does this value have a scalar type? | |
| virtual const RValue & | leftValue () |
| const TypeInfo & | getTypeInfo () const |
| Get the TypeInfo for this RValue. | |
| Value | vhdlPlus (const RValue &) const |
| Arithmetic Operators. | |
| Value | vhdlMinus (const RValue &) const |
| Value | vhdlMultiply (const RValue &) const |
| Value | vhdlDivide (const RValue &) const |
| Value | vhdlMod (const RValue &) const |
| Value | vhdlRem (const RValue &) const |
| Value | vhdlPow (const RValue &) const |
| UniversalInteger | vhdlDivide (const PhysicalLiteral &) const |
| Value | vhdlAbs () const |
| Value | vhdlUnaryPlus () const |
| Value | vhdlUnaryMinus () const |
| RValue * | clone () const |
| Clone this object. | |
| void | print (ostream &os) const |
| Virtualized printing. | |
| string | toString () const |
| Get a string representation of the value. | |
| int | getIntValue () const |
| Returns (int)getInt64Value(). | |
| LONG | getInt64Value () const |
| Returns the value of this literal in terms of the primary unit. | |
| double | getDoubleValue () const |
| Returns (double)getInt64Value(). | |
| LONG | getValue () const |
| Returns whatever value this literal was created with. | |
| const string & | getUnit () const |
| Get the unit string for a PhysicalLiteral. | |
| bool | operator== (const RValue &) const |
| bool | operator!= (const RValue &) const |
| bool | operator> (const RValue &) const |
| bool | operator>= (const RValue &) const |
| bool | operator< (const RValue &) const |
| bool | operator<= (const RValue &) const |
| const string & | getDataType () const |
| void | serialize (SerializedInstance *) const |
| VHDLVTime | toVTime () const |
| LONG | getValuePrimaryUnit () const |
| Calculate and return the value of this literal if it was expressed in primary units. | |
Static Public Member Functions | |
| static const string & | getPhysicalLiteralDataType () |
| static void | registerDeserializer () |
Public Attributes | |
| const PhysicalTypeInfo * | myTypeInfo |
| LONG | myValue |
| string | myUnit |
The representation is a long int (64 bits if possible - determined at configure time) and a string representation of the units.
A literal like "1 ps" is equivalent to "1000 fs". "1 ps" would return "1" for getValue(), "ps" for getUnit(), and "1000" for getInt64Value().
|
|
|
|
||||||||||||
|
|
|
||||||||||||||||
|
|
|
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
Clone this object.
Implements RValue. |
|
|
|
|
|
Returns (double)getInt64Value().
Implements RValue. |
|
|
Returns the value of this literal in terms of the primary unit. For instance, if getValue() == 1 and getUnits == "ps", then "getInt64Value()" will return "1000". Implements RValue. |
|
|
Returns (int)getInt64Value().
Implements RValue. |
|
|
|
|
|
Get the TypeInfo for this RValue.
Implements RValue. |
|
|
Get the unit string for a PhysicalLiteral. If it's not a PhysicalLiteral, will return ""; Reimplemented from VHDLData. |
|
|
Returns whatever value this literal was created with. For example, if it was created with "1 ps", would return 1. Reimplemented from VHDLData. |
|
|
Calculate and return the value of this literal if it was expressed in primary units. For example, 1 ps would return 1000 since the primary unit is fs. |
|
|
Does this value have a scalar type?
Implements RValue. |
|
|
|
|
|
Implements VHDLData. |
|
|
Implements VHDLData. |
|
|
Implements VHDLData. |
|
|
|
|
|
Reimplemented from VHDLData. |
|
|
Implements VHDLData. |
|
|
Implements VHDLData. |
|
|
Implements VHDLData. |
|
|
Virtualized printing.
Reimplemented from VHDLData. |
|
|
|
|
|
|
|
|
Get a string representation of the value.
Reimplemented from VHDLData. |
|
|
|
|
|
|
|
|
|
|
|
Implements RValue. |
|
|
Implements RValue. |
|
|
Implements RValue. |
|
|
Implements RValue. |
|
|
Arithmetic Operators.
Implements RValue. |
|
|
Implements RValue. |
|
|
Implements RValue. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.4.6