OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
OPALX
Loading...
Searching...
No Matches
TableRowRep.cpp
Go to the documentation of this file.
1// ------------------------------------------------------------------------
2// $RCSfile: TableRowRep.cpp,v $
3// ------------------------------------------------------------------------
4// $Revision: 1.2 $
5// ------------------------------------------------------------------------
6// Copyright: see Copyright.readme
7// ------------------------------------------------------------------------
8//
9// Class: TableRowRep
10// A class used to represent a table row reference.
11//
12// ------------------------------------------------------------------------
13//
14// $Date: 2001/08/13 15:05:47 $
15// $Author: jowett $
16//
17// ------------------------------------------------------------------------
18
20#include <iostream>
21
22// Class TableRowRep
23// ------------------------------------------------------------------------
24
25TableRowRep::TableRowRep() : tabName(), position() {}
26
27TableRowRep::TableRowRep(const TableRowRep& rhs) : tabName(rhs.tabName), position(rhs.position) {}
28
29TableRowRep::TableRowRep(const std::string& tab, const PlaceRep& row)
30 : tabName(tab), position(row) {}
31
33
35 tabName = rhs.tabName;
36 position = rhs.position;
37 return *this;
38}
39
40const std::string& TableRowRep::getTabName() const { return tabName; }
41
43
44void TableRowRep::print(std::ostream& os) const {
45 os << tabName << "->" << position;
46 return;
47}
Representation of a place within a beam line or sequence.
Definition PlaceRep.h:40
Representation of a table row reference.
Definition TableRowRep.h:35
TableRowRep()
Default constructor.
void print(std::ostream &os) const
Print in input format.
const TableRowRep & operator=(const TableRowRep &)
std::string tabName
Definition TableRowRep.h:61
PlaceRep position
Definition TableRowRep.h:62
PlaceRep getPosition() const
Return the row position representation.
const std::string & getTabName() const
Return the table name.