Import Geant4 3.0.0 source tree
This commit is contained in:
@@ -5,9 +5,18 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4SurfaceList.hh,v 1.2 1999/12/15 14:49:57 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
// $Id: G4SurfaceList.hh,v 1.4 2000/11/08 14:22:04 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
//
|
||||
// ----------------------------------------------------------------------
|
||||
// Class G4SurfaceList
|
||||
//
|
||||
// Class description:
|
||||
//
|
||||
// Class defining a list of surfaces.
|
||||
|
||||
// Authors: J.Sulkimo, P.Urban.
|
||||
// ----------------------------------------------------------------------
|
||||
#ifndef __G4SurfaceList_h
|
||||
#define __G4SurfaceList_h 1
|
||||
|
||||
@@ -15,25 +24,18 @@
|
||||
|
||||
class G4SurfaceList
|
||||
{
|
||||
public:
|
||||
public: // with description
|
||||
|
||||
G4SurfaceList();
|
||||
~G4SurfaceList();
|
||||
|
||||
int number_of_elements;
|
||||
|
||||
G4Surface* first;
|
||||
G4Surface* next;
|
||||
G4Surface* last;
|
||||
G4Surface* temp;
|
||||
G4Surface* index;
|
||||
|
||||
// Constructor & destructor.
|
||||
|
||||
void MoveToFirst(G4Surface *srf);
|
||||
void AddSurface(G4Surface *srf);
|
||||
|
||||
G4Surface* GetSurface();
|
||||
G4Surface* GetSurface(int number);
|
||||
G4Surface* GetLastSurface();
|
||||
const G4Surface* GetSurface(G4int number);
|
||||
const G4Surface* GetLastSurface() const;
|
||||
|
||||
void RemoveSurface(G4Surface* srf);
|
||||
void RemovePointer();
|
||||
@@ -44,16 +46,28 @@ class G4SurfaceList
|
||||
void EmptyList();
|
||||
void G4SortList();
|
||||
|
||||
void QuickG4Sort(G4Surface**, int, int);
|
||||
void QuickG4Sort(G4Surface**, G4int, G4int);
|
||||
|
||||
const G4Surface* GetFirst() const { return first; }
|
||||
const G4Surface* GetNext() const { return next; }
|
||||
G4int GetSize() const { return number_of_elements; }
|
||||
|
||||
private:
|
||||
|
||||
G4SurfaceList(const G4SurfaceList&);
|
||||
G4SurfaceList& operator=(const G4SurfaceList&);
|
||||
// Private copy constructor and assignment operator.
|
||||
|
||||
private: // without description
|
||||
|
||||
G4int number_of_elements;
|
||||
|
||||
G4Surface* first;
|
||||
G4Surface* next;
|
||||
G4Surface* last;
|
||||
G4Surface* temp;
|
||||
G4Surface* index;
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user