RandomDirectionVertexBasedDivisionRule< SPACE_DIM > Class Template Reference

#include <RandomDirectionVertexBasedDivisionRule.hpp>

Inherits AbstractVertexBasedDivisionRule< SPACE_DIM >.

Collaboration diagram for RandomDirectionVertexBasedDivisionRule< SPACE_DIM >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 RandomDirectionVertexBasedDivisionRule ()
virtual ~RandomDirectionVertexBasedDivisionRule ()
virtual c_vector< double,
SPACE_DIM > 
CalculateCellDivisionVector (CellPtr pParentCell, VertexBasedCellPopulation< SPACE_DIM > &rCellPopulation)

Private Member Functions

template<class Archive >
void serialize (Archive &archive, const unsigned int version)

Friends

class boost::serialization::access

Detailed Description

template<unsigned SPACE_DIM>
class RandomDirectionVertexBasedDivisionRule< SPACE_DIM >

A class to generate a division vector of unit lengths that points in a random direction.

Definition at line 53 of file RandomDirectionVertexBasedDivisionRule.hpp.


Constructor & Destructor Documentation

template<unsigned SPACE_DIM>
RandomDirectionVertexBasedDivisionRule< SPACE_DIM >::RandomDirectionVertexBasedDivisionRule (  )  [inline]

Default constructor.

Definition at line 73 of file RandomDirectionVertexBasedDivisionRule.hpp.

template<unsigned SPACE_DIM>
virtual RandomDirectionVertexBasedDivisionRule< SPACE_DIM >::~RandomDirectionVertexBasedDivisionRule (  )  [inline, virtual]

Empty destructor.

Definition at line 80 of file RandomDirectionVertexBasedDivisionRule.hpp.


Member Function Documentation

template<unsigned SPACE_DIM>
c_vector< double, SPACE_DIM > RandomDirectionVertexBasedDivisionRule< SPACE_DIM >::CalculateCellDivisionVector ( CellPtr  pParentCell,
VertexBasedCellPopulation< SPACE_DIM > &  rCellPopulation 
) [inline, virtual]

Overridden CalculateCellDivisionVector() method.

Return a unit vector in a random direction, i.e the arguments are redundant for this division rule.

Parameters:
pParentCell The cell to divide
rCellPopulation The vertex-based cell population
Returns:
the division vector.

Implements AbstractVertexBasedDivisionRule< SPACE_DIM >.

Definition at line 39 of file RandomDirectionVertexBasedDivisionRule.cpp.

References RandomNumberGenerator::Instance(), and RandomNumberGenerator::ranf().

template<unsigned SPACE_DIM>
template<class Archive >
void RandomDirectionVertexBasedDivisionRule< SPACE_DIM >::serialize ( Archive &  archive,
const unsigned int  version 
) [inline, private]

Serialize the object and its member variables.

Parameters:
archive the archive
version the current version of this class

Reimplemented from AbstractVertexBasedDivisionRule< SPACE_DIM >.

Definition at line 64 of file RandomDirectionVertexBasedDivisionRule.hpp.


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

Generated by  doxygen 1.6.2