CorTeX
Core ABI 7
ToolTech Software · C++ library reference
ToolTech
CorTeX overview
Programmer’s manual
Class reference
Change history
CycloPos ↗
Toggle main menu visibility
Loading...
Searching...
No Matches
include
ctxCppExecutor.h
Go to the documentation of this file.
1
//*****************************************************************************
2
// File : ctxCppExecutor.h
3
// Description : C++ executor body
4
// Author : Anders Modén
5
// Product : CorTeX 2.0.1
6
//
7
// Copyright © 2015- Anders Modén, Sweden
8
//
9
// NOTE: CorTeX is a software development kit (SDK)
10
// for neural networks and genetic programming.
11
// Licensed by Anders Modén.
12
//
13
//
14
// Revision History...
15
//
16
// Who Date Description
17
//
18
// AMO 261011 Execute the complete generated runtime contract (2.0.2)
19
// AMO 151110 Created file (1.0.0)
20
//
21
//******************************************************************************
22
#ifndef __CTX_CPP_EXECUTOR_H__
23
#define __CTX_CPP_EXECUTOR_H__
24
25
#include "gzModule.h"
26
27
#ifndef CTX_CPP_ENTRY_POINT
28
#error Define CTX_CPP_ENTRY_POINT to the generated C++ function before including this header.
29
#endif
30
34
class
ctxCppExecutor
:
public
gzDynamicMethodChain<ctxCppExecutor, gzModule>
35
{
36
public
:
37
38
ctxCppExecutor
()
39
{
40
registerMethod(
"execute"
, &
ctxCppExecutor::execute
);
41
}
42
43
gzDynamicType
execute
(GZ_DYNAMIC_ATTRIBUTE_LIST)
44
{
45
ctxVirtualMachineProgram
* program = (
ctxVirtualMachineProgram
*)a0.getPointer();
46
gzUInt32 flags = a2.is(GZ_DYNAMIC_TYPE_NUMBER) ? (gzUInt32)a2.getNumber() :
CTX_PRG_EXEC_DEFAULT
;
47
48
return
(gzBool)CTX_CPP_ENTRY_POINT(program, flags);
49
}
50
};
51
52
#endif
// __CTX_CPP_EXECUTOR_H__
ctxCppExecutor::execute
gzDynamicType execute(GZ_DYNAMIC_ATTRIBUTE_LIST)
Definition
ctxCppExecutor.h:43
ctxCppExecutor::ctxCppExecutor
ctxCppExecutor()
Definition
ctxCppExecutor.h:38
ctxVirtualMachineProgram
Definition
ctxVirtualMachine.h:76
CTX_PRG_EXEC_DEFAULT
@ CTX_PRG_EXEC_DEFAULT
Ignore register dependancies.
Definition
ctxVirtualMachine.h:499
Generated by
1.18.0