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
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
29
class
ctxCppProgram
:
public
gzReference
30
{
31
public
:
32
33
GZ_DECLARE_TYPE_INTERFACE
;
34
35
CTX_EXPORT
virtual
gzBool
execute
(
ctxVirtualMachineProgram
*program,
const
ctxProgramExecution
& flags)=0;
36
};
37
38
GZ_DECLARE_REFPTR(
ctxCppProgram
);
39
45
CTX_EXPORT
gzBool
ctxExportCppProgram
(gzSerializeAdapter* adapter,
46
ctxVirtualMachineProgram
* program,
const
gzString& functionName,
47
gzString* error =
nullptr
, gzUInt32 instructionsPerFunction = 512);
48
53
CTX_EXPORT
gzBool
ctxExportCppProgramSources
(
const
gzString& directoryURL,
54
ctxVirtualMachineProgram
* program,
const
gzString& functionName,
55
gzString* error =
nullptr
, gzUInt32 instructionsPerFunction = 8192);
56
57
ctxCppProgram
*
createCppProgram
(
const
ctxProgramExecution
& flags,
ctxDetailedRegisterUse
*register_use);
58
59
60
61
#endif
// __CTX_CPP_PROGRAM_H__
62
63
ctxCppProgram
Definition
ctxCppProgram.h:30
ctxCppProgram::GZ_DECLARE_TYPE_INTERFACE
GZ_DECLARE_TYPE_INTERFACE
Definition
ctxCppProgram.h:33
ctxCppProgram::execute
virtual gzBool execute(ctxVirtualMachineProgram *program, const ctxProgramExecution &flags)=0
ctxDetailedRegisterUse
Definition
ctxVirtualMachine.h:391
ctxVirtualMachineProgram
Definition
ctxVirtualMachine.h:76
CTX_EXPORT
#define CTX_EXPORT
Definition
ctxBase.h:68
createCppProgram
ctxCppProgram * createCppProgram(const ctxProgramExecution &flags, ctxDetailedRegisterUse *register_use)
ctxExportCppProgram
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.
ctxExportCppProgramSources
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...
ctxVirtualMachine.h
ctxProgramExecution
ctxProgramExecution
Execution flags for ctxVirtualMachine::execute.
Definition
ctxVirtualMachine.h:492
Generated by
1.18.0