cppyabm  1.0.17
An agent-based library to integrate C++ and Python
Public Types | Public Member Functions | Public Attributes | List of all members
Tissue Struct Reference

#include <cpp_example.h>

Inheritance diagram for Tissue:
Patch< Domain, Cell, Tissue >

Public Types

using basePatch = Patch< Domain, Cell, Tissue >
 

Public Member Functions

 Tissue (shared_ptr< Domain > env, MESH_ITEM mesh)
 
void setup ()
 
 Tissue (shared_ptr< Domain > env, MESH_ITEM mesh)
 
void setup ()
 
- Public Member Functions inherited from Patch< Domain, Cell, Tissue >
 Patch (shared_ptr< Domain > env, MESH_ITEM mesh_item)
 
 Patch (shared_ptr< Domain > env, MESH_ITEM mesh_item)
 
virtual ~Patch ()
 
virtual ~Patch ()
 
virtual void step ()
 
virtual void step ()
 
void set_agent (shared_ptr< Cell > agent)
 To define patch behavior. More...
 
void set_agent (shared_ptr< Cell > agent)
 To define patch behavior. More...
 
shared_ptr< Cellget_agent ()
 Assigns agent to the patch. More...
 
shared_ptr< Cellget_agent ()
 Assigns agent to the patch. More...
 
bool empty ()
 
bool empty ()
 
void remove_agent ()
 Removes agent from the patch. More...
 
void remove_agent ()
 Removes agent from the patch. More...
 
shared_ptr< Tissueempty_neighbor (bool quiet=false)
 Returns an arbitrary adjacent patch without an agent. More...
 
shared_ptr< Tissueempty_neighbor (bool quiet=false)
 Returns an arbitrary adjacent patch without an agent. More...
 
vector< shared_ptr< Cell > > find_neighbor_agents (bool include_self=true)
 Returns agents in one patch neighbors. More...
 
vector< shared_ptr< Cell > > find_neighbor_agents (bool include_self=true)
 Returns agents in one patch neighbors. More...
 

Public Attributes

bool damage_center = false
 
double ECM = 100
 
- Public Attributes inherited from Patch< Domain, Cell, Tissue >
unsigned agent_count
 Keeps the record of residing agents count. More...
 
std::weak_ptr< Cellagent
 Pointer to stores agents. More...
 
std::shared_ptr< Domainenv
 Pointer to the simulation environment. More...
 
bool on_border
 whether the patch residing on the border of the domain More...
 
unsigned index
 unique index that associate patch to mesh More...
 
unsigned layer_index
 the index of the layer in which the patch is residing More...
 
vector< double > coords
 the coordinates of the patch More...
 
vector< unsigned > neighbors_indices
 the indices of the neighbor patches More...
 
vector< shared_ptr< Tissue > > neighbors
 list of neighbor patches More...
 

Detailed Description

Definition at line 36 of file cpp_example.h.

Member Typedef Documentation

◆ basePatch

Definition at line 37 of file cpp_example.h.

Constructor & Destructor Documentation

◆ Tissue() [1/2]

Tissue::Tissue ( shared_ptr< Domain env,
MESH_ITEM  mesh 
)
inline

Definition at line 37 of file cpp_example.h.

◆ Tissue() [2/2]

Tissue::Tissue ( shared_ptr< Domain env,
MESH_ITEM  mesh 
)
inline

Definition at line 39 of file cpp_example.h.

Member Function Documentation

◆ setup() [1/2]

void Tissue::setup ( )
inline

Definition at line 40 of file cpp_example.h.

◆ setup() [2/2]

void Tissue::setup ( )
inline

Definition at line 42 of file cpp_example.h.

Member Data Documentation

◆ damage_center

bool Tissue::damage_center = false

Definition at line 42 of file cpp_example.h.

◆ ECM

double Tissue::ECM = 100

Definition at line 43 of file cpp_example.h.


The documentation for this struct was generated from the following file: