Import Geant4 11.1.0.beta source tree

This commit is contained in:
Gabriele Cosmo
2022-07-01 10:44:02 +02:00
parent b3bf75a2a1
commit c07cea1fe0
2172 changed files with 183300 additions and 123938 deletions
+11 -17
View File
@@ -62,31 +62,25 @@ namespace G4UItokenNum
MINUS = 45
};
typedef struct yystype
using yystype = struct yystype
{
tokenNum type;
G4double D;
G4int I;
G4long L;
char C;
tokenNum type{ tokenNum::NONE };
G4double D{ 0.0 };
G4int I{ 0 };
G4long L{ 0 };
char C{ ' ' };
G4String S;
yystype()
: type(tokenNum::NONE)
, D(0.0)
, I(0)
, L(0)
, C(' ')
, S("")
: S("")
{}
G4bool operator==(const yystype& right) const
{
return (this == &right) ? 1 : 0;
}
G4bool operator==(const yystype& right) const { return this == &right; }
yystype& operator=(const yystype& right)
{
if(&right == this)
{
return *this;
}
type = right.type;
D = right.D;
I = right.I;
@@ -96,7 +90,7 @@ namespace G4UItokenNum
return *this;
}
yystype(const yystype& right) { *this = right; }
} yystype;
};
} // namespace G4UItokenNum
#endif