AGX Dynamics  2.37.2.0
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
 
const agx::Name & getName () const
 
agxSDK::Simulation * getSimulation ()
 
void setDescription (const agx::String &description)
 
void setName (const agx::Name &name)
 
- Public Member Functions inherited from agx::Referenced
 Referenced ()
 Default constructor. More...
 
 Referenced (const Referenced &)
 
template<typename T >
T * as ()
 Subclass casting. More...
 
template<typename T >
const T * as () const
 
template<typename T >
T * asSafe ()
 Safe subclass casting, return nullptr if template type does not match. More...
 
template<typename T >
const T * asSafe () const
 
int getReferenceCount () const
 
template<typename T >
bool is () const
 Subclass test. More...
 
Referenced & operator= (const Referenced &)
 Assignment operator. Will increment the number of references to the referenced object. More...
 
void reference (void *ptr=nullptr) const
 Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it. More...
 
void unreference (void *ptr=nullptr) const
 Decrement the reference count by one, indicating that a pointer to this object is referencing it. More...
 
void unreference_nodelete () const
 Decrement the reference count by one, indicating that a pointer to this object is referencing it. More...
 

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. More...
 
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. More...
 
- 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 ( ) const
virtual

Definition at line 106 of file SimulationParameter.h.

◆ getFormat()

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

Implements agxSDK::SimulationParameter.

Definition at line 140 of file SimulationParameter.h.

◆ getValue()

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

Implements agxSDK::SimulationParameter.

Definition at line 118 of file SimulationParameter.h.

◆ hasGetter()

template<typename T >
bool agxSDK::SimulationParameterT< T >::hasGetter ( ) const
overridevirtual

Implements agxSDK::SimulationParameter.

Definition at line 135 of file SimulationParameter.h.

◆ hasSetter()

template<typename T >
bool agxSDK::SimulationParameterT< T >::hasSetter ( ) const
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: