39 virtual void configure(TiXmlElement *ePointer)
override;
112 template <
typename T>
116 Ptr(
const Name& name,
const String& autoBindPath =
"") :
PointerT<T>(name, autoBindPath)
121 Ptr(
const Name& name, T *ptr,
const String& autoBindPath =
"") : PointerT<T>(name, ptr, autoBindPath)
128 this->forceUnbindChildren();
130 this->unreference_nodelete();
131 if (this->getReferenceCount() > 0)
137 if (
dynamic_cast<Component *
>(this->getContext()))
138 static_cast<Component *
>(this->getContext())->removeObject(
this);
141 Ptr<T>& operator= (
const Ptr<T>& pointer) {
return this->operator=(pointer.get()); }
142 Ptr<T>& operator= (T *pointer) { this->set((Object *)pointer);
return *
this; }
153 template <
typename T>
156 template <
typename T>
162 template <
typename T>
166 template <
typename T>
170 template <
typename T>
176 template <
typename T>
179 template <
typename T>
182 template <
typename T>
188 template <
typename T>
191 template <
typename T>
194 template <
typename T>
201 template <
typename T>
204 this->set((
Object *)pointer);
#define AGX_DECLARE_POINTER_TYPES(type)
#define AGX_EXPIRED_SCOPE_ALLOCATION
#define AGX_DECLARE_VECTOR_TYPES(type)
Abstract representation of a value.
void bind(const agx::Path &path)
Set bind path which will auto-bind when resolved.
An agx::Device is an abstract representation of a device on which data can be stored and processed.
A model is an abstract representation of the class of an agx::Object.
Representation of a name string.
agx::Object is a refcounted object with a name.
Representation of a path, a list of name components.
PointerT(const Name &name, const String &autoBindPath="")
PointerT< T > & operator=(const PointerT< T > &pointer)
PointerT(const Name &name, T *ptr, const String &autoBindPath="")
A pointer to an agx::Object.
Pointer(const agx::Name &name, const agx::String &autoBindPath="")
static Pointer * load(TiXmlElement *ePointer, Device *device)
virtual bool bind(agx::Object *object) override
Bind the pointer to an object.
virtual Object * getResourceImpl(const Path &path, agx::Model *model) override
virtual void buildNavigationTree(agxJson::Value &eNode) const override
virtual void configure(TiXmlElement *ePointer) override
virtual void destroyCallback(agx::Object *object) override
static agx::Model * ClassModel()
Pointer(const agx::Name &name, agx::Object *target, const agx::String &autoBindPath="")
void unbind()
Unbind the pointer.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.