
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_hexes |
| std::vector< unsigned int > | n_hexes_level |
| unsigned int | n_active_hexes |
| std::vector< unsigned int > | n_active_hexes_level |
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 hexes. Due to the inheritance from the base class NumberCache<2>, the numbers of lines and quads 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 . This is time consuming and since access to the number of lines etc is a rather frequent operation, this was not an optimal solution.
Definition at line 359 of file tria.h.
Constructor. Set values to zero by default.
Reimplemented from internal::Triangulation::NumberCache< 2 >.
| std::size_t internal::Triangulation::NumberCache< 3 >::memory_consumption | ( | ) | const |
Determine an estimate for the memory consumption (in bytes) of this object.
Reimplemented from internal::Triangulation::NumberCache< 2 >.
| void internal::Triangulation::NumberCache< 3 >::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 from internal::Triangulation::NumberCache< 2 >.
| std::vector<unsigned int> internal::Triangulation::NumberCache< 3 >::n_hexes_level |
| std::vector<unsigned int> internal::Triangulation::NumberCache< 3 >::n_active_hexes_level |
documentation generated on Fri Feb 3 2012 06:04:14 by
doxygen
1.7.2