Elements 6.0.1
A C++ base framework for the Euclid Software.
Loading...
Searching...
No Matches
Classes | Functions | Variables
Elements::Examples Namespace Reference

Classes

class  AnotherSimpleProgramExample
 Example of an Elements program. More...
 
class  BackTraceExample
 
class  CCfitsExample
 
class  CfitsioExample
 
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  EigenExample
 
class  FftwExample
 
class  FloatPrecisionExample
 
class  GnuAstroExample
 
class  GslExample
 
class  HealpixExample
 
class  OpenMPExample
 
class  PiCalculator
 
class  ProgramExample
 Simple example of an Elements program. More...
 
class  ProgramExampleWithArguments
 Example of an Elements program. More...
 
class  Rectangle
 
class  SimpleProgramExample
 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  WcsExample
 
class  XercesExample
 

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)
 
ELEMENTS_API const 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
 

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 BackTraceExample.cpp.

References log, and secondLevelFunction().

Referenced by Elements::Examples::BackTraceExample::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/ProgramExample.cpp, and ElementsExamples/src/program/SimpleProgramExample.cpp.

Definition at line 59 of file ProgramExample.cpp.

References Elements::Logging::getLogger().

Referenced by Elements::Examples::ProgramExample::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 FloatPrecisionExample.cpp.

◆ One< double >()

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

Definition at line 76 of file FloatPrecisionExample.cpp.

◆ printFloatPrecision()

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

Definition at line 111 of file FloatPrecisionExample.cpp.

References std::cos(), std::nextafter(), std::nexttoward(), and std::pow().

Here is the call graph for this function:

◆ printProject()

void Elements::Examples::printProject ( )

◆ printTitle()

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

Definition at line 47 of file FloatPrecisionExample.cpp.

◆ printTitle< double >()

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

Definition at line 54 of file FloatPrecisionExample.cpp.

◆ secondLevelFunction()

void Elements::Examples::secondLevelFunction ( )

Definition at line 38 of file BackTraceExample.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 FloatPrecisionExample.cpp.

◆ Seven< double >()

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

Definition at line 96 of file FloatPrecisionExample.cpp.

◆ Ten()

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

Definition at line 101 of file FloatPrecisionExample.cpp.

◆ Ten< double >()

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

Definition at line 106 of file FloatPrecisionExample.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 FloatPrecisionExample.cpp.

◆ Two< double >()

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

Definition at line 86 of file FloatPrecisionExample.cpp.

◆ Zero()

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

Definition at line 61 of file FloatPrecisionExample.cpp.

◆ Zero< double >()

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

Definition at line 66 of file FloatPrecisionExample.cpp.

Variable Documentation

◆ CHARSET

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

Definition at line 38 of file OpenMPExample.cpp.

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

◆ log

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

◆ PRINT_PRECISION

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