31 #ifndef DQPTRSENTITIES_H 32 #define DQPTRSENTITIES_H 35 #include "xc_utils/src/geom/pos_vec/Pos3d.h" 36 #include "xc_utils/src/geom/d3/BND3d.h" 49 typedef typename dq_ptr::const_iterator const_iterator;
50 typedef typename dq_ptr::iterator iterator;
71 BND3d
Bnd(
void)
const;
79 for(const_iterator i= this->begin();i!=this->end();i++)
80 if((*i)->getName()==nmb)
return *i;
91 const_iterator i= this->begin();
92 double d2= (*i)->getSquaredDistanceTo(p);
95 for(;i!=this->end();i++)
97 tmp= (*i)->getSquaredDistanceTo(p);
112 const T *retval=
nullptr;
115 const_iterator i= this->begin();
116 double d2= (*i)->getSquaredDistanceTo(p);
119 for(;i!=this->end();i++)
121 tmp= (*i)->getSquaredDistanceTo(p);
141 for(const_iterator i= this->begin();i!= this->end();i++)
145 if(t->In(geomObj,tol))
159 const_iterator i= this->begin();
164 for(;i!= this->end();i++)
178 for(const_iterator i= other.begin();i!= other.end();i++)
181 iterator j= find(this->begin(),this->end(),t);
191 for(const_iterator i= other.begin();i!= other.end();i++)
194 iterator j= find(this->begin(),this->end(),t);
231 for(
typename DqPtrsEntities<T>::const_iterator i= a.begin();i!= a.end();i++)
234 const typename DqPtrsEntities<T>::const_iterator j= find(b.begin(),b.end(),t);
246 for(
typename DqPtrsEntities<T>::const_iterator i= a.begin();i!= a.end();i++)
249 const typename DqPtrsEntities<T>::const_iterator j= find(b.begin(),b.end(),t);
FiberSet operator*(const FiberSet &, const FiberSet &)
Return the fibers in a that are also in b.
Definition: FiberSet.cc:87
void intersect(const DqPtrsEntities< T > &other)
Removes the objects that belongs also to the parameter.
Definition: DqPtrsEntities.h:189
BND3d Bnd(void) const
Return the entities boundary.
Definition: DqPtrsEntities.h:154
FiberSet operator+(const FiberSet &, const FiberSet &)
Return the union of both containers.
Definition: FiberSet.cc:65
T * getNearest(const Pos3d &p)
Returns the object closest to the position being passed as parameter.
Definition: DqPtrsEntities.h:86
Container for preprocessor entities (points, lines, surfaces,...)
Definition: DqPtrsEntities.h:45
void remove(const DqPtrsEntities< T > &other)
Removes the objects that belongs also to the parameter.
Definition: DqPtrsEntities.h:176
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:34
FiberSet operator-(const FiberSet &, const FiberSet &)
Return the fibers in a that are not in b.
Definition: FiberSet.cc:73
DqPtrsEntities & operator*=(const DqPtrsEntities &)
*= (intersection) operator.
Definition: DqPtrsEntities.h:210
T * searchName(const std::string &nmb)
Returns a pointer to the objet identified by the name.
Definition: DqPtrsEntities.h:77
DqPtrsEntities & operator-=(const DqPtrsEntities &)
-= (difference) operator.
Definition: DqPtrsEntities.h:202
DqPtrsEntities< T > pickEntitiesInside(const GeomObj3d &, const double &tol=0.0) const
Return a container with the entities that lie inside the geometric object.
Definition: DqPtrsEntities.h:138
Pointer to (nodes, elements, points, lines,...) container.
Definition: DqPtrs.h:56