Value containing an integer.
More...
#include <Value.h>
Value containing an integer.
◆ IntValue() [1/3]
IntValue::IntValue |
( |
const IntValue & |
value | ) |
|
|
delete |
Copy constructor, disabled.
- Parameters
-
[in] | value | The value to copy. |
◆ IntValue() [2/3]
IntValue::IntValue |
( |
int32 |
val, |
|
|
bool |
is_signed |
|
) |
| |
Constructor for IntValue.
- Parameters
-
[in] | val | The integer value to be contained. |
[in] | is_signed | Whether or not the value is signed. This will affect output. |
◆ IntValue() [3/3]
IntValue::IntValue |
( |
uint32 |
val, |
|
|
bool |
is_signed |
|
) |
| |
Constructor for IntValue.
- Parameters
-
[in] | val | The integer value to be contained. |
[in] | is_signed | Whether or not the value is signed. This will affect output. |
◆ Dup()
ValuePtr IntValue::Dup |
( |
std::ostream & |
output | ) |
|
|
overridevirtual |
Duplicates the value.
- Parameters
-
[out] | output | The stream to output any necessary assignment. |
- Returns
- A Value corresponding to a duplicate of the value.
Reimplemented from Value.
Reimplemented in AddressValue, and RelAddressValue.
◆ GetSigned()
int32 IntValue::GetSigned |
( |
| ) |
|
|
overridevirtual |
Retrieves a signed integer representing the value, if possible.
- Returns
- A signed integer representing the value, if possible.
Reimplemented from Value.
Reimplemented in AddressValue.
◆ GetUnsigned()
uint32 IntValue::GetUnsigned |
( |
| ) |
|
|
overridevirtual |
Retrieves an unsigned integer representing the value, if possible.
- Returns
- An unsigned integer representing the value, if possible.
- Exceptions
-
Reimplemented from Value.
Reimplemented in RelAddressValue.
◆ IsInteger()
bool IntValue::IsInteger |
( |
| ) |
|
|
overridevirtual |
Return whether or not the Value is an integer.
- Returns
- True.
Reimplemented from Value.
◆ IsSignedValue()
bool IntValue::IsSignedValue |
( |
| ) |
|
|
overridevirtual |
Returns whether or not the stored integer value is signed.
- Returns
- True if the integer value is signed, false if it is not.
Reimplemented from Value.
◆ operator=()
Copy constructor, disabled.
- Parameters
-
[in] | value | The value to copy. |
◆ Print()
std::ostream & IntValue::Print |
( |
std::ostream & |
output | ) |
const |
|
overridevirtual |
Print the value to a stream.
- Parameters
-
[out] | output | The stream to write to. |
- Returns
- The stream used for output.
Implements Value.
Reimplemented in AddressValue, and RelAddressValue.
◆ signed_
const bool IntValue::signed_ |
|
protected |
True if the value is signed, false if it's not.
◆ val_
const int32 IntValue::val_ |
|
protected |
The value of the integer.
The documentation for this class was generated from the following files: