PxVehicleSizedArrayData
Defined in include/vehicle2/PxVehicleParams.h
-
template<typename T>
struct PxVehicleSizedArrayData : public PxVehicleArrayData<T> Public Types
-
enum DataFormat
Values:
-
enumerator eARRAY_OF_STRUCTS
The data is provided as an array of structs and stored in arrayOfStructs.
-
enumerator eARRAY_OF_POINTERS
The data is provided as an array of pointers and stored in arrayOfPointers.
-
enumerator eARRAY_OF_STRUCTS
Public Functions
-
inline void setDataAndCount(T *data, const PxU32 count)
Set the data as an array of structs and set the number of data entries.
- Parameters
data – [in] The data as an array of structs.
count – [in] The number of entries in the data array.
-
inline void setDataAndCount(T *const *data, const PxU32 count)
Set the data as an array of pointers and set the number of data entries.
- Parameters
data – [in] The data as an array of pointers.
count – [in] The number of entries in the data array.
-
inline void setEmpty()
Set as empty.
-
inline bool isEmpty() const
Check if declared as empty.
- Returns
True if empty, else false.
-
inline void setData(T *data)
Set the data as an array of structs.
- Parameters
data – [in] The data as an array of structs.
-
inline void setData(T *const *data)
Set the data as an array of pointers.
- Parameters
data – [in] The data as an array of pointers.
-
inline T &getData(PxU32 index)
Get the data entry at a given index.
- Parameters
index – [in] The index to retrieve the data entry for.
- Returns
Reference to the requested data entry.
-
inline const T &getData(PxU32 index) const
Get the data entry at a given index.
- Parameters
index – [in] The index to retrieve the data entry for.
- Returns
Reference to the requested data entry.
-
inline const PxVehicleArrayData<const T> &getConst() const
Get a reference to the array but read only.
- Returns
Read only version of the data.
-
enum DataFormat