#include <it_bus/integer.h>
Inheritance diagram for IT_Bus::Integer:

This class stores the value as a Decimal value.
Definition at line 30 of file integer.h.
Public Types | |
|
typedef IT_Reflect::ValueRef< IT_Bus::Integer > | IT_ReflectionType |
Public Member Functions | |
| Integer () IT_THROW_DECL(()) | |
| No argument constructor. | |
| Integer (short value) IT_THROW_DECL(()) | |
| Constructor. | |
| Integer (unsigned short value) IT_THROW_DECL(()) | |
| Constructor. | |
| Integer (int value) IT_THROW_DECL(()) | |
| Constructor. | |
| Integer (unsigned int value) IT_THROW_DECL(()) | |
| Constructor. | |
| Integer (long value) IT_THROW_DECL(()) | |
| Constructor. | |
| Integer (unsigned long value) IT_THROW_DECL(()) | |
| Constructor. | |
| Integer (IT_LongLong value) IT_THROW_DECL(()) | |
| Constructor. | |
| Integer (IT_ULongLong value) IT_THROW_DECL(()) | |
| Constructor. | |
| Integer & | operator= (const Integer &rhs) IT_THROW_DECL(()) |
| Assignment operator. | |
|
Integer &operator+=(const Integer | is_negative () const IT_THROW_DECL(())&rhs) IT_THROW_DECL((IT_Bus Integer &operator-=(const Integer &rhs) IT_THROW_DECL((IT_Bus Integer &operator *=(const Integer &rhs) IT_THROW_DECL((IT_Bus Integer &operator/=(const Integer &rhs) IT_THROW_DECL((IT_Bus Integer &operator%=(const Integer &rhs) IT_THROW_DECL((IT_Bus Integer &operator++() IT_THROW_DECL((IT_Bus const Integer operator++(int) IT_THROW_DECL((IT_Bus Integer &operator--() IT_THROW_DECL((IT_Bus const Integer operator--(int) IT_THROW_DECL((IT_Bus bool |
| Determine whether instance value is < 0. | |
| bool | is_positive () const IT_THROW_DECL(()) |
| Determine whether instance value is > 0. | |
| bool | is_non_negative () const IT_THROW_DECL(()) |
| Determine whether instance value is >= to 0. | |
| bool | is_non_positive () const IT_THROW_DECL(()) |
| Determine whether instance value is <= to 0. | |
| int | compare (const Integer &other) const IT_THROW_DECL(()) |
| Compares the value of this instance to the value of the parameter. | |
| const Decimal & | get_value () const IT_THROW_DECL(()) |
| Return the value of this instance as a Decimal. | |
| virtual AnyType::Kind | get_kind () const |
| Returns the IT_Bus::AnyType::Kind for the type. | |
| virtual const QName & | get_type () const |
| Returns the IT_Bus::QName for the type. | |
Static Public Member Functions | |
| static bool | is_valid_integer (const Decimal &value) IT_THROW_DECL(()) |
| Determines whether the test value is a valid integer. | |
Public Attributes | |
| Integer(const char *value, bool truncate=false) IT_THROW_DECL((IT_Bus Integer(const String &value, bool truncate=false) IT_THROW_DECL((IT_Bus Integer(const Decimal &value, bool truncate=false) IT_THROW_DECL((IT_Bu | Integer )(const Integer ©) IT_THROW_DECL(()) |
| Copy constructor. | |
Static Protected Member Functions | |
| static Decimal | from_unsigned (IT_ULongLong value) IT_THROW_DECL(()) |
| Returns a Decimal initialized with the value provided as a longlong. | |
Static Protected Attributes | |
| virtual void static validate(const Decimal &value) const IT_THROW_DECL((IT_Bus Decimal static from_string(const char *value, bool truncate=false) IT_THROW_DECL((IT_Bus Decima | from_signed )(IT_LongLong value) IT_THROW_DECL(()) |
| Returns a Decimal initialized with the value provided as a longlong. | |
| static void validate_integer(const Decimal &value) IT_THROW_DECL((IT_Bus Decimal | m_value |
| Instance variable that holds the value for the instance. | |
| IT_Bus::Integer::Integer | ( | short | value | ) |
Constructor.
| short | value to use in initializing instance. |
| IT_Bus::Integer::Integer | ( | unsigned short | value | ) |
Constructor.
| unsigned | short value to use in initializing instance. |
| IT_Bus::Integer::Integer | ( | int | value | ) |
Constructor.
| int | value to use in initializing instance. |
| IT_Bus::Integer::Integer | ( | unsigned int | value | ) |
Constructor.
| unsigned | int value to use in initializing instance. |
| IT_Bus::Integer::Integer | ( | long | value | ) |
Constructor.
| long | value to use in initializing instance. |
| IT_Bus::Integer::Integer | ( | unsigned long | value | ) |
Constructor.
| unsigned | long value to use in initializing instance. |
| IT_Bus::Integer::Integer | ( | IT_LongLong | value | ) |
Constructor.
| longlong | value to use in initializing instance. |
| IT_Bus::Integer::Integer | ( | IT_ULongLong | value | ) |
Constructor.
| unsigned | longlong value to use in initializing instance. |
| int IT_Bus::Integer::compare | ( | const Integer & | other | ) | const |
Compares the value of this instance to the value of the parameter.
| Integer | instance to compare to this instance. |
| static Decimal IT_Bus::Integer::from_unsigned | ( | IT_ULongLong | value | ) | [static, protected] |
Returns a Decimal initialized with the value provided as a longlong.
| ULongLong | value to use in initializing the Decimal. |
| virtual AnyType::Kind IT_Bus::Integer::get_kind | ( | ) | const [virtual] |
Returns the IT_Bus::AnyType::Kind for the type.
Derived subclasses override this method and return the appropriate Kind.
Reimplemented from IT_Bus::AnyType.
| virtual const QName& IT_Bus::Integer::get_type | ( | ) | const [virtual] |
Returns the IT_Bus::QName for the type.
Derived subclasses implement this method and return their QName.
Implements IT_Bus::AnyType.
Reimplemented in IT_Bus::NonPositiveInteger, IT_Bus::NegativeInteger, IT_Bus::NonNegativeInteger, and IT_Bus::PositiveInteger.
| const Decimal& IT_Bus::Integer::get_value | ( | ) | const |
Return the value of this instance as a Decimal.
| static bool IT_Bus::Integer::is_valid_integer | ( | const Decimal & | value | ) | [static] |
Determines whether the test value is a valid integer.
| Decimal | value to be tested. |
virtual void static validate ( const Decimal& value ) const IT_THROW_DECL((IT_Bus Decimal static from_string ( const char* value, bool truncate = false ) IT_THROW_DECL((IT_Bus Decima IT_Bus::Integer::from_signed)(IT_LongLong value) IT_THROW_DECL(()) [static, protected] |
Returns a Decimal initialized with the value provided as a longlong.
| LongLong | value to use in initializing the Decimal. |
1.4.7