|
Sparksee 6.1.0
|
ValueArray class. More...
#include <ValueArray.h>


Public Member Functions | |
| void | Get (int32_t index, Value &value) const throw (sparksee::gdb::WrongArgumentError, sparksee::gdb::AppError) |
| Get a Value from the array. | |
| void | Set (int32_t index, const Value &value) throw (sparksee::gdb::WrongArgumentError, sparksee::gdb::AppError) |
| Set a Value to a specific array position. | |
| void | Set (const Value &value) throw (sparksee::gdb::WrongArgumentError, sparksee::gdb::AppError) |
| Set a Value to the whole array. | |
| void | MakeNull () throw (sparksee::gdb::AppError) |
| Sets the attribute array to Null. | |
| virtual | ~ValueArray () |
| Destructor. | |
| int32_t | Size () const |
| Returns the array size. | |
| void | GetDouble (std::vector< sparksee::gdb::double64_t > &values) const throw (sparksee::gdb::AppError, sparksee::gdb::UnsupportedOperationError) |
| Get all the values from this double array. | |
| void | GetDouble (int32_t index, int32_t size, std::vector< sparksee::gdb::double64_t > &values) const throw (sparksee::gdb::WrongArgumentError, sparksee::gdb::UnsupportedOperationError, sparksee::gdb::AppError) |
| Get a subset of the values from this double array. | |
| void | SetDouble (const std::vector< sparksee::gdb::double64_t > &values) throw (sparksee::gdb::UnsupportedOperationError, sparksee::gdb::AppError) |
| Set all the values of this double array. | |
| void | SetDouble (int32_t index, const std::vector< sparksee::gdb::double64_t > &values) throw (sparksee::gdb::WrongArgumentError, sparksee::gdb::UnsupportedOperationError, sparksee::gdb::AppError) |
| Set a subset of the values of this double array. | |
| void | GetInteger (std::vector< sparksee::gdb::int32_t > &values) const throw (sparksee::gdb::AppError, sparksee::gdb::UnsupportedOperationError) |
| Get all the values from this int array. | |
| void | GetInteger (int32_t index, int32_t size, std::vector< sparksee::gdb::int32_t > &values) const throw (sparksee::gdb::WrongArgumentError, sparksee::gdb::UnsupportedOperationError, sparksee::gdb::AppError) |
| Get a subset of the values from this int array. | |
| void | SetInteger (const std::vector< sparksee::gdb::int32_t > &values) throw (sparksee::gdb::UnsupportedOperationError, sparksee::gdb::AppError) |
| Set all the values of this int array. | |
| void | SetInteger (int32_t index, const std::vector< sparksee::gdb::int32_t > &values) throw (sparksee::gdb::WrongArgumentError, sparksee::gdb::UnsupportedOperationError, sparksee::gdb::AppError) |
| Set a subset of the values of this int array. | |
| void | GetLong (std::vector< sparksee::gdb::int64_t > &values) const throw (sparksee::gdb::AppError, sparksee::gdb::UnsupportedOperationError) |
| Get all the values from this long array. | |
| void | GetLong (int32_t index, int32_t size, std::vector< sparksee::gdb::int64_t > &values) const throw (sparksee::gdb::WrongArgumentError, sparksee::gdb::UnsupportedOperationError, sparksee::gdb::AppError) |
| Get a subset of the values from this long array. | |
| void | SetLong (const std::vector< sparksee::gdb::int64_t > &values) throw (sparksee::gdb::UnsupportedOperationError, sparksee::gdb::AppError) |
| Set all the values of this long array. | |
| void | SetLong (int32_t index, const std::vector< sparksee::gdb::int64_t > &values) throw (sparksee::gdb::WrongArgumentError, sparksee::gdb::UnsupportedOperationError, sparksee::gdb::AppError) |
| Set a subset of the values of this long array. | |
| void | GetBoolean (std::vector< sparksee::gdb::bool_t > &values) const throw (sparksee::gdb::AppError, sparksee::gdb::UnsupportedOperationError) |
| Get all the values from this bool array. | |
| void | GetBoolean (int32_t index, int32_t size, std::vector< sparksee::gdb::bool_t > &values) const throw (sparksee::gdb::WrongArgumentError, sparksee::gdb::UnsupportedOperationError, sparksee::gdb::AppError) |
| Get a subset of the values from this bool array. | |
| void | SetBoolean (const std::vector< sparksee::gdb::bool_t > &values) throw (sparksee::gdb::UnsupportedOperationError, sparksee::gdb::AppError) |
| Set all the values of this bool array. | |
| void | SetBoolean (int32_t index, const std::vector< sparksee::gdb::bool_t > &values) throw (sparksee::gdb::WrongArgumentError, sparksee::gdb::UnsupportedOperationError, sparksee::gdb::AppError) |
| Set a subset of the values of this bool array. | |
| void | GetTimestamp (std::vector< sparksee::gdb::int64_t > &values) const throw (sparksee::gdb::AppError, sparksee::gdb::UnsupportedOperationError) |
| Get all the values from this timestamp array. | |
| void | GetTimestamp (int32_t index, int32_t size, std::vector< sparksee::gdb::int64_t > &values) const throw (sparksee::gdb::WrongArgumentError, sparksee::gdb::UnsupportedOperationError, sparksee::gdb::AppError) |
| Get a subset of the values from this timestamp array. | |
| void | SetTimestamp (const std::vector< sparksee::gdb::int64_t > &values) throw (sparksee::gdb::UnsupportedOperationError, sparksee::gdb::AppError) |
| Set all the values of this timestamp array. | |
| void | SetTimestamp (int32_t index, const std::vector< sparksee::gdb::int64_t > &values) throw (sparksee::gdb::WrongArgumentError, sparksee::gdb::UnsupportedOperationError, sparksee::gdb::AppError) |
| Set a subset of the values of this timestamp array. | |
| void | GetOID (std::vector< sparksee::gdb::oid_t > &values) const throw (sparksee::gdb::AppError, sparksee::gdb::UnsupportedOperationError) |
| Get all the values from this oid array. | |
| void | GetOID (int32_t index, int32_t size, std::vector< sparksee::gdb::oid_t > &values) const throw (sparksee::gdb::WrongArgumentError, sparksee::gdb::UnsupportedOperationError, sparksee::gdb::AppError) |
| Get a subset of the values from this oid array. | |
| void | SetOID (const std::vector< sparksee::gdb::oid_t > &values) throw (sparksee::gdb::UnsupportedOperationError, sparksee::gdb::AppError) |
| Set all the values of this oid array. | |
| void | SetOID (int32_t index, const std::vector< sparksee::gdb::oid_t > &values) throw (sparksee::gdb::WrongArgumentError, sparksee::gdb::UnsupportedOperationError, sparksee::gdb::AppError) |
| Set a subset of the values of this oid array. | |
Friends | |
| class | Graph |
ValueArray class.
It allows for getting and setting ValueArray attribute values.
It is very important to close the ValueArray once no more get or set operations will be performed.
Creation of a new ValueArray: (i) Set all the ValueArray elements using Graph::SetAttributeArray (ii) perform as many get/set operations as you need to the ValueArray instance. Lastly, (iii) Close the ValueArray
Use of an existing ValueArray: (i) Get a ValueArray instance using Graph::GetAttributeArray (ii) perform as many get/set operations as you need to the ValueArray instance. Lastly, (iii) Close the ValueArray
Check out the 'Attributes and values' section in the SPARKSEE User Manual for more details on this.
| void ValueArray::Get | ( | int32_t | index, | |||
| Value & | value ) const | |||||
| throw | ( | sparksee::gdb::WrongArgumentError, | ||||
| sparksee::gdb::AppError ) | ||||||
Get a Value from the array.
| index | [in] Position of the element to get [0..N-1] |
| value | [out] Value to get the array element |
| WrongArgumentError | If the index is out of range or the Value not valid |
| AppError | If the ValueArray is not available |
| void ValueArray::GetBoolean | ( | int32_t | index, | |||
| int32_t | size, | |||||
| std::vector< sparksee::gdb::bool_t > & | values ) const | |||||
| throw | ( | sparksee::gdb::WrongArgumentError, | ||||
| sparksee::gdb::UnsupportedOperationError, | ||||||
| sparksee::gdb::AppError ) | ||||||
Get a subset of the values from this bool array.
| index | [in] Position of the first element to get [0..N-1] |
| size | [in] Number of elements to get [1..N] |
| values | [out] All the requested values will be returned here |
| WrongArgumentError | If the index or size is out of range |
| UnsupportedOperationError | If array DataType is not bool |
| AppError | If the ValueArray is not available |
References GetBoolean().
| void ValueArray::GetBoolean | ( | std::vector< sparksee::gdb::bool_t > & | values | ) | const | |
| throw | ( | sparksee::gdb::AppError, | ||||
| sparksee::gdb::UnsupportedOperationError ) | ||||||
Get all the values from this bool array.
| values | [out] All the values will be returned here |
| AppError | If the ValueArray is not available |
| UnsupportedOperationError | If array DataType is not bool |
References GetBoolean().
Referenced by GetBoolean(), and GetBoolean().
| void ValueArray::GetDouble | ( | int32_t | index, | |||
| int32_t | size, | |||||
| std::vector< sparksee::gdb::double64_t > & | values ) const | |||||
| throw | ( | sparksee::gdb::WrongArgumentError, | ||||
| sparksee::gdb::UnsupportedOperationError, | ||||||
| sparksee::gdb::AppError ) | ||||||
Get a subset of the values from this double array.
| index | [in] Position of the first element to get [0..N-1] |
| size | [in] Number of elements to get [1..N] |
| values | [out] All the requested values will be returned here |
| WrongArgumentError | If the index or size is out of range |
| UnsupportedOperationError | If array DataType is not Double |
| AppError | If the ValueArray is not available |
References GetDouble().
| void ValueArray::GetDouble | ( | std::vector< sparksee::gdb::double64_t > & | values | ) | const | |
| throw | ( | sparksee::gdb::AppError, | ||||
| sparksee::gdb::UnsupportedOperationError ) | ||||||
Get all the values from this double array.
| values | [out] All the values will be returned here |
| AppError | If the ValueArray is not available |
| UnsupportedOperationError | If array DataType is not Double |
References GetDouble().
Referenced by GetDouble(), and GetDouble().
| void ValueArray::GetInteger | ( | int32_t | index, | |||
| int32_t | size, | |||||
| std::vector< sparksee::gdb::int32_t > & | values ) const | |||||
| throw | ( | sparksee::gdb::WrongArgumentError, | ||||
| sparksee::gdb::UnsupportedOperationError, | ||||||
| sparksee::gdb::AppError ) | ||||||
Get a subset of the values from this int array.
| index | [in] Position of the first element to get [0..N-1] |
| size | [in] Number of elements to get [1..N] |
| values | [out] All the requested values will be returned here |
| WrongArgumentError | If the index or size is out of range |
| UnsupportedOperationError | If array DataType is not int |
| AppError | If the ValueArray is not available |
References GetInteger().
| void ValueArray::GetInteger | ( | std::vector< sparksee::gdb::int32_t > & | values | ) | const | |
| throw | ( | sparksee::gdb::AppError, | ||||
| sparksee::gdb::UnsupportedOperationError ) | ||||||
Get all the values from this int array.
| values | [out] All the values will be returned here |
| AppError | If the ValueArray is not available |
| UnsupportedOperationError | If array DataType is not int |
References GetInteger().
Referenced by GetInteger(), and GetInteger().
| void ValueArray::GetLong | ( | int32_t | index, | |||
| int32_t | size, | |||||
| std::vector< sparksee::gdb::int64_t > & | values ) const | |||||
| throw | ( | sparksee::gdb::WrongArgumentError, | ||||
| sparksee::gdb::UnsupportedOperationError, | ||||||
| sparksee::gdb::AppError ) | ||||||
Get a subset of the values from this long array.
| index | [in] Position of the first element to get [0..N-1] |
| size | [in] Number of elements to get [1..N] |
| values | [out] All the requested values will be returned here |
| WrongArgumentError | If the index or size is out of range |
| UnsupportedOperationError | If array DataType is not long |
| AppError | If the ValueArray is not available |
References GetLong().
| void ValueArray::GetLong | ( | std::vector< sparksee::gdb::int64_t > & | values | ) | const | |
| throw | ( | sparksee::gdb::AppError, | ||||
| sparksee::gdb::UnsupportedOperationError ) | ||||||
Get all the values from this long array.
| values | [out] All the values will be returned here |
| AppError | If the ValueArray is not available |
| UnsupportedOperationError | If array DataType is not long |
References GetLong().
| void ValueArray::GetOID | ( | int32_t | index, | |||
| int32_t | size, | |||||
| std::vector< sparksee::gdb::oid_t > & | values ) const | |||||
| throw | ( | sparksee::gdb::WrongArgumentError, | ||||
| sparksee::gdb::UnsupportedOperationError, | ||||||
| sparksee::gdb::AppError ) | ||||||
Get a subset of the values from this oid array.
| index | [in] Position of the first element to get [0..N-1] |
| size | [in] Number of elements to get [1..N] |
| values | [out] All the requested values will be returned here |
| WrongArgumentError | If the index or size is out of range |
| UnsupportedOperationError | If array DataType is not oid |
| AppError | If the ValueArray is not available |
References GetOID().
| void ValueArray::GetOID | ( | std::vector< sparksee::gdb::oid_t > & | values | ) | const | |
| throw | ( | sparksee::gdb::AppError, | ||||
| sparksee::gdb::UnsupportedOperationError ) | ||||||
Get all the values from this oid array.
| values | [out] All the values will be returned here |
| AppError | If the ValueArray is not available |
| UnsupportedOperationError | If array DataType is not oid |
References GetOID().
| void ValueArray::GetTimestamp | ( | int32_t | index, | |||
| int32_t | size, | |||||
| std::vector< sparksee::gdb::int64_t > & | values ) const | |||||
| throw | ( | sparksee::gdb::WrongArgumentError, | ||||
| sparksee::gdb::UnsupportedOperationError, | ||||||
| sparksee::gdb::AppError ) | ||||||
Get a subset of the values from this timestamp array.
| index | [in] Position of the first element to get [0..N-1] |
| size | [in] Number of elements to get [1..N] |
| values | [out] All the requested values will be returned here |
| WrongArgumentError | If the index or size is out of range |
| UnsupportedOperationError | If array DataType is not timestamp |
| AppError | If the ValueArray is not available |
References GetTimestamp().
| void ValueArray::GetTimestamp | ( | std::vector< sparksee::gdb::int64_t > & | values | ) | const | |
| throw | ( | sparksee::gdb::AppError, | ||||
| sparksee::gdb::UnsupportedOperationError ) | ||||||
Get all the values from this timestamp array.
| values | [out] All the values will be returned here |
| AppError | If the ValueArray is not available |
| UnsupportedOperationError | If array DataType is not timestamp |
References GetTimestamp().
Referenced by GetTimestamp(), and GetTimestamp().
| void ValueArray::MakeNull | ( | ) | ||||
| throw | ( | sparksee::gdb::AppError ) | ||||
Sets the attribute array to Null.
The ValueArray can not be used after this call.
| void ValueArray::Set | ( | const Value & | value | ) | ||
| throw | ( | sparksee::gdb::WrongArgumentError, | ||||
| sparksee::gdb::AppError ) | ||||||
Set a Value to the whole array.
| value | [in] Value to set in all the array elements |
| WrongArgumentError | If the Value is not valid |
| AppError | If the ValueArray is not available |
| void ValueArray::Set | ( | int32_t | index, | |||
| const Value & | value ) | |||||
| throw | ( | sparksee::gdb::WrongArgumentError, | ||||
| sparksee::gdb::AppError ) | ||||||
Set a Value to a specific array position.
| index | [in] Position of the element to set [0..N-1] |
| value | [in] Value to set in the array element |
| WrongArgumentError | If the index is out of range or the Value not valid |
| AppError | If the ValueArray is not available |
| void ValueArray::SetBoolean | ( | const std::vector< sparksee::gdb::bool_t > & | values | ) | ||
| throw | ( | sparksee::gdb::UnsupportedOperationError, | ||||
| sparksee::gdb::AppError ) | ||||||
Set all the values of this bool array.
| values | [in] All the values to set |
| AppError | If the ValueArray is not available |
| UnsupportedOperationError | If array DataType is not bool |
References SetBoolean().
Referenced by SetBoolean(), and SetBoolean().
| void ValueArray::SetBoolean | ( | int32_t | index, | |||
| const std::vector< sparksee::gdb::bool_t > & | values ) | |||||
| throw | ( | sparksee::gdb::WrongArgumentError, | ||||
| sparksee::gdb::UnsupportedOperationError, | ||||||
| sparksee::gdb::AppError ) | ||||||
Set a subset of the values of this bool array.
| index | [in] Position of the first element to set [0..N-1] |
| values | [in] All the values to set |
| WrongArgumentError | If the index or size is out of range |
| UnsupportedOperationError | If array DataType is not bool |
| AppError | If the ValueArray is not available |
References SetBoolean().
| void ValueArray::SetDouble | ( | const std::vector< sparksee::gdb::double64_t > & | values | ) | ||
| throw | ( | sparksee::gdb::UnsupportedOperationError, | ||||
| sparksee::gdb::AppError ) | ||||||
Set all the values of this double array.
| values | [in] All the values to set |
| AppError | If the ValueArray is not available |
| UnsupportedOperationError | If array DataType is not Double |
References SetDouble().
Referenced by SetDouble(), and SetDouble().
| void ValueArray::SetDouble | ( | int32_t | index, | |||
| const std::vector< sparksee::gdb::double64_t > & | values ) | |||||
| throw | ( | sparksee::gdb::WrongArgumentError, | ||||
| sparksee::gdb::UnsupportedOperationError, | ||||||
| sparksee::gdb::AppError ) | ||||||
Set a subset of the values of this double array.
| index | [in] Position of the first element to set [0..N-1] |
| values | [in] All the values to set |
| WrongArgumentError | If the index or size is out of range |
| UnsupportedOperationError | If array DataType is not Double |
| AppError | If the ValueArray is not available |
References SetDouble().
| void ValueArray::SetInteger | ( | const std::vector< sparksee::gdb::int32_t > & | values | ) | ||
| throw | ( | sparksee::gdb::UnsupportedOperationError, | ||||
| sparksee::gdb::AppError ) | ||||||
Set all the values of this int array.
| values | [in] All the values to set |
| AppError | If the ValueArray is not available |
| UnsupportedOperationError | If array DataType is not int |
References SetInteger().
Referenced by SetInteger(), and SetInteger().
| void ValueArray::SetInteger | ( | int32_t | index, | |||
| const std::vector< sparksee::gdb::int32_t > & | values ) | |||||
| throw | ( | sparksee::gdb::WrongArgumentError, | ||||
| sparksee::gdb::UnsupportedOperationError, | ||||||
| sparksee::gdb::AppError ) | ||||||
Set a subset of the values of this int array.
| index | [in] Position of the first element to set [0..N-1] |
| values | [in] All the values to set |
| WrongArgumentError | If the index or size is out of range |
| UnsupportedOperationError | If array DataType is not int |
| AppError | If the ValueArray is not available |
References SetInteger().
| void ValueArray::SetLong | ( | const std::vector< sparksee::gdb::int64_t > & | values | ) | ||
| throw | ( | sparksee::gdb::UnsupportedOperationError, | ||||
| sparksee::gdb::AppError ) | ||||||
Set all the values of this long array.
| values | [in] All the values to set |
| AppError | If the ValueArray is not available |
| UnsupportedOperationError | If array DataType is not long |
References SetLong().
| void ValueArray::SetLong | ( | int32_t | index, | |||
| const std::vector< sparksee::gdb::int64_t > & | values ) | |||||
| throw | ( | sparksee::gdb::WrongArgumentError, | ||||
| sparksee::gdb::UnsupportedOperationError, | ||||||
| sparksee::gdb::AppError ) | ||||||
Set a subset of the values of this long array.
| index | [in] Position of the first element to set [0..N-1] |
| values | [in] All the values to set |
| WrongArgumentError | If the index or size is out of range |
| UnsupportedOperationError | If array DataType is not long |
| AppError | If the ValueArray is not available |
References SetLong().
| void ValueArray::SetOID | ( | const std::vector< sparksee::gdb::oid_t > & | values | ) | ||
| throw | ( | sparksee::gdb::UnsupportedOperationError, | ||||
| sparksee::gdb::AppError ) | ||||||
Set all the values of this oid array.
| values | [in] All the values to set |
| AppError | If the ValueArray is not available |
| UnsupportedOperationError | If array DataType is not oid |
References SetOID().
| void ValueArray::SetOID | ( | int32_t | index, | |||
| const std::vector< sparksee::gdb::oid_t > & | values ) | |||||
| throw | ( | sparksee::gdb::WrongArgumentError, | ||||
| sparksee::gdb::UnsupportedOperationError, | ||||||
| sparksee::gdb::AppError ) | ||||||
Set a subset of the values of this oid array.
| index | [in] Position of the first element to set [0..N-1] |
| values | [in] All the values to set |
| WrongArgumentError | If the index or size is out of range |
| UnsupportedOperationError | If array DataType is not oid |
| AppError | If the ValueArray is not available |
References END_SPARKSEE_GDB_NAMESPACE, and SetOID().
| void ValueArray::SetTimestamp | ( | const std::vector< sparksee::gdb::int64_t > & | values | ) | ||
| throw | ( | sparksee::gdb::UnsupportedOperationError, | ||||
| sparksee::gdb::AppError ) | ||||||
Set all the values of this timestamp array.
| values | [in] All the values to set |
| AppError | If the ValueArray is not available |
| UnsupportedOperationError | If array DataType is not timestamp |
References SetTimestamp().
Referenced by SetTimestamp(), and SetTimestamp().
| void ValueArray::SetTimestamp | ( | int32_t | index, | |||
| const std::vector< sparksee::gdb::int64_t > & | values ) | |||||
| throw | ( | sparksee::gdb::WrongArgumentError, | ||||
| sparksee::gdb::UnsupportedOperationError, | ||||||
| sparksee::gdb::AppError ) | ||||||
Set a subset of the values of this timestamp array.
| index | [in] Position of the first element to set [0..N-1] |
| values | [in] All the values to set |
| WrongArgumentError | If the index or size is out of range |
| UnsupportedOperationError | If array DataType is not timestamp |
| AppError | If the ValueArray is not available |
References SetTimestamp().
| int32_t ValueArray::Size | ( | ) | const |