ObjectSet.hpp
Go to the documentation of this file.
1 
18 #pragma once
19 
20 #include <vector>
21 #include <boost/shared_ptr.hpp>
22 #include <boost/foreach.hpp>
23 #include "Object.hpp"
24 #include "Point.hpp"
25 
26 namespace ISM {
27 
31  struct ObjectSet
32  {
33 
34  ObjectSet() {};
35  ObjectSet(const ObjectSet& other)
36  {
37  for (auto& objectPtr : other.objects)
38  {
39  if(this->mIdentifier == ""){
40  this->mIdentifier = other.mIdentifier;
41  }
42  this->objects.push_back(ObjectPtr(new Object(*objectPtr)));
43  }
44  };
45 
46 
47  void insert(ObjectPtr o);
48 
49  std::vector<ObjectPtr> objects;
50  std::string mIdentifier;
51 
52  };
53  typedef boost::shared_ptr<ObjectSet> ObjectSetPtr;
54 
55  std::ostream& operator<<(std::ostream &strm, const ISM::ObjectSet &o);
56  std::ostream& operator<<(std::ostream &strm, const ISM::ObjectSetPtr &o);
57 }
void insert(ObjectPtr o)
Definition: ObjectSet.cpp:44
std::ostream & operator<<(std::ostream &strm, const ISM::ObjectRelation &r)
boost::shared_ptr< ObjectSet > ObjectSetPtr
Definition: ObjectSet.hpp:53
std::string mIdentifier
Definition: ObjectSet.hpp:50
std::vector< ObjectPtr > objects
Definition: ObjectSet.hpp:49
ObjectSet(const ObjectSet &other)
Definition: ObjectSet.hpp:35
this namespace contains all generally usable classes.
boost::shared_ptr< Object > ObjectPtr
Definition: Object.hpp:82


asr_lib_ism
Author(s): Hanselmann Fabian, Heller Florian, Heizmann Heinrich, Kübler Marcel, Mehlhaus Jonas, Meißner Pascal, Qattan Mohamad, Reckling Reno, Stroh Daniel
autogenerated on Wed Jan 8 2020 04:02:40