OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
OPALX
Loading...
Searching...
No Matches
TableRowRep.h
Go to the documentation of this file.
1#ifndef OPAL_TableRowRep_HH
2#define OPAL_TableRowRep_HH
3
4// ------------------------------------------------------------------------
5// $RCSfile: TableRowRep.h,v $
6// ------------------------------------------------------------------------
7// $Revision: 1.1.1.1 $
8// ------------------------------------------------------------------------
9// Copyright: see Copyright.readme
10// ------------------------------------------------------------------------
11//
12// Class: TableRowRep
13//
14// ------------------------------------------------------------------------
15//
16// $Date: 2000/03/27 09:33:35 $
17// $Author: Andreas Adelmann $
18//
19// ------------------------------------------------------------------------
20
21#include <string>
23
24class Table;
25
26// Class TableRowRep
27// ------------------------------------------------------------------------
29// Such a reference consists of two parts:
30// [ol]
31// [li]A table name,
32// [li]A place reference which selects the table row.
33// [/ol]
34
36public:
38 // Constructs undefined reference.
40
42 // Construct reference to the row identified by [b]row[/b] of the
43 // table with name [b]name[/b].
44 TableRowRep(const std::string& tab, const PlaceRep& row);
45
48 const TableRowRep& operator=(const TableRowRep&);
49
51 const std::string& getTabName() const;
52
54 PlaceRep getPosition() const;
55
57 void print(std::ostream& os) const;
58
59private:
60 // Table row structure.
61 std::string tabName; // Table name.
62 PlaceRep position; // Position reference.
63};
64
65inline std::ostream& operator<<(std::ostream& os, const TableRowRep& row) {
66 row.print(os);
67 return os;
68}
69
70#endif // OPAL_TableRowRep_HH
std::ostream & operator<<(std::ostream &os, const TableRowRep &row)
Definition TableRowRep.h:65
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.
The base class for all OPAL tables.
Definition Table.h:41