v8toolkit  0.0.1
Utility library for embedding V8 Javascript engine in a c++ program
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>
17 
18 
20 
21  template<class T>
22  class JSWrapper{};
23 }
24 
25 
26 class Uninteresting{};
27 
29 
30 template<class T, int i>
32 
34 public:
35  FooGrandParent(char, char, char);
36  virtual void foo_grandparent_but_not_foo_virtual();
37 };
38 
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...>
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 
STL namespace.
#define V8TOOLKIT_DO_NOT_WRAP_CONSTRUCTORS
Definition: class_parser.h:103