ATLAS Offline Software
Loading...
Searching...
No Matches
SG::IsMostDerivedFlag Class Reference

Holder for the is-most-derived flag. More...

#include <IsMostDerivedFlag.h>

Collaboration diagram for SG::IsMostDerivedFlag:

Public Member Functions

 IsMostDerivedFlag ()
 IsMostDerivedFlag (bool flag)
 IsMostDerivedFlag (const IsMostDerivedFlag &)
 IsMostDerivedFlag (IsMostDerivedFlag &&)
 operator bool () const
IsMostDerivedFlagoperator= (const IsMostDerivedFlag &)
IsMostDerivedFlagoperator= (bool flag)

Private Attributes

bool m_flag

Detailed Description

Holder for the is-most-derived flag.

This acts like a bool, except that when the class containing it gets copied via a copy/move constructor, it is initialized to false. This allows us to maintain the flags when the containers have only implicit copy constructors for the derived classes. After copy construction, the flags will get set correctly by the first call to testInsert.

Definition at line 33 of file IsMostDerivedFlag.h.

Constructor & Destructor Documentation

◆ IsMostDerivedFlag() [1/4]

SG::IsMostDerivedFlag::IsMostDerivedFlag ( )
inline

Definition at line 36 of file IsMostDerivedFlag.h.

36: m_flag(false) {}

◆ IsMostDerivedFlag() [2/4]

SG::IsMostDerivedFlag::IsMostDerivedFlag ( bool flag)
inline

Definition at line 37 of file IsMostDerivedFlag.h.

37: m_flag(flag) {}

◆ IsMostDerivedFlag() [3/4]

SG::IsMostDerivedFlag::IsMostDerivedFlag ( const IsMostDerivedFlag & )
inline

Definition at line 38 of file IsMostDerivedFlag.h.

38: m_flag(false) {}

◆ IsMostDerivedFlag() [4/4]

SG::IsMostDerivedFlag::IsMostDerivedFlag ( IsMostDerivedFlag && )
inline

Definition at line 39 of file IsMostDerivedFlag.h.

39: m_flag(false) {}

Member Function Documentation

◆ operator bool()

SG::IsMostDerivedFlag::operator bool ( ) const
inline

Definition at line 40 of file IsMostDerivedFlag.h.

40{ return m_flag; }

◆ operator=() [1/2]

IsMostDerivedFlag & SG::IsMostDerivedFlag::operator= ( bool flag)
inline

Definition at line 42 of file IsMostDerivedFlag.h.

42{ m_flag = flag; return *this;}
bool flag
Definition master.py:29

◆ operator=() [2/2]

IsMostDerivedFlag & SG::IsMostDerivedFlag::operator= ( const IsMostDerivedFlag & )
inline

Definition at line 41 of file IsMostDerivedFlag.h.

41{ return *this; }

Member Data Documentation

◆ m_flag

bool SG::IsMostDerivedFlag::m_flag
private

Definition at line 45 of file IsMostDerivedFlag.h.


The documentation for this class was generated from the following file: