Poco::JS::Bridge

template < typename V >

class PersistentValueStack

Library: JS/Bridge
Package: Bridging
Header: Poco/JS/Bridge/Serializer.h

Description

A helper class to keep a stack of JavaScript objects.

Member Summary

Member Functions: back, clear, empty, front, pop, push, size

Constructors

PersistentValueStack inline

explicit PersistentValueStack(
    v8::Isolate * pIsolate
);

Destructor

~PersistentValueStack inline

~PersistentValueStack();

Member Functions

back inline

v8::Global < V > & back();

back inline

const v8::Global < V > & back() const;

clear inline

void clear();

empty inline

bool empty() const;

front inline

v8::Global < V > & front();

front inline

const v8::Global < V > & front() const;

pop inline

void pop();

push inline

void push(
    const v8::Local < V > & value
);

size inline

std::size_t size() const;

Variables

_pIsolate

v8::Isolate * _pIsolate;

_vector

std::vector < v8::Global < V >> _vector;

Securely control IoT edge devices from anywhere   Connect a Device