| MULTIBODY SIMULATION SOFTWARE - API documentation |
#include <CHfunctionJS.h>


Public Member Functions | |
| void | Copy (ChFunction_Jscript *source) |
| ChFunction * | new_Duplicate () |
| void | Set_Command (char *m_command) |
| char * | Get_Command () |
| void | Set_Variable (char *variablename, double value) |
| int | Get_js_error () |
| double | Get_y (double x) |
| int | Get_Type () |
| void | StreamOUT (ChStreamOutAscii &mstream) |
| void | StreamIN (ChStreamInBinary &mstream) |
| void | StreamOUT (ChStreamOutBinary &mstream) |
JAVASCRIPT FUNCTION: y = javascript evaluation of function y=f(x)
| int chrono::ChFunction_Jscript::Get_Type | ( | ) | [virtual] |
Each class inherited from the ChFunction class must return an unique integer identifier with the virtual function Get_type(). This is useful for fast run-time downcasting etc.
Reimplemented from chrono::ChFunction.
| double chrono::ChFunction_Jscript::Get_y | ( | double | x | ) | [virtual] |
Returns the y value of the function, at position x. (For this base class, it will be a constant value y=C).
Implements chrono::ChFunction.
| void chrono::ChFunction_Jscript::StreamIN | ( | ChStreamInBinary & | mstream | ) | [virtual] |
Method to allow deserializing a persistent binary archive (ex: a file) into transient data.
Reimplemented from chrono::ChFunction.
| void chrono::ChFunction_Jscript::StreamOUT | ( | ChStreamOutAscii & | mstream | ) | [virtual] |
Method to allow serialization of transient data in ascii, as a readable item, for example "chrono::GetLog() << myobject;"
Reimplemented from chrono::ChFunction.
| void chrono::ChFunction_Jscript::StreamOUT | ( | ChStreamOutBinary & | mstream | ) | [virtual] |
Method to allow serializing transient data into a persistent binary archive (ex: a file).
Reimplemented from chrono::ChFunction.
CHRONO::ENGINE