|
RavEngine
|
Helper struct to pass array type data to vehice components and functions. More...
#include <PxVehicleParams.h>
Public Types | |
| enum | DataFormat { eARRAY_OF_STRUCTS = 0 , eARRAY_OF_POINTERS } |
Public Member Functions | |
| PX_FORCE_INLINE void | setData (T *data) |
| Set the data as an array of structs. | |
| PX_FORCE_INLINE void | setData (T *const *data) |
| Set the data as an array of pointers. | |
| PX_FORCE_INLINE | PxVehicleArrayData (T *data) |
| PX_FORCE_INLINE | PxVehicleArrayData (T *const *data) |
| PX_FORCE_INLINE T & | getData (PxU32 index) |
| Get the data entry at a given index. | |
| PX_FORCE_INLINE T & | operator[] (PxU32 index) |
| PX_FORCE_INLINE const T & | getData (PxU32 index) const |
| Get the data entry at a given index. | |
| PX_FORCE_INLINE const T & | operator[] (PxU32 index) const |
| PX_FORCE_INLINE void | setEmpty () |
| Set as empty. | |
| PX_FORCE_INLINE bool | isEmpty () const |
| Check if declared as empty. | |
| PX_FORCE_INLINE const PxVehicleArrayData< const T > & | getConst () const |
| Get a reference to the array but read only. | |
Public Attributes | ||
| union { | ||
| T * arrayOfStructs | ||
| The data stored as an array of structs. | ||
| T *const * arrayOfPointers | ||
| The data stored as an array of pointers. | ||
| }; | ||
| PxU8 | dataFormat | |
Helper struct to pass array type data to vehice components and functions.
The Vehicle SDK tries to give the user a certain freedom in how the parameters and states are stored. This helper struct presents a way to either use array of structs or array of pointers to structs to pass data into the provided vehicle components and functions.
| enum physx::vehicle2::PxVehicleArrayData::DataFormat |
| Enumerator | |
|---|---|
| eARRAY_OF_STRUCTS | The data is provided as an array of structs and stored in arrayOfStructs. |
| eARRAY_OF_POINTERS | The data is provided as an array of pointers and stored in arrayOfPointers. |
|
inline |
Get a reference to the array but read only.
|
inline |
Get the data entry at a given index.
| [in] | index | The index to retrieve the data entry for. |
|
inline |
Get the data entry at a given index.
| [in] | index | The index to retrieve the data entry for. |
|
inline |
Check if declared as empty.
|
inline |
Set the data as an array of pointers.
| [in] | data | The data as an array of pointers. |
|
inline |
Set the data as an array of structs.
| [in] | data | The data as an array of structs. |