1.01.8
C++ Simulated Travel-Oriented Distribution System Library
Loading...
Searching...
No Matches
FacServiceAbstract.cpp
Go to the documentation of this file.
1
// //////////////////////////////////////////////////////////////////////
2
// Import section
3
// //////////////////////////////////////////////////////////////////////
4
// STL
5
#include <cassert>
6
// SIMCRS
7
#include <
simcrs/service/ServiceAbstract.hpp
>
8
#include <
simcrs/factory/FacServiceAbstract.hpp
>
9
10
namespace
SIMCRS
{
11
12
// //////////////////////////////////////////////////////////////////////
13
FacServiceAbstract::~FacServiceAbstract
() {
14
clean
();
15
}
16
17
// //////////////////////////////////////////////////////////////////////
18
void
FacServiceAbstract::clean
() {
19
for
(ServicePool_T::iterator itService =
_pool
.begin();
20
itService !=
_pool
.end(); itService++) {
21
ServiceAbstract
* currentService_ptr = *itService;
22
assert (currentService_ptr != NULL);
23
24
delete
(currentService_ptr); currentService_ptr = NULL;
25
}
26
27
// Empty the pool of Service Factories
28
_pool
.clear();
29
}
30
31
}
FacServiceAbstract.hpp
ServiceAbstract.hpp
SIMCRS::FacServiceAbstract::~FacServiceAbstract
virtual ~FacServiceAbstract()
Definition
FacServiceAbstract.cpp:13
SIMCRS::FacServiceAbstract::_pool
ServicePool_T _pool
Definition
FacServiceAbstract.hpp:34
SIMCRS::FacServiceAbstract::clean
void clean()
Definition
FacServiceAbstract.cpp:18
SIMCRS::ServiceAbstract
Definition
ServiceAbstract.hpp:14
SIMCRS
Definition
BasConst.cpp:7
Generated on Sat Jul 22 2023 00:00:00 for SimCRS by
1.9.7