|
| | Perl (bool do_init=true) |
| | Default constructor. More...
|
| |
|
| Perl (Perl &&to_move) |
| | Move constructor.
|
| |
|
| ~Perl () |
| | Destructor.
|
| |
|
|
Scalar | newScalar () |
| | Create anonymous empty scalar.
|
| |
| Scalar | newNamedScalar (const std::string &name) |
| | Create empty scalar as $name. More...
|
| |
| template<typename ValueT > |
| Scalar | newScalar (const ValueT &value) |
| | Create anonymous scalar and set value. More...
|
| |
| template<typename ValueT > |
| Scalar | newNamedScalar (const std::string &name, const ValueT &value) |
| | Create scalar as $name and set value. More...
|
| |
| Array | newArray () |
| | Create anonymous empty array. More...
|
| |
| Array | newArray (IV begin, IV end) |
| | Create anonymous array fill with integers. More...
|
| |
| Array | newNamedArray (const std::string &name) |
| | Create empty array as @name. More...
|
| |
| Array | newNamedArray (const std::string &name, IV begin, IV end) |
| | Create array as @name array fill with integers. More...
|
| |
| template<typename ValueT > |
| Array | newArray (const std::vector< ValueT > &values) |
| | Create anonymous array and fill. More...
|
| |
|
template<typename ValueT > |
| Array | newArray (const std::initializer_list< ValueT > &values) |
| |
| template<typename ValueT > |
| Array | newNamedArray (const std::string &name, const std::vector< ValueT > &values) |
| | Create array as @name and fill. More...
|
| |
|
template<typename ValueT > |
| Array | newNamedArray (const std::string &name, const std::initializer_list< ValueT > &values) |
| |
| Hash | newHash () |
| | Create anonymous empty hash. More...
|
| |
| Hash | newNamedHash (const std::string &name) |
| | Create empty hash as %name. More...
|
| |
| template<typename ValueT > |
| Hash | newHash (const std::unordered_map< std::string, ValueT > &map) |
| | Create anonymous hash and fill. More...
|
| |
| template<typename ValueT > |
| Hash | newNamedHash (const std::string &name, const std::unordered_map< std::string, ValueT > &map) |
| | Create hash as %name and fill. More...
|
| |
| Scalar | newObject (const std::string &class_name) |
| | Create new object. More...
|
| |
| Scalar | newObject (const std::string &class_name, const Scalar ¶m) |
| | Create new object. More...
|
| |
| Scalar | newObject (const std::string &class_name, const Array ¶ms) |
| | Create new object. More...
|
| |
|
| Scalar | getScalar (const std::string &name) |
| | Get scalar by name. More...
|
| |
| Array | getArray (const std::string &name) |
| | Get array by name. More...
|
| |
| Hash | getHash (const std::string &name) |
| | Get hash by name. More...
|
| |
| Code | getSubroutine (const std::string &name) |
| | Get subroutine by name. More...
|
| |
| Code | getMethod (const std::string &name) |
| | Get class method by name. More...
|
| |
| ScalarPtr | getScalarPtr (const std::string &name) |
| | Place scalar reference in heap. More...
|
| |
| ArrayPtr | getArrayPtr (const std::string &name) |
| | Place array reference in heap. More...
|
| |
| HashPtr | getHashPtr (const std::string &name) |
| | Place hash reference in heap. More...
|
| |
| CodePtr | getSubroutinePtr (const std::string &name) |
| | Place subroutine reference in heap. More...
|
| |
|
| template<typename ReturnT = void> |
| ReturnT | eval (const std::string &code) |
| | Evaluate string in generic context. More...
|
| |
| template<typename ReturnT , typename ParamT > |
| ReturnT | call (const std::string &sub_name, const ParamT ¶m) |
| | Call subroutine in generic context. More...
|
| |
|
template<typename ReturnT = void> |
| ReturnT | call (const std::string &sub_name) |
| |
|
template<typename ReturnT , typename ParamT > |
| ReturnT | call (const Code &subroutine, const ParamT ¶m) |
| |
|
template<typename ReturnT = void> |
| ReturnT | call (const Code &subroutine) |
| |
| template<typename ReturnT , typename ParamT > |
| ReturnT | callMethod (const std::string &sub_name, const Scalar &object, const ParamT ¶m) |
| | Call method in generic context. More...
|
| |
|
template<typename ReturnT = void> |
| ReturnT | callMethod (const std::string &sub_name, const Scalar &object) |
| |
|
template<typename ReturnT , typename ParamT > |
| ReturnT | callMethod (const Code &subroutine, const Scalar &object, const ParamT ¶m) |
| |
|
template<typename ReturnT = void> |
| ReturnT | callMethod (const Code &subroutine, const Scalar &object) |
| |
|
|
Perl & | registerVoidToVoid (const std::string &name, priv::Callbacks::VoidToVoidCB function) |
| |
|
Perl & | registerVoidToScalar (const std::string &name, priv::Callbacks::VoidToScalarCB function) |
| |
|
Perl & | registerScalarToVoid (const std::string &name, priv::Callbacks::ScalarToVoidCB function) |
| |
|
Perl & | registerScalarToScalar (const std::string &name, priv::Callbacks::ScalarToScalarCB function) |
| |
|
CV * | registerStatic (const std::string &sub_name, XSUBADDR_t function) |
| |
|
| Perl & | init () |
| | Initialize the Perl interpreter. More...
|
| |
| Perl & | lib (const std::string &path) |
| | Add folder to module search path. More...
|
| |
| Perl & | use (const std::string &name) |
| | Import a module. More...
|
| |
| Perl & | no (const std::string &name) |
| | Unload a module. More...
|
| |
| Perl & | require (const std::string &name) |
| | Load external file. More...
|
| |
|
Perl & | setExceptionsEnabled (bool state) |
| | Enable/disable all exceptions. Default: enabled.
|
| |
|
Perl & | setWarningsEnabled (bool state) |
| | Enable/disable all warnings. Default: disabled.
|
| |
| bool | hasError () const |
| | Check Perl error. More...
|
| |
|
std::string | getError () const |
| |
|
| int | getId () const |
| | Perl object id. More...
|
| |
|
PerlInterpreter * | getInterpreter () const |
| | Raw interpreter.
|
| |
| SV * | getNamedSV (const std::string &name) const |
| | Get raw scalar by name. More...
|
| |
| AV * | getNamedAV (const std::string &name) const |
| | Get raw array by name. More...
|
| |
| HV * | getNamedHV (const std::string &name) const |
| | Get raw hash by name. More...
|
| |
| CV * | getNamedCV (const std::string &name) const |
| | Get raw subroutine by name. More...
|
| |
|
std::string | deparse (const Code &code) |
| | Convert subroutine to string using B::Deparse.
|
| |
| Perl & | setContext () |
| | Set interpreter context. More...
|
| |
|
| VariablePtr | operator[] (std::string query) |
| | Universal operator. More...
|
| |
Main class.
Definition at line 32 of file perl.hpp.