CorTeX Core ABI 7
ToolTech Software · C++ library reference
Loading...
Searching...
No Matches
ctxCppProgram.h
Go to the documentation of this file.
1//*****************************************************************************
2// File : ctxCppProgram.h
3// Description : C++ executor
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 Added adapter and bounded source-file exports (2.0.2)
19// AMO 151110 Created file (1.0.0)
20//
21//******************************************************************************
22#ifndef __CTX_CPP_PROGRAM_H__
23#define __CTX_CPP_PROGRAM_H__
24
25#include "ctxVirtualMachine.h"
26
27// -------------------------------------------- ctxCppProgram -----------------------------------
28
29class ctxCppProgram : public gzReference
30{
31public:
32
34
35 CTX_EXPORT virtual gzBool execute(ctxVirtualMachineProgram *program, const ctxProgramExecution& flags)=0;
36};
37
38GZ_DECLARE_REFPTR(ctxCppProgram);
39
45CTX_EXPORT gzBool ctxExportCppProgram(gzSerializeAdapter* adapter,
46 ctxVirtualMachineProgram* program, const gzString& functionName,
47 gzString* error = nullptr, gzUInt32 instructionsPerFunction = 512);
48
53CTX_EXPORT gzBool ctxExportCppProgramSources(const gzString& directoryURL,
54 ctxVirtualMachineProgram* program, const gzString& functionName,
55 gzString* error = nullptr, gzUInt32 instructionsPerFunction = 8192);
56
58
59
60
61#endif // __CTX_CPP_PROGRAM_H__
62
63
virtual gzBool execute(ctxVirtualMachineProgram *program, const ctxProgramExecution &flags)=0
#define CTX_EXPORT
Definition ctxBase.h:68
ctxCppProgram * createCppProgram(const ctxProgramExecution &flags, ctxDetailedRegisterUse *register_use)
gzBool ctxExportCppProgram(gzSerializeAdapter *adapter, ctxVirtualMachineProgram *program, const gzString &functionName, gzString *error=nullptr, gzUInt32 instructionsPerFunction=512)
Export direct C++11 operations from CAL to a caller-owned Gizmo adapter.
gzBool ctxExportCppProgramSources(const gzString &directoryURL, ctxVirtualMachineProgram *program, const gzString &functionName, gzString *error=nullptr, gzUInt32 instructionsPerFunction=8192)
Export an entry source and bounded chunk translation units to an existing Gizmo adapter URL directory...
ctxProgramExecution
Execution flags for ctxVirtualMachine::execute.