v8toolkit  0.0.1
Utility library for embedding V8 Javascript engine in a c++ program
Classes | Namespaces
sample2.h File Reference
#include <functional>
#include <memory>
#include <map>
#include <vector>
#include <set>
#include <EASTL/vector_set.h>
#include "class_parser.h"
Include dependency graph for sample2.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  v8toolkit::V8ClassWrapper< T >
 
class  v8toolkit::WrappedClassBase
 
class  v8toolkit::JSWrapper< T >
 
class  Uninteresting
 
class  OnlyUsedInTemplate
 
class  TemplatedClass< T, i >
 
class  FooGrandParent
 
class  FooParent
 
class  v8toolkit::EmptyFactoryBase
 
class  v8toolkit::FlexibleParent< class,... >
 
struct  v8toolkit::TypeList<... >
 
class  v8toolkit::CppFactory< Base, Child, ExternalTypeList, ParentType, FactoryBase >
 

Namespaces

 v8toolkit
 

Class Documentation

class v8toolkit::V8ClassWrapper

template<class T>
class v8toolkit::V8ClassWrapper< T >

Provides a mechanism for creating javascript-ready objects from an arbitrary C++ class Can provide a JS constructor method or wrap objects created in another c++ function

Const types should not be wrapped directly. Instead, a const version of a non-const type will automatically be created and populated with read-only members and any const-qualified method added to the non-const version.

All members/methods must be added, then finalize() called, then any desired constructors may be created.

Definition at line 16 of file sample2.h.

class Uninteresting

Definition at line 26 of file sample2.h.

class OnlyUsedInTemplate

Definition at line 28 of file sample2.h.

class TemplatedClass

template<class T, int i>
class TemplatedClass< T, i >

Definition at line 31 of file sample2.h.

class v8toolkit::EmptyFactoryBase

Class for Factory to inherit from when no other parent is specified Must be empty

Definition at line 63 of file sample2.h.

struct v8toolkit::TypeList

template<class...>
struct v8toolkit::TypeList<... >

Definition at line 73 of file sample2.h.

class v8toolkit::CppFactory

template<class Base, class Child, class ExternalTypeList = TypeList<>, template< class, class... > class ParentType = FlexibleParent, class FactoryBase = EmptyFactoryBase>
class v8toolkit::CppFactory< Base, Child, ExternalTypeList, ParentType, FactoryBase >

Returns a pure-C++ object of type Child which inherits from type Base. It's Base type and ConstructorArgs... must match with the Factory it is associated with. You can have it inherit from a type that inherits from v8toolkit::Factory but v8toolkit::Factory must be in the inheritance chain somewhere

Definition at line 110 of file sample.cpp.