[Fawkes Git] branch/vmatare/scope-timetracker: rename LifetimeTracker to ScopedClassItemTracker...

Victor Mataré matare at lih.rwth-aachen.de
Fri May 6 21:51:45 CEST 2016


Changes have been pushed for the project "Fawkes Robotics Software Framework".

Gitweb: http://git.fawkesrobotics.org/fawkes.git
Trac:   http://trac.fawkesrobotics.org

The branch, vmatare/scope-timetracker has been updated
        to  5820e8cbd07a11a9591928dd96100b8778de1737 (commit)
      from  419dcdc4a6d081a18fc652b5b2ed497e3284dc06 (commit)

http://git.fawkesrobotics.org/fawkes.git/vmatare/scope-timetracker

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- *Log* ---------------------------------------------------------------
commit 5820e8cbd07a11a9591928dd96100b8778de1737
Author:     Victor Mataré <matare at lih.rwth-aachen.de>
AuthorDate: Fri May 6 21:50:22 2016 +0200
Commit:     Victor Mataré <matare at lih.rwth-aachen.de>
CommitDate: Fri May 6 21:50:22 2016 +0200

    rename LifetimeTracker to ScopedClassItemTracker...
    
    and mark constructor explicit.

http://git.fawkesrobotics.org/fawkes.git/commit/5820e8c
http://trac.fawkesrobotics.org/changeset/5820e8c

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -


- *Summary* -----------------------------------------------------------
 src/libs/utils/time/tracker.cpp      |    4 ++--
 src/libs/utils/time/tracker.h        |    6 +++---
 src/libs/utils/time/tracker_macros.h |    2 +-
 3 files changed, 6 insertions(+), 6 deletions(-)


- *Diffs* -------------------------------------------------------------

- *commit* 5820e8cbd07a11a9591928dd96100b8778de1737 - - - - - - - - - -
Author:  Victor Mataré <matare at lih.rwth-aachen.de>
Date:    Fri May 6 21:50:22 2016 +0200
Subject: rename LifetimeTracker to ScopedClassItemTracker...

 src/libs/utils/time/tracker.cpp      |    4 ++--
 src/libs/utils/time/tracker.h        |    6 +++---
 src/libs/utils/time/tracker_macros.h |    2 +-
 3 files changed, 6 insertions(+), 6 deletions(-)

_Diff for modified files_:
diff --git a/src/libs/utils/time/tracker.cpp b/src/libs/utils/time/tracker.cpp
index 0e438dd..b4bcf06 100644
--- a/src/libs/utils/time/tracker.cpp
+++ b/src/libs/utils/time/tracker.cpp
@@ -467,12 +467,12 @@ TimeTracker::print_to_file()
 }
 
 
-LifetimeTracker::LifetimeTracker(TimeTracker &tt, unsigned int cls)
+ScopedClassItemTracker::ScopedClassItemTracker(TimeTracker &tt, unsigned int cls)
 : tt_(tt), cls_(cls)
 { tt_.ping_start(cls_); }
 
 
-LifetimeTracker::~LifetimeTracker()
+ScopedClassItemTracker::~ScopedClassItemTracker()
 { tt_.ping_end(cls_); }
 
 
diff --git a/src/libs/utils/time/tracker.h b/src/libs/utils/time/tracker.h
index af39c58..74d09c9 100644
--- a/src/libs/utils/time/tracker.h
+++ b/src/libs/utils/time/tracker.h
@@ -78,10 +78,10 @@ class TimeTracker {
 };
 
 
-class LifetimeTracker {
+class ScopedClassItemTracker {
 public:
-  LifetimeTracker(TimeTracker &tt, unsigned int cls);
-  ~LifetimeTracker();
+  explicit ScopedClassItemTracker(TimeTracker &tt, unsigned int cls);
+  ~ScopedClassItemTracker();
 private:
   TimeTracker &tt_;
   unsigned int cls_;
diff --git a/src/libs/utils/time/tracker_macros.h b/src/libs/utils/time/tracker_macros.h
index e4efca0..bd940ec 100644
--- a/src/libs/utils/time/tracker_macros.h
+++ b/src/libs/utils/time/tracker_macros.h
@@ -43,7 +43,7 @@
   TRACKER_VARIABLE->ping_abort(c);
 
 #  define TIMETRACK_SCOPE(c)                    \
-  fawkes::LifetimeTracker __tt_scope_sentry(*TRACKER_VARIABLE, c);
+  fawkes::ScopedClassItemTracker __tt_scope_sentry(*TRACKER_VARIABLE, c);
 
 #else
 #  define TIMETRACK_START(c)




-- 
Fawkes Robotics Framework                 http://www.fawkesrobotics.org


More information about the fawkes-commits mailing list