NiHu
2.0
|
template metaprogramming functions More...
Classes | |
struct | accumulate |
accumulate elements of a sequence using a binary metafunction More... | |
struct | and_ |
Conjunction of boolean constants. More... | |
struct | and_< std::false_type, Args... > |
Conjunction of boolean constants. More... | |
struct | and_< std::true_type > |
Conjunction of boolean constants (recursion terminator) More... | |
struct | and_< std::true_type, Args... > |
Conjunction of boolean constants. More... | |
struct | apply |
The apply metafunction shortcut for lambda evaluation. More... | |
struct | arg |
placeholder that selects N-th argument More... | |
struct | arithmetic_sequence |
generate an arithmetic sequence More... | |
struct | at |
return element at a given position More... | |
struct | begin |
return begin iterator of a sequence More... | |
struct | break_point |
A break point consisting of a X and a Y value. More... | |
struct | bubble_sort |
sort a sequence by bubble sort More... | |
struct | bubble_sort< Seq, Compare, integer< int, 0 > > |
terminating case of bubble_sort for short vectors More... | |
struct | clear |
clear a sequence More... | |
struct | concatenate |
concatenate two sequences into a new sequence More... | |
struct | constant_sequence |
generate a constant sequence More... | |
struct | containsPlaceholderExpression |
struct | containsPlaceholderExpressionImpl |
struct | containsPlaceholderExpressionImpl< std::false_type > |
struct | containsPlaceholderExpressionImpl< std::false_type, Args... > |
struct | containsPlaceholderExpressionImpl< std::true_type, Args... > |
struct | copy |
copy elements from a container into an other More... | |
struct | copy_if |
copy elements from a container into an other More... | |
struct | deref |
metafunction to dereference an iterator More... | |
struct | deref< stack_iterator< Seq > > |
specialisation of metafunction tmp::deref for the stack iterator More... | |
struct | deref< vector_iterator< Seq, Pos > > |
dereference a vector iterator More... | |
struct | empty |
return empty sequence More... | |
struct | end |
return end iterator of a sequence More... | |
struct | find |
Find an element in a sequence. More... | |
struct | greater |
General declaration of the greater oparation. More... | |
struct | greater< integer< T, N >, integer< T, M > > |
Metafunction comparing to integers. More... | |
struct | greater< NiHu::asymptotic::inverse< o1 >, NiHu::asymptotic::inverse< o2 > > |
struct | greater< NiHu::asymptotic::inverse< o1 >, NiHu::asymptotic::log< o2 > > |
struct | greater< NiHu::asymptotic::log< o1 >, NiHu::asymptotic::inverse< o2 > > |
struct | greater< NiHu::asymptotic::log< o1 >, NiHu::asymptotic::log< o2 > > |
struct | if_ |
IF control structure. More... | |
struct | inherit |
combine a sequence of classes so that the result is inherited from each element More... | |
struct | inserter |
a compile time inserter More... | |
struct | integer |
integer type representation More... | |
struct | is_member |
return true if the element is member of a sequence More... | |
struct | isPlaceholder |
metafunction returning std::true_type if its argument is a placeholder More... | |
struct | isPlaceholder< arg< N > > |
struct | isPlaceholderExpression |
metafunction returning std::true_type if its argument is a placeholder expression More... | |
struct | isPlaceholderExpression< arg< N > > |
struct | isPlaceholderExpression< MF< Args... > > |
struct | lambda |
generate metafunction class from placeholder expression More... | |
struct | less |
General declaration of the less oparation. More... | |
struct | less< integer< T, N >, integer< T, M > > |
Metafunction comparing to integers. More... | |
struct | less< NiHu::asymptotic::inverse< o1 >, NiHu::asymptotic::inverse< o2 > > |
struct | less< NiHu::asymptotic::inverse< o1 >, NiHu::asymptotic::log< o2 > > |
struct | less< NiHu::asymptotic::log< o1 >, NiHu::asymptotic::inverse< o2 > > |
struct | less< NiHu::asymptotic::log< o1 >, NiHu::asymptotic::log< o2 > > |
struct | max |
maximum of range More... | |
struct | max_ |
Compute maximum of types. More... | |
struct | max_< Val1, Val2 > |
Compute maximum of type, specialisation for two parameters. More... | |
struct | merge_intervals |
Merge two intervals. More... | |
struct | min |
minimum of range More... | |
struct | min_ |
Compute minimum of types. More... | |
struct | min_< Val1, Val2 > |
Compute minimum of types, specialisation for two parameters. More... | |
struct | minus |
binary minus More... | |
struct | minus< integer< T, N >, integer< T, M > > |
Metafunction returning the difference of two integers. More... | |
struct | mul |
binary multiply More... | |
struct | mul< integer< T, N >, integer< T, M > > |
Metafunction returning the multiplicate of two integers. More... | |
struct | next |
increment operator More... | |
struct | next< integer< T, N > > |
Metafunction returning next integer. More... | |
struct | next< stack_iterator< Seq > > |
increment a stack iterator More... | |
struct | next< vector_iterator< Seq, Pos > > |
increment a vector iterator More... | |
struct | not_ |
Boolean negation. More... | |
struct | or_ |
Disjunction of Boolean constants. More... | |
struct | or_< std::false_type, Args... > |
Disjunction of Boolean constants. More... | |
struct | or_< std::true_type, Args... > |
Disjunction of Boolean constants. More... | |
struct | plus |
binary plus More... | |
struct | plus< integer< T, N >, integer< T, M > > |
metafunction returning the sum of two integers More... | |
struct | pop_back |
pop an element from the back More... | |
struct | pop_front |
pop an element from the front More... | |
struct | prev |
decrement operator More... | |
struct | prev< integer< T, N > > |
Metafunction returning previous integer. More... | |
struct | prev< vector_iterator< Seq, Pos > > |
decrement a vector iterator More... | |
struct | push_back |
push an element to the back More... | |
struct | push_front |
push an element to the front More... | |
struct | select_argument |
select N-th argument of a variadic template More... | |
struct | select_argument< 1U, T, Args... > |
terminating case of select_argument More... | |
struct | serialise |
transform sequence of sequences into a flat sequence More... | |
struct | size |
return size More... | |
struct | stack_iterator |
the stack iterator type used by tmp::begin, tmp::end and tmp::deref More... | |
struct | transform |
transform elements in a sequence using a user-specified metafunctor and an inserter More... | |
struct | transform_if_ptr |
conditionally transform elements in a sequence More... | |
struct | unique |
return a vector containing each element of Seq exactly once More... | |
struct | vector |
Compile time vector with an arbitrary number of arguments. More... | |
struct | vector_iterator |
the vector iterator type used by tmp::begin, tmp::end and tmp::deref More... | |
Typedefs | |
typedef std::giga | ratio_infinite |
define giga as the infinite as it fits into 32 bits | |
typedef arg< 1 > | _1 |
shorthand for selecting the 1st argument | |
typedef arg< 2 > | _2 |
shorthand for selecting the 2nd argument | |
typedef arg< 3 > | _3 |
shorthand for selecting the 3rd argument | |
typedef internal::stack_impl< none, none > | empty_stack |
an empty stack | |
Functions | |
template<> | |
int | eval_interval< tmp::vector<> > (double) |
error terminating case of eval_interval | |
template<class interval > | |
int | eval_interval (double r) |
Evaluate an interval at a given distance. More... | |
template metaprogramming functions
int tmp::eval_interval | ( | double | r | ) |
Evaluate an interval at a given distance.
interval | the interval to evaluate |
[in] | r | the scalar distance |
Returns the y value of the first breakpoint of the interval whose x value is greater than the non-dimensional distance r
.
get first break point
Definition at line 174 of file interval.hpp.