Gecode::SharedArray< T >::SAO Class Reference
Inherits Gecode::SharedHandle::Object.
Detailed Description
template<class T>
class Gecode::SharedArray< T >::SAO
Implementation of object for shared arrays.
Definition at line 56 of file shared-array.icc.
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. |
Constructor & Destructor Documentation
template<class T>
Gecode::SharedArray< T >::SAO::SAO | ( | int | n | ) | [inline] |
template<class T>
Gecode::SharedArray< T >::SAO::~SAO | ( | void | ) | [inline, virtual] |
Member Function Documentation
template<class T>
SharedHandle::Object * Gecode::SharedArray< T >::SAO::copy | ( | void | ) | const [inline, virtual] |
Create copy of elements.
Implements Gecode::SharedHandle::Object.
Definition at line 144 of file shared-array.icc.
template<class T>
T & Gecode::SharedArray< T >::SAO::operator[] | ( | int | i | ) | [inline] |
template<class T>
const T & Gecode::SharedArray< T >::SAO::operator[] | ( | int | i | ) | const [inline] |
template<class T>
int Gecode::SharedArray< T >::SAO::size | ( | void | ) | const [inline] |
The documentation for this class was generated from the following file:
- gecode/kernel/shared-array.icc (Revision: 5290)