simple_state_mm_wrapper.h
Go to the documentation of this file.
1 /*
2 This file is part of the Ristra Wonton project.
3 Please see the license file at the root of this repository, or at:
4  https://github.com/laristra/wonton/blob/master/LICENSE
5 */
6 
7 #ifndef SIMPLE_STATE_MM_WRAPPER_H_
8 #define SIMPLE_STATE_MM_WRAPPER_H_
9 
11 
12 
17 namespace Wonton {
18 
19 using namespace Wonton;
25 template <class MeshWrapper>
26 class Simple_State_Wrapper: public StateManager<MeshWrapper> {
27 
28  public:
32  Simple_State_Wrapper(const MeshWrapper& mesh,
33  std::unordered_map<std::string,int> names={},
34  std::unordered_map<int,std::vector<int>> material_cells={}
35  ) :StateManager<MeshWrapper>(mesh,names,material_cells) { }
36 
39 
42 
50  int mat_get_num_cells(int m) const {
52  }
53 
54  private:
55 
56 }; // class Simple_State_Wrapper
57 
58 } // namespace Wonton
59 
60 #endif // SIMPLE_STATE_MM_WRAPPER_H_
Factorize a number N into D equal (or nearly equal) factors.
Definition: adaptive_refinement_mesh.h:31
Simple_State::name_vec names() const
Definition: simple_state_wrapper.h:383
Simple_State_Wrapper & operator=(Simple_State_Wrapper const &)=delete
Assignment operator (disabled).
A thin wrapper that implements state methods for Simple_State needed by Wonton.
Definition: simple_state_mm_wrapper.h:26
int num_material_cells(int m) const
Return the number of cells for this material id.
Definition: state_manager.h:470
Simple_State_Wrapper(const MeshWrapper &mesh, std::unordered_map< std::string, int > names={}, std::unordered_map< int, std::vector< int >> material_cells={})
Constructor for the state wrapper.
Definition: simple_state_mm_wrapper.h:32
int mat_get_num_cells(int m) const
Return the number of cells for this material id.
Definition: simple_state_mm_wrapper.h:50
Definition: state_manager.h:29
~Simple_State_Wrapper()
Destructor.
Definition: simple_state_mm_wrapper.h:41