PxVehicleSizedArrayData
Defined in include/vehicle2/PxVehicleParams.h
-
template<typename T>
struct PxVehicleSizedArrayData : public PxVehicleArrayData<T> Public Types
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.
-
inline void setDataAndCount(T *data, const PxU32 count)