Implementation of object for shared arrays. More...
#include <shared-array.hpp>
Public Member Functions | |
SAO (int n) | |
Allocate for n elements. | |
virtual SharedHandle::Object * | copy (void) const |
Create copy of elements. | |
virtual | ~SAO (void) |
Delete object. | |
T & | operator[] (int i) |
Access element at position i. | |
const T & | operator[] (int i) const |
Access element at position i. | |
int | size (void) const |
Return number of elements. |
Implementation of object for shared arrays.
Gecode::SharedArray::SAO::SAO | ( | int | n | ) | [inline] |
Allocate for n elements.
Definition at line 179 of file shared-array.hpp.
Gecode::SharedArray::SAO::~SAO | ( | void | ) | [virtual] |
Delete object.
Definition at line 193 of file shared-array.hpp.
SharedHandle::Object * Gecode::SharedArray::SAO::copy | ( | void | ) | const [virtual] |
Create copy of elements.
Implements Gecode::SharedHandle::Object.
Definition at line 185 of file shared-array.hpp.
T & Gecode::SharedArray::SAO::operator[] | ( | int | i | ) | [inline] |
Access element at position i.
Definition at line 201 of file shared-array.hpp.
const T & Gecode::SharedArray::SAO::operator[] | ( | int | i | ) | const [inline] |
Access element at position i.
Definition at line 208 of file shared-array.hpp.
int Gecode::SharedArray::SAO::size | ( | void | ) | const [inline] |
Return number of elements.
Definition at line 215 of file shared-array.hpp.