Ignore:
Timestamp:
Nov 5, 2010, 3:45:55 PM (14 years ago)
Author:
garnier
Message:

update ti head

Location:
trunk/source/geometry/management/include
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/geometry/management/include/G4LogicalSurface.hh

    r1337 r1340  
    2525//
    2626//
    27 // $Id: G4LogicalSurface.hh,v 1.11 2009/04/21 15:18:15 gcosmo Exp $
    28 // GEANT4 tag $Name: geant4-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 $
    2929//
    3030////////////////////////////////////////////////////////////////////////
     
    5353// Data members:
    5454//   G4String                       theName
    55 //   G4SurfaceProperty*              theSurfaceProperty
     55//   G4SurfaceProperty*             theSurfaceProperty
    5656//   G4TransitionRadiationSurface*  theTransRadSurface
    5757
     
    8383 public:  // with description
    8484
    85    G4SurfaceProperty*  GetSurfaceProperty() const;
    86    void    SetSurfaceProperty(G4SurfaceProperty* ptrSurfaceProperty);
     85   inline G4SurfaceProperty*  GetSurfaceProperty() const;
     86   inline void SetSurfaceProperty(G4SurfaceProperty* ptrSurfaceProperty);
    8787
    88    const G4String& GetName() const;
    89    void    SetName(const G4String& name);
     88   inline const G4String& GetName() const;
     89   inline void SetName(const G4String& name);
    9090
    91    G4TransitionRadiationSurface* GetTransitionRadiationSurface() const;
    92    void SetTransitionRadiationSurface(G4TransitionRadiationSurface* tRadSurf);
     91   inline G4TransitionRadiationSurface* GetTransitionRadiationSurface() const;
     92   inline void SetTransitionRadiationSurface(G4TransitionRadiationSurface* tRadSurf);
    9393
    9494 public:  // without description
     
    9696   virtual ~G4LogicalSurface();
    9797
    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;
    100100
    101101 protected:
     
    103103   // There should be no instances of this class
    104104
    105    G4LogicalSurface(const G4String& name, G4SurfaceProperty* surfaceProperty);
     105   G4LogicalSurface(const G4String& name, G4SurfaceProperty* prop);
    106106     // Is the name more meaningful for the properties or the logical surface ?
    107107
    108  private:
     108 private:  // Copying restricted
    109109
    110    G4LogicalSurface(const G4LogicalSurface &right); // Copying restricted
    111    const G4LogicalSurface& operator=(const G4LogicalSurface& right);
     110   G4LogicalSurface(const G4LogicalSurface &right);
     111   inline const G4LogicalSurface& operator=(const G4LogicalSurface& right);
    112112
    113113 private:
  • trunk/source/geometry/management/include/G4LogicalSurface.icc

    r1337 r1340  
    2525//
    2626//
    27 // $Id: G4LogicalSurface.icc,v 1.10 2009/04/21 15:18:15 gcosmo Exp $
    28 // GEANT4 tag $Name: geant4-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 $
    2929//
    3030////////////////////////////////////////////////////////////////////////
     
    4242G4LogicalSurface::GetSurfaceProperty() const
    4343{
    44         return theSurfaceProperty;
     44  return theSurfaceProperty;
    4545}
    4646
     
    4848G4LogicalSurface::SetSurfaceProperty(G4SurfaceProperty* ptrSurfaceProperty)
    4949{
    50         theSurfaceProperty = ptrSurfaceProperty;
     50  theSurfaceProperty = ptrSurfaceProperty;
    5151}
    5252
     
    5454G4LogicalSurface::GetName() const
    5555{
    56         return theName;
     56  return theName;
    5757}
    5858
     
    6060G4LogicalSurface::SetName(const G4String& name)
    6161{
    62         theName = name;
     62  theName = name;
    6363}
    6464
     
    6666G4LogicalSurface::GetTransitionRadiationSurface() const
    6767{
    68         return theTransRadSurface;
     68  return theTransRadSurface;
    6969}
    7070
     
    7373                                                transRadSurf )
    7474{
    75         theTransRadSurface= transRadSurf;
     75  theTransRadSurface= transRadSurf;
    7676}
    77 
    7877
    7978  //////////////
     
    8483G4LogicalSurface::operator=(const G4LogicalSurface &right)
    8584{
    86         if (&right == this) return *this;
    87         theName = right.theName;
    88         theSurfaceProperty = right.theSurfaceProperty;
    89         theTransRadSurface = right.theTransRadSurface;
     85  if (&right == this)  { return *this; }
     86  theName = right.theName;
     87  theSurfaceProperty = right.theSurfaceProperty;
     88  theTransRadSurface = right.theTransRadSurface;
    9089       
    91         return *this;
     90  return *this;
    9291}
    9392
     
    9594G4LogicalSurface::operator==(const G4LogicalSurface &right) const
    9695{
    97         return (this == (G4LogicalSurface *) &right);
     96  return (this == (G4LogicalSurface *) &right);
    9897}
    9998
     
    101100G4LogicalSurface::operator!=(const G4LogicalSurface &right) const
    102101{
    103         return (this != (G4LogicalSurface *) &right);
     102  return (this != (G4LogicalSurface *) &right);
    104103}
    105 
    106   /////////////////
    107   // Constructors
    108   /////////////////
    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  
    2525//
    2626//
    27 // $Id: G4ReflectedSolid.hh,v 1.5 2006/06/29 18:31:03 gunter Exp $
    28 // GEANT4 tag $Name: geant4-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 $
    2929//
    3030//
     
    9494    G4ThreeVector GetPointOnSurface() const;
    9595
     96    G4VSolid* Clone() const;
     97
    9698  public:  // with description
    9799
     
    114116
    115117  public:  // without description
     118
     119    G4ReflectedSolid(const G4ReflectedSolid& rhs);
     120    G4ReflectedSolid& operator=(const G4ReflectedSolid& rhs);
     121      // Copy constructor and assignment operator.
    116122
    117123    void DescribeYourselfTo ( G4VGraphicsScene& scene ) const ;
     
    149155    mutable G4Polyhedron* fpPolyhedron;  // Caches reflected G4Polyhedron.
    150156
    151   private:
    152 
    153     G4ReflectedSolid(const G4ReflectedSolid&);
    154     G4ReflectedSolid& operator=(const G4ReflectedSolid&);
    155       // Private copy constructor and assignment operator.
    156157} ;
    157158
  • trunk/source/geometry/management/include/G4VSolid.hh

    r1337 r1340  
    2525//
    2626//
    27 // $Id: G4VSolid.hh,v 1.29 2008/09/10 13:18:42 gcosmo Exp $
    28 // GEANT4 tag $Name: geant4-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 $
    2929//
    3030//
     
    193193      // Returns a random point located on the surface of the solid.
    194194
     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
    195200    virtual std::ostream& StreamInfo(std::ostream& os) const = 0;
    196201      // Dumps contents of the solid to a stream.
Note: See TracChangeset for help on using the changeset viewer.