29 #ifndef MAPCADMEMBER_H 30 #define MAPCADMEMBER_H 32 #include "preprocessor/cad/MapCadMemberBase.h" 34 #include "boost/python/list.hpp" 45 typedef typename std::map<Indice,T *> map_base;
46 typedef typename std::pair<Indice,T *> pair;
47 typedef typename map_base::iterator iterator;
48 typedef typename map_base::const_iterator const_iterator;
52 T *
busca(
const Indice &);
53 const T *
busca(
const Indice &)
const;
54 bool existe(
const Indice &)
const;
55 T *
get(
const Indice &);
56 boost::python::list
getKeys(
void)
const;
72 { T * retval=
nullptr;
73 iterator i= this->find(
id);
83 const T * retval=
nullptr;
84 const_iterator i= this->find(
id);
93 {
return (
busca(
id)!=
nullptr); }
100 T *retval=
busca(iEnt);
102 std::cerr << nombre_clase() <<
"::" << __FUNCTION__
104 << iEnt <<
"' not found.\n";
112 for(iterator i=this->begin();i!=this->end();i++)
114 T * tmp= (*i).second;
126 boost::python::list retval;
127 for(const_iterator i=this->begin();i!=this->end();i++)
128 retval.append((*i).first);
T * busca(const Indice &)
Return a pointer to the geometry entity whose identifier is passed as parameter.
Definition: MapCadMember.h:71
virtual ~MapCadMember(void)
Destructor.
Definition: MapCadMember.h:134
Base class for entity containers of the model.
Definition: MapCadMemberBase.h:42
MapCadMember(Cad *cad=nullptr)
Constructor.
Definition: MapCadMember.h:66
boost::python::list getKeys(void) const
Return the container's keys.
Definition: MapCadMember.h:124
T * get(const Indice &)
Return the entity with tag iEnt.
Definition: MapCadMember.h:98
Container for model entities.
Definition: MapCadMember.h:42
Model geometry manager. Management of geometry entities: points, lines, surfaces, bodies...
Definition: Cad.h:69
bool existe(const Indice &) const
Return true if the entity already exists.
Definition: MapCadMember.h:92
void clearAll(void)
Erase all the entities.
Definition: MapCadMember.h:110
================================================================================
Definition: ContinuaReprComponent.h:34