AGX Dynamics 2.42.3.1
Loading...
Searching...
No Matches
agxSDK::SimulationParameterT< T > Class Template Reference

#include <SimulationParameter.h>

+ Inheritance diagram for agxSDK::SimulationParameterT< T >:

Public Member Functions

 SimulationParameterT (const agx::Name &name, const T &initialValue=T())
 
virtual const T & get () const
 
virtual const agxData::Format * getFormat () const override
 
virtual const agxData::Value * getValue () const override
 
virtual bool hasGetter () const override
 
virtual bool hasSetter () const override
 
virtual void set (const T &value)
 
virtual void setValue (agxData::Value *value) override
 
- Public Member Functions inherited from agxSDK::SimulationParameter
 SimulationParameter (const agx::Name &name)
 
const agx::String & getDescription () const
 
virtual const agxData::Format * getFormat () const =0
 
const agx::Name & getName () const
 
agxSDK::Simulation * getSimulation ()
 
virtual const agxData::Value * getValue () const =0
 
virtual bool hasGetter () const =0
 
virtual bool hasSetter () const =0
 
void setDescription (const agx::String &description)
 
void setName (const agx::Name &name)
 
virtual void setValue (agxData::Value *value)=0
 
- Public Member Functions inherited from agx::Referenced
 Referenced ()
 Default constructor.
 
 Referenced (const Referenced &)
 
template<typename T >
T * as ()
 Subclass casting.
 
template<typename T >
const T * as () const
 
template<typename T >
T * asSafe ()
 Safe subclass casting, return nullptr if template type does not match.
 
template<typename T >
const T * asSafe () const
 
int getReferenceCount () const
 
template<typename T >
bool is () const
 Subclass test.
 
Referenced & operator= (const Referenced &)
 Assignment operator. Will increment the number of references to the referenced object.
 
void reference (void *ptr=nullptr) const
 Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it.
 
void unreference (void *ptr=nullptr) const
 Decrement the reference count by one, indicating that a pointer to this object is referencing it.
 
void unreference_nodelete () const
 Decrement the reference count by one, indicating that a pointer to this object is referencing it.
 

Protected Member Functions

virtual ~SimulationParameterT ()
 
- Protected Member Functions inherited from agxSDK::SimulationParameter
virtual ~SimulationParameter ()
 
virtual void addNotification (agxSDK::Simulation *simulation)
 
virtual void removeNotification (agxSDK::Simulation *simulation)
 
- Protected Member Functions inherited from agx::Referenced
virtual ~Referenced ()
 Destructor.
 
void allocateObserverVector () const
 
void deleteUsingDeleteHandler () const
 

Additional Inherited Members

- Static Public Member Functions inherited from agx::Referenced
template<typename T >
static bool ValidateCast (const Referenced *object)
 
- Static Protected Member Functions inherited from agx::Referenced
static DeleteHandler * getDeleteHandler ()
 
static void setDeleteHandler (DeleteHandler *handler)
 Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to.
 
- Protected Attributes inherited from agx::Referenced
Mutex m_mutex
 
ObserverContainer m_observers
 
AtomicValue m_refCount
 

Detailed Description

template<typename T>
class agxSDK::SimulationParameterT< T >

Definition at line 67 of file SimulationParameter.h.

Constructor & Destructor Documentation

◆ SimulationParameterT()

template<typename T >
agxSDK::SimulationParameterT< T >::SimulationParameterT ( const agx::Name &  name,
const T &  initialValue = T() 
)

Definition at line 93 of file SimulationParameter.h.

◆ ~SimulationParameterT()

template<typename T >
agxSDK::SimulationParameterT< T >::~SimulationParameterT
protectedvirtual

Definition at line 100 of file SimulationParameter.h.

Member Function Documentation

◆ get()

template<typename T >
const T & agxSDK::SimulationParameterT< T >::get
virtual

Definition at line 106 of file SimulationParameter.h.

◆ getFormat()

template<typename T >
const agxData::Format * agxSDK::SimulationParameterT< T >::getFormat
overridevirtual

Implements agxSDK::SimulationParameter.

Definition at line 140 of file SimulationParameter.h.

◆ getValue()

template<typename T >
const agxData::Value * agxSDK::SimulationParameterT< T >::getValue
overridevirtual

Implements agxSDK::SimulationParameter.

Definition at line 118 of file SimulationParameter.h.

References agxData::Value::get().

◆ hasGetter()

template<typename T >
bool agxSDK::SimulationParameterT< T >::hasGetter
overridevirtual

Implements agxSDK::SimulationParameter.

Definition at line 135 of file SimulationParameter.h.

◆ hasSetter()

template<typename T >
bool agxSDK::SimulationParameterT< T >::hasSetter
overridevirtual

Implements agxSDK::SimulationParameter.

Definition at line 130 of file SimulationParameter.h.

◆ set()

template<typename T >
void agxSDK::SimulationParameterT< T >::set ( const T &  value)
virtual

Definition at line 112 of file SimulationParameter.h.

◆ setValue()

template<typename T >
void agxSDK::SimulationParameterT< T >::setValue ( agxData::Value *  value)
overridevirtual

Implements agxSDK::SimulationParameter.

Definition at line 124 of file SimulationParameter.h.

References agxData::Value::get().


The documentation for this class was generated from the following file: