--Code changes

-Convert all enums to class enum to be consistent with C++11 style.
 -Convert some if/else statements in filter classes to case statements.
 -Add overloaded stream operators to print various enums.
This commit is contained in:
mfeemster
2015-12-31 16:00:36 -08:00
parent 1dc363d190
commit c8e2355ec2
27 changed files with 1081 additions and 925 deletions

View File

@ -69,11 +69,10 @@ public:
/// <param name="other">The MotionParam object to copy.</param>
/// <returns>Reference to updated self</returns>
template <typename U>
MotionParam &operator = (const MotionParam<U>& other)
MotionParam& operator = (const MotionParam<U>& other)
{
this->first = other.first;
this->second = T(other.second);
return *this;
}
};
@ -94,7 +93,7 @@ public:
EmberMotion()
{
m_MotionFreq = 0;
m_MotionFunc = MOTION_SIN;
m_MotionFunc = eMotion::MOTION_SIN;
m_MotionOffset = 0;
}
@ -135,7 +134,7 @@ public:
/// <param name="other">The EmberMotion object to copy.</param>
/// <returns>Reference to updated self</returns>
template <typename U>
EmberMotion &operator = (const EmberMotion<U>& other)
EmberMotion& operator = (const EmberMotion<U>& other)
{
CopyVec(m_MotionParams, other.m_MotionParams);
m_MotionFunc = other.m_MotionFunc;