BioDynaMo
v1.05.120-25dc9790
|
Go to the documentation of this file.
15 #ifndef CORE_CONTAINER_AGENT_FLAT_IDX_MAP_H_
16 #define CORE_CONTAINER_AGENT_FLAT_IDX_MAP_H_
54 for (
int nn = 1; nn < num_numa_nodes; nn++) {
65 for (
size_t i = 1; i <
offset_.size(); i++) {
73 assert(nn <= std::numeric_limits<AgentHandle::NumaNode_t>::max());
74 assert(idx <= std::numeric_limits<AgentHandle::ElementIdx_t>::max());
85 #endif // CORE_CONTAINER_AGENT_FLAT_IDX_MAP_H_
AgentHandle GetAgentHandle(uint64_t idx) const
static ThreadInfo * GetInstance()
int GetNumaNodes() const
Returns the number of NUMA nodes on this machine.
AgentFlatIdxMap()=default
ResourceManager * GetResourceManager()
Returns the ResourceManager instance.
uint64_t GetFlatIdx(const AgentHandle &ah) const
std::vector< size_t > offset_
AgentFlatIdxMap(const AgentFlatIdxMap &other)
NumaNode_t GetNumaNode() const
static Simulation * GetActive()
This function returns the currently active Simulation simulation.
ElementIdx_t GetElementIdx() const