41 return input_variable;
48 double tolerance = 1e-12;
49 if (std::abs(second) < tolerance) {
50 throw Elements::Exception() <<
"Dividing by " << second <<
" exception in ClassExample::divideNumbers(...)";
52 return first / second;
defines the base Elements exception class
Macro to silence unused variables warnings from the compiler.
double divideNumbers(const double first, const double second) const
Divide two double variables.
void passingUniquePointer(std::unique_ptr< std::vector< double > > vector_unique_ptr) const
Example method with a unique pointer argument.
static const std::string s_static_string
An example of a static string.
static ClassExample factoryMethod(const std::int64_t source_id, const double ra)
Example factory method.
void passingObjectInGeneral(const std::vector< double > &input_object) const
Example method taking an object in input.
double fundamentalTypeMethod(const double input_variable) const
Simple method example.
Elements base exception class.