30 data(), is_selected(false) {
36 data(rhs.data), is_selected(rhs.is_selected) {
42 data(), is_selected(def ==
"SELECTED") {
60 data.push_back(std::make_pair(
name, occur));
113 if(
data[0].second > 0) os <<
'[' <<
data[0].second <<
']';
115 for(Data::size_type i = 1; i <
data.size(); ++i) {
116 os <<
"::" <<
data[i].first;
117 if(
data[i].second) os <<
'[' <<
data[i].second <<
']';
Representation of a place within a beam line or sequence.
bool isActive() const
Return status.
void print(std::ostream &os) const
Print in input format.
void initialize()
Initialise data for search.
PlaceRep()
Default constructor.
void enter(const FlaggedElmPtr &) const
Enter an element or line.
bool isSelected() const
Return select flag.
void append(const std::string &, int occur)
Add a name/occurrence pair.
const PlaceRep & operator=(const PlaceRep &)
void leave(const FlaggedElmPtr &) const
Leave an element or line.
virtual const std::string & getName() const
Get element name.
ElementBase * getElement() const
Get the element pointer.
A section of a beam line.
int getCounter() const
Get clone counter.