Began refactoring the entire source tree.
[aesalon.git] / include / visualizer / storage / MemoryPool.h
blob86e9fe869006b9931753fd13f8116db354bbca61
1 /**
2 Aesalon, a tool to visualize a program's behaviour at run-time.
3 Copyright (C) 2010, Aesalon Development Team.
5 Aesalon is distributed under the terms of the GNU GPLv3. For more
6 licensing information, see the file LICENSE included with the distribution.
8 @file include/visualizer/storage/MemoryPool.h
12 #ifndef AesalonVisualizer_Storage_MemoryPool_H
13 #define AesalonVisualizer_Storage_MemoryPool_H
15 #include <list>
17 namespace Visualizer {
18 namespace Storage {
20 class MemoryPool {
21 private:
22 typedef std::list<quint8 *> PoolList;
23 PoolList m_poolList;
24 public:
25 MemoryPool();
26 ~MemoryPool();
28 template<typename Type>
29 Type *allocate();
32 } // namespace Storage
33 } // namespace Visualizer
35 #endif