ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
ScoutingInfo Class Reference

#include <ScoutingInfo.h>

Collaboration diagram for ScoutingInfo:

Public Member Functions

 ScoutingInfo ()
 
 ~ScoutingInfo ()
 
void add (CLID clid, const std::string &name)
 add a new element to m_clidName More...
 
void add (const std::pair< CLID, std::string > &clid_Name)
 add a new element to m_clidName More...
 
void add (const std::vector< std::pair< CLID, std::string > > &clid_Name)
 add elements in the vector passed into m_clidName More...
 
void add (const std::set< std::pair< CLID, std::string > > &clid_Name)
 add elements in the set passed into m_clidName More...
 
void get (std::set< std::pair< CLID, std::string > > &clid_Name) const
 gets back all elements in m_clidName (fills up clid_Name vector given by reference) More...
 
const std::set< std::pair< CLID, std::string > > & get () const
 gets back all <CLID, CollectionName> added More...
 
void getclid (std::vector< CLID > &clid) const
 gets back all CLIDs in m_clidName (fills up clid vector given by reference) More...
 
void getName (std::vector< std::string > &name) const
 gets back all CollectionNames in m_clidName (fills up name vector given by reference) More...
 
void clear ()
 clears the vector of <CLID, CollectionName> More...
 
void merge (const ScoutingInfo &sI)
 merges two ScoutingInfo objects I.e. More...
 

Private Attributes

std::set< std::pair< CLID, std::string > > m_clidName
 

Detailed Description

Definition at line 20 of file ScoutingInfo.h.

Constructor & Destructor Documentation

◆ ScoutingInfo()

ScoutingInfo::ScoutingInfo ( )

Definition at line 8 of file ScoutingInfo.cxx.

8  {
9 }

◆ ~ScoutingInfo()

ScoutingInfo::~ScoutingInfo ( )

Definition at line 10 of file ScoutingInfo.cxx.

10  {
11 }

Member Function Documentation

◆ add() [1/4]

void ScoutingInfo::add ( CLID  clid,
const std::string &  name 
)

add a new element to m_clidName

Definition at line 13 of file ScoutingInfo.cxx.

13  {
14 
15  std::pair < CLID, std::string > clid_Name (clid, name);
16  m_clidName.insert(m_clidName.end(), clid_Name);
17 }

◆ add() [2/4]

void ScoutingInfo::add ( const std::pair< CLID, std::string > &  clid_Name)

add a new element to m_clidName

Definition at line 19 of file ScoutingInfo.cxx.

19  {
20 
21  m_clidName.insert(m_clidName.end(), clid_Name);
22 }

◆ add() [3/4]

void ScoutingInfo::add ( const std::set< std::pair< CLID, std::string > > &  clid_Name)

add elements in the set passed into m_clidName

Definition at line 31 of file ScoutingInfo.cxx.

31  {
32 
33  for(std::set< std::pair<CLID, std::string> >::const_iterator it = clid_Name.begin();
34  it != clid_Name.end(); ++it)
35  m_clidName.insert(m_clidName.end(), *it);
36 }

◆ add() [4/4]

void ScoutingInfo::add ( const std::vector< std::pair< CLID, std::string > > &  clid_Name)

add elements in the vector passed into m_clidName

Definition at line 24 of file ScoutingInfo.cxx.

24  {
25 
26  for(std::vector< std::pair<CLID, std::string> >::const_iterator it = clid_Name.begin();
27  it != clid_Name.end(); ++it)
28  m_clidName.insert(m_clidName.end(), *it);
29 }

◆ clear()

void ScoutingInfo::clear ( )

clears the vector of <CLID, CollectionName>

Definition at line 64 of file ScoutingInfo.cxx.

64  {
65  m_clidName.clear();
66 }

◆ get() [1/2]

const std::set< std::pair< CLID, std::string > > & ScoutingInfo::get ( ) const

gets back all <CLID, CollectionName> added

Definition at line 45 of file ScoutingInfo.cxx.

45  {
46 
47  return m_clidName;
48 }

◆ get() [2/2]

void ScoutingInfo::get ( std::set< std::pair< CLID, std::string > > &  clid_Name) const

gets back all elements in m_clidName (fills up clid_Name vector given by reference)

Warning
note that vector is not cleared

Definition at line 38 of file ScoutingInfo.cxx.

38  {
39 
40  for(std::set< std::pair<CLID, std::string> >::const_iterator it = m_clidName.begin();
41  it != m_clidName.end(); ++it)
42  clid_Name.insert(clid_Name.end(), *it);
43 }

◆ getclid()

void ScoutingInfo::getclid ( std::vector< CLID > &  clid) const

gets back all CLIDs in m_clidName (fills up clid vector given by reference)

Warning
note that vector is not cleared

Definition at line 50 of file ScoutingInfo.cxx.

50  {
51 
52  for(std::set< std::pair<CLID, std::string> >::const_iterator it = m_clidName.begin();
53  it != m_clidName.end(); ++it)
54  clid.push_back((*it).first);
55 }

◆ getName()

void ScoutingInfo::getName ( std::vector< std::string > &  name) const

gets back all CollectionNames in m_clidName (fills up name vector given by reference)

Warning
note that vector is not cleared

Definition at line 57 of file ScoutingInfo.cxx.

57  {
58 
59  for(std::set< std::pair<CLID, std::string> >::const_iterator it = m_clidName.begin();
60  it != m_clidName.end(); ++it)
61  name.push_back((*it).second);
62 }

◆ merge()

void ScoutingInfo::merge ( const ScoutingInfo sI)

merges two ScoutingInfo objects I.e.

it the subject of the method invocation will have a vector of pairs of CLID and CollectionName which is union of the two

Definition at line 68 of file ScoutingInfo.cxx.

68  {
69 
70  m_clidName.insert(sI.m_clidName.begin(),sI.m_clidName.end());
71 }

Member Data Documentation

◆ m_clidName

std::set< std::pair<CLID, std::string> > ScoutingInfo::m_clidName
private

Definition at line 86 of file ScoutingInfo.h.


The documentation for this class was generated from the following files:
skel.it
it
Definition: skel.GENtoEVGEN.py:396
CxxUtils::set
constexpr std::enable_if_t< is_bitmask_v< E >, E & > set(E &lhs, E rhs)
Convenience function to set bits in a class enum bitmask.
Definition: bitmask.h:232
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
ScoutingInfo::m_clidName
std::set< std::pair< CLID, std::string > > m_clidName
Definition: ScoutingInfo.h:86