aimstil  5.0.5
miscTools.h File Reference
#include <cassert>
#include <iostream>
#include <limits>
#include <cstdio>
#include "til/cat2type.h"
#include "til/traits.h"
#include "misc_tools.tpp"
Include dependency graph for miscTools.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  til::IntegerRoot< T >
 Compute the N-root of an integer. More...
 
class  til::IntegerRoot< T >::NoRoot
 

Namespaces

 til
 Belongs to package Box Do not include directly, include til/Box.h instead.
 

Enumerations

enum  til::ImageAxis { til::X_AXIS = 0, til::Y_AXIS = 1, til::Z_AXIS = 2 }
 

Functions

template<typename T >
til::findValueOtherThan (T v1, T v2)
 Returns a number (a positive integer) with a different value than the input numbers. More...
 
template<typename T >
til::findValueOtherThan (T v1, T v2, T v3)
 Returns a number (a positive integer) with a different value than the input numbers. More...
 
template<typename T >
til::findValueOtherThan (T v1, T v2, T v3, T v4)
 Returns a number (a positive integer) with a different value than the input numbers. More...
 
template<typename T >
til::findValueOtherThan (T v1, T v2, T v3, T v4, T v5)
 Returns a number (a positive integer) with a different value than the input numbers. More...
 
template<typename TFrom , typename TTo >
TTo til::castValue (TFrom value)
 
TIL_API ImageAxis til::operator++ (ImageAxis &axis)
 
template<typename T >
til::type_min ()
 Returns the min of a type. More...
 
template<typename T >
void til::shift_right (T a, T &b, T &c)
 Shifts value to the right, i.e c = b, b = a. More...
 
template<typename T >
void til::shift_right (T a, T &b, T &c, T &d)
 Shifts value to the right, i.e d = c, c = b, b = a. More...
 
template<typename T >
til::integer_root (T i, std::size_t n)
 Return the n-th root of integer i. More...
 
template<typename T >
void til::sort (T &a, T &b, T &c)
 Sort a, b, c in decreasing order (a>=b>=c). More...
 
TIL_API char * til::mySprintf (const char *format,...)
 
template<typename T >
void til::max_helper (T &maxx, T x)
 Little helper for something often used when looking for a maximum. More...
 
template<typename T >
void til::min_helper (T &minx, T x)
 Little helper for something often used when looking for a minimum. More...
 
template<typename TPIterator , typename TSIterator >
std::size_t til::pos2offset (TPIterator pbegin, TPIterator pend, TSIterator sbegin)
 
template<std::size_t D>
std::size_t til::pos2offset (const numeric_array< std::size_t, D > &pos, const numeric_array< std::size_t, D > &size)