Jerryscript::ContextTemplate< ClassType > Class Template Reference
Implement a custom Context class. More...
#include <Context.h>
Inheritance diagram for Jerryscript::ContextTemplate< ClassType >:
Collaboration diagram for Jerryscript::ContextTemplate< ClassType >:
Public Types | |
| using | ContextClass = ClassType |
Public Types inherited from LinkedObjectTemplate< ClassType > | |
| using | Iterator = IteratorTemplate< ClassType, ClassType *, ClassType & > |
| using | ConstIterator = IteratorTemplate< const ClassType, const ClassType *, const ClassType & > |
Public Member Functions | |
| Context () | |
| Create a context using the default JERRY_GLOBAL_HEAP_SIZE setting. More... | |
| Context (size_t heapSize) | |
| Create a context with custom heap size. More... | |
Public Member Functions inherited from LinkedObjectTemplate< ClassType > | |
| ClassType * | getNext () const |
| bool | insertAfter (ClassType *object) |
| Iterator | begin () const |
| Iterator | end () const |
| Iterator | cbegin () const |
| Iterator | cend () const |
Public Member Functions inherited from LinkedObject | |
| virtual | ~LinkedObject ()=default |
| virtual LinkedObject * | next () const |
| bool | insertAfter (LinkedObject *object) |
| bool | operator== (const LinkedObject &other) const |
| bool | operator!= (const LinkedObject &other) const |
Public Member Functions inherited from Jerryscript::Context | |
| Context () | |
| Create a context using the default JERRY_GLOBAL_HEAP_SIZE setting. More... | |
| Context (size_t heapSize) | |
| Create a context with custom heap size. More... | |
| ~Context () | |
| operator bool () const | |
| void | select () |
| Make this the current context. More... | |
| operator jerry_context_t * () const | |
Static Public Member Functions | |
| static ClassType & | getCurrent () |
Static Public Member Functions inherited from Jerryscript::Context | |
| static Context & | getCurrent () |
Detailed Description
template<class ClassType>
class Jerryscript::ContextTemplate< ClassType >
Implement a custom Context class.
Member Typedef Documentation
◆ ContextClass
template<class ClassType >
| using Jerryscript::ContextTemplate< ClassType >::ContextClass = ClassType |
Member Function Documentation
◆ Context() [1/2]
template<class ClassType >
| Jerryscript::Context::Context |
Create a context using the default JERRY_GLOBAL_HEAP_SIZE setting.
◆ Context() [2/2]
template<class ClassType >
| Jerryscript::Context::Context |
Create a context with custom heap size.
- Parameters
-
heapSize Size of heap in bytes. Will be rounded up as necessary.
◆ getCurrent()
template<class ClassType >
|
inlinestatic |
The documentation for this class was generated from the following file:
Public Types inherited from
1.9.1