BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
Event::Relation< T1, T2 > Class Template Reference

#include <Relation.h>

Inheritance diagram for Event::Relation< T1, T2 >:

Public Member Functions

virtual const CLID & clID () const
 Relation (T1 *obj1, T2 *obj2)
 Relation (T1 *obj1, T2 *obj2, std::string info)
 Relation (T1 *obj1, T2 *obj2, std::vector< std::string > infos)
const T1 * getFirst () const
T1 * getFirst ()
const T2 * getSecond () const
T2 * getSecond ()
void addInfo (std::string inf)
 Add additional information (as a string) to the relation.
std::vector< std::string > getInfos () const
std::ostream & fillStream (std::ostream &s) const
 Fill the ASCII output stream.
virtual const CLID & clID () const
 Relation (T1 *obj1, T2 *obj2)
 Relation (T1 *obj1, T2 *obj2, std::string info)
 Relation (T1 *obj1, T2 *obj2, std::vector< std::string > infos)
const T1 * getFirst () const
T1 * getFirst ()
const T2 * getSecond () const
T2 * getSecond ()
void addInfo (std::string inf)
 Add additional information (as a string) to the relation.
std::vector< std::string > getInfos () const
std::ostream & fillStream (std::ostream &s) const
 Fill the ASCII output stream.
virtual const CLID & clID () const
 Relation (T1 *obj1, T2 *obj2)
 Relation (T1 *obj1, T2 *obj2, std::string info)
 Relation (T1 *obj1, T2 *obj2, std::vector< std::string > infos)
const T1 * getFirst () const
T1 * getFirst ()
const T2 * getSecond () const
T2 * getSecond ()
void addInfo (std::string inf)
 Add additional information (as a string) to the relation.
std::vector< std::string > getInfos () const
std::ostream & fillStream (std::ostream &s) const
 Fill the ASCII output stream.

Static Public Member Functions

static const CLID & classID ()
static const CLID & classID ()
static const CLID & classID ()

Friends

class RelTable< T1, T2 >

Detailed Description

template<class T1, class T2>
class Event::Relation< T1, T2 >

Definition at line 28 of file Event/RelTable/include/RelTable/Relation.h.

Constructor & Destructor Documentation

◆ Relation() [1/9]

template<class T1, class T2>
Event::Relation< T1, T2 >::Relation ( T1 * obj1,
T2 * obj2 )
inline

Definition at line 34 of file Event/RelTable/include/RelTable/Relation.h.

34: m_first( obj1 ), m_second( obj2 ) {}

◆ Relation() [2/9]

template<class T1, class T2>
Relation::Relation ( T1 * obj1,
T2 * obj2,
std::string info )
inline

Definition at line 66 of file Event/RelTable/include/RelTable/Relation.h.

67 : m_first( obj1 ), m_second( obj2 ), m_infos( 1, info ) {}

◆ Relation() [3/9]

template<class T1, class T2>
Relation::Relation ( T1 * obj1,
T2 * obj2,
std::vector< std::string > infos )
inline

Definition at line 70 of file Event/RelTable/include/RelTable/Relation.h.

71 : m_first( obj1 ), m_second( obj2 ), m_infos( infos ) {}

◆ Relation() [4/9]

template<class T1, class T2>
Event::Relation< T1, T2 >::Relation ( T1 * obj1,
T2 * obj2 )
inline

Definition at line 34 of file InstallArea/x86_64-el9-gcc13-dbg/include/RelTable/Relation.h.

34: m_first( obj1 ), m_second( obj2 ) {}

◆ Relation() [5/9]

template<class T1, class T2>
Event::Relation< T1, T2 >::Relation ( T1 * obj1,
T2 * obj2,
std::string info )

◆ Relation() [6/9]

template<class T1, class T2>
Event::Relation< T1, T2 >::Relation ( T1 * obj1,
T2 * obj2,
std::vector< std::string > infos )

◆ Relation() [7/9]

template<class T1, class T2>
Event::Relation< T1, T2 >::Relation ( T1 * obj1,
T2 * obj2 )
inline

Definition at line 34 of file InstallArea/x86_64-el9-gcc13-opt/include/RelTable/Relation.h.

34: m_first( obj1 ), m_second( obj2 ) {}

◆ Relation() [8/9]

template<class T1, class T2>
Event::Relation< T1, T2 >::Relation ( T1 * obj1,
T2 * obj2,
std::string info )

◆ Relation() [9/9]

template<class T1, class T2>
Event::Relation< T1, T2 >::Relation ( T1 * obj1,
T2 * obj2,
std::vector< std::string > infos )

Member Function Documentation

◆ addInfo() [1/3]

template<class T1, class T2>
void Relation::addInfo ( std::string inf)

Add additional information (as a string) to the relation.

Definition at line 73 of file Event/RelTable/include/RelTable/Relation.h.

73 {
74 // Purpose and Method: This routine add additional information to the relation.
75 // Inputs: inf is the information to be added.
76
77 m_infos.push_back( inf );
78 }

◆ addInfo() [2/3]

template<class T1, class T2>
void Event::Relation< T1, T2 >::addInfo ( std::string inf)

Add additional information (as a string) to the relation.

◆ addInfo() [3/3]

template<class T1, class T2>
void Event::Relation< T1, T2 >::addInfo ( std::string inf)

Add additional information (as a string) to the relation.

◆ classID() [1/3]

template<class T1, class T2>
const CLID & Event::Relation< T1, T2 >::classID ( )
inlinestatic

◆ classID() [2/3]

template<class T1, class T2>
const CLID & Event::Relation< T1, T2 >::classID ( )
inlinestatic

◆ classID() [3/3]

template<class T1, class T2>
const CLID & Event::Relation< T1, T2 >::classID ( )
inlinestatic

◆ clID() [1/3]

template<class T1, class T2>
virtual const CLID & Event::Relation< T1, T2 >::clID ( ) const
inlinevirtual

◆ clID() [2/3]

template<class T1, class T2>
virtual const CLID & Event::Relation< T1, T2 >::clID ( ) const
inlinevirtual

◆ clID() [3/3]

template<class T1, class T2>
virtual const CLID & Event::Relation< T1, T2 >::clID ( ) const
inlinevirtual

◆ fillStream() [1/3]

template<class T1, class T2>
std::ostream & Relation::fillStream ( std::ostream & s) const
inline

Fill the ASCII output stream.

Definition at line 89 of file Event/RelTable/include/RelTable/Relation.h.

89 {
90 // Fill the ASCII output stream
91 s << " Base class Relation"
92 << "\n First Column: ";
93 m_first.toStream( s );
94 s << "\n Second Column: ";
95 m_second.toStream( s );
96 s << "\n Additional Information: ";
97
99 for ( i = m_infos.begin(); i != m_infos.end(); i++ ) { s << "\n " << *i; }
100 return s;
101 }

Referenced by main().

◆ fillStream() [2/3]

template<class T1, class T2>
std::ostream & Event::Relation< T1, T2 >::fillStream ( std::ostream & s) const

Fill the ASCII output stream.

◆ fillStream() [3/3]

template<class T1, class T2>
std::ostream & Event::Relation< T1, T2 >::fillStream ( std::ostream & s) const

Fill the ASCII output stream.

◆ getFirst() [1/6]

template<class T1, class T2>
T1 * Event::Relation< T1, T2 >::getFirst ( )
inline

Definition at line 39 of file Event/RelTable/include/RelTable/Relation.h.

39{ return m_first.getData(); }

◆ getFirst() [2/6]

template<class T1, class T2>
T1 * Event::Relation< T1, T2 >::getFirst ( )
inline

Definition at line 39 of file InstallArea/x86_64-el9-gcc13-dbg/include/RelTable/Relation.h.

39{ return m_first.getData(); }

◆ getFirst() [3/6]

template<class T1, class T2>
T1 * Event::Relation< T1, T2 >::getFirst ( )
inline

Definition at line 39 of file InstallArea/x86_64-el9-gcc13-opt/include/RelTable/Relation.h.

39{ return m_first.getData(); }

◆ getFirst() [4/6]

template<class T1, class T2>
const T1 * Event::Relation< T1, T2 >::getFirst ( ) const
inline

Definition at line 38 of file Event/RelTable/include/RelTable/Relation.h.

38{ return m_first.getData(); }

◆ getFirst() [5/6]

template<class T1, class T2>
const T1 * Event::Relation< T1, T2 >::getFirst ( ) const
inline

Definition at line 38 of file InstallArea/x86_64-el9-gcc13-dbg/include/RelTable/Relation.h.

38{ return m_first.getData(); }

◆ getFirst() [6/6]

template<class T1, class T2>
const T1 * Event::Relation< T1, T2 >::getFirst ( ) const
inline

Definition at line 38 of file InstallArea/x86_64-el9-gcc13-opt/include/RelTable/Relation.h.

38{ return m_first.getData(); }

◆ getInfos() [1/3]

template<class T1, class T2>
std::vector< std::string > Relation::getInfos ( ) const

Definition at line 80 of file Event/RelTable/include/RelTable/Relation.h.

80 {
81 // Purpose and Method: This routine get the additional information
82 // associated to the relation.
83 // Outputs: a vector of strings
84
85 return m_infos;
86 }

◆ getInfos() [2/3]

template<class T1, class T2>
std::vector< std::string > Event::Relation< T1, T2 >::getInfos ( ) const

◆ getInfos() [3/3]

template<class T1, class T2>
std::vector< std::string > Event::Relation< T1, T2 >::getInfos ( ) const

◆ getSecond() [1/6]

template<class T1, class T2>
T2 * Event::Relation< T1, T2 >::getSecond ( )
inline

Definition at line 42 of file Event/RelTable/include/RelTable/Relation.h.

42{ return m_second.getData(); }

◆ getSecond() [2/6]

template<class T1, class T2>
T2 * Event::Relation< T1, T2 >::getSecond ( )
inline

Definition at line 42 of file InstallArea/x86_64-el9-gcc13-dbg/include/RelTable/Relation.h.

42{ return m_second.getData(); }

◆ getSecond() [3/6]

template<class T1, class T2>
T2 * Event::Relation< T1, T2 >::getSecond ( )
inline

Definition at line 42 of file InstallArea/x86_64-el9-gcc13-opt/include/RelTable/Relation.h.

42{ return m_second.getData(); }

◆ getSecond() [4/6]

template<class T1, class T2>
const T2 * Event::Relation< T1, T2 >::getSecond ( ) const
inline

Definition at line 41 of file Event/RelTable/include/RelTable/Relation.h.

41{ return m_second.getData(); }

◆ getSecond() [5/6]

template<class T1, class T2>
const T2 * Event::Relation< T1, T2 >::getSecond ( ) const
inline

Definition at line 41 of file InstallArea/x86_64-el9-gcc13-dbg/include/RelTable/Relation.h.

41{ return m_second.getData(); }

◆ getSecond() [6/6]

template<class T1, class T2>
const T2 * Event::Relation< T1, T2 >::getSecond ( ) const
inline

Definition at line 41 of file InstallArea/x86_64-el9-gcc13-opt/include/RelTable/Relation.h.

41{ return m_second.getData(); }

◆ RelTable< T1, T2 >

template<class T1, class T2>
friend class RelTable< T1, T2 >
friend

Definition at line 49 of file Event/RelTable/include/RelTable/Relation.h.


The documentation for this class was generated from the following files: