XC Open source finite element analysis program
MapModelWrapper.h
1 //----------------------------------------------------------------------------
2 // XC program; finite element analysis code
3 // for structural analysis and design.
4 //
5 // Copyright (C) Luis Claudio Pérez Tato
6 //
7 // This program derives from OpenSees <http://opensees.berkeley.edu>
8 // developed by the «Pacific earthquake engineering research center».
9 //
10 // Except for the restrictions that may arise from the copyright
11 // of the original program (see copyright_opensees.txt)
12 // XC is free software: you can redistribute it and/or modify
13 // it under the terms of the GNU General Public License as published by
14 // the Free Software Foundation, either version 3 of the License, or
15 // (at your option) any later version.
16 //
17 // This software is distributed in the hope that it will be useful, but
18 // WITHOUT ANY WARRANTY; without even the implied warranty of
19 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 // GNU General Public License for more details.
21 //
22 //
23 // You should have received a copy of the GNU General Public License
24 // along with this program.
25 // If not, see <http://www.gnu.org/licenses/>.
26 //----------------------------------------------------------------------------
27 //MapModelWrapper.h
28 
29 #ifndef MAPSOLUMODEL_H
30 #define MAPSOLUMODEL_H
31 
32 #include "xc_utils/src/nucleo/EntCmd.h"
33 #include "ModelWrapper.h"
34 
35 namespace XC {
36 
37 class ProcSoluControl;
38 class ModelWrapper;
39 class Domain;
40 
44 class MapModelWrapper: public EntCmd
45  {
46  public:
47  typedef std::map<std::string,ModelWrapper> map_model_wrapper;
48  typedef map_model_wrapper::iterator iterator;
49  typedef map_model_wrapper::const_iterator const_iterator;
50 
51  private:
52  map_model_wrapper solu_models;
53  protected:
54 
55  public:
57 
58  inline iterator begin()
59  { return solu_models.begin(); }
60  inline iterator end()
61  { return solu_models.end(); }
62  inline const_iterator begin() const
63  { return solu_models.begin(); }
64  inline const_iterator end() const
65  { return solu_models.end(); }
66 
67  inline bool empty(void) const
68  { return solu_models.empty(); }
69  inline size_t size(void) const
70  { return solu_models.size(); }
71 
72  bool existeModelWrapper(const std::string &) const;
73  ModelWrapper &creaModelWrapper(const std::string &);
74  const ModelWrapper *getModelWrapper(const std::string &) const;
75  ModelWrapper *getModelWrapper(const std::string &);
76 
77  void clearAll(void);
78  };
79 
80 } // end of XC namespace
81 
82 #endif
void clearAll(void)
Clears all.
Definition: MapModelWrapper.cc:85
Finite element model wrappers container.
Definition: MapModelWrapper.h:44
const ModelWrapper * getModelWrapper(const std::string &) const
Returns a const pointer to the solution method.
Definition: MapModelWrapper.cc:61
ModelWrapper & creaModelWrapper(const std::string &)
Creates a new solution method with the identifier being passed as parameter (if already exists...
Definition: MapModelWrapper.cc:71
Container for the objects that control the solution procedure.
Definition: ProcSoluControl.h:44
Wrapper for the finite element model "seen" from the solver. The model wrapper is definied by: ...
Definition: ModelWrapper.h:55
MapModelWrapper(ProcSoluControl *owr)
Default constructor.
Definition: MapModelWrapper.cc:39
bool existeModelWrapper(const std::string &) const
Returns true ifexiste el método cuyo nombre being passed as parameter.
Definition: MapModelWrapper.cc:44
================================================================================
Definition: ContinuaReprComponent.h:34