Go to the source code of this file.
Classes | |
struct | PmClass_s |
struct | PmInstance_s |
struct | PmMethod_s |
Typedefs | |
typedef struct PmClass_s | PmClass_t |
typedef struct PmClass_s * | pPmClass_t |
typedef struct PmInstance_s | PmInstance_t |
typedef struct PmInstance_s * | pPmInstance_t |
typedef struct PmMethod_s | PmMethod_t |
typedef struct PmMethod_s * | pPmMethod_t |
Functions | |
PmReturn_t | class_new (pPmObj_t pmeths, pPmObj_t pbases, pPmObj_t pname, pPmObj_t *r_pclass) |
PmReturn_t | class_instantiate (pPmObj_t pclass, pPmObj_t *r_pobj) |
PmReturn_t | class_method (pPmObj_t pinstance, pPmObj_t pfunc, pPmObj_t *r_pmeth) |
PmReturn_t | class_getAttr (pPmObj_t pobj, pPmObj_t pname, pPmObj_t *r_pobj) |
uint8_t | class_isSubclass (pPmObj_t ptest_class, pPmObj_t pbase_class) |
Definition in file class.h.
Class struct
This C struct is used for PyMite class objects Note: Exceptions are objects.
typedef struct PmInstance_s PmInstance_t |
Class instance struct
typedef struct PmMethod_s PmMethod_t |
Method struct
PmReturn_t class_getAttr | ( | pPmObj_t | pobj, | |
pPmObj_t | pname, | |||
pPmObj_t * | r_pobj | |||
) |
PmReturn_t class_instantiate | ( | pPmObj_t | pclass, | |
pPmObj_t * | r_pobj | |||
) |
Returns a C boolean if the base class is found in the inheritance tree of the test class. NOTE: This function is recursive.
ptest_class | ptr to class whose inheritance tree is searched | |
pbase_class | ptr to class to look for |
PmReturn_t class_method | ( | pPmObj_t | pinstance, | |
pPmObj_t | pfunc, | |||
pPmObj_t * | r_pmeth | |||
) |
PmReturn_t class_new | ( | pPmObj_t | pmeths, | |
pPmObj_t | pbases, | |||
pPmObj_t | pname, | |||
pPmObj_t * | r_pclass | |||
) |