Kiwi Engine
VM for interpreter
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Data Structures | Typedefs | Enumerations | Functions
KEObject.h File Reference

Define KEObject class. More...

#include <Coconut/Coconut.h>
#include "KEForwarders.h"

Go to the source code of this file.

Data Structures

struct  KEObjectMethods
 
struct  KEObject
 

Typedefs

typedef const char *(* KETypeNameOfObjectFuncRef )(void)
 
typedef void(* KEDumpObjectFuncRef )(struct CNText *outbuf, struct KEObject *src)
 

Enumerations

enum  KEObjectType {
  KEFrameObject, KEArrayObject, KEDictionaryObject, KEPathObject,
  KEFunctionObject, KEBuiltinFuncObject
}
 

Functions

struct KEObjectKEAllocateObject (KEObjectType type, size_t objsize, const struct KEObjectMethods *methods, struct CNResource *resource)
 Allocate the sub class of KEObject. More...
 

Detailed Description

Define KEObject class.

Copyright
Copyright (C) 2014 Steel Wheels Project

Typedef Documentation

typedef void(* KEDumpObjectFuncRef)(struct CNText *outbuf, struct KEObject *src)

Function to dump the context of the object

typedef const char*(* KETypeNameOfObjectFuncRef)(void)

Function to get the type name

Enumeration Type Documentation

Kind of object

Function Documentation

struct KEObject* KEAllocateObject ( KEObjectType  type,
size_t  objsize,
const struct KEObjectMethods methods,
struct CNResource *  resource 
)

Allocate the sub class of KEObject.

Returns
Allocated object
Parameters
typeType of object
objsizeSize of the sub class
methodsMethods for the sub class
resourceResource to allocate the object