theKernel 10.0 NHI1 - theKernel - theLink - theConfig - theSq3Lite - theCompiler - theBrain - theGuard
c - tcl - py - jv - cc
Loading...
Searching...
No Matches
MkObjectC_Class_PY_API

MkObjectC - define the class … More...

+ Collaboration diagram for MkObjectC_Class_PY_API:

Functions

static OT_ProcRet py_mkkernel_MkObjectC_HandleResolve (OtClass_ARGS)
  Python: [static] MkObjectC MkObjectC.HandleResolve(netHdl:MK_HDL) C-API
Handle-Resolve-Slot - return a MkObjectC from netHdl or None if invalid…
 
static OT_ProcRet py_mkkernel_MkObjectC_HandleDelete (MkObjectC_ARGS)
  Python: netObj.HandleDelete() C-API
Handle-Delete-Slot - delete a netObj from handle-storage …
 
static OT_ProcRet py_mkkernel_MkObjectC_HandleGet (MkObjectC_ARGS)
  Python: MK_HDL obj.HandleGet() C-API
Handle-Get-Slot - returns a export-hdl to the MkObjectC useable for external storage
 
static OT_ProcRet py_mkkernel_MkObjectC_HandleDeleteByNetHdl (OtClass_ARGS)
  Python: [static] MkObjectC.HandleDeleteByNetHdl(netHdl:MK_HDL) C-API
Handle-Delete-Slot - delete a netHdl from handle-storage …
 
static OT_ProcRet py_mkkernel_MkObjectC_Next (MkObjectC_ARGS)
  Python: MkObjectC obj.Next() C-API
get next instance from linked-list of MkObjectS type
 
static OT_ProcRet py_mkkernel_MkObjectC_Prev (MkObjectC_ARGS)
  Python: MkObjectC obj.Prev() C-API
get previous instance from linked-list of MkObjectS type
 
static OT_ProcRet py_mkkernel_MkObjectC_Instances (OtClass_ARGS)
  Python: [static] MkObjectC MkObjectC.Instances() C-API
get head-instance from linked-list of MkObjectS type …
 
static OT_ProcRet py_mkkernel_MkObjectC_GetNull (OtClass_ARGS)
  Python: [static] MkObjectC MkObjectC.GetNull() C-API
Null-Slot - return a MkObjectC typed NULL instance …
 

Detailed Description

MkObjectC - define the class …

Method definition

Function Documentation

◆ py_mkkernel_MkObjectC_GetNull()

static OT_ProcRet py_mkkernel_MkObjectC_GetNull ( OtClass_ARGS )
static

Python: [static] MkObjectC MkObjectC.GetNull() C-API
Null-Slot - return a MkObjectC typed NULL instance …

Definition at line 300 of file MkObjectC_py.c.

300 {
302 OT_SETUP_NOARG(GetNull_doc)
303 OT_CHECK_NOARGS
304 MK_OBJ retVal = MkObjectGetNull ();
305 OT_retObj_SET_OBJ(retVal)
306 goto end;
307 error:
308 OT_retObj_SET_Error
309 end:
310 OT_retObj_RETURN
311}
#define GetNull_doc
#define OT_SETUP_hdl_static
MK_OBJ MkObjectGetNull(void)
Null-Slot - return a MkObjectC typed NULL instance …
object header …

◆ py_mkkernel_MkObjectC_HandleDelete()

static OT_ProcRet py_mkkernel_MkObjectC_HandleDelete ( MkObjectC_ARGS )
static

Python: netObj.HandleDelete() C-API
Handle-Delete-Slot - delete a netObj from handle-storage …

Definition at line 203 of file MkObjectC_py.c.

203 {
205 OT_SETUP_NOARG(HandleDelete_doc)
206 OT_CHECK_NOARGS
208 OT_retObj_SET_None
209 goto end;
210 error:
211 OT_retObj_SET_Error
212 end:
213 OT_retObj_RETURN
214}
#define OT_SETUP_hdl
#define HandleDelete_doc
#define MkObjectHandleDelete(...)

◆ py_mkkernel_MkObjectC_HandleDeleteByNetHdl()

static OT_ProcRet py_mkkernel_MkObjectC_HandleDeleteByNetHdl ( OtClass_ARGS )
static

Python: [static] MkObjectC.HandleDeleteByNetHdl(netHdl:MK_HDL) C-API
Handle-Delete-Slot - delete a netHdl from handle-storage …

Definition at line 222 of file MkObjectC_py.c.

222 {
224 OT_SETUP_ONEARG(HandleDeleteByNetHdl_doc)
225 MK_HDL netHdl = 0;
226 OT_CHECK_REQUIRED(OT_CHECK_NIH (netHdl))
227 OT_CHECK_NOARGS
229 OT_retObj_SET_None
230 goto end;
231 error:
232 OT_retObj_SET_Error
233 end:
234 OT_retObj_RETURN
235}
#define HandleDeleteByNetHdl_doc
int32_t MK_HDL
4 byte int handle data-type
#define MkObjectHandleDeleteByNetHdl(...)

◆ py_mkkernel_MkObjectC_HandleGet()

static OT_ProcRet py_mkkernel_MkObjectC_HandleGet ( MkObjectC_ARGS )
static

Python: MK_HDL obj.HandleGet() C-API
Handle-Get-Slot - returns a export-hdl to the MkObjectC useable for external storage

Python: bool obj.IsNull() C-API
ckeck if the object is None

Definition at line 1141 of file MkObjectC_py.c.

1141 {
1142 OT_SETUP_hdl_static // set hdl to class to avoid using object->hdl
1143 OT_SETUP_NOARG(HandleGet_doc)
1144 OT_CHECK_NOARGS
1145 MK_OBJ nullhdl = OBJECT2OBJ(OT_SELF);
1146 if (nullhdl == NULL) {
1147 OT_retObj_SET_LONG(0);
1148 } else {
1149 OT_retObj_SET_LONG(MkObjectHandleGet(nullhdl))
1150 }
1151 goto end;
1152 error:
1153 OT_retObj_SET_Error
1154 end:
1155 OT_retObj_RETURN
1156}
#define HandleGet_doc
#define OBJECT2OBJ(O)
#define MkObjectHandleGet(...)

◆ py_mkkernel_MkObjectC_HandleResolve()

static OT_ProcRet py_mkkernel_MkObjectC_HandleResolve ( OtClass_ARGS )
static

Python: [static] MkObjectC MkObjectC.HandleResolve(netHdl:MK_HDL) C-API
Handle-Resolve-Slot - return a MkObjectC from netHdl or None if invalid…

Definition at line 185 of file MkObjectC_py.c.

185 {
187 OT_SETUP_ONEARG(HandleResolve_doc)
188 MK_HDL netHdl = 0;
189 OT_CHECK_REQUIRED(OT_CHECK_NIH (netHdl))
190 OT_CHECK_NOARGS
191 MK_OBJ retVal = MkObjectHandleResolve (netHdl);
192 OT_retObj_SET_OBJ(retVal)
193 goto end;
194 error:
195 OT_retObj_SET_Error
196 end:
197 OT_retObj_RETURN
198}
#define HandleResolve_doc
#define MkObjectHandleResolve(...)

◆ py_mkkernel_MkObjectC_Instances()

static OT_ProcRet py_mkkernel_MkObjectC_Instances ( OtClass_ARGS )
static

Python: [static] MkObjectC MkObjectC.Instances() C-API
get head-instance from linked-list of MkObjectS type …

Definition at line 277 of file MkObjectC_py.c.

277 {
279 OT_SETUP_NOARG(Instances_doc)
280 OT_CHECK_NOARGS
281 MK_OBJ retVal = MkObjectInstances ();
282 OT_retObj_SET_OBJ(retVal)
283 goto end;
284 error:
285 OT_retObj_SET_Error
286 end:
287 OT_retObj_RETURN
288}
#define Instances_doc
#define MkObjectInstances()

◆ py_mkkernel_MkObjectC_Next()

static OT_ProcRet py_mkkernel_MkObjectC_Next ( MkObjectC_ARGS )
static

Python: MkObjectC obj.Next() C-API
get next instance from linked-list of MkObjectS type

Definition at line 247 of file MkObjectC_py.c.

247 {
249 OT_SETUP_NOARG(Next_doc)
250 OT_CHECK_NOARGS
251 MK_OBJ retVal = MkObjectNext (hdl);
252 OT_retObj_SET_OBJ(retVal)
253 goto end;
254 error:
255 OT_retObj_SET_Error
256 end:
257 OT_retObj_RETURN
258}
#define Next_doc
MK_ATTR_HDL MK_OBJ MkObjectNext(MK_OBJ const obj)
get next instance from linked-list of MkObjectS type

◆ py_mkkernel_MkObjectC_Prev()

static OT_ProcRet py_mkkernel_MkObjectC_Prev ( MkObjectC_ARGS )
static

Python: MkObjectC obj.Prev() C-API
get previous instance from linked-list of MkObjectS type

Definition at line 261 of file MkObjectC_py.c.

261 {
263 OT_SETUP_NOARG(Prev_doc)
264 OT_CHECK_NOARGS
265 MK_OBJ retVal = MkObjectPrev (hdl);
266 OT_retObj_SET_OBJ(retVal)
267 goto end;
268 error:
269 OT_retObj_SET_Error
270 end:
271 OT_retObj_RETURN
272}
#define Prev_doc
MK_ATTR_HDL MK_OBJ MkObjectPrev(MK_OBJ const obj)
get previous instance from linked-list of MkObjectS type