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

dolfin::ElementBlock Class Reference

#include <ElementBlock.h>

Collaboration diagram for dolfin::ElementBlock:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ElementBlock (int N)
 Constructor.

 ~ElementBlock ()
 Destructor.

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

Element * element (unsigned int, real t)
 Return element for given component at given time.

Element * first (unsigned int i)
 Return first element for given component.

Element * last (unsigned int i)
 Return last element for given component.

unsigned int size () const
 Return number of components.

unsigned int bytes () const
 Return number of bytes (approximately) used by this block.

real starttime () const
 Return start time of block.

real endtime () const
 Return end time of block.

real dist (real t0, real t1) const
 Return distance to given interval.

bool within (real t) const
 Check if given time is within this block.


Friends

class ElementTmpFile

Detailed Description

ElementBlock is a container for Elements, which are organized in a list of Components, each containing a list of Elements.


Constructor & Destructor Documentation

ElementBlock::ElementBlock (  int  N  ) 
 

Constructor.

ElementBlock::~ElementBlock (   ) 
 

Destructor.


Member Function Documentation

unsigned int ElementBlock::bytes (   )  const
 

Return number of bytes (approximately) used by this block.

Element * ElementBlock::createElement (  Element::Type  type,
unsigned int  q,
unsigned int  index,
real  t0,
real  t1
) 
 

Create a new element.

real ElementBlock::dist (  real  t0,
real  t1
)  const
 

Return distance to given interval.

Element * ElementBlock::element (  unsigned  int,
real  t
) 
 

Return element for given component at given time.

real ElementBlock::endtime (   )  const
 

Return end time of block.

Element * ElementBlock::first (  unsigned int  i  ) 
 

Return first element for given component.

Element * ElementBlock::last (  unsigned int  i  ) 
 

Return last element for given component.

unsigned int ElementBlock::size (   )  const
 

Return number of components.

real ElementBlock::starttime (   )  const
 

Return start time of block.

bool ElementBlock::within (  real  t  )  const
 

Check if given time is within this block.


Friends And Related Function Documentation

friend class ElementTmpFile [friend]
 


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


Documentation automatically generated with Doxygen on 10 Sep 2004.