v8toolkit
0.0.1
Utility library for embedding V8 Javascript engine in a c++ program
Main Page
Namespaces
Classes
Files
File List
File Members
class_parser
sample2.h
Go to the documentation of this file.
1
2
#include <functional>
3
#include <memory>
4
#include <map>
5
#include <vector>
6
#include <set>
7
8
#include <EASTL/vector_set.h>
9
10
using namespace
std
;
11
#include "
class_parser.h
"
12
13
// simulate classes actually in v8_class_wrapper.h
14
namespace
v8toolkit
{
15
template
<
class
T>
16
class
V8ClassWrapper
;
17
18
19
class
WrappedClassBase
{};
20
21
template
<
class
T>
22
class
JSWrapper
{};
23
}
24
25
26
class
Uninteresting
{};
27
28
class
OnlyUsedInTemplate
{};
29
30
template
<
class
T,
int
i>
31
class
TemplatedClass
{};
32
33
class
FooGrandParent
:
public
v8toolkit::WrappedClassBase
{
34
public
:
35
FooGrandParent
(
char
,
char
,
char
);
36
virtual
void
foo_grandparent_but_not_foo_virtual();
37
};
38
39
class
V8TOOLKIT_WRAPPED_CLASS
FooParent
:
public
FooGrandParent
{
40
public
:
41
// FooParent();
42
// virtual void fooparent_purevirtual_tobeoverridden() = 0;
43
// virtual void fooparent_virtual_tobeoverridden();
44
// virtual void fooparent_virtual(char * a, int b, const volatile short & c);
45
// static int fooparent_static_method(const int *){return 8;}
46
//
47
// virtual int const_virtual_not_overwritten(int, int, int) const;
48
//
49
// char fooparent_char();
50
// int fp_i;
51
52
virtual
void
foo_parent_virtual(
int
,
int
,
int
);
53
virtual
void
foo_parent_pure_virtual(
char
,
char
,
char
,
char
) = 0;
54
virtual
void
foo_grandparent_but_not_foo_virtual()
override
;
55
56
};
57
58
59
60
61
namespace
v8toolkit
{
62
63
class
EmptyFactoryBase
{};
64
65
class
WrappedClassBase
;
66
67
template
<
class
,
class
...>
68
class
V8TOOLKIT_DO_NOT_WRAP_CONSTRUCTORS
FlexibleParent
:
public
WrappedClassBase
{};
69
70
71
72
template
<
class
...>
73
class
TypeList
;
74
75
template
<
76
class
Base,
77
class
Child,
78
class
ExternalTypeList,
79
template
<
class
,
class
...>
class
ParentType
,
80
class
FactoryBase
>
81
class
CppFactory
;
82
83
84
/*
85
template<
86
class,
87
class Child,
88
class ExternalTypeList,
89
template<class, class...> class ParentType,
90
class FactoryBase>
91
92
class V8TOOLKIT_SKIP CppFactory;
93
*/
94
}
95
96
TemplatedClass
Definition:
sample2.h:31
std
STL namespace.
v8toolkit::WrappedClassBase
Definition:
sample2.h:19
v8toolkit::JSWrapper
Definition:
sample2.h:22
class_parser.h
FooGrandParent
Definition:
sample2.h:33
Uninteresting
Definition:
sample2.h:26
OnlyUsedInTemplate
Definition:
sample2.h:28
v8toolkit::EmptyFactoryBase
Definition:
sample2.h:63
FactoryBase
ParentType
v8toolkit::CppFactory
Definition:
sample.cpp:110
v8toolkit::TypeList
Definition:
sample2.h:73
v8toolkit
Definition:
sample.cpp:102
V8TOOLKIT_DO_NOT_WRAP_CONSTRUCTORS
#define V8TOOLKIT_DO_NOT_WRAP_CONSTRUCTORS
Definition:
class_parser.h:103
v8toolkit::V8ClassWrapper
Definition:
sample2.h:16
FooParent
Definition:
sample2.h:39
DerivedFromWrappedClassBase
Definition:
sample.cpp:126
v8toolkit::FlexibleParent
Definition:
sample2.h:68
Generated on Mon May 22 2017 12:46:56 for v8toolkit by
1.8.11