The Tuple is a templated class inheriting from the most basic class Variant. More...
#include <tuple.h>
Public Member Functions | |
| Tuple (int size) | |
| Constructs a Tuple object with a specified number of elements, and initialize all elements to 0. | |
| virtual | ~Tuple () |
| int | size () const |
| Gets the number of elements of the Tuple. | |
| T * | data () |
| Gets the data array of the Tuple. | |
| const T * | data () const |
| Gets the data array of the Tuple, and the data could not be modified upon which this function is called. | |
| void | setData (const T *data) |
| Sets the data array of the Variant. | |
| Tuple< T > & | operator= (const Tuple &other) |
| Copys the data of another Tuple to the one on which the operator is invoked. | |
| bool | operator== (const Tuple &other) const |
| Compares the Tuple with another one, and returns true if they are equal, otherwise returns false. | |
| bool | operator!= (const Tuple &other) const |
| Compares the Tuple with another one, and returns false if they are equal, otherwise returns true. | |
Public Member Functions inherited from cil::Variant | |
| Variant () | |
| virtual | ~Variant () |
| const std::string & | type () const |
Protected Attributes | |
| T * | m_data |
| The data array of the Tuple. | |
| int | m_size |
| The number of elements that the data array of the Tuple holds. | |
Protected Attributes inherited from cil::Variant | |
| std::string | m_type |
The Tuple is a templated class inheriting from the most basic class Variant.
|
inline |
Constructs a Tuple object with a specified number of elements, and initialize all elements to 0.
|
inlinevirtual |
|
inline |
Gets the data array of the Tuple.
|
inline |
Gets the data array of the Tuple, and the data could not be modified upon which this function is called.
|
inline |
Compares the Tuple with another one, and returns false if they are equal, otherwise returns true.
|
inline |
Copys the data of another Tuple to the one on which the operator is invoked.
|
inline |
Compares the Tuple with another one, and returns true if they are equal, otherwise returns false.
|
inline |
Sets the data array of the Variant.
|
inline |
Gets the number of elements of the Tuple.
|
protected |
The data array of the Tuple.
|
protected |
The number of elements that the data array of the Tuple holds.