xc
ModelComponentContainerBase.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 //ModelComponentContainerBase.h
28 
29 #ifndef ModelComponentContainerBase_H
30 #define ModelComponentContainerBase_H
31 
32 #include "xc_utils/src/kernel/CommandEntity.h"
33 
34 namespace XC {
35 
36 class Preprocessor;
37 class MultiBlockTopology;
38 
40 //
42 class ModelComponentContainerBase: public CommandEntity
43  {
44  public:
45  typedef size_t Indice;
46 
47  protected:
48  Indice tag;
49 
50 
51 
52  public:
54 
55  const MultiBlockTopology *getMultiBlockTopology(void) const;
57  const Preprocessor *getPreprocessor(void) const;
59 
60  inline size_t getTag(void) const
61  { return tag; }
62  void setTag(const size_t &t)
63  { tag= t; }
64 
65 
66  };
67 
68 } //end of XC namespace
69 #endif
ModelComponentContainerBase(MultiBlockTopology *mbt=nullptr)
Default identifier for new component.
Definition: ModelComponentContainerBase.cc:36
Finite element model generation tools.
Definition: Preprocessor.h:58
const MultiBlockTopology * getMultiBlockTopology(void) const
Return a pointer to MultiBlockTopology.
Definition: ModelComponentContainerBase.cc:40
Model geometry manager.
Definition: MultiBlockTopology.h:68
Base class for model component containers.
Definition: ModelComponentContainerBase.h:42
const Preprocessor * getPreprocessor(void) const
Return a pointer to preprocessor.
Definition: ModelComponentContainerBase.cc:54
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:34