30#ifndef PXFOUNDATION_PXBITANDDATA_H
31#define PXFOUNDATION_PXBITANDDATA_H
33#include "foundation/Px.h"
43template <
typename storageType, storageType bitMask>
55 mData = bit ? storageType(data | bitMask) : data;
60 return storageType(mData & ~bitMask);
72 return storageType(mData & bitMask);
78typedef PxBitAndDataT<unsigned char, 0x80> PxBitAndByte;
79typedef PxBitAndDataT<unsigned short, 0x8000> PxBitAndWord;
80typedef PxBitAndDataT<unsigned int, 0x80000000> PxBitAndDword;
#define PX_FORCE_INLINE
Definition PxPreprocessor.h:335
Sorts an array of objects in ascending order, assuming that the predicate implements the < operator:
Definition PxBoxController.h:39
PxEMPTY
Definition Px.h:87