Chi-Tech
chi_grid_face_histogram.h
Go to the documentation of this file.
1#ifndef CHITECH_CHI_GRID_FACE_HISTOGRAM_H
2#define CHITECH_CHI_GRID_FACE_HISTOGRAM_H
3
4#include <cstddef>
5#include <vector>
6
7namespace chi_mesh
8{
9
10//###################################################################
11/**Utility class for handling face categorizations based on number
12 * of vertices.*/
14{
15private:
16 std::vector<std::pair<size_t,size_t>> face_categories_;
17public:
18 explicit
19 GridFaceHistogram(const std::vector<std::pair<size_t,size_t>>& face_categories) :
20 face_categories_(face_categories)
21 { }
22
23 size_t NumberOfFaceHistogramBins() const;
24 size_t MapFaceHistogramBins(size_t num_face_verts) const;
25 size_t GetFaceHistogramBinDOFSize(size_t bin_number) const;
26};
27
28}//namespace chi_mesh
29
30#endif //CHITECH_CHI_GRID_FACE_HISTOGRAM_H
std::vector< std::pair< size_t, size_t > > face_categories_
GridFaceHistogram(const std::vector< std::pair< size_t, size_t > > &face_categories)
size_t GetFaceHistogramBinDOFSize(size_t bin_number) const
size_t MapFaceHistogramBins(size_t num_face_verts) const