internal::Triangulation::NumberCache< 2 > Struct Template Reference
[Grid classes]

Inheritance diagram for internal::Triangulation::NumberCache< 2 >:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 NumberCache ()
unsigned int memory_consumption () const

Public Attributes

unsigned int n_quads
std::vector< unsigned intn_quads_level
unsigned int n_active_quads
std::vector< unsigned intn_active_quads_level


Detailed Description

template<>
struct internal::Triangulation::NumberCache< 2 >

Cache class used to store the number of used and active elements (lines or quads etc) within the levels of a triangulation. This specialization stores the numbers of quads. Due to the inheritance from the base class NumberCache<1>, the numbers of lines are also within this class.

In the old days, whenever one wanted to access one of these numbers, one had to perform a loop over all lines, e.g., and count the elements until we hit the end iterator. This is time consuming and since access to the number of lines etc is a rather frequent operation, this was not an optimal solution.

Author:
Wolfgang Bangerth, 1999

Constructor & Destructor Documentation

Constructor. Set values to zero by default.

Reimplemented from internal::Triangulation::NumberCache< 1 >.

Reimplemented in internal::Triangulation::NumberCache< 3 >.


Member Function Documentation

unsigned int internal::Triangulation::NumberCache< 2 >::memory_consumption (  )  const

Determine an estimate for the memory consumption (in bytes) of this object.

Reimplemented from internal::Triangulation::NumberCache< 1 >.

Reimplemented in internal::Triangulation::NumberCache< 3 >.


Member Data Documentation

Number of used quads in the whole triangulation.

Array holding the number of used quads on each level.

Number of active quads in the whole triangulation.

Array holding the number of active quads on each level.


The documentation for this struct was generated from the following file:

deal.II documentation generated on Sat Aug 15 16:52:38 2009 by doxygen 1.5.9