Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

dolfin::ElementData Class Reference

#include <ElementData.h>

Collaboration diagram for dolfin::ElementData:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ElementData (int N)
 Constructor.

 ~ElementData ()
 Destructor.

ElementcreateElement (Element::Type type, unsigned int q, unsigned int index, real t0, real t1)
 Create a new element.

Elementelement (unsigned int i, real t)
 Return element for given component at given time (null if not found).

Elementfirst (unsigned int i)
 Return first element element for given component (null if no elements).

Elementlast (unsigned int i)
 Return last element for given component (null if no elements).

void shift ()
 Notify that this might be a good time to move to next block.

void save ()
 Save data to disk.

void dropLast ()
 Drop last block.

unsigned int size () const
 Return number of components.

bool within (real t) const
 Check if given time is within the range of data.


Detailed Description

ElementData is a container for Elements, which are organized in a sequence of ElementBlocks, each containing a list of Components, which each contain a list of Elements:

ElementData - ElementBlock - Component - Element

A temporary file is used to store data whenever the amount of data exceeds the specified cache size.


Constructor & Destructor Documentation

ElementData::ElementData int  N  ) 
 

Constructor.

ElementData::~ElementData  ) 
 

Destructor.


Member Function Documentation

Element * ElementData::createElement Element::Type  type,
unsigned int  q,
unsigned int  index,
real  t0,
real  t1
 

Create a new element.

void ElementData::dropLast  ) 
 

Drop last block.

Element * ElementData::element unsigned int  i,
real  t
 

Return element for given component at given time (null if not found).

Element * ElementData::first unsigned int  i  ) 
 

Return first element element for given component (null if no elements).

Element * ElementData::last unsigned int  i  ) 
 

Return last element for given component (null if no elements).

void ElementData::save  ) 
 

Save data to disk.

void ElementData::shift  ) 
 

Notify that this might be a good time to move to next block.

unsigned int ElementData::size  )  const
 

Return number of components.

bool ElementData::within real  t  )  const
 

Check if given time is within the range of data.


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


Documentation automatically generated with Doxygen on 10 Sep 2004.