32 #include "xc_utils/src/kernel/CommandEntity.h" 47 typedef std::vector<Element *> vector_ptr_elements;
48 typedef vector_ptr_elements::const_reference const_reference;
49 typedef vector_ptr_elements::reference reference;
50 typedef vector_ptr_elements::iterator iterator;
51 typedef vector_ptr_elements::const_iterator const_iterator;
54 vector_ptr_elements theElements;
65 inline size_t size(
void)
const 66 {
return theElements.size(); }
67 inline const_reference front()
const 68 {
return theElements.front(); }
69 inline reference front()
70 {
return theElements.front(); }
71 inline const_reference back()
const 72 {
return theElements.back(); }
73 inline reference back()
74 {
return theElements.back(); }
75 inline const_iterator begin()
const 76 {
return theElements.begin(); }
77 inline iterator begin()
78 {
return theElements.begin(); }
79 inline const_iterator end()
const 80 {
return theElements.end(); }
82 {
return theElements.end(); }
83 iterator
find(
const int &tag);
84 const_iterator
find(
const int &tag)
const;
85 Element *findPtr(
const int &tag);
86 const Element *findPtr(
const int &tag)
const;
88 const_reference operator()(
const size_t &i)
const;
89 reference operator()(
const size_t &i);
90 const_reference operator[](
const size_t &i)
const;
91 reference operator[](
const size_t &i);
iterator find(const int &tag)
Returns an iterator to the element identified by the tag being passed as parameter.
Definition: ElementPtrs.cc:70
~ElementPtrs(void)
Destructor.
Definition: ElementPtrs.cc:44
Pointers to the elements affected by the load.
Definition: ElementPtrs.h:44
virtual void setPtrs(Domain *theDomain, const ID &theElementTags)
Set the element pointers from the element identifiers being passed as parameter.
Definition: ElementPtrs.cc:49
Vector of integers.
Definition: ID.h:93
Base class for the finite elements.
Definition: Element.h:109
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:34
virtual size_t removeElement(const int &tag)
Erases the element identified by the tag being passed as parameter.
Definition: ElementPtrs.cc:110
Domain (mesh and boundary conditions) of the finite element model.
Definition: Domain.h:116
ElementPtrs(void)
Constructor.
Definition: ElementPtrs.cc:39