NavGenTCollection Class Reference

#include <NavGenTCollection.h>

Inheritance diagram for NavGenTCollection:
NavPrimerGenerator

List of all members.

Public Member Functions

 NavGenTCollection (const Char_t *classname, const TCollection *external=0)
 ~NavGenTCollection ()

Private Member Functions

const void * GetSetPtr () const
Bool_t IsLattice () const
void Clear ()
void Rebuild ()
 NavGenTCollection (const NavGenTCollection &)

Private Attributes

const TCollection * fExternalBuild
TCollection * fLocalBuild
const TCollection * fTCollection

Detailed Description

Definition at line 20 of file NavGenTCollection.h.


Constructor & Destructor Documentation

NavGenTCollection::NavGenTCollection ( const Char_t *  classname,
const TCollection *  external = 0 
)

Definition at line 73 of file NavGenTCollection.cxx.

References LEA_CTOR.

00074                                                                   :
00075 
00076 NavPrimerGenerator(classname,""),
00077 fExternalBuild(external),
00078 fLocalBuild(0),
00079 fTCollection(0)
00080 
00081 
00082 {
00083 
00084 
00085 //  Purpose:  Constructor
00086 
00087 //  Arguments: 
00088 //    classname    in    Name of class.
00089 //    external     in    Externally prebuilt TCollection or 0.
00090 
00091 //  Return:    n/a
00092 
00093 //  Contact:   N. West
00094 
00095 //  Specification:-
00096 //  =============
00097 
00098 //  o Create a NavGenTCollection.
00099 
00100 //  Program Notes:-
00101 //  =============
00102 
00103 //  External TCollections are used for standalone testing.
00104 
00105 
00106   LEA_CTOR  //Leak Checker
00107 
00108 
00109 }
//.....................................................................

NavGenTCollection::~NavGenTCollection (  ) 

Definition at line 112 of file NavGenTCollection.cxx.

References Clear(), and LEA_DTOR.

00112                                      {
00113 
00114 
00115 //  Purpose:  Desstructor
00116 
00117 //  Arguments: 
00118 //    classname    in    Name of class.
00119 //    external     in    Externally prebuilt TCollection or 0.
00120 
00121 //  Return:    n/a
00122 
00123 //  Contact:   N. West
00124 
00125 //  Specification:-
00126 //  =============
00127 
00128 //  o Destroy a NavGenTCollection.
00129 
00130 //  Program Notes:-
00131 //  =============
00132 
00133 //  External TCollections are used for standalone testing.
00134 
00135 
00136   LEA_DTOR  //Leak Checker
00137 
00138     Clear();
00139 
00140 
00141 }

NavGenTCollection::NavGenTCollection ( const NavGenTCollection  )  [private]

Member Function Documentation

void NavGenTCollection::Clear ( void   )  [private, virtual]

Implements NavPrimerGenerator.

Definition at line 43 of file NavGenTCollection.cxx.

Referenced by Rebuild(), and ~NavGenTCollection().

00043                              {
00044 
00045 
00046 //  Purpose:  Clear any dynamic data.
00047 
00048 //  Arguments: None
00049 
00050 //  Return:    n/a
00051 
00052 //  Contact:   N. West
00053 
00054 //  Specification:-
00055 //  =============
00056 
00057 //  o Drop TCollection if built locally.
00058 
00059 
00060 //  Program Notes:-
00061 //  =============
00062 
00063 //  None.
00064 
00065   if ( fLocalBuild ) delete fLocalBuild;
00066   fTCollection = 0;
00067   fLocalBuild  = 0;
00068 
00069 }

const void* NavGenTCollection::GetSetPtr (  )  const [inline, private, virtual]

Implements NavPrimerGenerator.

Definition at line 39 of file NavGenTCollection.h.

References fTCollection.

00039 { return fTCollection; }

Bool_t NavGenTCollection::IsLattice (  )  const [inline, private, virtual]

Implements NavPrimerGenerator.

Definition at line 40 of file NavGenTCollection.h.

00040 { return kFALSE; };

void NavGenTCollection::Rebuild (  )  [private, virtual]

Implements NavPrimerGenerator.

Definition at line 145 of file NavGenTCollection.cxx.

References Clear(), fExternalBuild, fTCollection, and NavPrimerGenerator::LeftClass().

00145                                 {
00146 
00147 
00148 //  Purpose:  Rebuild REROOT class or Q class TCollection.
00149 
00150 //  Arguments: None.
00151 
00152 //  Return:    n/a
00153 
00154 //  Contact:   N. West
00155 
00156 //  Specification:-
00157 //  =============
00158 
00159 //  o No action if prebuilt otherwise rebuild REROOT class 
00160 //    or Q class TCollection.
00161 
00162 //  Program Notes:-
00163 //  =============
00164 
00165 //  Built in REROOT and Q classes have been removed so currently
00166 //  this does very little.
00167 
00168 
00169 
00170 // Use any externally built set.
00171 
00172   if ( fExternalBuild ) {
00173     fTCollection = fExternalBuild;
00174     return;
00175   }
00176 
00177 //  Remove old TCollection.
00178 
00179   Clear();
00180 
00181   string name(LeftClass());
00182 
00183 }


Member Data Documentation

const TCollection* NavGenTCollection::fExternalBuild [private]

Definition at line 53 of file NavGenTCollection.h.

Referenced by Rebuild().

TCollection* NavGenTCollection::fLocalBuild [private]

Definition at line 54 of file NavGenTCollection.h.

const TCollection* NavGenTCollection::fTCollection [private]

Definition at line 55 of file NavGenTCollection.h.

Referenced by GetSetPtr(), and Rebuild().


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

Generated on 2 Nov 2017 for loon by  doxygen 1.6.1