Chaste
Build::
|
#include <AbstractVesselNetworkComponent.hpp>
Public Member Functions | |
AbstractVesselNetworkComponent () | |
virtual | ~AbstractVesselNetworkComponent () |
virtual unsigned | GetId () const |
virtual double | GetOutputDataValue (const std::string &rKey) |
virtual std::map< std::string, double > | GetOutputData ()=0 |
virtual std::vector< std::string > | GetOutputDataKeys () |
virtual units::quantity< unit::length > | GetRadius () const |
virtual void | SetId (unsigned id) |
virtual void | SetOutputData (const std::string &rKey, double value) |
virtual void | SetRadius (units::quantity< unit::length > radius) |
Protected Attributes | |
std::map< std::string, double > | mOutputData |
unsigned | mId |
units::quantity< unit::length > | mRadius |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int version) |
Friends | |
class | boost::serialization::access |
This class contains functionality common to all components of a vessel network.
Definition at line 54 of file AbstractVesselNetworkComponent.hpp.
AbstractVesselNetworkComponent< DIM >::AbstractVesselNetworkComponent | ( | ) |
Constructor.
Definition at line 40 of file AbstractVesselNetworkComponent.cpp.
|
virtual |
Destructor
Definition at line 49 of file AbstractVesselNetworkComponent.cpp.
|
virtual |
Return the component Id
Definition at line 54 of file AbstractVesselNetworkComponent.cpp.
References AbstractVesselNetworkComponent< DIM >::mId.
Referenced by VesselNetworkWriter< DIM >::GetOutput(), VesselSegment< DIM >::GetOutputData(), VesselNode< DIM >::GetOutputData(), and Vessel< DIM >::GetOutputData().
|
pure virtual |
Return a map of output data for writers
Implemented in VesselNetwork< DIM >, Vessel< DIM >, VesselNode< DIM >, and VesselSegment< DIM >.
Referenced by AbstractVesselNetworkComponent< DIM >::GetOutputDataKeys(), and AbstractVesselNetworkComponent< DIM >::GetOutputDataValue().
|
virtual |
Return the keys of the output data map
Definition at line 77 of file AbstractVesselNetworkComponent.cpp.
References AbstractVesselNetworkComponent< DIM >::GetOutputData(), and AbstractVesselNetworkComponent< DIM >::mOutputData.
|
virtual |
Return the output data for the given key. This method is relatively slow compared to GetOutputData as the data map is reconstructed each time. It is used by the Python framework.
rKey | the key to be queried |
Definition at line 60 of file AbstractVesselNetworkComponent.cpp.
References AbstractVesselNetworkComponent< DIM >::GetOutputData(), and AbstractVesselNetworkComponent< DIM >::mOutputData.
|
virtual |
Return the radius of the component
Reimplemented in Vessel< DIM >.
Definition at line 91 of file AbstractVesselNetworkComponent.cpp.
References AbstractVesselNetworkComponent< DIM >::mRadius.
Referenced by VesselSegment< DIM >::GetOutputData(), and VesselNode< DIM >::GetOutputData().
|
inlineprivate |
Do the serialize
ar | the archive |
version | the archive version number |
Definition at line 67 of file AbstractVesselNetworkComponent.hpp.
|
virtual |
Assign the Id
id | the id for the component |
Definition at line 103 of file AbstractVesselNetworkComponent.cpp.
References AbstractVesselNetworkComponent< DIM >::mId.
|
virtual |
Add output data to the component using the identifying key
rKey | the key for the data being assigned to the node |
value | the value to be stored |
Definition at line 97 of file AbstractVesselNetworkComponent.cpp.
References AbstractVesselNetworkComponent< DIM >::mOutputData.
|
virtual |
Set the component radius
radius | the component radius |
Reimplemented in Vessel< DIM >.
Definition at line 109 of file AbstractVesselNetworkComponent.cpp.
References AbstractVesselNetworkComponent< DIM >::mRadius.
Referenced by VesselSegment< DIM >::CopyDataFromExistingSegment().
|
friend |
Archiving
Definition at line 59 of file AbstractVesselNetworkComponent.hpp.
|
protected |
Id tag, useful for post-processing
Definition at line 82 of file AbstractVesselNetworkComponent.hpp.
Referenced by AbstractVesselNetworkComponent< DIM >::GetId(), and AbstractVesselNetworkComponent< DIM >::SetId().
|
protected |
Container for generic component data.
Definition at line 77 of file AbstractVesselNetworkComponent.hpp.
Referenced by VesselSegment< DIM >::CopyDataFromExistingSegment(), Vessel< DIM >::CopyDataFromExistingVessel(), VesselSegment< DIM >::GetOutputData(), VesselNode< DIM >::GetOutputData(), Vessel< DIM >::GetOutputData(), VesselNetwork< DIM >::GetOutputData(), AbstractVesselNetworkComponent< DIM >::GetOutputDataKeys(), AbstractVesselNetworkComponent< DIM >::GetOutputDataValue(), and AbstractVesselNetworkComponent< DIM >::SetOutputData().
|
protected |
The component radius
Definition at line 87 of file AbstractVesselNetworkComponent.hpp.
Referenced by AbstractVesselNetworkComponent< DIM >::GetRadius(), and AbstractVesselNetworkComponent< DIM >::SetRadius().