BOSS 7.0.5
BESIII Offline Software System
Loading...
Searching...
No Matches
InstallArea/include/MdcRecoUtil/MdcRecoUtil/AstAssociation.h
Go to the documentation of this file.
1//--------------------------------------------------------------------------
2// File and Version Information:
3// $Id: AstAssociation.h,v 1.2 2009/12/23 02:59:56 zhangy Exp $
4//
5// Description:
6// Class AstAssociation
7// Very simple class to provide an association between two
8// pointer types which don't obviously belong together in a class,
9// but need to go together for some reason.
10//
11// Environment:
12// Software developed for the BaBar Detector at the SLAC B-Factory.
13//
14// Author List:
15// Phil Strother Original author
16//
17// Copyright Information:
18// Copyright (C) 1997 Imperial College
19//
20// History:
21// Migration for BESIII MDC
22//
23//------------------------------------------------------------------------
24
25#ifndef ASTASSOCIATION_H
26#define ASTASSOCIATION_H
27
28//-------------
29// C Headers --
30//-------------
31extern "C" {
32}
33
34//---------------
35// C++ Headers --
36//---------------
37
38//----------------------
39// Base Class Headers --
40//----------------------
41#include "MdcTrkRecon/Tools/AstAbsAssociation.h"
42
43//-------------------------------
44// Collaborating Class Headers --
45//-------------------------------
46
47
48//------------------------------------
49// Collaborating Class Declarations --
50//------------------------------------
51
52template <class T1, class T2> class AstAssociation;
53
54// ---------------------
55// -- Class Interface --
56// ---------------------
57
58template <class T1, class T2>
59class AstAssociation : public AstAbsAssociation<T1, T2> {
60
61//--------------------
62// Declarations --
63//--------------------
64
65 // Typedefs, consts, and enums
66
67//--------------------
68// Instance Members --
69//--------------------
70
71public:
72
73 // Constructors
74 AstAssociation(T1 *, T2 *);
75
76 // Copy Constructor
78
80 // Destructor
81 virtual ~AstAssociation( );
82
83 // Selectors (const)
84
85 virtual const T1 *firstArgument() const;
86 virtual const T2 *secondArgument() const;
87
88 virtual T1 *firstArgument();
89 virtual T2 *secondArgument();
90 // Modifiers
91
92 virtual void deleteMembers();
93
94protected:
95
96 // Helper functions
97
98private:
99
100 // Friends
101
102 // Data members
103
104 T1 *_itsT1;
105 T2 *_itsT2;
106
108
109//------------------
110// Static Members --
111//------------------
112
113public:
114
115 // Selectors (const)
116
117 // Modifiers
118
119private:
120
121 // Data members
122
123};
124
125//#ifdef BABAR_COMP_INST
126//CHANGE #include "AssocTools/AstAssociation.cxx"
127#include "AstAssociation.icc"
128//#endif // BABAR_COMP_INST
129
130#endif
131
132
133
134
135
136
137
virtual T1 * firstArgument()
AstAssociation(T1 *, T2 *)
virtual const T1 * firstArgument() const
virtual void deleteMembers()
AstAssociation< T1, T2 > & operator=(const AstAssociation< T1, T2 > &)
virtual T2 * secondArgument()
virtual ~AstAssociation()
virtual const T2 * secondArgument() const
AstAssociation(const AstAssociation< T1, T2 > &)