BioDynaMo  v1.03.58-27764645
Public Member Functions | Private Attributes | List of all members
bdm::TypeIndex Class Reference

#include <type_index.h>

Collaboration diagram for bdm::TypeIndex:

Public Member Functions

void Add (Agent *agent)
void Update (Agent *new_agent)
void Remove (Agent *agent)
void Clear ()
void Reserve (uint64_t capacity)
const std::vector< Agent * > & GetType (TClass *tclass) const

Private Attributes

UnorderedFlatmap< TClass *, std::vector< Agent * > > data_
AgentUidMap< uint64_t > index_

Detailed Description

Definition at line 27 of file type_index.h.

Member Function Documentation

◆ Add()

void bdm::TypeIndex::Add ( Agent agent)

Definition at line 22 of file

◆ Clear()

void bdm::TypeIndex::Clear ( )

Definition at line 55 of file

◆ GetType()

const std::vector< Agent * > & bdm::TypeIndex::GetType ( TClass *  tclass) const

Definition at line 70 of file

◆ Remove()

void bdm::TypeIndex::Remove ( Agent agent)

Definition at line 40 of file

◆ Reserve()

void bdm::TypeIndex::Reserve ( uint64_t  capacity)

Definition at line 63 of file

◆ Update()

void bdm::TypeIndex::Update ( Agent new_agent)

Definition at line 33 of file

Member Data Documentation

◆ data_

UnorderedFlatmap<TClass*, std::vector<Agent*> > bdm::TypeIndex::data_

Definition at line 42 of file type_index.h.

◆ index_

AgentUidMap<uint64_t> bdm::TypeIndex::index_

Definition at line 43 of file type_index.h.

The documentation for this class was generated from the following files: