Panzer  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Panzer_GlobalEvaluationDataContainer.hpp
Go to the documentation of this file.
1 // @HEADER
2 // *****************************************************************************
3 // Panzer: A partial differential equation assembly
4 // engine for strongly coupled complex multiphysics systems
5 //
6 // Copyright 2011 NTESS and the Panzer contributors.
7 // SPDX-License-Identifier: BSD-3-Clause
8 // *****************************************************************************
9 // @HEADER
10 
11 #ifndef __Panzer_GlobalEvaluationDataContainer_hpp__
12 #define __Panzer_GlobalEvaluationDataContainer_hpp__
13 
14 #include "Teuchos_RCP.hpp"
15 
16 #include <unordered_map>
17 #include "Panzer_HashUtils.hpp"
19 
20 namespace panzer {
21 
23 public:
24  typedef std::unordered_map<std::string,Teuchos::RCP<GlobalEvaluationData> >::const_iterator const_iterator;
25  typedef std::unordered_map<std::string,Teuchos::RCP<GlobalEvaluationData> >::iterator iterator;
26 
29  void addDataObject(const std::string & key,
31 
34  bool containsDataObject(const std::string & key) const;
35 
38  Teuchos::RCP<GlobalEvaluationData> getDataObject(const std::string & key) const;
39 
41  void ghostToGlobal(int p);
42 
44  void globalToGhost(int p);
45 
47  void initialize();
48 
49  const_iterator begin() const { return lookupTable_.begin(); }
50  const_iterator end() const { return lookupTable_.end(); }
51 
52  iterator begin() { return lookupTable_.begin(); }
53  iterator end() { return lookupTable_.end(); }
54 
55 private:
56  std::unordered_map<std::string,Teuchos::RCP<GlobalEvaluationData> > lookupTable_;
57 };
58 
59 }
60 
61 #endif
void addDataObject(const std::string &key, const Teuchos::RCP< GlobalEvaluationData > &ged)
std::unordered_map< std::string, Teuchos::RCP< GlobalEvaluationData > >::iterator iterator
std::unordered_map< std::string, Teuchos::RCP< GlobalEvaluationData > > lookupTable_
void initialize()
Call initialize on all containers.
void globalToGhost(int p)
Call global to ghost on all the containers.
Teuchos::RCP< GlobalEvaluationData > getDataObject(const std::string &key) const
std::unordered_map< std::string, Teuchos::RCP< GlobalEvaluationData > >::const_iterator const_iterator
void ghostToGlobal(int p)
Call ghost to global on all the containers.