
Public Member Functions | |
| NumberCache () | |
| unsigned int | memory_consumption () const |
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 |
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.
Constructor. Set values to zero by default.
Reimplemented from internal::Triangulation::NumberCache< 2 >.
| unsigned int 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 >.
Number of used hexes in the whole triangulation.
| std::vector<unsigned int> internal::Triangulation::NumberCache< 3 >::n_hexes_level |
Array holding the number of used hexes on each level.
Number of active hexes in the whole triangulation.
| std::vector<unsigned int> internal::Triangulation::NumberCache< 3 >::n_active_hexes_level |
Array holding the number of active hexes on each level.
documentation generated on Wed Jul 28 23:06:54 2010 by
doxygen
1.5.6