Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
ObserverPool.cc
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2026 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
4// See the top-level COPYRIGHT file for details.
5// SPDX-License-Identifier: Apache-2.0
6//-----------------------------------------------------------------------------
7/*---------------------------------------------------------------------------*/
8/* ObserverPool.cc (C) 2000-2004 */
9/* */
10/* List of observers. */
11/*---------------------------------------------------------------------------*/
12/*---------------------------------------------------------------------------*/
13
14#include "arcane/utils/ArcanePrecomp.h"
15
16#include "arcane/utils/Deleter.h"
17
18#include "arcane/core/ObserverPool.h"
19
20/*---------------------------------------------------------------------------*/
21/*---------------------------------------------------------------------------*/
22
23namespace Arcane
24{
25
26/*---------------------------------------------------------------------------*/
27/*---------------------------------------------------------------------------*/
28
34
37{
38 m_observers.each(Deleter());
39 m_observers.clear();
40}
41
42/*---------------------------------------------------------------------------*/
43/*---------------------------------------------------------------------------*/
44
45} // namespace Arcane
46
47/*---------------------------------------------------------------------------*/
48/*---------------------------------------------------------------------------*/
Utility class for destroying objects allocated by new.
Definition Deleter.h:33
void detachAll()
Detaches all observers (also detaches them in the process).
~ObserverPool()
Frees resources.
List< IObserver * > m_observers
List of observers.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --