Generated on Tue Sep 25 2012 20:53:26 for Gecode by doxygen 1.7.5
Gecode::SharedArray::SAO Class Reference

Implementation of object for shared arrays. More...

#include <shared-array.hpp>

List of all members.

Public Member Functions

 SAO (int n)
 Allocate for n elements.
virtual SharedHandle::Objectcopy (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.

Detailed Description

Implementation of object for shared arrays.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.


The documentation for this class was generated from the following file: