nsol
0.4.1
Nsol - Neuroscience Objects Library
|
This class allows to cache the stats for neuronmorphologys. More...
#include <NeuronMorphologyCachedStats.h>
Public Member Functions | |
NeuronMorphologyCachedStats (void) | |
Default constructor. | |
NeuronMorphologyCachedStats (SomaPtr soma_) | |
virtual | ~NeuronMorphologyCachedStats (void) |
Default destructor. | |
virtual float | getStat (TNeuronMorphologyStat stat, TAggregation agg=TOTAL) const |
virtual void | setAndPropagateDirty (unsigned int id) |
Set dirty a cached stat and propagates dirty to parent neuronmorphology. More... | |
virtual void | setAndPropagateDirty (void) |
Set dirty all cached stats and propagates dirty to parent neuron morphology. | |
Public Member Functions inherited from nsol::NeuronMorphologyStats | |
NeuronMorphologyStats (SomaPtr soma_) | |
virtual NeuronMorphologyStats * | stats (void) |
Returns object as NeuronMorphologyStats. More... | |
Public Member Functions inherited from nsol::NeuronMorphology | |
NeuronMorphology (void) | |
Default Neuron class constructor. More... | |
NeuronMorphology (SomaPtr soma) | |
SomaPtr | soma (SomaPtr soma) |
Method to set the neuronal soma. More... | |
NeuritePtr | addNeurite (NeuritePtr neurite) |
Method to add a new neurite to the neuron. More... | |
Dendrites * | dendrites (void) const |
Method to get all the dendrites in a container. More... | |
Dendrites * | basalDendrites (void) const |
Method to get all the basal dendrites in a container. More... | |
Dendrites * | apicalDendrites (void) const |
Method to get all the apical dendrites in a container. More... | |
DendritePtr | apicalDendrite (void) const |
Method to get the first apical dendrite. More... | |
Axons * | axons () const |
Method to get all the axons in a container. More... | |
virtual Neurites & | neurites (void) |
const Neurites & | neurites (void) const |
virtual Neurons & | parentNeurons (void) |
const Neurons & | parentNeurons (void) const |
SomaPtr | soma (void) |
void | addParentNeuron (NeuronPtr neuron) |
virtual NeuronMorphologyPtr | asNeuronMorphology (void) |
virtual NeuronMorphologyPtr | clone (void) const |
bool | operator== (NeuronMorphology &other) |
bool | operator!= (NeuronMorphology &other) |
Public Member Functions inherited from nsol::Morphology | |
Sections & | sections (void) |
Public Member Functions inherited from nsol::Object | |
virtual ColumnPtr | asColumn (void) |
virtual MiniColumnPtr | asMiniColumn (void) |
virtual NeuronPtr | asNeuron (void) |
virtual SectionPtr | asSection (void) |
virtual NodePtr | asNode (void) |
virtual ObjectWithProperties * | properties (void) |
virtual ObjectPtr | create (void) |
Public Member Functions inherited from nsol::Cached<> | |
bool | dirty (unsigned int id_) const |
void | setDirty (unsigned int id_) |
void | setDirty (void) |
void | cacheValue (const unsigned int id_, floatvalue_) const |
float | getValue (const unsigned int id_) const |
Additional Inherited Members | |
Public Types inherited from nsol::NeuronMorphologyStats | |
enum | TNeuronMorphologyStat { DENDRITIC_VOLUME, AXON_VOLUME, NEURITIC_VOLUME, SOMA_VOLUME, VOLUME, DENDRITIC_SURFACE, AXON_SURFACE, NEURITIC_SURFACE, SOMA_SURFACE, SURFACE, DENDRITIC_LENGTH, AXON_LENGTH, NEURITIC_LENGTH, DENDRITIC_BIFURCATIONS, AXON_BIFURCATIONS, NEURITIC_BIFURCATIONS, NEURON_MORPHOLOGY_NUM_STATS } |
Protected Attributes inherited from nsol::NeuronMorphology | |
SomaPtr | _soma |
Neurites | _neurites |
Neurons | _parentNeurons |
Protected Attributes inherited from nsol::Morphology | |
Sections | _sections |
Morphology sections. | |
Protected Attributes inherited from nsol::Cached<> | |
std::map< unsigned int, float > | _values |
Container of the cached values. Is mutable to allow const methods to modify the cache if needed. | |
This class allows to cache the stats for neuronmorphologys.
Using this class instead of NeuronMorphology or NeuronMorphologyStats when constructing the hierarchy allows to call the method stats from base NeuronMorphology class and get the corresponding volume, surface and length. If the cached value is dirty then the actual computation process is done. In case is clean the cached value is returned directly.
Example:
Definition at line 45 of file NeuronMorphologyCachedStats.h.
|
virtual |
Set dirty a cached stat and propagates dirty to parent neuronmorphology.
id | identifier of the property to set dirty. It also propagates dirty state to parent neuronmorphology. id value has to be one from TNeuronMorphologyCachedValues (checked only on debug compiling). |
Reimplemented from nsol::Cached<>.