![]() |
Yoba Perl
|
Subroutine reference More...
Inherits Variable.
Public Member Functions | |
| Code (Perl &perl, CV *cv, bool increase_refcount) | |
| Constructor. | |
Misc | |
| std::string | toString () const |
| Convert to C++ string. | |
| Scalar | makeRef () const |
| Take reference. More... | |
Internals | |
| CV * | getCV () const |
| Raw subroutine. | |
Public Member Functions inherited from Variable | |
| Variable (Perl &perl, SV *sv, bool increase_refcount) | |
| Constructor. | |
| Variable (const Variable &to_copy) | |
| Copy constructor. More... | |
| Variable (Variable &&to_move) | |
| Move constructor. More... | |
| virtual | ~Variable () |
| Destructor. More... | |
| void | setReadOnly (bool state) |
| Add/remove readonly flag. | |
| bool | isReadOnly () const |
| Check if SV has readonly flag. | |
| Perl & | getPerl () const |
| Get Perl instance. | |
| SV * | getSV () const |
| Get raw scalar. | |
| SV * | detachSV () |
| Nullify object and return SV. More... | |
| SV * | detachMortalSV () |
| Nullify object and return mortalized SV. More... | |
| U32 | getRefcount () const |
| Get SV reference count. | |
| void | increaseRefcount () |
| Increase SV reference count. | |
| void | decreaseRefcount () |
| Decrease SV reference count. | |
| void | dump () const |
| Dump SV data to stderr. | |
| bool | operator== (const Variable &other) |
| Compare SV pointers. | |
| bool | operator!= (const Variable &other) |
| Scalar makeRef | ( | ) | const |