Loading...
Searching...
No Matches
commonUtils.hpp
Go to the documentation of this file.
52#define BITPIT_ARGS_SIZE(...) BITPIT_EXPAND_ARGS_FOR_COUNT(BITPIT_COUNT_ARGS_MAX6(__VA_ARGS__, 6, 5, 4, 3, 2, 1, 0))
55#define BITPIT_OVERLOAD_CALL(NAME, ...) BITPIT_SELECT_OVERLOAD(NAME, BITPIT_ARGS_SIZE(__VA_ARGS__))(__VA_ARGS__)
92bool addToOrderedVector(const T &value, std::vector<T> &list, Comparator comparator = Comparator());
95typename std::vector<T>::const_iterator findInOrderedVector(const T &value, const std::vector<T> &list, Comparator comparator = Comparator());
117extern template bool addToOrderedVector<>(const unsigned long&, std::vector<unsigned long>&, std::less<unsigned long>);
119extern template std::vector<long>::const_iterator findInOrderedVector<>(const long&, const std::vector<long>&, std::less<long>);
120extern template std::vector<unsigned long>::const_iterator findInOrderedVector<>(const unsigned long&, const std::vector<unsigned long>&, std::less<unsigned long>);
174 bool operator()(double x, double y, double relativeTolerance = DEFAULT_REL_TOL, double absoluteTolerance = DEFAULT_ABS_TOL) const
224 bool operator()(double x, double y, double relativeTolerance = DEFAULT_REL_TOL, double absoluteTolerance = DEFAULT_ABS_TOL) const
265 bool operator()(double x, double y, double relativeTolerance = DEFAULT_REL_TOL, double absoluteTolerance = DEFAULT_ABS_TOL) const
305 bool operator()(double x, double y, double relativeTolerance = DEFAULT_REL_TOL, double absoluteTolerance = DEFAULT_ABS_TOL) const
347 bool operator()(double x, double y, double relativeTolerance = DEFAULT_REL_TOL, double absoluteTolerance = DEFAULT_ABS_TOL) const
void swapValue(std::vector< bool > &v, std::size_t i, std::size_t j)
Definition commonUtils.cpp:52
std::vector< T > intersectionVector(const std::vector< T > &, const std::vector< T > &)
Definition commonUtils.tpp:188
void reorderContainer(OrderContainer &order, DataContainer &v, std::size_t size)
Definition commonUtils.tpp:130
void extractWithoutReplacement(int n, int m, std::vector< int > &list)
Definition commonUtils.cpp:67
void reorderVector(std::vector< size_t > &order, std::vector< T > &v, std::size_t size)
Definition commonUtils.tpp:112
void eraseValue(std::vector< T > &, const T &)
Definition commonUtils.tpp:170
bool operator()(double x, double y, double relativeTolerance=DEFAULT_REL_TOL, double absoluteTolerance=DEFAULT_ABS_TOL) const
Definition commonUtils.hpp:174
bool operator()(double x, double y, double relativeTolerance=DEFAULT_REL_TOL, double absoluteTolerance=DEFAULT_ABS_TOL) const
Definition commonUtils.hpp:347
bool operator()(double x, double y, double relativeTolerance=DEFAULT_REL_TOL, double absoluteTolerance=DEFAULT_ABS_TOL) const
Definition commonUtils.hpp:305
bool operator()(double x, double y, double relativeTolerance=DEFAULT_REL_TOL, double absoluteTolerance=DEFAULT_ABS_TOL) const
Definition commonUtils.hpp:265
bool operator()(double x, double y, double relativeTolerance=DEFAULT_REL_TOL, double absoluteTolerance=DEFAULT_ABS_TOL) const
Definition commonUtils.hpp:224
