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

#include <AGDDColorStore.h>

Inheritance diagram for AGDDColorStore:
Collaboration diagram for AGDDColorStore:

Public Member Functions

 AGDDColorStore ()
 
void Register (AGDDColor *)
 
AGDDColorGetColor (const std::string &)
 
bool Exist (const std::string &) const
 

Public Attributes

keys
 STL member. More...
 
elements
 STL member. More...
 

Detailed Description

Definition at line 15 of file AGDDColorStore.h.

Constructor & Destructor Documentation

◆ AGDDColorStore()

AGDDColorStore::AGDDColorStore ( )

Definition at line 9 of file AGDDColorStore.cxx.

10 {
11 }

Member Function Documentation

◆ Exist()

bool AGDDColorStore::Exist ( const std::string &  n) const

Definition at line 19 of file AGDDColorStore.cxx.

20 {
21  return ((*this).find(n) != (*this).end());
22 }

◆ GetColor()

AGDDColor * AGDDColorStore::GetColor ( const std::string &  name)

Definition at line 24 of file AGDDColorStore.cxx.

25 {
26  if ((*this).find(name) != (*this).end())
27  return (*this)[name];
28  else
29  {
30  std::cout << " Color "<<name<<" not found: returning 0"<<std::endl;
31  return nullptr;
32  }
33 }

◆ Register()

void AGDDColorStore::Register ( AGDDColor v)

Definition at line 13 of file AGDDColorStore.cxx.

14 {
15  std::string name=v->GetName();
16  (*this)[name]=v;
17 }

Member Data Documentation

◆ elements

T std::map< K, T >::elements
inherited

STL member.

◆ keys

K std::map< K, T >::keys
inherited

STL member.


The documentation for this class was generated from the following files:
beamspotman.n
n
Definition: beamspotman.py:731
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
python.PyAthena.v
v
Definition: PyAthena.py:154