Changeset 1340 for trunk/source/geometry/management/include
- Timestamp:
- Nov 5, 2010, 3:45:55 PM (14 years ago)
- Location:
- trunk/source/geometry/management/include
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/geometry/management/include/G4LogicalSurface.hh
r1337 r1340 25 25 // 26 26 // 27 // $Id: G4LogicalSurface.hh,v 1.1 1 2009/04/21 15:18:15gcosmo Exp $28 // GEANT4 tag $Name: ge ant4-09-04-beta-01$27 // $Id: G4LogicalSurface.hh,v 1.12 2010/07/05 09:22:58 gcosmo Exp $ 28 // GEANT4 tag $Name: geommng-V09-03-05 $ 29 29 // 30 30 //////////////////////////////////////////////////////////////////////// … … 53 53 // Data members: 54 54 // G4String theName 55 // G4SurfaceProperty* 55 // G4SurfaceProperty* theSurfaceProperty 56 56 // G4TransitionRadiationSurface* theTransRadSurface 57 57 … … 83 83 public: // with description 84 84 85 G4SurfaceProperty* GetSurfaceProperty() const;86 voidSetSurfaceProperty(G4SurfaceProperty* ptrSurfaceProperty);85 inline G4SurfaceProperty* GetSurfaceProperty() const; 86 inline void SetSurfaceProperty(G4SurfaceProperty* ptrSurfaceProperty); 87 87 88 const G4String& GetName() const;89 voidSetName(const G4String& name);88 inline const G4String& GetName() const; 89 inline void SetName(const G4String& name); 90 90 91 G4TransitionRadiationSurface*GetTransitionRadiationSurface() const;92 void SetTransitionRadiationSurface(G4TransitionRadiationSurface* tRadSurf);91 inline G4TransitionRadiationSurface* GetTransitionRadiationSurface() const; 92 inline void SetTransitionRadiationSurface(G4TransitionRadiationSurface* tRadSurf); 93 93 94 94 public: // without description … … 96 96 virtual ~G4LogicalSurface(); 97 97 98 G4int operator==(const G4LogicalSurface &right) const;99 G4int operator!=(const G4LogicalSurface &right) const;98 inline G4int operator==(const G4LogicalSurface &right) const; 99 inline G4int operator!=(const G4LogicalSurface &right) const; 100 100 101 101 protected: … … 103 103 // There should be no instances of this class 104 104 105 G4LogicalSurface(const G4String& name, G4SurfaceProperty* surfaceProperty);105 G4LogicalSurface(const G4String& name, G4SurfaceProperty* prop); 106 106 // Is the name more meaningful for the properties or the logical surface ? 107 107 108 private: 108 private: // Copying restricted 109 109 110 G4LogicalSurface(const G4LogicalSurface &right); // Copying restricted111 const G4LogicalSurface& operator=(const G4LogicalSurface& right);110 G4LogicalSurface(const G4LogicalSurface &right); 111 inline const G4LogicalSurface& operator=(const G4LogicalSurface& right); 112 112 113 113 private: -
trunk/source/geometry/management/include/G4LogicalSurface.icc
r1337 r1340 25 25 // 26 26 // 27 // $Id: G4LogicalSurface.icc,v 1.1 0 2009/04/21 15:18:15gcosmo Exp $28 // GEANT4 tag $Name: ge ant4-09-04-beta-01$27 // $Id: G4LogicalSurface.icc,v 1.11 2010/07/05 09:22:58 gcosmo Exp $ 28 // GEANT4 tag $Name: geommng-V09-03-05 $ 29 29 // 30 30 //////////////////////////////////////////////////////////////////////// … … 42 42 G4LogicalSurface::GetSurfaceProperty() const 43 43 { 44 44 return theSurfaceProperty; 45 45 } 46 46 … … 48 48 G4LogicalSurface::SetSurfaceProperty(G4SurfaceProperty* ptrSurfaceProperty) 49 49 { 50 50 theSurfaceProperty = ptrSurfaceProperty; 51 51 } 52 52 … … 54 54 G4LogicalSurface::GetName() const 55 55 { 56 56 return theName; 57 57 } 58 58 … … 60 60 G4LogicalSurface::SetName(const G4String& name) 61 61 { 62 62 theName = name; 63 63 } 64 64 … … 66 66 G4LogicalSurface::GetTransitionRadiationSurface() const 67 67 { 68 68 return theTransRadSurface; 69 69 } 70 70 … … 73 73 transRadSurf ) 74 74 { 75 75 theTransRadSurface= transRadSurf; 76 76 } 77 78 77 79 78 ////////////// … … 84 83 G4LogicalSurface::operator=(const G4LogicalSurface &right) 85 84 { 86 if (&right == this) return *this;87 88 89 85 if (&right == this) { return *this; } 86 theName = right.theName; 87 theSurfaceProperty = right.theSurfaceProperty; 88 theTransRadSurface = right.theTransRadSurface; 90 89 91 90 return *this; 92 91 } 93 92 … … 95 94 G4LogicalSurface::operator==(const G4LogicalSurface &right) const 96 95 { 97 96 return (this == (G4LogicalSurface *) &right); 98 97 } 99 98 … … 101 100 G4LogicalSurface::operator!=(const G4LogicalSurface &right) const 102 101 { 103 102 return (this != (G4LogicalSurface *) &right); 104 103 } 105 106 /////////////////107 // Constructors108 /////////////////109 110 inline G4LogicalSurface::G4LogicalSurface(const G4String& name,111 G4SurfaceProperty* surfaceProperty)112 : theName(name), theSurfaceProperty(surfaceProperty)113 {114 }115 116 inline G4LogicalSurface::G4LogicalSurface(const G4LogicalSurface &right)117 {118 *this = right;119 }120 121 inline G4LogicalSurface::~G4LogicalSurface()122 {123 } -
trunk/source/geometry/management/include/G4ReflectedSolid.hh
r1337 r1340 25 25 // 26 26 // 27 // $Id: G4ReflectedSolid.hh,v 1. 5 2006/06/29 18:31:03 gunterExp $28 // GEANT4 tag $Name: ge ant4-09-04-beta-01$27 // $Id: G4ReflectedSolid.hh,v 1.6 2010/10/19 15:20:18 gcosmo Exp $ 28 // GEANT4 tag $Name: geommng-V09-03-05 $ 29 29 // 30 30 // … … 94 94 G4ThreeVector GetPointOnSurface() const; 95 95 96 G4VSolid* Clone() const; 97 96 98 public: // with description 97 99 … … 114 116 115 117 public: // without description 118 119 G4ReflectedSolid(const G4ReflectedSolid& rhs); 120 G4ReflectedSolid& operator=(const G4ReflectedSolid& rhs); 121 // Copy constructor and assignment operator. 116 122 117 123 void DescribeYourselfTo ( G4VGraphicsScene& scene ) const ; … … 149 155 mutable G4Polyhedron* fpPolyhedron; // Caches reflected G4Polyhedron. 150 156 151 private:152 153 G4ReflectedSolid(const G4ReflectedSolid&);154 G4ReflectedSolid& operator=(const G4ReflectedSolid&);155 // Private copy constructor and assignment operator.156 157 } ; 157 158 -
trunk/source/geometry/management/include/G4VSolid.hh
r1337 r1340 25 25 // 26 26 // 27 // $Id: G4VSolid.hh,v 1. 29 2008/09/10 13:18:42gcosmo Exp $28 // GEANT4 tag $Name: ge ant4-09-04-beta-01$27 // $Id: G4VSolid.hh,v 1.30 2010/10/19 15:19:37 gcosmo Exp $ 28 // GEANT4 tag $Name: geommng-V09-03-05 $ 29 29 // 30 30 // … … 193 193 // Returns a random point located on the surface of the solid. 194 194 195 virtual G4VSolid* Clone() const; 196 // Returns a pointer of a dynamically allocated copy of the solid. 197 // Returns NULL pointer with warning in case the concrete solid does not 198 // implement this method. The caller has responsibility for ownership. 199 195 200 virtual std::ostream& StreamInfo(std::ostream& os) const = 0; 196 201 // Dumps contents of the solid to a stream.
Note: See TracChangeset
for help on using the changeset viewer.