SpeedCrunch
0.11
|
#include <functions.h>
Public Types | |
typedef QVector< HNumber > | ArgumentList |
typedef HNumber(* | FunctionImpl )(Function *, const ArgumentList &) |
Public Member Functions | |
Function (const QString &identifier, FunctionImpl ptr, QObject *parent=0) | |
const QString & | identifier () const |
const QString & | name () const |
const QString & | usage () const |
Error | error () const |
HNumber | exec (const ArgumentList &) |
void | setName (const QString &name) |
void | setUsage (const QString &usage) |
void | setError (Error error) |
typedef QVector<HNumber> Function::ArgumentList |
typedef HNumber(* Function::FunctionImpl)(Function *, const ArgumentList &) |
Function::Function | ( | const QString & | identifier, |
FunctionImpl | ptr, | ||
QObject * | parent = 0 |
||
) | [inline] |
Error Function::error | ( | ) | const [inline] |
HNumber Function::exec | ( | const ArgumentList & | args | ) |
const QString& Function::identifier | ( | ) | const [inline] |
const QString& Function::name | ( | ) | const [inline] |
void Function::setError | ( | Error | error | ) | [inline] |
void Function::setName | ( | const QString & | name | ) | [inline] |
void Function::setUsage | ( | const QString & | usage | ) | [inline] |
const QString& Function::usage | ( | ) | const [inline] |