Lines Matching refs:DataType

29 template<typename DataType, size_t ChunkSize>
33 typedef DataType value_type;
44 DataType data[ChunkSize];
47 template<typename DataType>
48 struct Chunk<DataType, 0>
51 typedef DataType value_type;
57 data = (DataType*)malloc(sizeof(DataType)*m_Size);
73 DataType *data;
77 template<typename DataType>
78 size_t Chunk<DataType, 0>::m_Size = 0;
274 * template argument DataType is the DataType to be allocated
277 template<typename DataType, size_t ChunkSize>
278 class LinearAllocator : public LinearAllocatorBase<Chunk<DataType, ChunkSize> >
288 : LinearAllocatorBase<Chunk<DataType, ChunkSize> >() {
295 template<typename DataType>
296 class LinearAllocator<DataType, 0> : public LinearAllocatorBase<Chunk<DataType, 0> >
306 : LinearAllocatorBase<Chunk<DataType, 0> >() {
307 Chunk<DataType, 0>::setSize(pNum);
314 template<typename DataType>
320 typedef DataType* pointer;
321 typedef const DataType* const_pointer;
322 typedef DataType& reference;
323 typedef const DataType& const_reference;
324 typedef DataType value_type;
350 return static_cast<DataType*>(
351 std::malloc(pNumOfElements*sizeof(DataType)));
358 { return size_t(-1) / sizeof(DataType); }
360 void construct(pointer pObject, const DataType& pValue)
364 { pObject->~DataType(); }
405 template<typename DataType>
406 DataType* allocate(size_type pNumOfElements, const void* = 0) {
407 return static_cast<DataType*>(
408 std::malloc(pNumOfElements*sizeof(DataType)));
415 template<typename DataType>
416 void deallocate(DataType* pObject, size_type)
422 template<typename DataType>
423 void construct(DataType* pObject, const DataType& pValue)
429 template<typename DataType>
430 void destroy(DataType* pObject)