Template Class OutletMemoryPool

Class Documentation

template<typename PoolSpec>
class uit::OutletMemoryPool

Public Functions

bool IsInitialized() const
size_t GetSize() const
void Register(const address_t &address)

Retister a duct for an entry in the pool.

size_t Lookup(const address_t &address) const

Get index of this duct’s entry in the pool. This is a log-time operation so the index should be cached by the caller.

value_type &Get(const size_t index)

Get the querying duct’s current value from the underlying duct.

const value_type &Get(const size_t index) const

Get the querying duct’s current value from the underlying duct.

size_t TryConsumeGets(const size_t requested, const address_t &address)

Every member of the pool should call this with same requested.

void Initialize(std::shared_ptr<typename PoolSpec::ProcBackEnd> backend)

Call after all members have requested a position in the pool.

void Initialize()

Public Static Functions

constexpr bool CanStep()