Generated on Tue Apr 18 10:24:01 2017 for Gecode by doxygen 1.6.3

Gecode::Iter::Ranges::Negative< I, strict > Class Template Reference
[Range iterators]

Range iterator for negative part of a range iterator. More...

#include <ranges-negative.hpp>

List of all members.

Protected Attributes

i
 Input iterator.

Constructors and initialization



 Negative (void)
 Default constructor.
 Negative (I &i)
 Initialize with ranges from i.
void init (I &i)
 Initialize with ranges from i.

Iteration control



bool operator() (void) const
 Test whether iterator is still at a range or done.
void operator++ (void)
 Move iterator to next range (if possible).

Range access



int min (void) const
 Return smallest value of range.
int max (void) const
 Return largest value of range.
unsigned int width (void) const
 Return width of range (distance between minimum and maximum).

Detailed Description

template<class I, bool strict = false>
class Gecode::Iter::Ranges::Negative< I, strict >

Range iterator for negative part of a range iterator.

If strict is true, zero is excluded.

Definition at line 51 of file ranges-negative.hpp.


Constructor & Destructor Documentation

template<class I , bool strict>
Gecode::Iter::Ranges::Negative< I, strict >::Negative ( void   )  [inline]

Default constructor.

Definition at line 88 of file ranges-negative.hpp.

template<class I , bool strict>
Gecode::Iter::Ranges::Negative< I, strict >::Negative ( I &  i  )  [inline]

Initialize with ranges from i.

Definition at line 98 of file ranges-negative.hpp.


Member Function Documentation

template<class I , bool strict>
void Gecode::Iter::Ranges::Negative< I, strict >::init ( I &  i  )  [inline]

Initialize with ranges from i.

Definition at line 92 of file ranges-negative.hpp.

template<class I , bool strict>
bool Gecode::Iter::Ranges::Negative< I, strict >::operator() ( void   )  const [inline]

Test whether iterator is still at a range or done.

Definition at line 107 of file ranges-negative.hpp.

template<class I , bool strict>
void Gecode::Iter::Ranges::Negative< I, strict >::operator++ ( void   )  [inline]

Move iterator to next range (if possible).

Definition at line 102 of file ranges-negative.hpp.

template<class I , bool strict>
int Gecode::Iter::Ranges::Negative< I, strict >::min ( void   )  const [inline]

Return smallest value of range.

Definition at line 117 of file ranges-negative.hpp.

template<class I , bool strict>
int Gecode::Iter::Ranges::Negative< I, strict >::max ( void   )  const [inline]

Return largest value of range.

Definition at line 122 of file ranges-negative.hpp.

template<class I , bool strict>
unsigned int Gecode::Iter::Ranges::Negative< I, strict >::width ( void   )  const [inline]

Return width of range (distance between minimum and maximum).

Definition at line 131 of file ranges-negative.hpp.


Member Data Documentation

template<class I , bool strict = false>
I Gecode::Iter::Ranges::Negative< I, strict >::i [protected]

Input iterator.

Definition at line 54 of file ranges-negative.hpp.


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