DGtal
0.9.3
|
#include <DGtal/kernel/domains/HyperRectDomain.h>
Public Types | |
typedef HyperRectDomain_subIterator< Point > | ConstIterator |
typedef myreverse_iterator< ConstIterator > | ConstReverseIterator |
Public Member Functions | |
ConstSubRange (const HyperRectDomain< TSpace > &domain, const std::vector< Dimension > &permutation, const Point &startingPoint) | |
ConstSubRange (const HyperRectDomain< TSpace > &domain, std::initializer_list< Dimension > permutation, const Point &startingPoint) | |
ConstSubRange (const HyperRectDomain< TSpace > &domain, Dimension adim, const Point &startingPoint) | |
ConstSubRange (const HyperRectDomain< TSpace > &domain, Dimension adim1, Dimension adim2, const Point &startingPoint) | |
ConstSubRange (const HyperRectDomain< TSpace > &domain, Dimension adim1, Dimension adim2, Dimension adim3, const Point &startingPoint) | |
ConstIterator | begin () const |
ConstIterator | begin (const Point &aPoint) const |
ConstIterator | end () const |
ConstReverseIterator | rbegin () const |
ConstReverseIterator | rbegin (const Point &aPoint) const |
ConstReverseIterator | rend () const |
Private Attributes | |
Point | myLowerBound |
Point | myUpperBound |
Point | myStartingPoint |
std::vector< Dimension > | myPermutation |
Aim: range through some subdomain of all the points in the domain. Defines a constructor taking a domain in parameter plus some additional parameters to specify the subdomain, begin and end methods returning ConstIterator, and rbegin and rend methods returning ConstReverseIterator.
Description of class 'ConstSubRange'
Definition at line 234 of file HyperRectDomain.h.
typedef HyperRectDomain_subIterator<Point> DGtal::HyperRectDomain< TSpace >::ConstSubRange::ConstIterator |
Definition at line 236 of file HyperRectDomain.h.
typedef myreverse_iterator<ConstIterator> DGtal::HyperRectDomain< TSpace >::ConstSubRange::ConstReverseIterator |
Definition at line 237 of file HyperRectDomain.h.
|
inline |
ConstSubRange constructor from a given domain.
domain | the domain. |
permutation | a vector containing the dimensions used for the subrange. Dimensions are iterated in the given order. |
startingPoint | the initial point. |
Definition at line 247 of file HyperRectDomain.h.
References DGtal::HyperRectDomain< TSpace >::isInside(), DGtal::HyperRectDomain< TSpace >::ConstSubRange::myLowerBound, DGtal::HyperRectDomain< TSpace >::ConstSubRange::myPermutation, DGtal::HyperRectDomain< TSpace >::ConstSubRange::myStartingPoint, DGtal::HyperRectDomain< TSpace >::ConstSubRange::myUpperBound, and DGtal::PointVector< dim, TEuclideanRing, TContainer >::partialCopyInv().
Referenced by DGtal::HyperRectDomain< Space >::subRange().
|
inline |
ConstSubRange constructor from a given domain.
domain | the domain. |
permutation | an initializer_list containing the dimensions used for the subrange. Dimensions are iterated in the given order. |
startingPoint | the initial point. |
Definition at line 273 of file HyperRectDomain.h.
References DGtal::HyperRectDomain< TSpace >::isInside(), DGtal::HyperRectDomain< TSpace >::ConstSubRange::myLowerBound, DGtal::HyperRectDomain< TSpace >::ConstSubRange::myPermutation, DGtal::HyperRectDomain< TSpace >::ConstSubRange::myStartingPoint, DGtal::HyperRectDomain< TSpace >::ConstSubRange::myUpperBound, and DGtal::PointVector< dim, TEuclideanRing, TContainer >::partialCopyInv().
|
inline |
ConstSubRange constructor from a given domain for one dimension.
domain | the domain. |
adim | the dimension used for the subrange. |
startingPoint | the initial point. |
Definition at line 301 of file HyperRectDomain.h.
References DGtal::HyperRectDomain< TSpace >::isInside(), DGtal::HyperRectDomain< TSpace >::ConstSubRange::myLowerBound, DGtal::HyperRectDomain< TSpace >::ConstSubRange::myPermutation, DGtal::HyperRectDomain< TSpace >::ConstSubRange::myStartingPoint, DGtal::HyperRectDomain< TSpace >::ConstSubRange::myUpperBound, and DGtal::PointVector< dim, TEuclideanRing, TContainer >::partialCopyInv().
|
inline |
ConstSubRange constructor from a given domain for two dimensions.
domain | the domain. |
adim1 | the first dimension used for the subrange. |
adim2 | the second dimension used for the subrange. |
startingPoint | the initial point. |
Definition at line 326 of file HyperRectDomain.h.
References DGtal::HyperRectDomain< TSpace >::isInside(), DGtal::HyperRectDomain< TSpace >::ConstSubRange::myLowerBound, DGtal::HyperRectDomain< TSpace >::ConstSubRange::myPermutation, DGtal::HyperRectDomain< TSpace >::ConstSubRange::myStartingPoint, DGtal::HyperRectDomain< TSpace >::ConstSubRange::myUpperBound, and DGtal::PointVector< dim, TEuclideanRing, TContainer >::partialCopyInv().
|
inline |
ConstSubRange constructor from a given domain for two dimensions.
domain | the domain. |
adim1 | the first dimension used for the subrange. |
adim2 | the second dimension used for the subrange. |
adim3 | the third dimension used for the subrange. |
startingPoint | the initial point. |
Definition at line 353 of file HyperRectDomain.h.
References DGtal::HyperRectDomain< TSpace >::isInside(), DGtal::HyperRectDomain< TSpace >::ConstSubRange::myLowerBound, DGtal::HyperRectDomain< TSpace >::ConstSubRange::myPermutation, DGtal::HyperRectDomain< TSpace >::ConstSubRange::myStartingPoint, DGtal::HyperRectDomain< TSpace >::ConstSubRange::myUpperBound, and DGtal::PointVector< dim, TEuclideanRing, TContainer >::partialCopyInv().
|
inline |
begin method.
Definition at line 376 of file HyperRectDomain.h.
References DGtal::HyperRectDomain< TSpace >::ConstSubRange::myLowerBound, DGtal::HyperRectDomain< TSpace >::ConstSubRange::myPermutation, and DGtal::HyperRectDomain< TSpace >::ConstSubRange::myUpperBound.
Referenced by DGtal::HyperRectDomain< TSpace >::ConstSubRange::rbegin(), and DGtal::HyperRectDomain< TSpace >::ConstSubRange::rend().
|
inline |
begin method from a given point.
aPoint | the initial point. |
Definition at line 387 of file HyperRectDomain.h.
References DGtal::PointVector< dim, TEuclideanRing, TContainer >::isLower(), DGtal::HyperRectDomain< TSpace >::ConstSubRange::myLowerBound, DGtal::HyperRectDomain< TSpace >::ConstSubRange::myPermutation, DGtal::HyperRectDomain< TSpace >::ConstSubRange::myUpperBound, and DGtal::PointVector< dim, TEuclideanRing, TContainer >::partialEqualInv().
|
inline |
end method.
Definition at line 402 of file HyperRectDomain.h.
References DGtal::HyperRectDomain< TSpace >::ConstSubRange::myLowerBound, DGtal::HyperRectDomain< TSpace >::ConstSubRange::myPermutation, and DGtal::HyperRectDomain< TSpace >::ConstSubRange::myUpperBound.
Referenced by DGtal::HyperRectDomain< TSpace >::ConstSubRange::rbegin().
|
inline |
reverse begin method.
Definition at line 413 of file HyperRectDomain.h.
References DGtal::HyperRectDomain< TSpace >::ConstSubRange::end().
|
inline |
reverse begin method from a given point.
aPoint | the initial point. |
Definition at line 424 of file HyperRectDomain.h.
References DGtal::HyperRectDomain< TSpace >::ConstSubRange::begin().
|
inline |
reverse end method.
Definition at line 435 of file HyperRectDomain.h.
References DGtal::HyperRectDomain< TSpace >::ConstSubRange::begin().
|
private |
Lower bound of the subrange.
Definition at line 442 of file HyperRectDomain.h.
Referenced by DGtal::HyperRectDomain< TSpace >::ConstSubRange::begin(), DGtal::HyperRectDomain< TSpace >::ConstSubRange::ConstSubRange(), DGtal::HyperRectDomain< TSpace >::ConstSubRange::end(), DGtal::HyperRectDomain< Space >::size(), and DGtal::HyperRectDomain< Space >::subRange().
|
private |
Permutation on dimensions used in the subrange.
Definition at line 448 of file HyperRectDomain.h.
Referenced by DGtal::HyperRectDomain< TSpace >::ConstSubRange::begin(), DGtal::HyperRectDomain< TSpace >::ConstSubRange::ConstSubRange(), and DGtal::HyperRectDomain< TSpace >::ConstSubRange::end().
|
private |
Starting point of the subrange.
Definition at line 446 of file HyperRectDomain.h.
Referenced by DGtal::HyperRectDomain< TSpace >::ConstSubRange::ConstSubRange().
|
private |
Upper bound of the subrange.
Definition at line 444 of file HyperRectDomain.h.
Referenced by DGtal::HyperRectDomain< TSpace >::ConstSubRange::begin(), DGtal::HyperRectDomain< TSpace >::ConstSubRange::ConstSubRange(), DGtal::HyperRectDomain< TSpace >::ConstSubRange::end(), and DGtal::HyperRectDomain< Space >::size().