17 #ifndef AGX_OBJECTWRAPPER_H
18 #define AGX_OBJECTWRAPPER_H
33 void set(
const T& value);
52 void set(
const T *value);
55 virtual ~ObjectRefWrapper() {}
82 ObjectWrapperRef<T>::ObjectWrapperRef(
const agx::Name& name, T *
object) :
Object(name), m_object(object)
90 AGX_FORCE_INLINE const T *ObjectWrapperRef<T>::get()
const {
return m_object; }
93 AGX_FORCE_INLINE void ObjectWrapperRef<T>::set(T *
object) { m_object = object; }
Representation of a name string.
ObjectWrapper(const agx::Name &name, const T &value=T())
agx::Object is a refcounted object with a name.
Smart pointer for handling referenced counted objects.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.