Thierry Louge
/
gammalib
Toggle navigation
Sign in
Sign in
Project
Files
Commits
Network
Graphs
Snippets
Download as
Email Patches
Plain Diff
Browse Code ยป
Commit
cbb9cb6d0963ac80e0aba07df4c3d0c8be84ffb3
Authored by
knodlseder
2010-05-23 20:08:31 +0000
1 parent
63ab7418
add clear() method
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
include/GEnergy.hpp
include/GTime.hpp
include/GEnergy.hpp
View file @
cbb9cb6
...
...
@@ -48,6 +48,7 @@ public:
48
48
GEnergy& operator= (const GEnergy& eng);
49
49
50
50
// Methods
51
+ void clear(void) { m_energy = 0.0; }
51
52
double keV(void) const;
52
53
double MeV(void) const;
53
54
double GeV(void) const;
...
...
include/GTime.hpp
View file @
cbb9cb6
...
...
@@ -48,6 +48,7 @@ public:
48
48
GTime& operator= (const GTime& time);
49
49
50
50
// Methods
51
+ void clear(void) { m_time = 0.0; }
51
52
double mjd(void) const;
52
53
void mjd(const double& time);
53
54
double met(void) const;
...
...