Generated on Sat Feb 7 2015 02:01:41 for Gecode by doxygen 1.8.9.1
Gecode::SharedArray< T >::SAO Class Reference

Implementation of object for shared arrays. More...

#include <shared-array.hpp>

Public Member Functions

 SAO (int n)
 Allocate for n elements. More...
 
virtual SharedHandle::Objectcopy (void) const
 Create copy of elements. More...
 
virtual ~SAO (void)
 Delete object. More...
 
T & operator[] (int i)
 Access element at position i. More...
 
const T & operator[] (int i) const
 Access element at position i. More...
 
int size (void) const
 Return number of elements. More...
 
T * begin (void)
 Return beginning of array (for iterators) More...
 
const T * begin (void) const
 Return beginning of array (for iterators) More...
 
T * end (void)
 Return end of array (for iterators) More...
 
const T * end (void) const
 Return end of array (for iterators) More...
 
- Public Member Functions inherited from Gecode::SharedHandle::Object
 Object (void)
 Initialize. More...
 
virtual ~Object (void)
 Delete shared object. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Gecode::SharedHandle::Object
static void * operator new (size_t s)
 Allocate memory from heap. More...
 
static void operator delete (void *p)
 Free memory allocated from heap. More...
 

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

template<class T >
Gecode::SharedArray< T >::SAO::~SAO ( void  )
virtual

Delete object.

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

Member Function Documentation

template<class T >
SharedHandle::Object * Gecode::SharedArray< T >::SAO::copy ( void  ) const
virtual

Create copy of elements.

Implements Gecode::SharedHandle::Object.

Definition at line 194 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 210 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 217 of file shared-array.hpp.

template<class T >
int Gecode::SharedArray< T >::SAO::size ( void  ) const
inline

Return number of elements.

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

template<class T >
T * Gecode::SharedArray< T >::SAO::begin ( void  )
inline

Return beginning of array (for iterators)

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

template<class T >
const T * Gecode::SharedArray< T >::SAO::begin ( void  ) const
inline

Return beginning of array (for iterators)

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

template<class T >
T * Gecode::SharedArray< T >::SAO::end ( void  )
inline

Return end of array (for iterators)

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

template<class T >
const T * Gecode::SharedArray< T >::SAO::end ( void  ) const
inline

Return end of array (for iterators)

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


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