JavaScript Class Reference
[Scripts for problems]
Inherits Example.
Detailed Description
Example: Gecode/JavaScript interpreterExecutes a JavaScript program, builds the Gecode model that it contains and runs a search.
Definition at line 99 of file javascript.cc.
Public Member Functions | |
JavaScript (const FileNameOptions &opt) | |
The actual problem. | |
JavaScript (bool share, JavaScript &s) | |
Constructor for cloning s. | |
virtual Space * | copy (bool share) |
Perform copying during cloning. | |
virtual void | print (std::ostream &os) |
Print solution. | |
Protected Attributes | |
VarArray< Reflection::Var > | x |
Variables. |
Constructor & Destructor Documentation
JavaScript::JavaScript | ( | const FileNameOptions & | opt | ) | [inline] |
JavaScript::JavaScript | ( | bool | share, | |
JavaScript & | s | |||
) | [inline] |
Member Function Documentation
virtual Space* JavaScript::copy | ( | bool | share | ) | [inline, virtual] |
Perform copying during cloning.
Implements Gecode::Space.
Definition at line 137 of file javascript.cc.
virtual void JavaScript::print | ( | std::ostream & | os | ) | [inline, virtual] |
Member Data Documentation
VarArray<Reflection::Var> JavaScript::x [protected] |
The documentation for this class was generated from the following file:
- examples/javascript.cc (Revision: 6002)