FEDEM Solver  R8.0
Source code of the dynamics solver
Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Types | Private Attributes | Friends | List of all members
FFaMathExprFactory Class Reference

#include <FFaMathExprFactory.H>

Inheritance diagram for FFaMathExprFactory:
Inheritance graph
[legend]
Collaboration diagram for FFaMathExprFactory:
Collaboration graph
[legend]

Classes

class  FFaMathFunc
 

Public Member Functions

int create (int id, const std::string &expression, size_t nvar=1, const char **vars=0)
 
double getValue (int id, double arg, int &error)
 
double getValue (int id, const double *arg, int &error)
 
double getDiff (int id, double arg, int &error)
 
double getDiff (int id, size_t idArg, const double *arg, int &error)
 

Static Public Member Functions

static size_t countArgs (const std::string &expression, const char **vars, std::vector< bool > *present=0)
 
- Static Public Member Functions inherited from FFaSingelton< FFaMathExprFactory >
static FFaMathExprFactoryinstance ()
 Returns the actual instance of this class. More...
 
static void removeInstance ()
 Deletes the dynamically allocated instance. More...
 
static bool allocated ()
 Returns true, if the instance has been allocated. More...
 

Protected Member Functions

 FFaMathExprFactory ()
 
virtual ~FFaMathExprFactory ()
 
- Protected Member Functions inherited from FFaSingelton< FFaMathExprFactory >
 FFaSingelton ()
 The constructor is protected to allow objects of sub-classes only. More...
 
 FFaSingelton (const FFaSingelton &)=delete
 Disable default copy constructor. More...
 
FFaSingeltonoperator= (const FFaSingelton &)=delete
 Disable default assignment operator. More...
 

Private Types

typedef std::map< int, FFaMathFuncIndexMap
 
typedef IndexMap::iterator IMIter
 

Private Attributes

IndexMap myIndexMap
 

Friends

class FFaSingelton< FFaMathExprFactory >
 

Member Typedef Documentation

◆ IMIter

typedef IndexMap::iterator FFaMathExprFactory::IMIter
private

◆ IndexMap

typedef std::map<int,FFaMathFunc> FFaMathExprFactory::IndexMap
private

Constructor & Destructor Documentation

◆ FFaMathExprFactory()

FFaMathExprFactory::FFaMathExprFactory ( )
inlineprotected

◆ ~FFaMathExprFactory()

virtual FFaMathExprFactory::~FFaMathExprFactory ( )
inlineprotectedvirtual

Member Function Documentation

◆ countArgs()

size_t FFaMathExprFactory::countArgs ( const std::string &  expression,
const char **  vars,
std::vector< bool > *  present = 0 
)
static

◆ create()

int FFaMathExprFactory::create ( int  id,
const std::string &  expression,
size_t  nvar = 1,
const char **  vars = 0 
)

◆ getDiff() [1/2]

double FFaMathExprFactory::getDiff ( int  id,
double  arg,
int &  error 
)

◆ getDiff() [2/2]

double FFaMathExprFactory::getDiff ( int  id,
size_t  idArg,
const double *  arg,
int &  error 
)

◆ getValue() [1/2]

double FFaMathExprFactory::getValue ( int  id,
const double *  arg,
int &  error 
)

◆ getValue() [2/2]

double FFaMathExprFactory::getValue ( int  id,
double  arg,
int &  error 
)

Friends And Related Function Documentation

◆ FFaSingelton< FFaMathExprFactory >

friend class FFaSingelton< FFaMathExprFactory >
friend

Member Data Documentation

◆ myIndexMap

IndexMap FFaMathExprFactory::myIndexMap
private

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