CalculatorWithPythonSupport< ReadAcc, WriteAcc > Class Template Reference

A Calculator that alternatively supports Python formulas. See Calculator. More...

#include "Calculator.hpp"

+ Inheritance diagram for CalculatorWithPythonSupport< ReadAcc, WriteAcc >:

Public Member Functions

String text () const
 The text that was passed to the constructor.
 
bool isPythonFormula () const
 Returns true if text starts with "python:".
 
String pyText () const
 text without the prefix indicating Python syntax.
 
construction

Constructs a new calculator based on text.

 CalculatorWithPythonSupport (const String &text=String())
 
 CalculatorWithPythonSupport (const char *text)
 
- Public Member Functions inherited from Calculator< ReadAcc, WriteAcc >
Calculatoroperator= (const Calculator &)
 
String text () const
 The text that was passed to the constructor.
 
 Calculator (const String &text=String())
 
 Calculator (const char *text)
 
 Calculator (const Calculator &)
 
- Public Member Functions inherited from Handle< ICalculator >
 Handle (const Handle &h)
 
 Handle (const Handle< T2, TS2, C2, A2 > &other)
 
 Handle (const Handle< T2, TS2, C2, A2 > &other, const use_static_cast &)
 
 Handle (const Handle< T2, TS2, C2, A2 > &other, const use_dynamic_cast &)
 
 Handle (ICalculator *p)
 
Handleoperator= (const Handle &h)
 
Handleoperator= (const Handle< T2, TS2, C2, A2 > &other)
 
Handleoperator= (ICalculator *p)
 
size_type id () const
 
 operator const ICalculator & () const
 
 operator ICalculator & ()
 
const ICalculatorptr () const
 
const ICalculatoroperator* () const
 
ICalculatoroperator* ()
 
const ICalculatoroperator-> () const
 
ICalculatoroperator-> ()
 
bool is_shared () const
 
unsigned int get_count () const
 
ICalculatorrelease ()
 
void swap (Handle &h)
 
void reset ()
 
Handle clone () const
 
bool operator== (const Handle &h) const
 
bool operator!= (const Handle &h) const
 
bool operator> (const Handle &h) const
 
bool operator< (const Handle &h) const
 
 operator unspecified_bool_type () const
 

Static Public Member Functions

static const char * help (bool)
 
- Static Public Member Functions inherited from Calculator< ReadAcc, WriteAcc >
static const char * help (bool)
 
static const char * syntax ()
 
static bool exportsPythonType ()
 
- Static Public Member Functions inherited from CustomOptionType< Calculator< ReadAcc, WriteAcc > >
static const char * _help (bool forDoxygen)
 get general help on this type
 
static const char * _syntax ()
 get the syntax used for parsing this type
 
static bool _exportsPythonType ()
 returns true if this type is exposed to Python as a custom type, false otherwise (if it is represented as Python-string)
 
- Static Public Member Functions inherited from CustomOptionType< CalculatorWithPythonSupport< ReadAcc, WriteAcc > >
static const char * _help (bool forDoxygen)
 get general help on this type
 
static const char * _syntax ()
 get the syntax used for parsing this type
 
static bool _exportsPythonType ()
 returns true if this type is exposed to Python as a custom type, false otherwise (if it is represented as Python-string)
 

Additional Inherited Members

- Public Types inherited from Handle< ICalculator >
typedef ICalculator element_type
 
- Public Attributes inherited from Handle< ICalculator >
const typedef ICalculator *(self::* unspecified_bool_type )() const
 
- Protected Member Functions inherited from CustomOptionType< Calculator< ReadAcc, WriteAcc > >
 ~CustomOptionType ()
 protected, must be derived from
 
- Protected Member Functions inherited from CustomOptionType< CalculatorWithPythonSupport< ReadAcc, WriteAcc > >
 ~CustomOptionType ()
 protected, must be derived from
 

Detailed Description

template<DM::ICalculator::ReadAccess ReadAcc, DM::ICalculator::WriteAccess WriteAcc>
class opals::CalculatorWithPythonSupport< ReadAcc, WriteAcc >

A Calculator that alternatively supports Python formulas. See Calculator.

Template Parameters
ReadAccread access
WriteAccwrite access

Prefix text with pythonPrefix() to indicate usage of Python syntax.

See Calculator

Author
wk
Date
27.07.2020