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

#include <type_index.h>

Collaboration diagram for bdm::TypeIndex:
[legend]

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 type_index.cc.

◆ Clear()

void bdm::TypeIndex::Clear ( )

Definition at line 55 of file type_index.cc.

◆ GetType()

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

Definition at line 70 of file type_index.cc.

◆ Remove()

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

Definition at line 40 of file type_index.cc.

◆ Reserve()

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

Definition at line 63 of file type_index.cc.

◆ Update()

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

Definition at line 33 of file type_index.cc.

Member Data Documentation

◆ data_

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

Definition at line 42 of file type_index.h.

◆ index_

AgentUidMap<uint64_t> bdm::TypeIndex::index_
private

Definition at line 43 of file type_index.h.


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