Import Geant4 11.1.0.beta source tree
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user