xc
DqPtrsConstraint.h
1 // -*-c++-*-
2 //----------------------------------------------------------------------------
3 // XC program; finite element analysis code
4 // for structural analysis and design.
5 //
6 // Copyright (C) Luis C. Pérez Tato
7 //
8 // This program derives from OpenSees <http://opensees.berkeley.edu>
9 // developed by the «Pacific earthquake engineering research center».
10 //
11 // Except for the restrictions that may arise from the copyright
12 // of the original program (see copyright_opensees.txt)
13 // XC is free software: you can redistribute it and/or modify
14 // it under the terms of the GNU General Public License as published by
15 // the Free Software Foundation, either version 3 of the License, or
16 // (at your option) any later version.
17 //
18 // This software is distributed in the hope that it will be useful, but
19 // WITHOUT ANY WARRANTY; without even the implied warranty of
20 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 // GNU General Public License for more details.
22 //
23 //
24 // You should have received a copy of the GNU General Public License
25 // along with this program.
26 // If not, see <http://www.gnu.org/licenses/>.
27 //----------------------------------------------------------------------------
28 //DqPtrsConstraint.h
29 //constraint pointers deque.
30 
31 
32 #ifndef DQPTRSCONSTRAINT_H
33 #define DQPTRSCONSTRAINT_H
34 
35 #include "DqPtrs.h"
36 
37 class ExprAlgebra;
38 
39 namespace XC {
40 class Constraint;
41 
46 class DqPtrsConstraint: public DqPtrs<Constraint>
47  {
48  public:
49  DqPtrsConstraint(CommandEntity *owr= nullptr);
50  explicit DqPtrsConstraint(const std::deque<Constraint *> &ts);
51  explicit DqPtrsConstraint(const std::set<const Constraint *> &ts);
52 
53  const ID &getTypes(void) const;
54 
55  Constraint *buscaConstrainto(const int &tag);
56  const Constraint *buscaConstrainto(const int &tag) const;
57 
58  void numerate(void);
59  };
60 
63 DqPtrsConstraint operator*(const DqPtrsConstraint &,const DqPtrsConstraint &);
64 
65 } //end of XC namespace
66 #endif
67 
void numerate(void)
Set indices to the objects to allow its use in VTK.
Definition: DqPtrsConstraint.cc:98
Constraint * buscaConstrainto(const int &tag)
Returns (if it exists) a pointer to the element identified by the tag being passed as parameter...
Definition: DqPtrsConstraint.cc:57
const ID & getTypes(void) const
Returns the tags of the constraints.
Definition: DqPtrsConstraint.cc:109
Vector of integers.
Definition: ID.h:95
DqPtrsConstraint(CommandEntity *owr=nullptr)
Constructor.
Definition: DqPtrsConstraint.cc:38
FiberSet operator+(const FiberSet &, const FiberSet &)
Return the union of both containers.
Definition: FiberSet.cc:65
Objet that can execute python scripts.
Definition: CommandEntity.h:40
Expresión algebraica.
Definition: ExprAlgebra.h:32
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
FiberSet operator-(const FiberSet &, const FiberSet &)
Return the fibers in a that are not in b.
Definition: FiberSet.cc:73
Constraint pointers deque.
Definition: DqPtrsConstraint.h:46
Base class for model constraints.
Definition: Constraint.h:48
Pointer to (nodes, elements, points, lines,...) container.
Definition: DqPtrs.h:57