60 const std::string&
getID()
const {
68 void setID(
const std::string& newID) {
virtual ~Named()
Destructor.
~StoringVisitor()
Destructor.
StoringVisitor & operator=(const StoringVisitor &src)
invalidated assignment operator
const std::string & getID() const
Returns the id.
StoringVisitor(std::set< std::string > &ids)
Contructor.
void addTo(const StoringVisitor &cont) const
Adds this object to the given container.
Named(const std::string &id)
Constructor.
void add(const Named *const o) const
Adds the given object to the container.
Base class for objects which have an id.
bool operator()(Named *const a, Named *const b) const
Allows to store the object; used as context while traveling the rtree in TraCI.
std::string myID
The name of the object.
void setID(const std::string &newID)
resets the id
std::set< std::string > & myIDs
The container.
Function-object for stable sorting in containers.