33 #include "utility/kernel/CommandEntity.h" 48 typedef std::vector<Element *> vector_ptr_elements;
49 typedef vector_ptr_elements::const_reference const_reference;
50 typedef vector_ptr_elements::reference reference;
51 typedef vector_ptr_elements::iterator iterator;
52 typedef vector_ptr_elements::const_iterator const_iterator;
55 vector_ptr_elements theElements;
66 inline size_t size(
void)
const 67 {
return theElements.size(); }
68 inline const_reference front()
const 69 {
return theElements.front(); }
70 inline reference front()
71 {
return theElements.front(); }
72 inline const_reference back()
const 73 {
return theElements.back(); }
74 inline reference back()
75 {
return theElements.back(); }
76 inline const_iterator begin()
const 77 {
return theElements.begin(); }
78 inline iterator begin()
79 {
return theElements.begin(); }
80 inline const_iterator end()
const 81 {
return theElements.end(); }
83 {
return theElements.end(); }
84 iterator
find(
const int &tag);
85 const_iterator
find(
const int &tag)
const;
86 Element *findPtr(
const int &tag);
87 const Element *findPtr(
const int &tag)
const;
89 const_reference operator()(
const size_t &i)
const;
90 reference operator()(
const size_t &i);
91 const_reference operator[](
const size_t &i)
const;
92 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:78
~ElementPtrs(void)
Destructor.
Definition: ElementPtrs.cc:43
Pointers to the elements affected by the load.
Definition: ElementPtrs.h:45
virtual void setPtrs(Domain *theDomain, const ID &theElementTags)
Set the element pointers from the element identifiers being passed as parameter.
Definition: ElementPtrs.cc:48
Vector of integers.
Definition: ID.h:95
Base class for the finite elements.
Definition: Element.h:112
Objet that can execute python scripts.
Definition: CommandEntity.h:40
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
virtual size_t removeElement(const int &tag)
Erases the element identified by the tag being passed as parameter.
Definition: ElementPtrs.cc:118
Domain (mesh and boundary conditions) of the finite element model.
Definition: Domain.h:117
ElementPtrs(void)
Constructor.
Definition: ElementPtrs.cc:39