MCFilePOTInfoKey Class Reference

#include <MCFilePOTInfo.h>

List of all members.

Public Member Functions

 MCFilePOTInfoKey ()
 MCFilePOTInfoKey (const std::string &blah, Int_t version)
virtual ~MCFilePOTInfoKey ()
bool IsSameKey (const MCFilePOTInfoKey &other) const
virtual void Print (const Option_t *opt="") const

Public Attributes

std::string fBlah
Int_t fVersion

Friends

std::istream & operator>> (std::istream &is, MCFilePOTInfoKey &key)
std::ostream & operator<< (std::ostream &os, const MCFilePOTInfoKey &key)

Detailed Description

this is the variety of information that serves as a "key"

Definition at line 34 of file MCFilePOTInfo.h.


Constructor & Destructor Documentation

MCFilePOTInfoKey::MCFilePOTInfoKey (  )  [inline]

Definition at line 40 of file MCFilePOTInfo.h.

00040 : fBlah(""), fVersion(-1) { }

MCFilePOTInfoKey::MCFilePOTInfoKey ( const std::string &  blah,
Int_t  version 
) [inline]

Definition at line 42 of file MCFilePOTInfo.h.

00043     : fBlah(blah), fVersion(version) { }

virtual MCFilePOTInfoKey::~MCFilePOTInfoKey (  )  [inline, virtual]

Definition at line 45 of file MCFilePOTInfo.h.

00045 { };


Member Function Documentation

bool MCFilePOTInfoKey::IsSameKey ( const MCFilePOTInfoKey other  )  const

Definition at line 138 of file MCFilePOTInfo.cxx.

References fBlah, and fVersion.

Referenced by MCFilePOTInfo::IsSameAll().

00139 {
00140   // return true if the "keys" of one are equivalent to another
00141   if ( fBlah    != other.fBlah    ) return false;
00142   if ( fVersion != other.fVersion ) return false;
00143   return true;
00144 }

void MCFilePOTInfoKey::Print ( const Option_t *  opt = ""  )  const [virtual]

Definition at line 146 of file MCFilePOTInfo.cxx.

00147 {
00148   std::cout << *this << std::endl;
00149 }


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const MCFilePOTInfoKey key 
) [friend]
std::istream& operator>> ( std::istream &  is,
MCFilePOTInfoKey key 
) [friend]

Member Data Documentation

Definition at line 55 of file MCFilePOTInfo.h.

Referenced by MCFilePOTInfo::Fill(), IsSameKey(), operator<<(), and MCFilePOTInfo::Store().

Definition at line 56 of file MCFilePOTInfo.h.

Referenced by MCFilePOTInfo::Fill(), IsSameKey(), operator<<(), and MCFilePOTInfo::Store().


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

Generated on 21 Jun 2018 for loon by  doxygen 1.6.1