1#ifndef vector_Index_HPP
2#define vector_Index_HPP "Created 21.05.2006 12:12:12 by werner"
55constexpr inline index_t
clamp(index_t value, index_t range)
57 if (value>range)
return range;
61constexpr inline index_t clamp_m1(index_t value, index_t range)
63 if (value>=range)
return range-1;
67constexpr inline index_t
clamp(index_t low_range, index_t value, index_t high_range)
69 if (value < low_range )
return low_range;
70 if (value > high_range)
return high_range;
constexpr const _Tp & clamp(const _Tp &__val, const _Tp &__lo, const _Tp &__hi)
__gnu_cxx::__promote< _Tp >::__type arg(_Tp __x)
An iterator with an optional DataCreator, which is just a class to intercept creation of data along a...
Definition CreativeIterator.hpp:34
Given a fragmented field of curvilinear coordinates, (3D array of coordinates), build a uniform Grid ...
Definition FAQ.dox:2
constexpr index_t RoundUpToNextHighestPowerOf2(index_t v)
Align a value to the next fitting power of 2.
Definition Index.hpp:43
constexpr int log2(index_t arg)
Compute the logarithm to the basis of two from the given index.
Definition Index.hpp:30
IndexTypeConfig< sizeof(void *)>::index_t index_t
Define the index type as according to the size of a pointer, i.e.
Definition Index.hpp:22