| 1 | // -*- C++ -*-cxx . . $ `<file>/vendor/Heap-Layers/heaps/utility/nullheap.h`/ |
| 2 | |
| 3 | /* |
| 4 | |
| 5 | Heap Layers: An Extensible Memory Allocation Infrastructure |
| 6 | |
| 7 | Copyright (C) 2000-2020 by Emery Berger |
| 8 | http://www.emeryberger.com |
| 9 | [email protected] |
| 10 | |
| 11 | Heap Layers is distributed under the terms of the Apache 2.0 license. |
| 12 | |
| 13 | You may obtain a copy of the License at |
| 14 | http://www.apache.org/licenses/LICENSE-2.0 |
| 15 | |
| 16 | */ |
| 17 | |
| 18 | #ifndef HL_NULLHEAP_H |
| 19 | #define HL_NULLHEAP_Hcxx . . $ `vendor/Heap-Layers/heaps/utility/nullheap.h:19:9`! |
| 20 | |
| 21 | #include <assert.h> |
| 22 | |
| 23 | /** |
| 24 | * @class NullHeap |
| 25 | * @brief A source heap that does nothing. |
| 26 | */ |
| 27 | |
| 28 | namespace HLcxx . . $ HL/ { |
| 29 | |
| 30 | template <class SuperHeap> |
| 31 | class NullHeapcxx . . $ HL/NullHeap# : public SuperHeap { |
| 32 | public: |
| 33 | enumcxx . . $ HL/NullHeap#$anonymous_type_0# { Alignmentcxx . . $ HL/NullHeap#Alignment. = 0 }; |
| 34 | inline void * malloccxx . . $ HL/NullHeap#malloc(4e1099794cea8682). (size_t) const { return 0; } |
| 35 | inline void * memaligncxx . . $ HL/NullHeap#memalign(514ab04bb46d8820).(size_t, size_t) const { return 0; } |
| 36 | inline void freecxx . . $ HL/NullHeap#free(cf970aa7a2e16d63). (void *) const {} |
| 37 | inline int removecxx . . $ HL/NullHeap#remove(e7407983581ad42b). (void *) const { return 0; } |
| 38 | inline void clearcxx . . $ HL/NullHeap#clear(83f5f38750778ac8). (void) const {} |
| 39 | inline size_t getSizecxx . . $ HL/NullHeap#getSize(fc862ad161026b8c). (void *) const { return 0; } |
| 40 | }; |
| 41 | |
| 42 | } |
| 43 | |
| 44 | #endif |