nps/Object.h File Reference

#include <stdarg.h>
#include <stdlib.h>
#include "../error/error.h"

Go to the source code of this file.

Classes

struct  Object
struct  Class

Defines

#define CAST(cls, val)   (struct cls *) nps_cast(cls,(struct Object *)val)
#define NEW(cls, nps_err,...)   ((struct cls*) nps_new((struct Class *)cls, nps_err, __VA_ARGS__))
#define RELEASE(val, error)   nps_release(CAST(Object,val),error)
#define RETAIN(val)   nps_retain(CAST(Object,val))

Functions

void nps_initObject ()
int nps_releaseClasses (nps_error_t *error)
struct Objectnps_cast (const struct Class *to, struct Object *val)
void nps_retain (struct Object *o)
int nps_release (struct Object *o, nps_error_t *err)
struct Objectnps_new (const struct Class *class, nps_error_t *err,...)

Variables

struct Class Object []
struct Class Class []

Define Documentation

#define CAST ( cls,
val   )     (struct cls *) nps_cast(cls,(struct Object *)val)
#define NEW ( cls,
nps_err,
...   )     ((struct cls*) nps_new((struct Class *)cls, nps_err, __VA_ARGS__))
#define RELEASE ( val,
error   )     nps_release(CAST(Object,val),error)
#define RETAIN ( val   )     nps_retain(CAST(Object,val))

Function Documentation

struct Object* nps_cast ( const struct Class to,
struct Object val 
) [read]
void nps_initObject (  ) 
struct Object* nps_new ( const struct Class class,
nps_error_t err,
  ... 
) [read]
int nps_release ( struct Object o,
nps_error_t err 
)
int nps_releaseClasses ( nps_error_t error  ) 
void nps_retain ( struct Object o  ) 

Variable Documentation

struct Class Class[]
struct Class Object[]
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
Generated on Sun Sep 11 09:40:46 2011 for NPSML by  doxygen 1.6.3