List of primitives. More...
#include <src/main/activemq/util/PrimitiveList.h>

Public Member Functions | |
| PrimitiveList () | |
| Default Constructor, creates an Empty list. | |
| virtual | ~PrimitiveList () |
| PrimitiveList (const decaf::util::List< PrimitiveValueNode > &src) | |
| Copy Constructor. | |
| PrimitiveList (const PrimitiveList &src) | |
| Copy Constructor. | |
| std::string | toString () const |
| Converts the contents into a formatted string that can be output in a Log File or other debugging tool. | |
| virtual bool | getBool (int index) const |
| Gets the Boolean value at the specified index. | |
| virtual void | setBool (int index, bool value) |
| Sets the value at the given index to the new value specified, this method overwrites any data that was previously at the index given, but does not insert a new element if the index is greater than the size of the list. | |
| virtual unsigned char | getByte (int index) const |
| Gets the Byte value at the specified index. | |
| virtual void | setByte (int index, unsigned char value) |
| Sets the value at the given index to the new value specified, this method overwrites any data that was previously at the index given, but does not insert a new element if the index is greater than the size of the list. | |
| virtual char | getChar (int index) const |
| Gets the Character value at the specified index. | |
| virtual void | setChar (int index, char value) |
| Sets the value at the given index to the new value specified, this method overwrites any data that was previously at the index given, but does not insert a new element if the index is greater than the size of the list. | |
| virtual short | getShort (int index) const |
| Gets the Short value at the specified index. | |
| virtual void | setShort (int index, short value) |
| Sets the value at the given index to the new value specified, this method overwrites any data that was previously at the index given, but does not insert a new element if the index is greater than the size of the list. | |
| virtual int | getInt (int index) const |
| Gets the Integer value at the specified index. | |
| virtual void | setInt (int index, int value) |
| Sets the value at the given index to the new value specified, this method overwrites any data that was previously at the index given, but does not insert a new element if the index is greater than the size of the list. | |
| virtual long long | getLong (int index) const |
| Gets the Long value at the specified index. | |
| virtual void | setLong (int index, long long value) |
| Sets the value at the given index to the new value specified, this method overwrites any data that was previously at the index given, but does not insert a new element if the index is greater than the size of the list. | |
| virtual float | getFloat (int index) const |
| Gets the Float value at the specified index. | |
| virtual void | setFloat (int index, float value) |
| Sets the value at the given index to the new value specified, this method overwrites any data that was previously at the index given, but does not insert a new element if the index is greater than the size of the list. | |
| virtual double | getDouble (int index) const |
| Gets the Double value at the specified index. | |
| virtual void | setDouble (int index, double value) |
| Sets the value at the given index to the new value specified, this method overwrites any data that was previously at the index given, but does not insert a new element if the index is greater than the size of the list. | |
| virtual std::string | getString (int index) const |
| Gets the String value at the specified index. | |
| virtual void | setString (int index, const std::string &value) |
| Sets the value at the given index to the new value specified, this method overwrites any data that was previously at the index given, but does not insert a new element if the index is greater than the size of the list. | |
| virtual std::vector< unsigned char > | getByteArray (int index) const |
| Gets the Byte Array value at the specified index. | |
| virtual void | setByteArray (int index, const std::vector< unsigned char > &value) |
| Sets the value at the given index to the new value specified, this method overwrites any data that was previously at the index given, but does not insert a new element if the index is greater than the size of the list. | |
List of primitives.
| activemq::util::PrimitiveList::PrimitiveList | ( | ) |
Default Constructor, creates an Empty list.
| virtual activemq::util::PrimitiveList::~PrimitiveList | ( | ) | [virtual] |
| activemq::util::PrimitiveList::PrimitiveList | ( | const decaf::util::List< PrimitiveValueNode > & | src | ) |
Copy Constructor.
| src | - the Decaf List of PrimtiveNodeValues to copy |
| activemq::util::PrimitiveList::PrimitiveList | ( | const PrimitiveList & | src | ) |
Copy Constructor.
| src | - the PrimitiveList to copy |
| virtual bool activemq::util::PrimitiveList::getBool | ( | int | index | ) | const [virtual] |
Gets the Boolean value at the specified index.
| index | - index to get value from |
| IndexOutOfBoundsException | if index is > size() | |
| UnsupportedOperationException | if the type at index is not of the type that this method is to return or can convert to. |
| virtual unsigned char activemq::util::PrimitiveList::getByte | ( | int | index | ) | const [virtual] |
Gets the Byte value at the specified index.
| index | - index to get value from |
| IndexOutOfBoundsException | if index is > size() | |
| UnsupportedOperationException | if the type at index is not of the type that this method is to return or can convert to. |
| virtual std::vector<unsigned char> activemq::util::PrimitiveList::getByteArray | ( | int | index | ) | const [virtual] |
Gets the Byte Array value at the specified index.
| index | - index to get value from |
| IndexOutOfBoundsException | if index is > size() | |
| UnsupportedOperationException | if the type at index is not of the type that this method is to return or can convert to. |
| virtual char activemq::util::PrimitiveList::getChar | ( | int | index | ) | const [virtual] |
Gets the Character value at the specified index.
| index | - index to get value from |
| IndexOutOfBoundsException | if index is > size() | |
| UnsupportedOperationException | if the type at index is not of the type that this method is to return or can convert to. |
| virtual double activemq::util::PrimitiveList::getDouble | ( | int | index | ) | const [virtual] |
Gets the Double value at the specified index.
| index | - index to get value from |
| IndexOutOfBoundsException | if index is > size() | |
| UnsupportedOperationException | if the type at index is not of the type that this method is to return or can convert to. |
| virtual float activemq::util::PrimitiveList::getFloat | ( | int | index | ) | const [virtual] |
Gets the Float value at the specified index.
| index | - index to get value from |
| IndexOutOfBoundsException | if index is > size() | |
| UnsupportedOperationException | if the type at index is not of the type that this method is to return or can convert to. |
| virtual int activemq::util::PrimitiveList::getInt | ( | int | index | ) | const [virtual] |
Gets the Integer value at the specified index.
| index | - index to get value from |
| IndexOutOfBoundsException | if index is > size() | |
| UnsupportedOperationException | if the type at index is not of the type that this method is to return or can convert to. |
| virtual long long activemq::util::PrimitiveList::getLong | ( | int | index | ) | const [virtual] |
Gets the Long value at the specified index.
| index | - index to get value from |
| IndexOutOfBoundsException | if index is > size() | |
| UnsupportedOperationException | if the type at index is not of the type that this method is to return or can convert to. |
| virtual short activemq::util::PrimitiveList::getShort | ( | int | index | ) | const [virtual] |
Gets the Short value at the specified index.
| index | - index to get value from |
| IndexOutOfBoundsException | if index is > size() | |
| UnsupportedOperationException | if the type at index is not of the type that this method is to return or can convert to. |
| virtual std::string activemq::util::PrimitiveList::getString | ( | int | index | ) | const [virtual] |
Gets the String value at the specified index.
| index | - index to get value from |
| IndexOutOfBoundsException | if index is > size() | |
| UnsupportedOperationException | if the type at index is not of the type that this method is to return or can convert to. |
| virtual void activemq::util::PrimitiveList::setBool | ( | int | index, | |
| bool | value | |||
| ) | [virtual] |
Sets the value at the given index to the new value specified, this method overwrites any data that was previously at the index given, but does not insert a new element if the index is greater than the size of the list.
| index | - location to set in the list | |
| value | - the new value to assign to the element at index |
| IndexOutOfBoundsException | if index > size(). |
| virtual void activemq::util::PrimitiveList::setByte | ( | int | index, | |
| unsigned char | value | |||
| ) | [virtual] |
Sets the value at the given index to the new value specified, this method overwrites any data that was previously at the index given, but does not insert a new element if the index is greater than the size of the list.
| index | - location to set in the list | |
| value | - the new value to assign to the element at index |
| IndexOutOfBoundsException | if index > size(). |
| virtual void activemq::util::PrimitiveList::setByteArray | ( | int | index, | |
| const std::vector< unsigned char > & | value | |||
| ) | [virtual] |
Sets the value at the given index to the new value specified, this method overwrites any data that was previously at the index given, but does not insert a new element if the index is greater than the size of the list.
| index | - location to set in the list | |
| value | - the new value to assign to the element at index |
| IndexOutOfBoundsException | if index > size(). |
| virtual void activemq::util::PrimitiveList::setChar | ( | int | index, | |
| char | value | |||
| ) | [virtual] |
Sets the value at the given index to the new value specified, this method overwrites any data that was previously at the index given, but does not insert a new element if the index is greater than the size of the list.
| index | - location to set in the list | |
| value | - the new value to assign to the element at index |
| IndexOutOfBoundsException | if index > size(). |
| virtual void activemq::util::PrimitiveList::setDouble | ( | int | index, | |
| double | value | |||
| ) | [virtual] |
Sets the value at the given index to the new value specified, this method overwrites any data that was previously at the index given, but does not insert a new element if the index is greater than the size of the list.
| index | - location to set in the list | |
| value | - the new value to assign to the element at index |
| IndexOutOfBoundsException | if index > size(). |
| virtual void activemq::util::PrimitiveList::setFloat | ( | int | index, | |
| float | value | |||
| ) | [virtual] |
Sets the value at the given index to the new value specified, this method overwrites any data that was previously at the index given, but does not insert a new element if the index is greater than the size of the list.
| index | - location to set in the list | |
| value | - the new value to assign to the element at index |
| IndexOutOfBoundsException | if index > size(). |
| virtual void activemq::util::PrimitiveList::setInt | ( | int | index, | |
| int | value | |||
| ) | [virtual] |
Sets the value at the given index to the new value specified, this method overwrites any data that was previously at the index given, but does not insert a new element if the index is greater than the size of the list.
| index | - location to set in the list | |
| value | - the new value to assign to the element at index |
| IndexOutOfBoundsException | if index > size(). |
| virtual void activemq::util::PrimitiveList::setLong | ( | int | index, | |
| long long | value | |||
| ) | [virtual] |
Sets the value at the given index to the new value specified, this method overwrites any data that was previously at the index given, but does not insert a new element if the index is greater than the size of the list.
| index | - location to set in the list | |
| value | - the new value to assign to the element at index |
| IndexOutOfBoundsException | if index > size(). |
| virtual void activemq::util::PrimitiveList::setShort | ( | int | index, | |
| short | value | |||
| ) | [virtual] |
Sets the value at the given index to the new value specified, this method overwrites any data that was previously at the index given, but does not insert a new element if the index is greater than the size of the list.
| index | - location to set in the list | |
| value | - the new value to assign to the element at index |
| IndexOutOfBoundsException | if index > size(). |
| virtual void activemq::util::PrimitiveList::setString | ( | int | index, | |
| const std::string & | value | |||
| ) | [virtual] |
Sets the value at the given index to the new value specified, this method overwrites any data that was previously at the index given, but does not insert a new element if the index is greater than the size of the list.
| index | - location to set in the list | |
| value | - the new value to assign to the element at index |
| IndexOutOfBoundsException | if index > size(). |
| std::string activemq::util::PrimitiveList::toString | ( | ) | const |
Converts the contents into a formatted string that can be output in a Log File or other debugging tool.
1.6.1