Public Member Functions | Public Attributes

internal::Triangulation::NumberCache< 1 > Struct Template Reference

Inheritance diagram for internal::Triangulation::NumberCache< 1 >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 NumberCache ()
std::size_t memory_consumption () const
template<class Archive >
void serialize (Archive &ar, const unsigned int version)

Public Attributes

unsigned int n_levels
unsigned int n_lines
std::vector< unsigned int > n_lines_level
unsigned int n_active_lines
std::vector< unsigned int > n_active_lines_level

Detailed Description

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

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 lines.

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

Definition at line 221 of file tria.h.


Constructor & Destructor Documentation

Constructor. Set values to zero by default.

Reimplemented in internal::Triangulation::NumberCache< 2 >, and internal::Triangulation::NumberCache< 3 >.


Member Function Documentation

std::size_t internal::Triangulation::NumberCache< 1 >::memory_consumption (  ) const

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

Reimplemented in internal::Triangulation::NumberCache< 2 >, and internal::Triangulation::NumberCache< 3 >.

template<class Archive >
void internal::Triangulation::NumberCache< 1 >::serialize ( Archive &  ar,
const unsigned int  version 
)

Read or write the data of this object to or from a stream for the purpose of serialization

Reimplemented in internal::Triangulation::NumberCache< 2 >, and internal::Triangulation::NumberCache< 3 >.


Member Data Documentation

The number of levels on which we have used objects.

Definition at line 228 of file tria.h.

Number of used lines in the whole triangulation.

Definition at line 234 of file tria.h.

Array holding the number of used lines on each level.

Definition at line 240 of file tria.h.

Number of active lines in the whole triangulation.

Definition at line 246 of file tria.h.

Array holding the number of active lines on each level.

Definition at line 252 of file tria.h.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

deal.II documentation generated on Fri Feb 3 2012 06:04:14 by doxygen 1.7.2