Gecode::ArgArrayBase Gecode::ArgArray< SymmetryHandle > Gecode::ArgArray< class > Gecode::PrimArgArray< class > Gecode::PrimArgArray< FloatVal > Gecode::PrimArgArray< int > array.hpp class T T
Associated types
T typedef T Gecode::ArgArrayBase< T >::value_type value_type Type of the view stored in this array. T & typedef T& Gecode::ArgArrayBase< T >::reference reference Type of a reference to the value type. const T & typedef const T& Gecode::ArgArrayBase< T >::const_reference const_reference Type of a constant reference to the value type. T * typedef T* Gecode::ArgArrayBase< T >::pointer pointer Type of a pointer to the value type. const T * typedef const T* Gecode::ArgArrayBase< T >::const_pointer const_pointer Type of a read-only pointer to the value type. T * typedef T* Gecode::ArgArrayBase< T >::iterator iterator Type of the iterator used to iterate through this array's elements. const T * typedef const T* Gecode::ArgArrayBase< T >::const_iterator const_iterator Type of the iterator used to iterate read-only through this array's elements. std::reverse_iterator< T * > typedef std::reverse_iterator<T*> Gecode::ArgArrayBase< T >::reverse_iterator reverse_iterator Type of the iterator used to iterate backwards through this array's elements. std::reverse_iterator< const T * > typedef std::reverse_iterator<const T*> Gecode::ArgArrayBase< T >::const_reverse_iterator const_reverse_iterator Type of the iterator used to iterate backwards and read-only through this array's elements.
Constructors and initialization
forceinline Gecode::ArgArrayBase< T >::ArgArrayBase (void) ArgArrayBase void Allocate empty array. forceinline Gecode::ArgArrayBase< T >::ArgArrayBase (int n) ArgArrayBase int n Allocate array with n elements. Gecode::ArgArrayBase< T >::ArgArrayBase (const ArgArrayBase< T > &a) ArgArrayBase const ArgArrayBase< T > & a Initialize from argument array a (copy elements) const ArgArrayBase< T > & forceinline const ArgArrayBase< T > & Gecode::ArgArrayBase< T >::operator= (const ArgArrayBase< T > &a) operator= const ArgArrayBase< T > & a Initialize from view array a (copy elements) Gecode::ArgArrayBase< T >::ArgArrayBase (const std::vector< T > &a) ArgArrayBase const std::vector< T > & a Initialize from vector a. class InputIterator Gecode::ArgArrayBase< T >::ArgArrayBase (InputIterator first, InputIterator last) ArgArrayBase InputIterator first InputIterator last Initialize from InputIterator begin and end.
Array size
int forceinline int Gecode::ArgArrayBase< T >::size (void) const size void Return size of array (number of elements)
Array elements
T & forceinline T & Gecode::ArgArrayBase< T >::operator[] (int i) operator[] int i Return element at position i. const T & forceinline const T & Gecode::ArgArrayBase< T >::operator[] (int i) const operator[] int i Return element at position i.
Array iteration
iterator forceinline ArgArrayBase< T >::iterator Gecode::ArgArrayBase< T >::begin (void) begin void Return an iterator at the beginning of the array. const_iterator forceinline ArgArrayBase< T >::const_iterator Gecode::ArgArrayBase< T >::begin (void) const begin void Return a read-only iterator at the beginning of the array. iterator forceinline ArgArrayBase< T >::iterator Gecode::ArgArrayBase< T >::end (void) end void Return an iterator past the end of the array. const_iterator forceinline ArgArrayBase< T >::const_iterator Gecode::ArgArrayBase< T >::end (void) const end void Return a read-only iterator past the end of the array. reverse_iterator forceinline ArgArrayBase< T >::reverse_iterator Gecode::ArgArrayBase< T >::rbegin (void) rbegin void Return a reverse iterator at the end of the array. const_reverse_iterator forceinline ArgArrayBase< T >::const_reverse_iterator Gecode::ArgArrayBase< T >::rbegin (void) const rbegin void Return a reverse and read-only iterator at the end of the array. reverse_iterator forceinline ArgArrayBase< T >::reverse_iterator Gecode::ArgArrayBase< T >::rend (void) rend void Return a reverse iterator past the beginning of the array. const_reverse_iterator forceinline ArgArrayBase< T >::const_reverse_iterator Gecode::ArgArrayBase< T >::rend (void) const rend void Return a reverse and read-only iterator past the beginning of the array.
Destructor
forceinline Gecode::ArgArrayBase< T >::~ArgArrayBase (void) ~ArgArrayBase void Destructor.
int int Gecode::ArgArrayBase< T >::n n Number of elements. int int Gecode::ArgArrayBase< T >::capacity capacity Allocated size of the array. T * T* Gecode::ArgArrayBase< T >::a a Element array. T T Gecode::ArgArrayBase< T >::onstack[onstack_size] [onstack_size] onstack In-array storage for elements. const int const int Gecode::ArgArrayBase< T >::onstack_size onstack_size = 16 How many elements are possible inside array. T * forceinline T * Gecode::ArgArrayBase< T >::allocate (int n) allocate int n Allocate memory for n elements. void forceinline void Gecode::ArgArrayBase< T >::resize (int i) resize int i Resize to hold at least i additional elements. class A A A Gecode::ArgArrayBase< T >::concat (const ArgArrayBase< T > &x) const concat const ArgArrayBase< T > & x Return this array concatenated with x. class A A A Gecode::ArgArrayBase< T >::concat (const T &x) const concat const T & x Return this array concatenated with x. class A A & A & Gecode::ArgArrayBase< T >::append (const T &x) append const T & x Insert a new element x at the end of the array (increase size by 1) class A A & A & Gecode::ArgArrayBase< T >::append (const ArgArrayBase< T > &x) append const ArgArrayBase< T > & x Append x to the end of the array. class A A A Gecode::ArgArrayBase< T >::slice (int start, int inc=1, int n=-1) slice int start int inc 1 int n -1 Return slice $y$ of length at most n such that forall $0\leq i<n$, $y_i=x_{\text{start}+i\cdot\text{inc}}$If n is -1, then all possible elements starting from start with increment inc are returned. void * forceinline void * Gecode::ArgArrayBase< T >::operator new (size_t) operator new size_t void forceinline void Gecode::ArgArrayBase< T >::operator delete (void *, size_t) operator delete void * size_t class Char class Traits class T std::basic_ostream< Char, Traits > & std::basic_ostream< Char, Traits > & operator<< (std::basic_ostream< Char, Traits > &os, const ArgArrayBase< T > &x) operator<< std::basic_ostream< Char, Traits > & os const ArgArrayBase< T > & x Print array elements enclosed in curly brackets. Base-class for argument arrays. Argument arrays are used as convenient mechanism of passing arguments when calling functions as they combine both the size and the elements of an array. For a small number of elements, memory is allocated by creating an argument array object. Otherwise the memory is allocated from the heap.This base-class is not to be used directly, use PrimArgArray for argument arrays of primitive types, VarArgArray for argument arrays storing variables, and ArgArray for any other type. onstack a Gecode::ArgArrayBasea Gecode::ArgArrayBaseallocate Gecode::ArgArrayBaseappend Gecode::ArgArrayBaseappend Gecode::ArgArrayBaseArgArrayBase Gecode::ArgArrayBaseArgArrayBase Gecode::ArgArrayBaseArgArrayBase Gecode::ArgArrayBaseArgArrayBase Gecode::ArgArrayBaseArgArrayBase Gecode::ArgArrayBasebegin Gecode::ArgArrayBasebegin Gecode::ArgArrayBasecapacity Gecode::ArgArrayBaseconcat Gecode::ArgArrayBaseconcat Gecode::ArgArrayBaseconst_iterator Gecode::ArgArrayBaseconst_pointer Gecode::ArgArrayBaseconst_reference Gecode::ArgArrayBaseconst_reverse_iterator Gecode::ArgArrayBaseend Gecode::ArgArrayBaseend Gecode::ArgArrayBaseiterator Gecode::ArgArrayBasen Gecode::ArgArrayBaseonstack Gecode::ArgArrayBaseonstack_size Gecode::ArgArrayBaseoperator delete Gecode::ArgArrayBaseoperator new Gecode::ArgArrayBaseoperator<< Gecode::ArgArrayBaseoperator= Gecode::ArgArrayBaseoperator[] Gecode::ArgArrayBaseoperator[] Gecode::ArgArrayBasepointer Gecode::ArgArrayBaserbegin Gecode::ArgArrayBaserbegin Gecode::ArgArrayBasereference Gecode::ArgArrayBaserend Gecode::ArgArrayBaserend Gecode::ArgArrayBaseresize Gecode::ArgArrayBasereverse_iterator Gecode::ArgArrayBasesize Gecode::ArgArrayBaseslice Gecode::ArgArrayBasevalue_type Gecode::ArgArrayBase~ArgArrayBase