#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 std::ostringstream errmsg
int count(std::string s, const std::string ®x)
count how many occurances of a regx are in a string
ConcurrentBitset & insert(bit_t bit, bit_t new_nbits=0)
Set a bit to 1.
◆ nSides()
| int Side::nSides |
( |
| ) |
const |
|
inline |
Definition at line 40 of file WaferTree.h.
size_t size() const
Number of registered mappings.
◆ operator[]()
| Wafer & Side::operator[] |
( |
int | side | ) |
|
|
inline |
Definition at line 39 of file WaferTree.h.
mapped_type at(key_type key) const
Look up an element in the map.
◆ elements
| T std::map< K, T >::elements |
|
inherited |
◆ keys
The documentation for this class was generated from the following files: