Go to the documentation of this file.
103 #define DEFINE_TO_CASECOMMAND( _c ) case _c: return (#_c)
127 #define DEFINE_TO_CASECOMMAND_MSG( _c, ... ) case _c: return (#_c ": " __VA_ARGS__)
132 VCC_EXPORT
bool InIndex(
int v,
int max );
138 VCC_EXPORT
bool InRange(
double v,
double min,
double max );
146 VCC_EXPORT
bool InRange(
int n,
double const* v,
double const* min,
double const* max );
154 VCC_EXPORT
double ToRange(
double v,
double min,
double max );
162 VCC_EXPORT
void ToRange(
int n,
double* v,
double const* min,
double const* max );
170 VCC_EXPORT
void ToRange( std::vector<double>& v, std::vector<double>
const& min, std::vector<double>
const& max );
178 VCC_EXPORT
void ToRange(
cSimpleVector& v, std::vector<double>
const& min, std::vector<double>
const& max );
184 VCC_EXPORT
double Approx(
double a,
double b,
double eps );
191 VCC_EXPORT
bool Approx(
int n,
double* a,
double* b,
double* eps );
197 VCC_EXPORT
double DegToRad(
double d );
203 VCC_EXPORT
double RadToDeg(
double r );
209 VCC_EXPORT
void SleepSec(
double t );
220 template<
typename Function,
typename Tp>
221 void apply( Function f, Tp& sequence )
225 for (
typename Tp::iterator it = sequence.begin();
247 template<
typename Function,
typename InputIterator>
249 apply( Function f, InputIterator first, InputIterator last)
254 for ( ; first != last; ++first)
266 template<
typename Function,
typename Tp>
267 Tp
map(Function f, Tp sequence)
269 Tp result (sequence);
311 std::ostream&
operator<<(std::ostream& stream, std::vector<T>
const& v)
313 char const* sep =
"";
315 typename std::vector<T>::const_iterator it;
316 for ( it = v.begin();
320 stream << sep << *it ;
341 : value_ptr( _value_ptr ),
342 old_value( *value_ptr )
344 *value_ptr = new_value;
350 *value_ptr = old_value;
VCC_EXPORT double ToRange(double v, double min, double max)
#define NAMESPACE_SDH_END
VCC_EXPORT bool InRange(double v, double min, double max)
VCC_EXPORT double DegToRad(double d)
std::ostream & operator<<(std::ostream &stream, std::vector< T > const &v)
Tp map(Function f, Tp sequence)
A simple vector implementation.
helper class to set value on construction and reset to previous value on destruction....
VCC_EXPORT int CompareReleases(char const *rev1, char const *rev2)
compare release strings
VCC_EXPORT double RadToDeg(double r)
VCC_EXPORT void SleepSec(double t)
~cSetValueTemporarily()
DTOR: restore the remembered value.
Interface of class #SDH::cSimpleVector.
#define NAMESPACE_SDH_START
void apply(Function f, Tp &sequence)
This file contains settings to make the SDHLibrary compile on differen systems:
VCC_EXPORT bool InIndex(int v, int max)
cSetValueTemporarily(T *_value_ptr, T new_value)
CTOR: remember current value of _value_ptr and set it to new_value.
VCC_EXPORT double Approx(double a, double b, double eps)
sdhlibrary_cpp
Author(s): Dirk Osswald
autogenerated on Wed Mar 2 2022 01:00:58