This repository has been archived on 2022-02-10. You can view files and clone it, but cannot push or open issues or pull requests.
fortuna/pool.h
surtur 33f6620662
All checks were successful
continuous-integration/drone/push Build is passing
chore(pool): stop spamming at initialization
2021-12-08 03:40:08 +01:00

34 lines
504 B
C++

#ifndef FORTUNA_POOL_H
#define FORTUNA_POOL_H
#include <fmt/core.h>
namespace fortuna {
namespace accumulator {
class Pool {
public:
Pool(){};
~Pool() = default;
// TODO(me): this public setter should be fixed?
auto set_id(unsigned int id) -> void {
pool_id = id;
}
auto get_id() -> unsigned int;
auto initialize_pool(unsigned int id) -> void {
set_id(id);
}
private:
unsigned int pool_id{0};
}; // class Pool
} //namespace accumulator
} //namespace fortuna
#endif//FORTUNA_POOL_H