Kiwi Engine
VM for interpreter
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
KEValueTablePool.h
Go to the documentation of this file.
1 
8 #ifndef KEVALUETABLEPOOL_H
9 #define KEVALUETABLEPOOL_H
10 
11 #include <Coconut/Coconut.h>
12 #include "KEForwarders.h"
13 
15 #define KEValueTablePoolNum 32
16 
22  struct CNResource * resource ;
24  struct CNObjectList valueTables[KEValueTablePoolNum] ;
25 } ;
26 
33 void
34 KEInitValueTablePool(struct KEValueTablePool * dst, struct CNResource * resource) ;
35 
40 void
42 
49 struct KEValueTable *
50 KEAllocateValueTableFromPool(struct KEValueTablePool * pool, uint64_t valnum) ;
51 
57 void
58 KEReleaseValueTableIntoPool(struct KEValueTablePool * pool, struct KEValueTable * dst) ;
59 
65 void
66 KEDumpValueTablePool(struct CNText * buf, const struct KEValueTablePool * src) ;
67 
68 #endif /* KEVALUETABLEPOOL_H */
struct KEValueTable * KEAllocateValueTableFromPool(struct KEValueTablePool *pool, uint64_t valnum)
Allocate KEValueTable object from the pool.
struct CNObjectList valueTables[KEValueTablePoolNum]
Definition: KEValueTablePool.h:24
KEProgram class.
Definition: KEValueTablePool.h:20
KEProgram class.
Definition: KEValueTable.h:17
void KEDumpValueTablePool(struct CNText *buf, const struct KEValueTablePool *src)
Dump the content of KEValueTablePool.
void KEInitValueTablePool(struct KEValueTablePool *dst, struct CNResource *resource)
Allocate value table pool.
void KEDestroyValueTablePool(struct KEValueTablePool *dst)
Destroy value table pool.
void KEReleaseValueTableIntoPool(struct KEValueTablePool *pool, struct KEValueTable *dst)
Release KEValueTable object into the pool.
struct CNResource * resource
Definition: KEValueTablePool.h:22
Forward declarations of the data type in KiwiEngine.
#define KEValueTablePoolNum
Definition: KEValueTablePool.h:15