Arcane  v3.14.10.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
ObserverPool.cc
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2022 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/* Liste d'observateurs. */
11/*---------------------------------------------------------------------------*/
12/*---------------------------------------------------------------------------*/
13
14
15#include "arcane/utils/ArcanePrecomp.h"
16
17#include "arcane/utils/Deleter.h"
18
19#include "arcane/ObserverPool.h"
20
21/*---------------------------------------------------------------------------*/
22/*---------------------------------------------------------------------------*/
23
24ARCANE_BEGIN_NAMESPACE
25
26/*---------------------------------------------------------------------------*/
27/*---------------------------------------------------------------------------*/
28
29ObserverPool::
30~ObserverPool()
31{
32 m_observers.each(Deleter());
33}
34
35void ObserverPool::
36detachAll()
37{
38 m_observers.each(Deleter());
39 m_observers.clear();
40}
41
42/*---------------------------------------------------------------------------*/
43/*---------------------------------------------------------------------------*/
44
45ARCANE_END_NAMESPACE
46
47/*---------------------------------------------------------------------------*/
48/*---------------------------------------------------------------------------*/
49
Classe utilitaire pour la destruction des objets alloués par new.
Definition Deleter.h:31