BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
Reconstruction/MdcPatRec/MdcRecoUtil/include/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// C++ Headers --
35//---------------
36
37//----------------------
38// Base Class Headers --
39//----------------------
40#include "MdcTrkRecon/Tools/AstAbsAssociation.h"
41
42//-------------------------------
43// Collaborating Class Headers --
44//-------------------------------
45
46//------------------------------------
47// Collaborating Class Declarations --
48//------------------------------------
49
50template <class T1, class T2> class AstAssociation;
51
52// ---------------------
53// -- Class Interface --
54// ---------------------
55
56template <class T1, class T2> class AstAssociation : public AstAbsAssociation<T1, T2> {
57
58 //--------------------
59 // Declarations --
60 //--------------------
61
62 // Typedefs, consts, and enums
63
64 //--------------------
65 // Instance Members --
66 //--------------------
67
68public:
69 // Constructors
70 AstAssociation( T1*, T2* );
71
72 // Copy Constructor
74
76 // Destructor
77 virtual ~AstAssociation();
78
79 // Selectors (const)
80
81 virtual const T1* firstArgument() const;
82 virtual const T2* secondArgument() const;
83
84 virtual T1* firstArgument();
85 virtual T2* secondArgument();
86 // Modifiers
87
88 virtual void deleteMembers();
89
90protected:
91 // Helper functions
92
93private:
94 // Friends
95
96 // Data members
97
98 T1* _itsT1;
99 T2* _itsT2;
100
102
103 //------------------
104 // Static Members --
105 //------------------
106
107public:
108 // Selectors (const)
109
110 // Modifiers
111
112private:
113 // Data members
114};
115
116// #ifdef BABAR_COMP_INST
117// CHANGE #include "AssocTools/AstAssociation.cxx"
118#include "AstAssociation.icc"
119// #endif // BABAR_COMP_INST
120
121#endif
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 > &)