![]()  | 
  
    Ultralight C++ API 1.4.0
    
   | 
 
#include <AppCore/JSHelpers.h>
A vector of JSValues, used for passing around arguments in JSCallback.
Public Member Functions | |
| JSArgs () | |
| Create an empty list of JavaScript arguments.   | |
| JSArgs (const std::initializer_list< JSValue > &values) | |
| Create a list of JavaScript arguments using a C++ initializer list.   | |
| JSArgs (const JSArgs &other) | |
| Copy-constructor.   | |
| ~JSArgs () | |
| Destructor.   | |
| JSArgs & | operator= (const JSArgs &other) | 
| Assignment operator.   | |
| JSValue | operator[] (size_t pos) | 
| Access an element of the argument list by index.   | |
| const JSValue | operator[] (size_t pos) const | 
| Access an element of the argument list by index.   | |
| bool | empty () const | 
| Whether or not the argument list is empty.   | |
| size_t | size () const | 
| The number of elements in the argument list.   | |
| void | clear () | 
| Clear the argument list.   | |
| void | push_back (const JSValue &val) | 
| Add a new argument to the end of the list.   | |
| void | pop_back () | 
| Remove the last item from the end of the list.   | |
| JSValue * | data () | 
| Get the argument list as a C-array of JSValues.   | |
| const JSValue * | data () const | 
| Get the argument list as a C-array of JSValues (const overload)   | |
Protected Attributes | |
| void * | instance_ | 
| JSArgs | ( | ) | 
Create an empty list of JavaScript arguments.
Create a list of JavaScript arguments using a C++ initializer list.
| ~JSArgs | ( | ) | 
Destructor.
| void clear | ( | ) | 
Clear the argument list.
| JSValue * data | ( | ) | 
Get the argument list as a C-array of JSValues.
| const JSValue * data | ( | ) | const | 
Get the argument list as a C-array of JSValues (const overload)
| bool empty | ( | ) | const | 
Whether or not the argument list is empty.
| JSValue operator[] | ( | size_t | pos | ) | 
Access an element of the argument list by index.
| const JSValue operator[] | ( | size_t | pos | ) | const | 
Access an element of the argument list by index.
(const overload)
| void pop_back | ( | ) | 
Remove the last item from the end of the list.
| void push_back | ( | const JSValue & | val | ) | 
Add a new argument to the end of the list.
| size_t size | ( | ) | const | 
The number of elements in the argument list.
      
  | 
  protected |