X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgame%2Fpool.h;h=e4fe70453310c3ea337d47ab684d10f8663ae7c1;hb=12c863fc1bc5456a4b3aceacc88904d76bd1d8bb;hp=16801f4d48aead654cb53eb57ccff70d84f377b0;hpb=248d62f7240d342982ade65a510be912b867fe49;p=libs%2Fgame.git diff --git a/source/game/pool.h b/source/game/pool.h index 16801f4..e4fe704 100644 --- a/source/game/pool.h +++ b/source/game/pool.h @@ -1,10 +1,11 @@ -#ifndef MSP_GAME_STORAGE_H_ -#define MSP_GAME_STORAGE_H_ +#ifndef MSP_GAME_POOL_H_ +#define MSP_GAME_POOL_H_ #include #include #include #include +#include "mspgame_api.h" namespace Msp::Game { @@ -13,7 +14,7 @@ class PoolBase; template class Pool; -class PoolPool: public NonCopyable +class MSPGAME_API PoolPool: public NonCopyable { private: std::vector> pools; @@ -35,7 +36,7 @@ public: }; -class PoolBase: public NonCopyable +class MSPGAME_API PoolBase: public NonCopyable { private: using DeleteFunc = void(void *); @@ -72,6 +73,7 @@ private: void add_block(); public: + std::uint32_t get_capacity() const { return capacity; } void destroy(void *); };