#include <WaferTree.h>
Definition at line 36 of file WaferTree.h.
◆ 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 = " <<
18 return false;
19 }
20}
static thread_local std::ostringstream errmsg
int count(std::string s, const std::string ®x)
count how many occurances of a regx are in a string
◆ nSides()
| int Side::nSides |
( |
| ) |
const |
|
inline |
◆ operator[]()
| Wafer & Side::operator[] |
( |
int | side | ) |
|
|
inline |
◆ elements
| T std::map< K, T >::elements |
|
inherited |
◆ keys
The documentation for this class was generated from the following files: