90 lines
2.9 KiB
C++
90 lines
2.9 KiB
C++
//
|
|
// ********************************************************************
|
|
// * DISCLAIMER *
|
|
// * *
|
|
// * The following disclaimer summarizes all the specific disclaimers *
|
|
// * of contributors to this software. The specific disclaimers,which *
|
|
// * govern, are listed with their locations in: *
|
|
// * http://cern.ch/geant4/license *
|
|
// * *
|
|
// * Neither the authors of this software system, nor their employing *
|
|
// * institutes,nor the agencies providing financial support for this *
|
|
// * work make any representation or warranty, express or implied, *
|
|
// * regarding this software system or assume any liability for its *
|
|
// * use. *
|
|
// * *
|
|
// * This code implementation is the intellectual property of the *
|
|
// * GEANT4 collaboration. *
|
|
// * By copying, distributing or modifying the Program (or any work *
|
|
// * based on the Program) you indicate your acceptance of this *
|
|
// * statement, and all its terms. *
|
|
// ********************************************************************
|
|
//
|
|
//
|
|
// $Id: G4SurfaceList.hh,v 1.5 2001/07/11 09:59:38 gunter Exp $
|
|
// GEANT4 tag $Name: geant4-05-00 $
|
|
//
|
|
// ----------------------------------------------------------------------
|
|
// Class G4SurfaceList
|
|
//
|
|
// Class description:
|
|
//
|
|
// Class defining a list of surfaces.
|
|
|
|
// Authors: J.Sulkimo, P.Urban.
|
|
// ----------------------------------------------------------------------
|
|
#ifndef __G4SurfaceList_h
|
|
#define __G4SurfaceList_h 1
|
|
|
|
#include "G4Surface.hh"
|
|
|
|
class G4SurfaceList
|
|
{
|
|
public: // with description
|
|
|
|
G4SurfaceList();
|
|
~G4SurfaceList();
|
|
// Constructor & destructor.
|
|
|
|
void MoveToFirst(G4Surface *srf);
|
|
void AddSurface(G4Surface *srf);
|
|
|
|
G4Surface* GetSurface();
|
|
const G4Surface* GetSurface(G4int number);
|
|
const G4Surface* GetLastSurface() const;
|
|
|
|
void RemoveSurface(G4Surface* srf);
|
|
void RemovePointer();
|
|
|
|
void MoveToFirst();
|
|
void Step();
|
|
|
|
void EmptyList();
|
|
void G4SortList();
|
|
|
|
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
|