//-------------------------------------------------------------------------- // File and Version Information: // $Id: AstRefAssociation.hh,v 1.1.1.1 2005/03/29 16:49:05 steinke Exp $ // // Description: // Class AstRefAssociation // Very simple class to provide an association between two // pointer types which don't obviously belong together in a class, // but need to go together for some reason. // // Environment: // Software developed for the BaBar Detector at the SLAC B-Factory. // // Author List: // Phil Strother Original author // // Copyright Information: // Copyright (C) 1997 Imperial College // // Bertram Kopf (RUB) migrated to PandaRoot //------------------------------------------------------------------------ #ifndef ASTREFASSOCIATION_HH #define ASTREFASSOCIATION_HH //------------- // C Headers -- //------------- extern "C" { } //--------------- // C++ Headers -- //--------------- //---------------------- // Base Class Headers -- //---------------------- //------------------------------- // Collaborating Class Headers -- //------------------------------- //------------------------------------ // Collaborating Class Declarations -- //------------------------------------ template class AstRefAssociation; // --------------------- // -- Class Interface -- // --------------------- template class AstRefAssociation{ //-------------------- // Declarations -- //-------------------- // Typedefs, consts, and enums //-------------------- // Instance Members -- //-------------------- public: // Constructors AstRefAssociation(const T1 &, const T2 &); // Copy Constructor AstRefAssociation( const AstRefAssociation &); // Destructor virtual ~AstRefAssociation( ); // Operators AstRefAssociation &operator= ( const AstRefAssociation &); virtual bool operator==( const AstRefAssociation & ) const; bool operator!=( const AstRefAssociation & ) const; // Selectors (const) const T1 &firstArgument() const {return _itsT1;} const T2 &secondArgument() const {return _itsT2;} // Modifiers protected: // Helper functions private: // Friends // Data members const T1 &_itsT1; const T2 &_itsT2; AstRefAssociation(); //------------------ // Static Members -- //------------------ public: // Selectors (const) // Modifiers private: // Data members }; #include "AstRefAssociation.cxx" #endif