Generated on Sat Feb 7 2015 02:01:40 for Gecode by doxygen 1.8.9.1
Gecode::FloatValArgs Class Reference

Passing float arguments. More...

#include <float.hh>

Constructors and initialization

 FloatValArgs (void)
 Allocate empty array. More...
 
 FloatValArgs (int n)
 Allocate array with n elements. More...
 
 FloatValArgs (const SharedArray< FloatVal > &x)
 Allocate array and copy elements from x. More...
 
 FloatValArgs (const std::vector< FloatVal > &x)
 Allocate array and copy elements from x. More...
 
template<class InputIterator >
 FloatValArgs (InputIterator first, InputIterator last)
 Allocate array and copy elements from first to last. More...
 
 FloatValArgs (int n, int e0,...)
 Allocate array with n elements and initialize with e0, ... More...
 
 FloatValArgs (int n, const FloatVal *e)
 Allocate array with n elements and initialize with elements from array e. More...
 
 FloatValArgs (const PrimArgArray< FloatVal > &a)
 Initialize from primitive argument array a (copy elements) More...
 
static FloatValArgs create (int n, FloatVal start, int inc=1)
 Allocate array with n elements such that for all $0\leq i<n: x_i=\text{start}+i\cdot\text{inc}$. More...
 

Additional Inherited Members

- Public Types inherited from Gecode::ArgArrayBase< FloatVal >
typedef FloatVal value_type
 Type of the view stored in this array. More...
 
typedef FloatValreference
 Type of a reference to the value type. More...
 
typedef const FloatValconst_reference
 Type of a constant reference to the value type. More...
 
typedef FloatValpointer
 Type of a pointer to the value type. More...
 
typedef const FloatValconst_pointer
 Type of a read-only pointer to the value type. More...
 
typedef FloatValiterator
 Type of the iterator used to iterate through this array's elements. More...
 
typedef const FloatValconst_iterator
 Type of the iterator used to iterate read-only through this array's elements. More...
 
typedef std::reverse_iterator< FloatVal * > reverse_iterator
 Type of the iterator used to iterate backwards through this array's elements. More...
 
typedef std::reverse_iterator< const FloatVal * > const_reverse_iterator
 Type of the iterator used to iterate backwards and read-only through this array's elements. More...
 
- Public Member Functions inherited from Gecode::PrimArgArray< FloatVal >
 PrimArgArray (void)
 Allocate empty array. More...
 
 PrimArgArray (int n)
 Allocate array with n elements. More...
 
 PrimArgArray (int n, FloatVale0,...)
 Allocate array with n elements and initialize with e0, ... More...
 
 PrimArgArray (int n, const FloatVal *e)
 Allocate array with n elements and initialize with elements from array e. More...
 
 PrimArgArray (const PrimArgArray< FloatVal > &a)
 Initialize from primitive argument array a (copy elements) More...
 
 PrimArgArray (const std::vector< FloatVal > &a)
 Initialize from vector a. More...
 
 PrimArgArray (InputIterator first, InputIterator last)
 Initialize from InputIterator first and last. More...
 
ArrayTraits< PrimArgArray< FloatVal > >::ArgsType slice (int start, int inc=1, int n=-1)
 
ArrayTraits< PrimArgArray< FloatVal > >::ArgsType & operator<< (const FloatVal &x)
 Insert a new element x at the end of the array (increase size by 1) More...
 
ArrayTraits< PrimArgArray< FloatVal > >::ArgsType & operator<< (const PrimArgArray< FloatVal > &x)
 Append x to the end of the array. More...
 
- Public Member Functions inherited from Gecode::ArgArrayBase< FloatVal >
 ArgArrayBase (void)
 Allocate empty array. More...
 
 ArgArrayBase (int n)
 Allocate array with n elements. More...
 
 ArgArrayBase (const ArgArrayBase< FloatVal > &a)
 Initialize from argument array a (copy elements) More...
 
 ArgArrayBase (const std::vector< FloatVal > &a)
 Initialize from vector a. More...
 
 ArgArrayBase (InputIterator first, InputIterator last)
 Initialize from InputIterator begin and end. More...
 
const ArgArrayBase< FloatVal > & operator= (const ArgArrayBase< FloatVal > &a)
 Initialize from view array a (copy elements) More...
 
int size (void) const
 Return size of array (number of elements) More...
 
FloatValoperator[] (int i)
 Return element at position i. More...
 
const FloatValoperator[] (int i) const
 Return element at position i. More...
 
iterator begin (void)
 Return an iterator at the beginning of the array. More...
 
const_iterator begin (void) const
 Return a read-only iterator at the beginning of the array. More...
 
iterator end (void)
 Return an iterator past the end of the array. More...
 
const_iterator end (void) const
 Return a read-only iterator past the end of the array. More...
 
reverse_iterator rbegin (void)
 Return a reverse iterator at the end of the array. More...
 
const_reverse_iterator rbegin (void) const
 Return a reverse and read-only iterator at the end of the array. More...
 
reverse_iterator rend (void)
 Return a reverse iterator past the beginning of the array. More...
 
const_reverse_iterator rend (void) const
 Return a reverse and read-only iterator past the beginning of the array. More...
 
 ~ArgArrayBase (void)
 Destructor. More...
 
- Protected Member Functions inherited from Gecode::ArgArrayBase< FloatVal >
FloatValallocate (int n)
 Allocate memory for n elements. More...
 
void resize (int i)
 Resize to hold at least i additional elements. More...
 
concat (const ArgArrayBase< FloatVal > &x) const
 Return this array concatenated with x. More...
 
concat (const FloatVal &x) const
 Return this array concatenated with x. More...
 
A & append (const FloatVal &x)
 Insert a new element x at the end of the array (increase size by 1) More...
 
A & append (const ArgArrayBase< FloatVal > &x)
 Append x to the end of the array. More...
 
slice (int start, int inc=1, int n=-1)
 
- Protected Attributes inherited from Gecode::ArgArrayBase< FloatVal >
int n
 Number of elements. More...
 
int capacity
 Allocated size of the array. More...
 
FloatVala
 Element array. More...
 
FloatVal onstack [onstack_size]
 In-array storage for elements. More...
 
- Static Protected Attributes inherited from Gecode::ArgArrayBase< FloatVal >
static const int onstack_size
 How many elements are possible inside array. More...
 

Detailed Description

Passing float arguments.

Definition at line 937 of file float.hh.

Constructor & Destructor Documentation

Gecode::FloatValArgs::FloatValArgs ( void  )
inline

Allocate empty array.

Definition at line 48 of file array.hpp.

Gecode::FloatValArgs::FloatValArgs ( int  n)
inlineexplicit

Allocate array with n elements.

Definition at line 51 of file array.hpp.

Gecode::FloatValArgs::FloatValArgs ( const SharedArray< FloatVal > &  x)
inline

Allocate array and copy elements from x.

Definition at line 54 of file array.hpp.

Gecode::FloatValArgs::FloatValArgs ( const std::vector< FloatVal > &  x)
inline

Allocate array and copy elements from x.

Definition at line 60 of file array.hpp.

template<class InputIterator >
Gecode::FloatValArgs::FloatValArgs ( InputIterator  first,
InputIterator  last 
)
inline

Allocate array and copy elements from first to last.

Definition at line 64 of file array.hpp.

Gecode::FloatValArgs::FloatValArgs ( int  n,
int  e0,
  ... 
)

Allocate array with n elements and initialize with e0, ...

Definition at line 44 of file array.cpp.

Gecode::FloatValArgs::FloatValArgs ( int  n,
const FloatVal e 
)
inline

Allocate array with n elements and initialize with elements from array e.

Definition at line 68 of file array.hpp.

Gecode::FloatValArgs::FloatValArgs ( const PrimArgArray< FloatVal > &  a)
inline

Initialize from primitive argument array a (copy elements)

Definition at line 72 of file array.hpp.

Member Function Documentation

FloatValArgs Gecode::FloatValArgs::create ( int  n,
FloatVal  start,
int  inc = 1 
)
inlinestatic

Allocate array with n elements such that for all $0\leq i<n: x_i=\text{start}+i\cdot\text{inc}$.

Definition at line 75 of file array.hpp.


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