RavEngine
Loading...
Searching...
No Matches
physx::vehicle2::PxVehicleSizedArrayData< T > Struct Template Reference
Inheritance diagram for physx::vehicle2::PxVehicleSizedArrayData< T >:
[legend]
Collaboration diagram for physx::vehicle2::PxVehicleSizedArrayData< T >:
[legend]

Public Member Functions

PX_FORCE_INLINE void setDataAndCount (T *data, const PxU32 count)
 Set the data as an array of structs and set the number of data entries.
 
PX_FORCE_INLINE void setDataAndCount (T *const *data, const PxU32 count)
 Set the data as an array of pointers and set the number of data entries.
 
PX_FORCE_INLINE void setEmpty ()
 Set as empty.
 
PX_FORCE_INLINE bool isEmpty () const
 Check if declared as empty.
 
- Public Member Functions inherited from physx::vehicle2::PxVehicleArrayData< T >
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

PxU32 size
 
- Public Attributes inherited from physx::vehicle2::PxVehicleArrayData< T >
union { 
 
   T *   arrayOfStructs 
 The data stored as an array of structs.
 
   T *const *   arrayOfPointers 
 The data stored as an array of pointers.
 
};  
 
PxU8 dataFormat
 

Additional Inherited Members

- Public Types inherited from physx::vehicle2::PxVehicleArrayData< T >
enum  DataFormat { eARRAY_OF_STRUCTS = 0 , eARRAY_OF_POINTERS }
 

Member Function Documentation

◆ isEmpty()

template<typename T >
PX_FORCE_INLINE bool physx::vehicle2::PxVehicleSizedArrayData< T >::isEmpty ( ) const
inline

Check if declared as empty.

Returns
True if empty, else false.

◆ setDataAndCount() [1/2]

template<typename T >
PX_FORCE_INLINE void physx::vehicle2::PxVehicleSizedArrayData< T >::setDataAndCount ( T *const *  data,
const PxU32  count 
)
inline

Set the data as an array of pointers and set the number of data entries.

Parameters
[in]dataThe data as an array of pointers.
[in]countThe number of entries in the data array.

◆ setDataAndCount() [2/2]

template<typename T >
PX_FORCE_INLINE void physx::vehicle2::PxVehicleSizedArrayData< T >::setDataAndCount ( T *  data,
const PxU32  count 
)
inline

Set the data as an array of structs and set the number of data entries.

Parameters
[in]dataThe data as an array of structs.
[in]countThe number of entries in the data array.

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