JobCRecord Class Reference

#include <JobCRecord.h>

List of all members.

Public Member Functions

 JobCRecord ()
 JobCRecord (MomNavigator *mom)
 ~JobCRecord ()
MomNavigatorGetDataPtr () const
bool IsPhysics () const
bool IsNonPhysics () const
void SetDataPtr (MomNavigator *mom)
void SetIsPhysics (bool isphys=true)
void Reset ()

Private Attributes

MomNavigatorfDataPtr
bool fOwnData
bool fIsPhysics

Detailed Description

Definition at line 14 of file JobCRecord.h.


Constructor & Destructor Documentation

JobCRecord::JobCRecord (  ) 

Definition at line 13 of file JobCRecord.cxx.

References fDataPtr.

00013                        :
00014   fDataPtr(new MomNavigator()),
00015   fOwnData(true),
00016   fIsPhysics(true)
00017 { 
00018   assert(fDataPtr);
00019 }

JobCRecord::JobCRecord ( MomNavigator mom  ) 

Definition at line 23 of file JobCRecord.cxx.

References fDataPtr.

00023                                         :
00024   fDataPtr(mom),
00025   fOwnData(false),
00026   fIsPhysics(true)
00027 { 
00028   assert(fDataPtr);
00029 }

JobCRecord::~JobCRecord (  ) 

Definition at line 33 of file JobCRecord.cxx.

References fDataPtr, and fOwnData.

00034 {
00035   if (fOwnData) {
00036     delete fDataPtr; 
00037     fDataPtr = 0;
00038   }
00039 }


Member Function Documentation

MomNavigator * JobCRecord::GetDataPtr (  )  const

Definition at line 43 of file JobCRecord.cxx.

References fDataPtr.

Referenced by JobCPath::Execute().

00044 {
00045   return fDataPtr; 
00046 }

bool JobCRecord::IsNonPhysics (  )  const

Definition at line 54 of file JobCRecord.cxx.

References fIsPhysics.

00054 { return !fIsPhysics; }

bool JobCRecord::IsPhysics (  )  const

Definition at line 50 of file JobCRecord.cxx.

References fIsPhysics.

00050 { return fIsPhysics; }

void JobCRecord::Reset (  ) 

Definition at line 81 of file JobCRecord.cxx.

References MomNavigator::Clear(), fDataPtr, and fIsPhysics.

Referenced by JobCPath::Run().

00082 {
00083 //======================================================================
00084 // Reset the record to initial set of defaults
00085 //======================================================================
00086 
00087   if (fDataPtr) fDataPtr->Clear();
00088 
00089   fIsPhysics = true; // Assume records hold physics unless told otherwise
00090 }

void JobCRecord::SetDataPtr ( MomNavigator mom  ) 

Definition at line 58 of file JobCRecord.cxx.

References fDataPtr, and fOwnData.

00059 {
00060 //======================================================================
00061 // Accecpt a pointer to data from external source. Ownership stays
00062 // with the external source.
00063 //======================================================================
00064   if (fDataPtr && fOwnData) {
00065     delete fDataPtr;
00066     fDataPtr = 0;
00067   }
00068   fDataPtr = mom;
00069   fOwnData = false;
00070 }

void JobCRecord::SetIsPhysics ( bool  isphys = true  ) 

Definition at line 74 of file JobCRecord.cxx.

References fIsPhysics.

Referenced by JobCPath::Execute().

00075 { 
00076   fIsPhysics = isphys;
00077 }


Member Data Documentation

Definition at line 30 of file JobCRecord.h.

Referenced by GetDataPtr(), JobCRecord(), Reset(), SetDataPtr(), and ~JobCRecord().

bool JobCRecord::fIsPhysics [private]

Definition at line 32 of file JobCRecord.h.

Referenced by IsNonPhysics(), IsPhysics(), Reset(), and SetIsPhysics().

bool JobCRecord::fOwnData [private]

Definition at line 31 of file JobCRecord.h.

Referenced by SetDataPtr(), and ~JobCRecord().


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

Generated on 2 Nov 2017 for loon by  doxygen 1.6.1