Main Page
Namespaces
Classes
Files
File List
File Members
libism
ISM
common_type
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
}
ISM::ObjectSet::ObjectSet
ObjectSet()
Definition:
ObjectSet.hpp:34
Object.hpp
Point.hpp
ISM::Object
Definition:
Object.hpp:33
ISM::ObjectSet::insert
void insert(ObjectPtr o)
Definition:
ObjectSet.cpp:44
ISM::operator<<
std::ostream & operator<<(std::ostream &strm, const ISM::ObjectRelation &r)
Definition:
ObjectRelation.cpp:167
ISM::ObjectSetPtr
boost::shared_ptr< ObjectSet > ObjectSetPtr
Definition:
ObjectSet.hpp:53
ISM::ObjectSet
Definition:
ObjectSet.hpp:31
ISM::ObjectSet::mIdentifier
std::string mIdentifier
Definition:
ObjectSet.hpp:50
ISM::ObjectSet::objects
std::vector< ObjectPtr > objects
Definition:
ObjectSet.hpp:49
ISM::ObjectSet::ObjectSet
ObjectSet(const ObjectSet &other)
Definition:
ObjectSet.hpp:35
ISM
this namespace contains all generally usable classes.
Definition:
AcceptanceFunction.hpp:22
ISM::ObjectPtr
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