AGX Dynamics  2.37.2.0
agx::ParameterBinding Class Reference

A binding between a formal function parameter and an actual value. More...

#include <ParameterBinding.h>

Public Member Functions

 ParameterBinding ()
 
 ParameterBinding (agxData::Data *value, const agxData::Format *format, agx::Parameter::MetaType metaType, bool isWritable, bool allowFormatPromotion)
 
bool allowFormatPromotion () const
 
template<typename T >
agxData::Array< T > & getArray ()
 
template<typename T >
const agxData::Array< T > & getArray () const
 
const agxData::Format * getFormat () const
 
agx::UInt getMetaType () const
 
template<typename T >
T *& getPointer ()
 
template<typename T >
const T *& getPointer () const
 
template<typename T >
T & getScalar ()
 
template<typename T >
const T & getScalar () const
 
agxData::Data * getValue ()
 
const agxData::Data * getValue () const
 
bool isArray () const
 
bool isPointer () const
 
bool isScalar () const
 
bool isValid () const
 
bool isWritable () const
 
void setAllowFormatPromotion (bool flag)
 
void setFormat (const agxData::Format *format)
 
void setMetaType (agx::UInt metaType)
 
void setValue (agxData::Data *value)
 
void setWritable (bool writable)
 

Detailed Description

A binding between a formal function parameter and an actual value.

Definition at line 30 of file ParameterBinding.h.

Constructor & Destructor Documentation

◆ ParameterBinding() [1/2]

agx::ParameterBinding::ParameterBinding ( )

Definition at line 91 of file ParameterBinding.h.

◆ ParameterBinding() [2/2]

agx::ParameterBinding::ParameterBinding ( agxData::Data *  value,
const agxData::Format *  format,
agx::Parameter::MetaType  metaType,
bool  isWritable,
bool  allowFormatPromotion 
)

Definition at line 94 of file ParameterBinding.h.

Member Function Documentation

◆ allowFormatPromotion()

bool agx::ParameterBinding::allowFormatPromotion ( ) const

Definition at line 105 of file ParameterBinding.h.

◆ getArray() [1/2]

template<typename T >
agxData::Array< T > & agx::ParameterBinding::getArray ( )

Definition at line 125 of file ParameterBinding.h.

References agxAssert, agx::Parameter::ARRAY, agx::Model::is(), and isValid().

◆ getArray() [2/2]

template<typename T >
const agxData::Array< T > & agx::ParameterBinding::getArray ( ) const

Definition at line 134 of file ParameterBinding.h.

◆ getFormat()

const agxData::Format * agx::ParameterBinding::getFormat ( ) const

Definition at line 99 of file ParameterBinding.h.

◆ getMetaType()

agx::UInt agx::ParameterBinding::getMetaType ( ) const

Definition at line 100 of file ParameterBinding.h.

◆ getPointer() [1/2]

template<typename T >
T *& agx::ParameterBinding::getPointer ( )

Definition at line 140 of file ParameterBinding.h.

References agxAssert, agx::Model::is(), isValid(), and agx::Parameter::POINTER.

◆ getPointer() [2/2]

template<typename T >
const T *& agx::ParameterBinding::getPointer ( ) const

Definition at line 151 of file ParameterBinding.h.

◆ getScalar() [1/2]

template<typename T >
T & agx::ParameterBinding::getScalar ( )

Definition at line 110 of file ParameterBinding.h.

References agxAssert, agx::Model::is(), isValid(), and agx::Parameter::SCALAR.

◆ getScalar() [2/2]

template<typename T >
const T & agx::ParameterBinding::getScalar ( ) const

Definition at line 119 of file ParameterBinding.h.

◆ getValue() [1/2]

agxData::Data * agx::ParameterBinding::getValue ( )

Definition at line 97 of file ParameterBinding.h.

◆ getValue() [2/2]

const agxData::Data * agx::ParameterBinding::getValue ( ) const

Definition at line 98 of file ParameterBinding.h.

◆ isArray()

bool agx::ParameterBinding::isArray ( ) const

Definition at line 102 of file ParameterBinding.h.

References agx::Parameter::ARRAY.

◆ isPointer()

bool agx::ParameterBinding::isPointer ( ) const

Definition at line 103 of file ParameterBinding.h.

References agx::Parameter::POINTER.

◆ isScalar()

bool agx::ParameterBinding::isScalar ( ) const

Definition at line 101 of file ParameterBinding.h.

References agx::Parameter::SCALAR.

◆ isValid()

bool agx::ParameterBinding::isValid ( ) const

Definition at line 106 of file ParameterBinding.h.

Referenced by getArray(), getPointer(), and getScalar().

◆ isWritable()

bool agx::ParameterBinding::isWritable ( ) const

Definition at line 104 of file ParameterBinding.h.

◆ setAllowFormatPromotion()

void agx::ParameterBinding::setAllowFormatPromotion ( bool  flag)

◆ setFormat()

void agx::ParameterBinding::setFormat ( const agxData::Format *  format)

◆ setMetaType()

void agx::ParameterBinding::setMetaType ( agx::UInt  metaType)

◆ setValue()

void agx::ParameterBinding::setValue ( agxData::Data *  value)

◆ setWritable()

void agx::ParameterBinding::setWritable ( bool  writable)

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