#include <G4Assembly.hh>
Definition at line 54 of file G4Assembly.hh.
◆ G4Assembly()
G4Assembly::G4Assembly |
( |
| ) |
|
Definition at line 38 of file G4Assembly.cc.
39 : numberOfSolids(0)
40{
41
42
43}
◆ ~G4Assembly()
G4Assembly::~G4Assembly |
( |
| ) |
|
Definition at line 45 of file G4Assembly.cc.
46{
48
49
50 while (placedVec.size()>0)
51 {
52 a = placedVec.back();
53 placedVec.pop_back();
54 for (G4PlacedVector::iterator i=placedVec.begin(); i!=placedVec.end();)
55 {
56 if (*i==a)
57 {
58 i = placedVec.erase(i);
59 }
60 else
61 {
62 ++i;
63 }
64 }
65 if ( a ) { delete a; }
66 }
67}
◆ GetNumberOfSolids()
G4int G4Assembly::GetNumberOfSolids |
( |
| ) |
const |
|
inline |
◆ GetPlacedSolid()
◆ SetPlacedVector()
Definition at line 69 of file G4Assembly.cc.
70{
71 numberOfSolids = pVec.size();
72
73 for(
G4int a=0;a<numberOfSolids;a++)
74 {
75 placedVec.push_back( pVec[a]);
76 }
77}
The documentation for this class was generated from the following files: