Generated on Thu Mar 22 10:39:53 2012 for Gecode by doxygen 1.6.3

Gecode::SharedArray< T >::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

template<class T>
class Gecode::SharedArray< T >::SAO

Implementation of object for shared arrays.

Definition at line 61 of file shared-array.hpp.


Constructor & Destructor Documentation

template<class T >
Gecode::SharedArray< T >::SAO::SAO ( int  n  )  [inline]

Allocate for n elements.

Definition at line 179 of file shared-array.hpp.

template<class T >
Gecode::SharedArray< T >::SAO::~SAO ( void   )  [inline, virtual]

Delete object.

Definition at line 193 of file shared-array.hpp.


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 185 of file shared-array.hpp.

template<class T >
T & Gecode::SharedArray< T >::SAO::operator[] ( int  i  )  [inline]

Access element at position i.

Definition at line 201 of file shared-array.hpp.

template<class T >
const T & Gecode::SharedArray< T >::SAO::operator[] ( int  i  )  const [inline]

Access element at position i.

Definition at line 208 of file shared-array.hpp.

template<class T >
int Gecode::SharedArray< T >::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: