CorTeX Core ABI 7
ToolTech Software · C++ library reference
Loading...
Searching...
No Matches
ctxTransform.h
Go to the documentation of this file.
1//*****************************************************************************
2// File : ctxTransform.h
3// Description : Managers a transform pipline
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 150708 Created file (1.0.0)
19//
20//******************************************************************************
21#ifndef __CTX_TRANSFORM_H__
22#define __CTX_TRANSFORM_H__
23
24#include "ctxBuffer.h"
25#include "ctxContext.h"
26
31
41
42class ctxTransform : public gzReference
43{
44public:
45
46 GZ_DECLARE_TYPE_INTERFACE_EXPORT(CTX_EXPORT);
47
50
51 CTX_EXPORT gzBool exec(ctxContext *context=NULL, ctxTransformCommand command = EVALUATE, gzUInt32 pages = 1);
52
55
57
60
61protected:
62
63 CTX_EXPORT virtual gzBool exec_pre(ctxContext *context,ctxTransformCommand command, gzUInt32 pages);
64 CTX_EXPORT virtual gzBool exec_post(ctxContext *context,ctxTransformCommand command, gzUInt32 pages);
65
66private:
67
68 gzDynamicArray<ctxBufferPtr> m_buffers;
69 gzRefList<ctxTransform> m_sourceTransforms;
70};
71
72GZ_DECLARE_REFPTR(ctxTransform);
73
74
75// ----------------------------------- ctxTransformManager -------------------------------
76
77
78class ctxTransformManager : public gzReference
79{
80public:
81
82 GZ_DECLARE_TYPE_INTERFACE_EXPORT(CTX_EXPORT);
83
84 // Public static interface --------------------
85
87
89
90protected:
91
93
94 virtual gzBool initialize() = 0;
95
96 CTX_EXPORT static gzMutex s_locker;
97
98 CTX_EXPORT static gzRefPointer<ctxTransformManager> s_currentManager;
99
100};
101
102
103
104#endif //__CTX_TRANSFORM_H__
105
106
virtual ~ctxTransform()
gzBool exec(ctxContext *context=NULL, ctxTransformCommand command=EVALUATE, gzUInt32 pages=1)
gzVoid clearAllBuffers()
gzVoid removeSourceTransform(ctxTransform *transform)
ctxBuffer * getBuffer(ctxSourceOperand operand)
virtual gzBool exec_pre(ctxContext *context, ctxTransformCommand command, gzUInt32 pages)
gzVoid addSourceTransform(ctxTransform *transform)
gzVoid setBuffer(ctxSourceOperand operand, ctxBuffer *buffer)
virtual gzBool exec_post(ctxContext *context, ctxTransformCommand command, gzUInt32 pages)
static gzBool setTransformManager(ctxTransformManager *manager)
static gzMutex s_locker
static ctxTransform * createInputTransform(ctxInput *input)
virtual ctxTransform * createInputTransformInstance(ctxInput *input)=0
static gzRefPointer< ctxTransformManager > s_currentManager
virtual gzBool initialize()=0
#define CTX_EXPORT
Definition ctxBase.h:68
ctxSourceOperand
@ OPERAND_A
@ INDEX
@ RESULT
@ OPERAND_C
@ OPERAND_B
ctxTransformCommand
@ EVALUATE