File indexing completed on 2026-04-10 07:50:30
0001 #pragma once
0002
0003
0004
0005
0006
0007
0008
0009
0010 class G4Material ;
0011
0012 struct U4Mat
0013 {
0014 static const G4MaterialPropertyVector* GetRINDEX( const G4Material* mt );
0015 static const G4MaterialPropertyVector* GetProperty( const G4Material* mt, int index );
0016 };
0017
0018 inline const G4MaterialPropertyVector* U4Mat::GetRINDEX( const G4Material* mt )
0019 {
0020 return GetProperty(mt, kRINDEX );
0021 }
0022 inline const G4MaterialPropertyVector* U4Mat::GetProperty(const G4Material* mt, int index )
0023 {
0024 G4MaterialPropertiesTable* mpt = mt ? mt->GetMaterialPropertiesTable() : nullptr ;
0025 const G4MaterialPropertyVector* mpv = mpt ? mpt->GetProperty(index) : nullptr ;
0026 return mpv ;
0027 }
0028