XC Open source finite element analysis program
ArrayCommMetaData.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 ArrayCommMetaData_h
30 #define ArrayCommMetaData_h
31 
32 #include "PtrCommMetaData.h"
33 #include <cstddef>
34 
35 namespace XC {
36 
38 //
42  {
43  protected:
44  std::size_t posSz;
45  public:
46  ArrayCommMetaData(const int &,const int &,const size_t &);
47 
49  inline const std::size_t &getPosSize(void) const
50  { return posSz; }
51 
53  inline const std::size_t &getSize(void) const
54  { return posSz; }
55  };
56 
57 } // end of XC namespace
58 
59 #endif
const std::size_t & getSize(void) const
Returns the array size.
Definition: ArrayCommMetaData.h:53
const std::size_t & getPosSize(void) const
Return the index of the array size.
Definition: ArrayCommMetaData.h:49
std::size_t posSz
Index of the array size.
Definition: ArrayCommMetaData.h:44
Data about the position, size,... of the pointer to transmit.
Definition: PtrCommMetaData.h:38
Data about the position, size, ... of the array to transmit.
Definition: ArrayCommMetaData.h:41
================================================================================
Definition: ContinuaReprComponent.h:34
ArrayCommMetaData(const int &, const int &, const size_t &)
Constructor to init the list.
Definition: ArrayCommMetaData.cc:32