Generated on Thu Apr 11 14:00:12 2019 for Gecode by doxygen 1.6.3

Gecode::Support::DynamicArray< T, A > Class Template Reference
[Support algorithms and datastructures]

Array with arbitrary number of elements. More...

#include <dynamic-array.hpp>

List of all members.

Public Member Functions

 DynamicArray (A &a0, int n=32)
 Initialize with size n.
 DynamicArray (A &a0, unsigned int n)
 Initialize with size n.
 DynamicArray (const DynamicArray< T, A > &da)
 Copy elements from array da.
 ~DynamicArray (void)
 Release memory.
const DynamicArray< T, A > & operator= (const DynamicArray< T, A > &da)
 Assign array (copy elements from a).
T & operator[] (int i)
 Return element at position i (possibly resize).
T & operator[] (unsigned int i)
 Return element at position i (possibly resize).
const T & operator[] (int i) const
 Return element at position i.
const T & operator[] (unsigned int i) const
 Return element at position i.
 operator T * (void)
 Cast in to pointer of type T.

Detailed Description

template<class T, class A>
class Gecode::Support::DynamicArray< T, A >

Array with arbitrary number of elements.

Definition at line 44 of file dynamic-array.hpp.


Constructor & Destructor Documentation

template<class T , class A>
Gecode::Support::DynamicArray< T, A >::DynamicArray ( A &  a0,
int  n = 32 
) [inline]

Initialize with size n.

Definition at line 83 of file dynamic-array.hpp.

template<class T , class A>
Gecode::Support::DynamicArray< T, A >::DynamicArray ( A &  a0,
unsigned int  n 
) [inline]

Initialize with size n.

Definition at line 88 of file dynamic-array.hpp.

template<class T, class A>
Gecode::Support::DynamicArray< T, A >::DynamicArray ( const DynamicArray< T, A > &  da  )  [inline]

Copy elements from array da.

Definition at line 93 of file dynamic-array.hpp.

template<class T , class A >
Gecode::Support::DynamicArray< T, A >::~DynamicArray ( void   )  [inline]

Release memory.

Definition at line 100 of file dynamic-array.hpp.


Member Function Documentation

template<class T, class A>
const DynamicArray< T, A > & Gecode::Support::DynamicArray< T, A >::operator= ( const DynamicArray< T, A > &  da  )  [inline]

Assign array (copy elements from a).

Definition at line 106 of file dynamic-array.hpp.

template<class T , class A >
T & Gecode::Support::DynamicArray< T, A >::operator[] ( int  i  )  [inline]

Return element at position i (possibly resize).

Definition at line 126 of file dynamic-array.hpp.

template<class T , class A >
T & Gecode::Support::DynamicArray< T, A >::operator[] ( unsigned int  i  )  [inline]

Return element at position i (possibly resize).

Definition at line 134 of file dynamic-array.hpp.

template<class T , class A >
const T & Gecode::Support::DynamicArray< T, A >::operator[] ( int  i  )  const [inline]

Return element at position i.

Definition at line 140 of file dynamic-array.hpp.

template<class T , class A >
const T & Gecode::Support::DynamicArray< T, A >::operator[] ( unsigned int  i  )  const [inline]

Return element at position i.

Definition at line 147 of file dynamic-array.hpp.

template<class T , class A >
Gecode::Support::DynamicArray< T, A >::operator T * ( void   )  [inline]

Cast in to pointer of type T.

Definition at line 153 of file dynamic-array.hpp.


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