Jive reference manual
List of all members | Classes | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions
jem::numeric::UserFunc Class Reference

#include <jem/numeric/func/UserFunc.h>

Inheritance diagram for jem::numeric::UserFunc:
Inheritance graph

Classes

class  ArgList
 
class  NameSpace
 

Public Member Functions

 UserFunc ()
 
 UserFunc (ufunc::CodeBlock *code)
 
 UserFunc (const String &args, const String &expr)
 
virtual String toString () const
 Returns a short textual description of this object. More...
 
virtual void readFrom (ObjectInput &in)
 
virtual void writeTo (ObjectOutput &out) const
 
virtual idx_t argCount () const
 
virtual double getValue (const double *args) const
 
virtual double getDeriv (idx_t iarg, const double *args) const
 
virtual idx_t markUsedArgs (bool *mask) const
 
void resolve (int options=0)
 
void resolve (const Dictionary &symbols, int options=0)
 
void resolve (const NameSpace &symbols, int options=0)
 
void unresolve ()
 
- Public Member Functions inherited from jem::numeric::Function
double eval () const
 
double eval (double arg) const
 
double eval (double arg0, double arg1) const
 
double eval (double arg0, double arg1, double arg2) const
 
double deriv (double arg) const
 
double deriv (idx_t iarg, double arg0, double arg1) const
 
double deriv (idx_t iarg, double arg0, double arg1, double arg2) const
 
- Public Member Functions inherited from jem::Object
virtual ClassgetClass () const
 Returns the Class instance representing the runtime class of this object. More...
 
virtual long hashValue () const
 Returns a hash value for this object. More...
 
virtual bool equals (const Ref< Object > &obj) const
 Tests whether two objects are equal. More...
 
Ref< Objectclone () const
 Returns a copy of this object. More...
 

Static Public Member Functions

static Ref< Self > parse (ArgList &args, const String &expr)
 
- Static Public Member Functions inherited from jem::Object
static ClassgetType ()
 Returns the Class instance representing the Object class. More...
 

Static Public Attributes

static const int RESOLVE_STRICT
 

Protected Member Functions

virtual ~UserFunc ()
 
- Protected Member Functions inherited from jem::numeric::Function
virtual ~Function ()
 
- Protected Member Functions inherited from jem::Collectable
 Collectable ()
 Creates an empty Collectable. More...
 
 ~Collectable ()
 Frees resources. More...
 
- Protected Member Functions inherited from jem::io::Serializable
virtual ~Serializable ()
 
virtual void emitVtableFunc_ ()
 
- Protected Member Functions inherited from jem::Interface
virtual ~Interface ()
 Empty destructor. More...
 

Constructor & Destructor Documentation

jem::numeric::UserFunc::UserFunc ( )
jem::numeric::UserFunc::UserFunc ( ufunc::CodeBlock *  code)
explicit
jem::numeric::UserFunc::UserFunc ( const String args,
const String expr 
)
virtual jem::numeric::UserFunc::~UserFunc ( )
protectedvirtual

Member Function Documentation

virtual String jem::numeric::UserFunc::toString ( ) const
virtual

Returns a short textual description of this object. The toString method of the class Object returns:

getClass()->getName() + "@" + String( hashValue() )

Returns
A String representing this object.

Reimplemented from jem::Object.

virtual void jem::numeric::UserFunc::readFrom ( ObjectInput in)
virtual

Implements jem::io::Serializable.

virtual void jem::numeric::UserFunc::writeTo ( ObjectOutput out) const
virtual

Implements jem::io::Serializable.

virtual idx_t jem::numeric::UserFunc::argCount ( ) const
virtual
virtual double jem::numeric::UserFunc::getValue ( const double *  args) const
virtual
virtual double jem::numeric::UserFunc::getDeriv ( idx_t  iarg,
const double *  args 
) const
virtual

Reimplemented from jem::numeric::Function.

virtual idx_t jem::numeric::UserFunc::markUsedArgs ( bool *  mask) const
virtual

Reimplemented from jem::numeric::Function.

void jem::numeric::UserFunc::resolve ( int  options = 0)
void jem::numeric::UserFunc::resolve ( const Dictionary symbols,
int  options = 0 
)
void jem::numeric::UserFunc::resolve ( const NameSpace symbols,
int  options = 0 
)
void jem::numeric::UserFunc::unresolve ( )
static Ref<Self> jem::numeric::UserFunc::parse ( ArgList args,
const String expr 
)
static

Member Data Documentation

const int jem::numeric::UserFunc::RESOLVE_STRICT
static