Mercurial > hg > aimc
diff trunk/src/Support/StrobeList.h @ 280:e55d0c225a57
- Lots of changes to make cpplint happy. It still complains about header guards, but that's pretty much it now.
author | tomwalters |
---|---|
date | Thu, 18 Feb 2010 21:12:41 +0000 |
parents | 6b4921704eb1 |
children | 41ea31faf90c |
line wrap: on
line diff
--- a/trunk/src/Support/StrobeList.h Thu Feb 18 20:04:04 2010 +0000 +++ b/trunk/src/Support/StrobeList.h Thu Feb 18 21:12:41 2010 +0000 @@ -28,8 +28,8 @@ #ifndef _AIMC_SUPPORT_STROBE_LIST_H_ #define _AIMC_SUPPORT_STROBE_LIST_H_ +#include <math.h> #include <deque> -#include <math.h> namespace aimc { using std::deque; @@ -38,9 +38,9 @@ float weight; float working_weight; StrobePoint() { - time = 0; - weight = 0.0f; - working_weight = 0.0f; + time = 0; + weight = 0.0f; + working_weight = 0.0f; } }; @@ -60,22 +60,26 @@ inline ~StrobeList() { }; - //! \brief Return the strobe time (in samples, can be negative) + /*! \brief Return the strobe time (in samples, can be negative) + */ inline StrobePoint Strobe(int strobe_number) { return strobes_.at(strobe_number); }; - //! \brief Set the strobe weight + /*! \brief Set the strobe weight + */ inline void SetWeight(int strobe_number, float weight) { strobes_.at(strobe_number).weight = weight; }; - //! \brief Set the strobe's working weight + /*! \brief Set the strobe's working weight + */ inline void SetWorkingWeight(int strobe_number, float working_weight) { strobes_.at(strobe_number).working_weight = working_weight; }; - //! \brief Add a strobe to the list (must be in order) + /*! \brief Add a strobe to the list (must be in order) + */ inline void AddStrobe(int time, float weight) { StrobePoint s; s.time = time; @@ -83,18 +87,21 @@ strobes_.push_back(s); }; - //! \brief Delete a strobe from the list + /*! \brief Delete a strobe from the list + */ inline void DeleteFirstStrobe() { strobes_.pop_front(); }; - //! \brief Get the number of strobes + /*! \brief Get the number of strobes + */ inline int strobe_count() const { return strobes_.size(); }; - //! \brief Shift the position of all strobes by subtracting offset from - //! the time value of each + /*! \brief Shift the position of all strobes by subtracting offset from + * the time value of each + */ inline void ShiftStrobes(int offset) { for (unsigned int i = 0; i < strobes_.size(); ++i) strobes_[i].time -= offset;