Home | History | Annotate | Download | only in Support

Lines Matching full:datatype

27 template<typename DataType, size_t ChunkSize>
31 typedef DataType value_type;
51 DataType data[ChunkSize];
54 template<typename DataType>
55 class Chunk<DataType, 0>
58 typedef DataType value_type;
64 data = (DataType*)malloc(sizeof(DataType)*m_Size);
90 DataType *data;
94 template<typename DataType>
95 size_t Chunk<DataType, 0>::m_Size = 0;
288 * template argument DataType is the DataType to be allocated
291 template<typename DataType, size_t ChunkSize>
292 class LinearAllocator : public LinearAllocatorBase<Chunk<DataType, ChunkSize> >
302 : LinearAllocatorBase<Chunk<DataType, ChunkSize> >() {
309 template<typename DataType>
310 class LinearAllocator<DataType, 0> : public LinearAllocatorBase<Chunk<DataType, 0> >
320 : LinearAllocatorBase<Chunk<DataType, 0> >() {
321 Chunk<DataType, 0>::setSize(pNum);
328 template<typename DataType>
334 typedef DataType* pointer;
335 typedef const DataType* const_pointer;
336 typedef DataType& reference;
337 typedef const DataType& const_reference;
338 typedef DataType value_type;
364 return static_cast<DataType*>(
365 std::malloc(pNumOfElements*sizeof(DataType)));
372 { return size_t(-1) / sizeof(DataType); }
374 void construct(pointer pObject, const DataType& pValue)
378 { pObject->~DataType(); }
419 template<typename DataType>
420 DataType* allocate(size_type pNumOfElements, const void* = 0) {
421 return static_cast<DataType*>(
422 std::malloc(pNumOfElements*sizeof(DataType)));
429 template<typename DataType>
430 void deallocate(DataType* pObject, size_type)
436 template<typename DataType>
437 void construct(DataType* pObject, const DataType& pValue)
443 template<typename DataType>
444 void destroy(DataType* pObject)