XC Open source finite element analysis program
EnvelopeData.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 
28 #ifndef EnvelopeData_h
29 #define EnvelopeData_h
30 
31 #include "utility/actor/actor/MovableObject.h"
32 
33 namespace XC {
34 class Vector;
35 class Matrix;
36 
38 //
40  {
41  private:
42  Matrix *data;
43  Vector *currentData;
44  bool first;
45  friend class EnvelopeElementRecorder;
46  friend class EnvelopeNodeRecorder;
47  void alloc(const size_t &);
48  void free(void);
49  protected:
50  int sendData(CommParameters &);
51  int receiveData(const CommParameters &);
52  public:
53  EnvelopeData(void);
54  ~EnvelopeData(void);
55 
56  inline const Matrix *getData(void) const
57  { return data; }
58  inline Matrix *getData(void)
59  { return data; }
60  inline const Vector *getCurrentData(void) const
61  { return currentData; }
62  inline Vector *getCurrentData(void)
63  { return currentData; }
64  inline const bool &First(void) const
65  { return first; }
66  inline bool &First(void)
67  { return first; }
68 
69  int restart(void);
70 
71  int sendSelf(CommParameters &);
72  int recvSelf(const CommParameters &);
73  };
74 } // end of XC namespace
75 
76 
77 #endif
EnvelopeData(void)
Constructor.
Definition: EnvelopeData.cc:34
int receiveData(const CommParameters &)
Recibe el objeto a través del comunicador que being passed as parameter.
Definition: EnvelopeData.cc:82
~EnvelopeData(void)
Destructor.
Definition: EnvelopeData.cc:60
Definition: Vector.h:82
A EnvelopeRecorder is used to record the envelop of specified DOF responses at a collection of nodes ...
Definition: EnvelopeNodeRecorder.h:75
Object that can move between processes.
Definition: MovableObject.h:91
int sendData(CommParameters &)
Envía el objeto a través del comunicador que being passed as parameter.
Definition: EnvelopeData.cc:72
Definition: Matrix.h:82
Communication parameters between processes.
Definition: CommParameters.h:65
================================================================================
Definition: ContinuaReprComponent.h:34
Definition: EnvelopeData.h:39
Definition: EnvelopeElementRecorder.h:68