Elements  6.2
A C++ base framework for the Euclid Software.
Public Member Functions | Static Private Member Functions | List of all members
Elements::Examples::OpenMP Class Reference
Inheritance diagram for Elements::Examples::OpenMP:
Inheritance graph
[legend]
Collaboration diagram for Elements::Examples::OpenMP:
Collaboration graph
[legend]

Public Member Functions

ExitCode mainMethod (map< string, VariableValue > &) override
 This is the "main" method of all Elements programs. More...
 
- Public Member Functions inherited from Elements::Examples::Program
OptionsDescription defineSpecificProgramOptions () override
 Allows to define the (command line and configuration file) options specific to this program. More...
 
ExitCode mainMethod (map< string, VariableValue > &args) override
 The "main" method. More...
 
- Public Member Functions inherited from Elements::Program
 Program ()=default
 Constructor. More...
 
virtual ~Program ()
 Destructor. More...
 
virtual std::pair< OptionsDescription, PositionalOptionsDescriptiondefineProgramArguments ()
 This methods must be used to the program arguments. More...
 

Static Private Member Functions

static size_t mandelbrotCalculate (const complex c, const size_t maxiter)
 

Additional Inherited Members

- Public Types inherited from Elements::Program
using options_description = boost::program_options::options_description
 
using positional_options_description = boost::program_options::positional_options_description
 
using variable_value = boost::program_options::variable_value
 
using variables_map = boost::program_options::variables_map
 
using OptionsDescription = options_description
 
using PositionalOptionsDescription = positional_options_description
 
using VariableValue = variable_value
 
using VariablesMap = variables_map
 
using ExitCode = Elements::ExitCode
 
using Logging = Elements::Logging
 

Detailed Description

Definition at line 40 of file OpenMP.cpp.

Member Function Documentation

◆ mainMethod()

ExitCode Elements::Examples::OpenMP::mainMethod ( map< string, VariableValue > &  args)
inlineoverridevirtual

This is the "main" method of all Elements programs.

This is the second method that must be implemented by all Elements programs. It represents the entry point.

Parameters
argsA map containing the values given by the user for the program options defined by the defineSpecificProgramOptions() method
Returns
The exit code which should be returned when the program exits

Implements Elements::Program.

Definition at line 43 of file OpenMP.cpp.

References Elements::Examples::CHARSET, Elements::Logging::getLogger(), std::complex::imag(), Elements::Examples::log, mandelbrotCalculate(), Elements::OK, std::putchar(), std::puts(), and std::complex::real().

Here is the call graph for this function:

◆ mandelbrotCalculate()

static size_t Elements::Examples::OpenMP::mandelbrotCalculate ( const complex  c,
const size_t  maxiter 
)
inlinestaticprivate

Definition at line 88 of file OpenMP.cpp.

Referenced by mainMethod().


The documentation for this class was generated from the following file: