Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
JPScore
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
92
Issues
92
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
JuPedSim
JPScore
Commits
2951727f
Commit
2951727f
authored
Jul 24, 2017
by
Arne Graf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Univ Dtor
parent
f6f34a15
Pipeline
#3872
failed with stages
in 8 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
1 deletion
+26
-1
routing/ff_router/UnivFFviaFM.cpp
routing/ff_router/UnivFFviaFM.cpp
+24
-0
routing/ff_router/UnivFFviaFM.h
routing/ff_router/UnivFFviaFM.h
+2
-1
No files found.
routing/ff_router/UnivFFviaFM.cpp
View file @
2951727f
...
...
@@ -11,6 +11,30 @@
#include "mesh/RectGrid.h"
UnivFFviaFM
::~
UnivFFviaFM
()
{
if
(
_grid
)
delete
_grid
;
size_t
speedsize
=
_speedFieldSelector
.
size
();
for
(
auto
speedPtr
:
_speedFieldSelector
)
{
if
(
speedPtr
)
delete
[]
speedPtr
;
}
if
(
_gridCode
)
delete
[]
_gridCode
;
if
(
_subrooms
)
delete
[]
_subrooms
;
std
::
map
<
int
,
double
*>::
reverse_iterator
delIterCost
;
for
(
delIterCost
=
_costFieldWithKey
.
rbegin
();
delIterCost
!=
_costFieldWithKey
.
rend
();
++
delIterCost
)
{
delete
[]
delIterCost
->
second
;
}
std
::
map
<
int
,
Point
*>::
reverse_iterator
delIterDir
;
for
(
delIterDir
=
_directionFieldWithKey
.
rbegin
();
delIterDir
!=
_directionFieldWithKey
.
rend
();
++
delIterDir
)
{
delete
[]
delIterDir
->
second
;
}
}
UnivFFviaFM
::
UnivFFviaFM
(
Room
*
r
,
Building
*
b
,
double
hx
,
double
wallAvoid
,
bool
useWallAvoid
)
:
UnivFFviaFM
(
r
,
b
->
GetConfig
(),
hx
,
wallAvoid
,
useWallAvoid
)
{
_building
=
b
;
...
...
routing/ff_router/UnivFFviaFM.h
View file @
2951727f
...
...
@@ -89,7 +89,7 @@ public:
double
spacing
,
double
wallAvoidDist
,
bool
useWallAvoid
);
UnivFFviaFM
()
{};
UnivFFviaFM
(
UnivFFviaFM
&
){};
virtual
~
UnivFFviaFM
()
{}
;
virtual
~
UnivFFviaFM
();
void
addTarget
(
const
int
uid
,
Line
*
door
,
double
*
costarray
=
nullptr
,
Point
*
gradarray
=
nullptr
);
void
addTarget
(
const
int
uid
,
double
*
costarray
=
nullptr
,
Point
*
gradarray
=
nullptr
);
...
...
@@ -152,6 +152,7 @@ private:
//the following maps are responsible for dealloc the arrays
std
::
map
<
int
,
double
*>
_costFieldWithKey
;
std
::
map
<
int
,
Point
*>
_directionFieldWithKey
;
std
::
vector
<
int
>
_uids
;
std
::
map
<
int
,
Line
>
_doors
;
std
::
vector
<
int
>
_toDo
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment