deal.II version GIT relicensing-2165-gc91f007519 2024-11-20 01:40:00+00:00
|
#include <deal.II/grid/tria.h>
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 |
std::shared_ptr< const Utilities::MPI::Partitioner > | active_cell_index_partitioner |
std::vector< std::shared_ptr< const Utilities::MPI::Partitioner > > | level_cell_index_partitioners |
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.
internal::TriangulationImplementation::NumberCache< 1 >::NumberCache | ( | ) |
std::size_t internal::TriangulationImplementation::NumberCache< 1 >::memory_consumption | ( | ) | const |
void internal::TriangulationImplementation::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 using the BOOST serialization library.
unsigned int internal::TriangulationImplementation::NumberCache< 1 >::n_levels |
unsigned int internal::TriangulationImplementation::NumberCache< 1 >::n_lines |
std::vector<unsigned int> internal::TriangulationImplementation::NumberCache< 1 >::n_lines_level |
unsigned int internal::TriangulationImplementation::NumberCache< 1 >::n_active_lines |
std::vector<unsigned int> internal::TriangulationImplementation::NumberCache< 1 >::n_active_lines_level |
std::shared_ptr<const Utilities::MPI::Partitioner> internal::TriangulationImplementation::NumberCache< 1 >::active_cell_index_partitioner |
std::vector<std::shared_ptr<const Utilities::MPI::Partitioner> > internal::TriangulationImplementation::NumberCache< 1 >::level_cell_index_partitioners |