Closure management.
More...
#include <Closure.hpp>
Closure management.
Definition at line 44 of file Closure.hpp.
◆ Closure() [1/3]
Ark::internal::Closure::Closure |
( |
| ) |
|
|
noexcept |
◆ Closure() [2/3]
Construct a new Closure object.
- Parameters
-
scope_ptr | the scope of the function turned into a closure |
pa | the current page address of the function turned into a closure |
Definition at line 14 of file Closure.cpp.
◆ Closure() [3/3]
Construct a new Closure object.
- Parameters
-
scope_ptr | the scope of the function turned into a closure |
pa | the current page address of the function turned into a closure |
Definition at line 19 of file Closure.cpp.
◆ pageAddr()
PageAddr_t Ark::internal::Closure::pageAddr |
( |
| ) |
const |
|
inline |
Return the page address of the object.
- Returns
- PageAddr_t
Definition at line 88 of file Closure.hpp.
References m_page_addr.
◆ refScope()
Scope_t & Ark::internal::Closure::refScope |
( |
| ) |
|
|
noexcept |
Return a reference to the scpoe held by the object.
- Returns
- Scope_t&
Definition at line 29 of file Closure.cpp.
References m_scope.
◆ scope()
const Scope_t & Ark::internal::Closure::scope |
( |
| ) |
const |
|
noexcept |
◆ toString()
void Ark::internal::Closure::toString |
( |
std::ostream & |
os, |
|
|
VM & |
vm |
|
) |
| const |
|
noexcept |
Print the closure to a string.
- Parameters
-
Definition at line 34 of file Closure.cpp.
◆ operator<
◆ operator==
◆ m_page_addr
◆ m_scope
Scope_t Ark::internal::Closure::m_scope |
|
private |
The documentation for this class was generated from the following files:
- /Users/fola/Documents/ArkScript/Ark/include/Ark/VM/Value/Closure.hpp
- /Users/fola/Documents/ArkScript/Ark/src/arkreactor/VM/Value/Closure.cpp