ATLAS Offline Software
Loading...
Searching...
No Matches
IsMostDerivedFlag.h
Go to the documentation of this file.
1// This file's extension implies that it's C, but it's really -*- C++ -*-.
2
3/*
4 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5*/
6
7// $Id$
14
15
16#ifndef ATHCONTAINERS_ISMOSTDERIVEDFLAG_H
17#define ATHCONTAINERS_ISMOSTDERIVEDFLAG_H
18
19
20namespace SG {
21
22
34{
35public:
37 IsMostDerivedFlag(bool flag) : m_flag(flag) {}
40 operator bool() const { return m_flag; }
42 IsMostDerivedFlag& operator= (bool flag) { m_flag = flag; return *this;}
43
44private:
45 bool m_flag;
46};
47
48
49} // namespace SG
50
51
52#endif // not ATHCONTAINERS_ISMOSTDERIVEDFLAG_H
IsMostDerivedFlag(const IsMostDerivedFlag &)
IsMostDerivedFlag(IsMostDerivedFlag &&)
IsMostDerivedFlag & operator=(const IsMostDerivedFlag &)
Forward declaration.