XC Open source finite element analysis program
MapSoluMethod.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 //MapSoluMethod.h
28 
29 #ifndef MAPSOLUMETHOD_H
30 #define MAPSOLUMETHOD_H
31 
32 #include "xc_utils/src/nucleo/EntCmd.h"
33 #include "utility/handler/DataOutputHandler.h"
34 #include "SoluMethod.h"
35 
36 namespace XC {
37 
38 class ProcSoluControl;
39 class ModelWrapper;
40 
44 class MapSoluMethod: public EntCmd
45  {
46  private:
47  typedef std::map<std::string,SoluMethod> map_solu_method;
48  typedef map_solu_method::iterator iterator;
49  typedef map_solu_method::const_iterator const_iterator;
50 
51  map_solu_method solu_methods;
52  public:
54 
55  inline iterator begin()
56  { return solu_methods.begin(); }
57  inline iterator end()
58  { return solu_methods.end(); }
59  inline const_iterator begin() const
60  { return solu_methods.begin(); }
61  inline const_iterator end() const
62  { return solu_methods.end(); }
63 
64  inline bool empty(void) const
65  { return solu_methods.empty(); }
66  inline size_t size(void) const
67  { return solu_methods.size(); }
68 
69  bool existeSoluMethod(const std::string &) const;
70  SoluMethod &creaSoluMethod(const std::string &,ModelWrapper *);
71  const SoluMethod *getSoluMethod(const std::string &) const;
72  SoluMethod *getSoluMethod(const std::string &);
73 
74  SoluMethod &newSoluMethod(const std::string &,const std::string &);
75 
76  void revertToStart(void);
77  void clearAll(void);
78  };
79 
80 } // end of XC namespace
81 
82 #endif
Solution procedure for the finite element problem. The solution procedure is definde by specifiying: ...
Definition: SoluMethod.h:76
SoluMethod & creaSoluMethod(const std::string &, ModelWrapper *)
Creates a new solution method con el código being passed as parameter.
Definition: MapSoluMethod.cc:73
SoluMethod & newSoluMethod(const std::string &, const std::string &)
Creates a new solution method con el código being passed as parameter.
Definition: MapSoluMethod.cc:84
void revertToStart(void)
Returns todo a su estado original.
Definition: MapSoluMethod.cc:93
MapSoluMethod(ProcSoluControl *owr)
Default constructor.
Definition: MapSoluMethod.cc:40
Container for the objects that control the solution procedure.
Definition: ProcSoluControl.h:44
void clearAll(void)
Clears all.
Definition: MapSoluMethod.cc:100
Wrapper for the finite element model "seen" from the solver. The model wrapper is definied by: ...
Definition: ModelWrapper.h:55
Solution methods container.
Definition: MapSoluMethod.h:44
bool existeSoluMethod(const std::string &) const
Returns true ifexiste el método cuyo nombre being passed as parameter.
Definition: MapSoluMethod.cc:45
const SoluMethod * getSoluMethod(const std::string &) const
Returns a const pointer to the solution method.
Definition: MapSoluMethod.cc:52
================================================================================
Definition: ContinuaReprComponent.h:34