ATLAS Offline Software
Loading...
Searching...
No Matches
Side Class Reference

#include <WaferTree.h>

Inheritance diagram for Side:
Collaboration diagram for Side:

Public Member Functions

bool add (int side, Wafer &wafer)
Waferoperator[] (int side)
int nSides () const

Public Attributes

keys
 STL member.
elements
 STL member.

Detailed Description

Definition at line 36 of file WaferTree.h.

Member Function Documentation

◆ add()

bool Side::add ( int side,
Wafer & wafer )

Definition at line 9 of file WaferTree.cxx.

9 {
10
11 if (count(side) == 0) {
12 insert(pair<int, Wafer>(side, wafer));
13 return true;
14 }
15 else {
16 errmsg << "WaferTree ERROR: request to add a second copy of a wafer ignored. Identifier = " <<
17 wafer.hashId() << "; side = " << side;
18 return false;
19 }
20}
static thread_local std::ostringstream errmsg
Definition WaferTree.h:25
unsigned int hashId()
Definition WaferTree.h:30
int count(std::string s, const std::string &regx)
count how many occurances of a regx are in a string
Definition hcg.cxx:146

◆ nSides()

int Side::nSides ( ) const
inline

Definition at line 40 of file WaferTree.h.

40{return size();}

◆ operator[]()

Wafer & Side::operator[] ( int side)
inline

Definition at line 39 of file WaferTree.h.

39{return at(side);}

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: