#include <Relation.h>
Inheritance diagram for Event::Relation< T1, T2 >:
Public Member Functions | |
void | addInfo (std::string inf) |
Add additional information (as a string) to the relation. | |
void | addInfo (std::string inf) |
Add additional information (as a string) to the relation. | |
virtual const CLID & | clID () const |
virtual const CLID & | clID () const |
std::ostream & | fillStream (std::ostream &s) const |
Fill the ASCII output stream. | |
std::ostream & | fillStream (std::ostream &s) const |
Fill the ASCII output stream. | |
T1 * | getFirst () |
const T1 * | getFirst () const |
T1 * | getFirst () |
const T1 * | getFirst () const |
std::vector< std::string > | getInfos () const |
std::vector< std::string > | getInfos () const |
T2 * | getSecond () |
const T2 * | getSecond () const |
T2 * | getSecond () |
const T2 * | getSecond () const |
Relation (T1 *obj1, T2 *obj2, std::vector< std::string > infos) | |
Relation (T1 *obj1, T2 *obj2, std::string info) | |
Relation (T1 *obj1, T2 *obj2) | |
Relation (T1 *obj1, T2 *obj2, std::vector< std::string > infos) | |
Relation (T1 *obj1, T2 *obj2, std::string info) | |
Relation (T1 *obj1, T2 *obj2) | |
Static Public Member Functions | |
const CLID & | classID () |
const CLID & | classID () |
Private Member Functions | |
void | setFirst (T1 *obj) |
void | setFirst (T1 *obj) |
void | setSecond (T2 *obj) |
void | setSecond (T2 *obj) |
Private Attributes | |
RelKey< T1, T1, T2 > | m_first |
Key associated to the first object to be related. | |
RelKey< T1, T1, T2 > | m_first |
Key associated to the first object to be related. | |
std::vector< std::string > | m_infos |
Additional information associated to the relation. | |
std::vector< std::string > | m_infos |
Additional information associated to the relation. | |
RelKey< T2, T1, T2 > | m_second |
Key associated to the second object to be related. | |
RelKey< T2, T1, T2 > | m_second |
Key associated to the second object to be related. | |
Friends | |
class | RelTable<T1,T2> |
|
|
|
|
|
|
|
|
|
|
|
|
|
Add additional information (as a string) to the relation.
|
|
Add additional information (as a string) to the relation.
00090 { 00091 // Purpose and Method: This routine add additional information to the relation. 00092 // Inputs: inf is the information to be added. 00093 00094 m_infos.push_back(inf); 00095 00096 }
|
|
Reimplemented in RecMdcHitOnTrack, and RecMdcHitOnTrack. 00040 { return CLID_Relation; }
|
|
Reimplemented in RecMdcHitOnTrack, and RecMdcHitOnTrack. 00040 { return CLID_Relation; }
|
|
Reimplemented in RecMdcHitOnTrack, and RecMdcHitOnTrack. 00039 { return Relation::classID(); }
|
|
Reimplemented in RecMdcHitOnTrack, and RecMdcHitOnTrack. 00039 { return Relation::classID(); }
|
|
Fill the ASCII output stream.
|
|
Fill the ASCII output stream.
00109 { 00110 // Fill the ASCII output stream 00111 s << " Base class Relation" 00112 << "\n First Column: "; 00113 m_first.toStream(s); 00114 s << "\n Second Column: "; 00115 m_second.toStream(s); 00116 s << "\n Additional Information: "; 00117 00118 std::vector<std::string>::const_iterator i; 00119 for(i = m_infos.begin(); i != m_infos.end(); i++) 00120 { 00121 s << "\n " << *i; 00122 } 00123 return s; 00124 }
|
|
00048 { return m_first.getData();}
|
|
00047 {return m_first.getData();}
|
|
00048 { return m_first.getData();}
|
|
00047 {return m_first.getData();}
|
|
|
|
00099 { 00100 // Purpose and Method: This routine get the additional information 00101 // associated to the relation. 00102 // Outputs: a vector of strings 00103 00104 return m_infos; 00105 }
|
|
00051 { return m_second.getData();}
|
|
00050 {return m_second.getData();}
|
|
00051 { return m_second.getData();}
|
|
00050 {return m_second.getData();}
|
|
00071 {m_first.setData(obj);}
|
|
00071 {m_first.setData(obj);}
|
|
00072 {m_second.setData(obj);}
|
|
00072 {m_second.setData(obj);}
|
|
|
|
Key associated to the first object to be related.
|
|
Key associated to the first object to be related.
|
|
Additional information associated to the relation.
|
|
Additional information associated to the relation.
|
|
Key associated to the second object to be related.
|
|
Key associated to the second object to be related.
|