Calculator< ReadAcc, WriteAcc > Class Template Reference

A typed version of DM::ICalculator. See Calculator. More...

#include "Calculator.hpp"

+ Inheritance diagram for Calculator< ReadAcc, WriteAcc >:

Public Member Functions

Calculatoroperator= (const Calculator &)
 
String text () const
 The text that was passed to the constructor.
 
construction

Constructs a new calculator based on text.

 Calculator (const String &text=String())
 
 Calculator (const char *text)
 
 Calculator (const Calculator &)
 
- Public Member Functions inherited from Handle< T, Thread_safe, C, Alloc >
 Handle (const Handle &h)
 
template<class T2 , bool TS2, class C2 , class A2 >
 Handle (const Handle< T2, TS2, C2, A2 > &other)
 
template<class T2 , bool TS2, class C2 , class A2 >
 Handle (const Handle< T2, TS2, C2, A2 > &other, const use_static_cast &)
 
template<class T2 , bool TS2, class C2 , class A2 >
 Handle (const Handle< T2, TS2, C2, A2 > &other, const use_dynamic_cast &)
 
 Handle (T *p)
 
Handleoperator= (const Handle &h)
 
template<class T2 , bool TS2, class C2 , class A2 >
Handleoperator= (const Handle< T2, TS2, C2, A2 > &other)
 
Handleoperator= (T *p)
 
size_type id () const
 
 operator const T & () const
 
 operator T& ()
 
const T * ptr () const
 
const T & operator* () const
 
T & operator* ()
 
const T * operator-> () const
 
T * operator-> ()
 
bool is_shared () const
 
get_count () const
 
T * release ()
 
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 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)
 

Additional Inherited Members

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

Detailed Description

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

A typed version of DM::ICalculator. See Calculator.

Template Parameters
ReadAccread access
WriteAccwrite access

Derives from a handle for simplicity, but every object holds its own clone.

See Calculator

Constructor & Destructor Documentation

◆ Calculator()

Calculator ( const String text = String())

If text is empty or "pass", results in an empty base handle.