18 #ifndef AGX_UNRESOLVED_TASK_H 19 #define AGX_UNRESOLVED_TASK_H 22 #include <agx/config/AGX_USE_OPENCL.h> 29 # pragma warning(push) 30 # pragma warning( disable : 4275 ) // warning C4275: non dll-interface class 31 # pragma warning( disable : 4251 ) // class X needs to have dll-interface to be used by clients of class Y 44 static Task* load(TiXmlElement* eTask,
Device* device);
45 virtual void configure(TiXmlElement* eTask)
override;
46 void configureSource(TiXmlElement* eTask);
47 static void deleteAllConfiguredProxies();
51 static Task* parse(
const String&
function,
const InjectCallback& injectCallback = InjectCallback(&UnresolvedTask::injectInstance));
54 const Name& instanceName,
Device* device,
const Path& taskPath,
const Name& implementationName,
55 const Path& basePath =
Path(),
const InjectCallback& injectCallback = InjectCallback(&UnresolvedTask::injectInstance));
57 virtual void run()
override;
61 const Name& getInstanceName()
const;
62 const Name& getImplementationName()
const;
73 void valueUpdateCallback(
Parameter* value);
74 bool instantiateProxy();
75 void performLoadAttempts();
78 void tryKernel(
const Path& path);
81 void tryInstanciateTask(TiXmlElement* eTask);
83 void configureInstance();
85 void configure(
const String&
function);
93 void createVerifierTask();
96 static void glInitCallback();
107 Name m_implementation;
111 InjectCallback m_injectCallback;
115 TiXmlElement* m_eTask;
123 # pragma warning(pop) Representation of a path, a list of name components.
Inheritance with partial specialization due to bug with ref_ptr containers.
A model is an abstract representation of the class of an agx::Object.
Generalized callback, using std::function.
#define AGX_DECLARE_POINTER_TYPES(type)
A representation of a generic task.
Representation of a name string.
Callback1< UnresolvedTask * > InjectCallback
Vector containing 'raw' data.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
A representation of a task/kernel parameter, which can be bound using a string path or explicitly to ...
virtual void configure(TiXmlElement *eTask) override
#define AGX_DECLARE_VECTOR_TYPES(type)
Inheritance with partial specialization due to bug with ref_ptr containers.
An agx::Device is an abstract representation of a device on which data can be stored and processed...