The Gaudi Framework
master (37c0b60a)
ContainedObject.cpp
Go to the documentation of this file.
1
/***********************************************************************************\
2
* (c) Copyright 1998-2024 CERN for the benefit of the LHCb and ATLAS collaborations *
3
* *
4
* This software is distributed under the terms of the Apache version 2 licence, *
5
* copied verbatim in the file "LICENSE". *
6
* *
7
* In applying this licence, CERN does not waive the privileges and immunities *
8
* granted to it by virtue of its status as an Intergovernmental Organization *
9
* or submit itself to any jurisdiction. *
10
\***********************************************************************************/
11
#include <
GaudiKernel/ContainedObject.h
>
12
13
ContainedObject::~ContainedObject
() {
14
// If the object is contained in a container, remove it from there
15
if
(
m_parent
)
m_parent
->
remove
(
this
);
16
}
ContainedObject::~ContainedObject
virtual ~ContainedObject()
Destructor.
Definition:
ContainedObject.cpp:13
ContainedObject::m_parent
ObjectContainerBase * m_parent
Pointer to the parent.
Definition:
ContainedObject.h:80
ObjectContainerBase::remove
virtual long remove(ContainedObject *value)=0
Release object from the container (the pointer will be removed from the container,...
ContainedObject.h
GaudiKernel
src
Lib
ContainedObject.cpp
Generated on Thu Dec 19 2024 15:35:03 for The Gaudi Framework by
1.8.18