Message: G4VNestedParameterisation::ComputeMaterial() Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question G4VNestedParameterisation::ComputeMaterial() 

Forum: Geometry
Date: 13 Apr, 2010
From: Aram Teymurazyan <Aram Teymurazyan>

Hi, G4VNestedParameterisation class has to functions:

1) virtual G4Material* ComputeMaterial(G4VPhysicalVolume* currentVol,
                                        const G4int repNo, 
                                        const G4VTouchable* parentTouch=0) = 0;


2) G4Material* G4VNestedParameterisation::ComputeMaterial(const G4int repNo, 
                                                 G4VPhysicalVolume* currentVol,
                                           const G4VTouchable* parentTouch)

and the second declaration seems to be generating warnings when I try to inherit from this class:

geant_v4.9.3/src/geant4/source/geometry/management/include/G4VNestedParameterisation.hh:161: warning: ‘virtual G4Material* G4VNestedParameterisation::ComputeMaterial(G4int, G4VPhysicalVolume*, const G4VTouchable*)’ was hidden include/CoreParameterisation.hh:38: warning: by ‘virtual G4Material* CoreParameterisation::ComputeMaterial(G4VPhysicalVolume*, G4int, const G4VTouchable*)’

In the implementation all the second function does is calling 1st one. If i have to override the first function in my class anyhow... why do I need the 2nd declaration?

thanks, Aram

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 Feedback: Re: G4VNestedParameterisation::ComputeMaterial()   (John Apostolakis - 28 Apr, 2010)
(_ Question: Re: G4VNestedParameterisation::ComputeMaterial()   (Aram Teymurazyan - 28 Apr, 2010)
 Add Message Add Message
to: "G4VNestedParameterisation::ComputeMaterial()"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews

[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]