The Integer class inherits from the Tuple class and stores a single integer.
More...
#include <integer.h>
|
| | Integer () |
| | Contructs a Integer object that stores a single integer, initialized to 0.
|
| |
| | Integer (int v) |
| | Contructs a Integer object that stores the specified integer v.
|
| |
| | Integer (const Integer &other) |
| | Constructs a Integer object by copying the value of another Integer object.
|
| |
| void | set (int v) |
| | Sets the value of the Integer object to the provided integer v.
|
| |
| int | get () const |
| | Gets the value of the Integer object and the value could not be changed while accessing it.
|
| |
| | 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.
|
| |
| int * | data () |
| | Gets the data array of the Tuple.
|
| |
| const int * | 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 int *data) |
| | Sets the data array of the Variant.
|
| |
| Tuple< int > & | 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.
|
| |
| | Variant () |
| |
| virtual | ~Variant () |
| |
| const std::string & | type () const |
| |
The Integer class inherits from the Tuple class and stores a single integer.
◆ Integer() [1/3]
| cil::Integer::Integer |
( |
| ) |
|
Contructs a Integer object that stores a single integer, initialized to 0.
◆ Integer() [2/3]
| cil::Integer::Integer |
( |
int | v | ) |
|
Contructs a Integer object that stores the specified integer v.
◆ Integer() [3/3]
| cil::Integer::Integer |
( |
const Integer & | other | ) |
|
Constructs a Integer object by copying the value of another Integer object.
◆ get()
| int cil::Integer::get |
( |
| ) |
const |
Gets the value of the Integer object and the value could not be changed while accessing it.
◆ set()
| void cil::Integer::set |
( |
int | v | ) |
|
Sets the value of the Integer object to the provided integer v.