]>
Commit | Line | Data |
---|---|---|
26911512 | 1 | |
2 | // Flugg tag | |
3 | ||
4 | // | |
5 | // NavHistWithCount.icc - Sara Vanini | |
6 | // last modified: 2/II/1999 | |
7 | // | |
8 | // NavHistWithCount.hh inline implementation | |
9 | // | |
10 | // | |
11 | ||
12 | inline NavHistWithCount::NavHistWithCount(const G4NavigationHistory &history) | |
13 | { | |
e73e0522 | 14 | #ifdef G4GEOMETRY_DEBUG |
26911512 | 15 | G4cout << "NavHistWithCount::NavHistWithCount created" << G4endl; |
e73e0522 | 16 | #endif |
26911512 | 17 | fhistory = new G4NavigationHistory(history); |
18 | fDelate=0; | |
19 | count=0; | |
20 | } | |
21 | ||
22 | inline NavHistWithCount::~NavHistWithCount() | |
23 | { | |
e73e0522 | 24 | #ifdef G4GEOMETRY_DEBUG |
26911512 | 25 | G4cout << "NavHistWithCount::NavHistWithCount deleted" << G4endl; |
e73e0522 | 26 | #endif |
26911512 | 27 | delete fhistory; |
28 | fDelate=1; | |
29 | fhistory=0; | |
30 | count=0; | |
31 | } | |
32 | ||
33 | inline void NavHistWithCount::UpdateCount(G4int incrCount) | |
34 | { | |
35 | count=count+incrCount; | |
36 | } | |
37 | ||
38 | inline G4NavigationHistory * NavHistWithCount::GetNavHistPtr() | |
39 | { | |
40 | return fhistory; | |
41 | } | |
42 | ||
43 | inline G4int NavHistWithCount::GetCount() | |
44 | { | |
45 | return count; | |
46 | } | |
47 | ||
48 | inline G4int NavHistWithCount::GetDelateFlag() | |
49 | { | |
50 | return fDelate; | |
51 | } | |
52 | ||
53 | inline G4int NavHistWithCount::GetCheckInd() | |
54 | { | |
55 | return fCheck; | |
56 | } | |
57 | ||
58 | inline void NavHistWithCount::SaveCheckInd(G4int index) | |
59 | { | |
60 | fCheck=index; | |
61 | } | |
62 | ||
63 | ||
64 |