Gecode::PrimArgArray Gecode::ArgArrayBase< T > array.hpp class
Constructors and initialization
forceinline Gecode::PrimArgArray< T >::PrimArgArray (void) PrimArgArray void Allocate empty array. forceinline Gecode::PrimArgArray< T >::PrimArgArray (int n) PrimArgArray int n Allocate array with n elements. Gecode::PrimArgArray< T >::PrimArgArray (int n, T e0,...) PrimArgArray int n T e0 ... Allocate array with n elements and initialize with e0, ... Gecode::PrimArgArray< T >::PrimArgArray (int n, const T *e) PrimArgArray int n const T * e Allocate array with n elements and initialize with elements from array e. forceinline Gecode::PrimArgArray< T >::PrimArgArray (const PrimArgArray< T > &a) PrimArgArray const PrimArgArray< T > & a Initialize from primitive argument array a (copy elements) forceinline Gecode::PrimArgArray< T >::PrimArgArray (const std::vector< T > &a) PrimArgArray const std::vector< T > & a Initialize from vector a. class InputIterator Gecode::PrimArgArray< class >::PrimArgArray (InputIterator first, InputIterator last) PrimArgArray InputIterator first InputIterator last Initialize from InputIterator first and last.
Array elements
ArrayTraits< PrimArgArray< T > >::ArgsType forceinline ArrayTraits< PrimArgArray< T > >::ArgsType Gecode::PrimArgArray< 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.
Appending elements
ArrayTraits< PrimArgArray< T > >::ArgsType & forceinline ArrayTraits< PrimArgArray< T > >::ArgsType & Gecode::PrimArgArray< T >::operator<< (const T &x) operator<< const T & x Insert a new element x at the end of the array (increase size by 1) ArrayTraits< PrimArgArray< T > >::ArgsType & forceinline ArrayTraits< PrimArgArray< T > >::ArgsType & Gecode::PrimArgArray< T >::operator<< (const PrimArgArray< T > &x) operator<< const PrimArgArray< T > & x Append x to the end of the array.
class InputIterator forceinline forceinline Gecode::PrimArgArray< class >::PrimArgArray (InputIterator first, InputIterator last) PrimArgArray InputIterator first InputIterator last friend ArrayTraits< PrimArgArray< T > >::ArgsType ArrayTraits<PrimArgArray<T> >::ArgsType operator+ (const PrimArgArray< T > &x, const PrimArgArray< T > &y) operator+ const PrimArgArray< T > & x const PrimArgArray< T > & y friend ArrayTraits< PrimArgArray< T > >::ArgsType ArrayTraits<PrimArgArray<T> >::ArgsType operator+ (const PrimArgArray< T > &x, const T &y) operator+ const PrimArgArray< T > & x const T & y friend ArrayTraits< PrimArgArray< T > >::ArgsType ArrayTraits<PrimArgArray<T> >::ArgsType operator+ (const T &x, const PrimArgArray< T > &y) operator+ const T & x const PrimArgArray< T > & y class T ArrayTraits< PrimArgArray< T > >::ArgsType ArrayTraits< PrimArgArray< T > >::ArgsType operator+ (const PrimArgArray< T > &x, const PrimArgArray< T > &y) operator+ const PrimArgArray< T > & x const PrimArgArray< T > & y Concatenate x and y and return result class T ArrayTraits< PrimArgArray< T > >::ArgsType ArrayTraits< PrimArgArray< T > >::ArgsType operator+ (const PrimArgArray< T > &x, const T &y) operator+ const PrimArgArray< T > & x const T & y Concatenate x and y and return result class T ArrayTraits< PrimArgArray< T > >::ArgsType ArrayTraits< PrimArgArray< T > >::ArgsType operator+ (const T &x, const PrimArgArray< T > &y) operator+ const T & x const PrimArgArray< T > & y Concatenate x and y and return result Argument array for primtive types. 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. onstack a Gecode::PrimArgArraya Gecode::PrimArgArrayallocate Gecode::PrimArgArrayappend Gecode::PrimArgArrayappend Gecode::PrimArgArrayArgArrayBase Gecode::PrimArgArrayArgArrayBase Gecode::PrimArgArrayArgArrayBase Gecode::PrimArgArrayArgArrayBase Gecode::PrimArgArrayArgArrayBase Gecode::PrimArgArraybegin Gecode::PrimArgArraybegin Gecode::PrimArgArraycapacity Gecode::PrimArgArrayconcat Gecode::PrimArgArrayconcat Gecode::PrimArgArrayconst_iterator Gecode::PrimArgArrayconst_pointer Gecode::PrimArgArrayconst_reference Gecode::PrimArgArrayconst_reverse_iterator Gecode::PrimArgArrayend Gecode::PrimArgArrayend Gecode::PrimArgArrayiterator Gecode::PrimArgArrayn Gecode::PrimArgArrayonstack Gecode::PrimArgArrayonstack_size Gecode::PrimArgArrayoperator+ Gecode::PrimArgArrayoperator+ Gecode::PrimArgArrayoperator+ Gecode::PrimArgArrayoperator+ Gecode::PrimArgArrayoperator+ Gecode::PrimArgArrayoperator+ Gecode::PrimArgArrayoperator<< Gecode::PrimArgArrayoperator<< Gecode::PrimArgArrayoperator<< Gecode::PrimArgArrayoperator= Gecode::PrimArgArrayoperator[] Gecode::PrimArgArrayoperator[] Gecode::PrimArgArraypointer Gecode::PrimArgArrayPrimArgArray Gecode::PrimArgArrayPrimArgArray Gecode::PrimArgArrayPrimArgArray Gecode::PrimArgArrayPrimArgArray Gecode::PrimArgArrayPrimArgArray Gecode::PrimArgArrayPrimArgArray Gecode::PrimArgArrayPrimArgArray Gecode::PrimArgArrayPrimArgArray Gecode::PrimArgArrayrbegin Gecode::PrimArgArrayrbegin Gecode::PrimArgArrayreference Gecode::PrimArgArrayrend Gecode::PrimArgArrayrend Gecode::PrimArgArrayresize Gecode::PrimArgArrayreverse_iterator Gecode::PrimArgArraysize Gecode::PrimArgArrayslice Gecode::PrimArgArrayvalue_type Gecode::PrimArgArray~ArgArrayBase