XC Open source finite element analysis program
MatrixCommMetaData.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 
29 #ifndef MatrixCommMetaData_h
30 #define MatrixCommMetaData_h
31 
32 #include "ArrayCommMetaData.h"
33 
34 namespace XC {
35 
37 //
41  {
42  private:
43  std::size_t posNc;
44  public:
45  MatrixCommMetaData(const int &pos,const int &flag,const size_t &nf,const size_t &nc);
46 
48  inline const size_t &getPosNumFilas(void) const
49  { return posSz; }
51  inline const size_t &getPosNumCols(void) const
52  { return posNc; }
54  inline const size_t &getNumFilas(void) const
55  { return posSz; }
57  inline const size_t &getNumCols(void) const
58  { return posNc; }
59  };
60 
61 } // end of XC namespace
62 
63 #endif
const size_t & getNumCols(void) const
Return a reference to the the index of the column number.
Definition: MatrixCommMetaData.h:57
std::size_t posSz
Index of the array size.
Definition: ArrayCommMetaData.h:44
const size_t & getNumFilas(void) const
Return a reference to the the index of the row number.
Definition: MatrixCommMetaData.h:54
const size_t & getPosNumFilas(void) const
Return a const reference to the the index of the row number.
Definition: MatrixCommMetaData.h:48
MatrixCommMetaData(const int &pos, const int &flag, const size_t &nf, const size_t &nc)
Constructor to init the list.
Definition: MatrixCommMetaData.cc:32
Data about the position, size, ... of the array to transmit.
Definition: ArrayCommMetaData.h:41
Data about the position, size,... of the object to transmit.
Definition: MatrixCommMetaData.h:40
const size_t & getPosNumCols(void) const
Return a const reference to the the index of the column number.
Definition: MatrixCommMetaData.h:51
================================================================================
Definition: ContinuaReprComponent.h:34