ATLAS Offline Software
Loading...
Searching...
No Matches
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

std::string keys
 STL member.
std::string keys
 STL member.
AGDDColorelements
 STL member.
AGDDColorelements
 STL member.

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 [1/2]

AGDDColor * std::map< std::string, AGDDColor * >::elements
inherited

STL member.

◆ elements [2/2]

AGDDColor * std::map< std::string, AGDDColor * >::elements
inherited

STL member.

◆ keys [1/2]

std::string std::map< std::string, AGDDColor * >::keys
inherited

STL member.

◆ keys [2/2]

std::string std::map< std::string, AGDDColor * >::keys
inherited

STL member.


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