Elements  6.2
A C++ base framework for the Euclid Software.
Classes | Functions | Variables
Elements::Examples Namespace Reference

Classes

class  AnotherSimpleProgram
 Example of an Elements program. More...
 
class  BackTrace
 
class  CCfits
 
class  Cfitsio
 
class  ClassExample
 An class example. More...
 
class  ClassExample2
 
class  DataSourceInterface
 This class has been created to demonstrate unit testing. It is an Interface over a DataSource (a File, a DataBase Table, ...). More...
 
class  DataSourceUser
 This class has been created to demonstrate unit testing. It manipulates an object implementing DataSourceInterface. More...
 
class  Eigen
 
class  Fftw
 
class  FloatPrecision
 
class  GnuAstro
 
class  Gsl
 
class  Healpix
 
class  OpenMP
 
class  PiCalculator
 
class  Program
 Simple example of an Elements program. More...
 
class  ProgramWithArguments
 Example of an Elements program. More...
 
class  Rectangle
 
class  SimpleProgram
 Example of an Elements program. More...
 
class  SwigClassExample
 
class  TemplatedDataSourceUser
 This class has been created to demonstrate unit testing. It manipulate an object representing a DataSource using template to achieve polymorphism. More...
 
class  UnitTestExample
 This class has been created to demonstrate unit testing. More...
 
class  Wcs
 
class  Xerces
 

Functions

ELEMENTS_API double testCallBack (std::vector< double > x, const std::function< double(std::vector< double >)> &fun)
 
ELEMENTS_API void crashingFunction ()
 
ELEMENTS_API int functionExample (const int j)
 
ELEMENTS_API int functionExample2 (const int j)
 
const ELEMENTS_API System::ModuleInfogetModuleInfo ()
 
ELEMENTS_API void printProject ()
 
void secondLevelFunction ()
 
void firstLevelFunction ()
 
template<typename T >
void printTitle ()
 
template<>
void printTitle< double > ()
 
template<typename T >
constexpr T Zero ()
 
template<>
constexpr double Zero< double > ()
 
template<typename T >
constexpr T One ()
 
template<>
constexpr double One< double > ()
 
template<typename T >
constexpr T Two ()
 
template<>
constexpr double Two< double > ()
 
template<typename T >
constexpr T Seven ()
 
template<>
constexpr double Seven< double > ()
 
template<typename T >
constexpr T Ten ()
 
template<>
constexpr double Ten< double > ()
 
template<typename T >
void printFloatPrecision ()
 
void myLocalLogTestFunc ()
 test function to demonstrate the logger More...
 

Variables

auto log = Logging::getLogger("BackTraceExample")
 
constexpr int PRINT_PRECISION = 32
 
static constexpr char CHARSET [] = ".,c8M@jawrpogOQEPGJ"
 

Function Documentation

◆ crashingFunction()

void Elements::Examples::crashingFunction ( )

Definition at line 31 of file crashingFunction.cpp.

References Elements::Logging::getLogger(), and log.

Referenced by secondLevelFunction().

Here is the call graph for this function:

◆ firstLevelFunction()

void Elements::Examples::firstLevelFunction ( )

Definition at line 43 of file BackTrace.cpp.

References log, and secondLevelFunction().

Referenced by Elements::Examples::BackTrace::mainMethod().

Here is the call graph for this function:

◆ functionExample()

int Elements::Examples::functionExample ( const int  j)

◆ functionExample2()

int Elements::Examples::functionExample2 ( const int  j)

Definition at line 27 of file functionExample2.cpp.

◆ getModuleInfo()

const System::ModuleInfo & Elements::Examples::getModuleInfo ( )
Examples
ElementsExamples/src/lib/default/ModuleInfo.cpp.

Definition at line 28 of file ModuleInfo.cpp.

References Elements::System::getThisModuleInfo().

Here is the call graph for this function:

◆ myLocalLogTestFunc()

void Elements::Examples::myLocalLogTestFunc ( )

test function to demonstrate the logger

test function to demonstrate the logger

Examples
ElementsExamples/src/program/Program.cpp, and ElementsExamples/src/program/SimpleProgram.cpp.

Definition at line 59 of file Program.cpp.

References Elements::Logging::getLogger().

Referenced by Elements::Examples::Program::mainMethod().

Here is the call graph for this function:

◆ One()

template<typename T >
constexpr T Elements::Examples::One ( )
constexpr

Definition at line 71 of file FloatPrecision.cpp.

◆ One< double >()

template<>
constexpr double Elements::Examples::One< double > ( )
constexpr

Definition at line 76 of file FloatPrecision.cpp.

◆ printFloatPrecision()

template<typename T >
void Elements::Examples::printFloatPrecision ( )

Definition at line 111 of file FloatPrecision.cpp.

References std::cos(), std::nextafter(), std::nexttoward(), Elements::Kernel::Units::pi, and std::pow().

Here is the call graph for this function:

◆ printProject()

void Elements::Examples::printProject ( )
Examples
ElementsExamples/src/program/Program.cpp, and ElementsExamples/src/program/SimpleProgram.cpp.

Definition at line 31 of file printProject.cpp.

References std::endl().

Referenced by ExtProgram::mainMethod(), and Elements::Examples::Program::mainMethod().

Here is the call graph for this function:

◆ printTitle()

template<typename T >
void Elements::Examples::printTitle ( )

Definition at line 47 of file FloatPrecision.cpp.

◆ printTitle< double >()

template<>
void Elements::Examples::printTitle< double > ( )

Definition at line 54 of file FloatPrecision.cpp.

◆ secondLevelFunction()

void Elements::Examples::secondLevelFunction ( )

Definition at line 38 of file BackTrace.cpp.

References crashingFunction(), and log.

Referenced by firstLevelFunction().

Here is the call graph for this function:

◆ Seven()

template<typename T >
constexpr T Elements::Examples::Seven ( )
constexpr

Definition at line 91 of file FloatPrecision.cpp.

◆ Seven< double >()

template<>
constexpr double Elements::Examples::Seven< double > ( )
constexpr

Definition at line 96 of file FloatPrecision.cpp.

◆ Ten()

template<typename T >
constexpr T Elements::Examples::Ten ( )
constexpr

Definition at line 101 of file FloatPrecision.cpp.

◆ Ten< double >()

template<>
constexpr double Elements::Examples::Ten< double > ( )
constexpr

Definition at line 106 of file FloatPrecision.cpp.

◆ testCallBack()

double Elements::Examples::testCallBack ( std::vector< double >  x,
const std::function< double(std::vector< double >)> &  fun 
)

Definition at line 34 of file callBackExample.cpp.

References Elements::Logging::getLogger(), and log.

Referenced by PYBIND11_MODULE().

Here is the call graph for this function:

◆ Two()

template<typename T >
constexpr T Elements::Examples::Two ( )
constexpr

Definition at line 81 of file FloatPrecision.cpp.

◆ Two< double >()

template<>
constexpr double Elements::Examples::Two< double > ( )
constexpr

Definition at line 86 of file FloatPrecision.cpp.

◆ Zero()

template<typename T >
constexpr T Elements::Examples::Zero ( )
constexpr

Definition at line 61 of file FloatPrecision.cpp.

◆ Zero< double >()

template<>
constexpr double Elements::Examples::Zero< double > ( )
constexpr

Definition at line 66 of file FloatPrecision.cpp.

Variable Documentation

◆ CHARSET

constexpr char Elements::Examples::CHARSET[] = ".,c8M@jawrpogOQEPGJ"
staticconstexpr

Definition at line 38 of file OpenMP.cpp.

Referenced by Elements::Examples::OpenMP::mainMethod().

◆ log

auto Elements::Examples::log = Logging::getLogger("BackTraceExample")

◆ PRINT_PRECISION

constexpr int Elements::Examples::PRINT_PRECISION = 32
constexpr

Definition at line 44 of file FloatPrecision.cpp.

Referenced by Elements::Examples::FloatPrecision::mainMethod().