AGX Dynamics  2.37.2.0
FunctionValue.h
Go to the documentation of this file.
1 /*
2 Copyright 2007-2024. Algoryx Simulation AB.
3 
4 All AGX source code, intellectual property, documentation, sample code,
5 tutorials, scene files and technical white papers, are copyrighted, proprietary
6 and confidential material of Algoryx Simulation AB. You may not download, read,
7 store, distribute, publish, copy or otherwise disseminate, use or expose this
8 material unless having a written signed agreement with Algoryx Simulation AB, or having been
9 advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10 valid commercial license from Algoryx Simulation AB.
11 
12 Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13 from using this software, unless otherwise stated in written agreements with
14 Algoryx Simulation AB.
15 */
16 
17 #ifndef AGX_FUNCTIONVALUE_H
18 #define AGX_FUNCTIONVALUE_H
19 
20 #include <agxData/Value.h>
21 #include <agx/Task.h>
22 #include <agx/UnresolvedTask.h>
23 
24 namespace agxData
25 {
27  {
28  public:
29  // FunctionValue(const Name& name, const agxData::Type *type, Task *function);
30  FunctionValue(const agxData::Type *type, const agx::String& expression);
31  FunctionValue(const agxData::Format *format, const agx::String& expression);
32 
33  void injectFunctionInstance(agx::UnresolvedTask *proxy);
34 
35  virtual void rebind();
36 
37  void setContext(agx::Object *component);
38 
39  protected:
40  virtual ~FunctionValue();
41 
42  private:
43  void parameterUpdateCallback(agx::Parameter *parameter);
44 
45  private:
46  agx::TaskRef m_function;
47  agx::Parameter::Event::CallbackType m_parameterCallback;
48  agx::ParameterRef m_result;
49  };
50 }
51 
52 #endif /* _AGX_FUNCTIONVALUE_H_ */
Abstract representation of a value.
Definition: Value.h:48
A format is an implementation of a agxData::Type.
Definition: Format.h:63
Templated callback with one argument.
Definition: Callback.h:100
Abstracted type.
Definition: Type.h:97
A representation of a task/kernel parameter, which can be bound using a string path or explicitly to ...
Definition: Parameter.h:61
Contains classes for low level data storage for AGX.
Definition: Container.h:23
#define AGXCORE_EXPORT
agx::Object is a refcounted object with a name.
Definition: Object.h:58