Skip to content

Commit

Permalink
Adding comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Akram authored and Akram committed Jul 29, 2024
1 parent f589e5c commit c8c3094
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 9 deletions.
20 changes: 17 additions & 3 deletions lib/APPReinforcementLearning/src/ErrorState.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,23 @@ class ErrorState : public IState
{
}

/* Not allowed. */
ErrorState(const ErrorState& state); /**< Copy construction of an instance. */
ErrorState& operator=(const ErrorState& state); /**< Assignment of an instance. */
/**
* Copy construction of an instance.
* Not allowed.
*
* @param[in] state Source instance.
*/
ErrorState(const ErrorState& state);

/**
* Assignment of an instance.
* Not allowed.
*
* @param[in] state Source instance.
*
* @returns Reference to ErrorState instance.
*/
ErrorState& operator=(const ErrorState& state);
};

/******************************************************************************
Expand Down
20 changes: 17 additions & 3 deletions lib/APPReinforcementLearning/src/LineSensorsCalibrationState.h
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,23 @@ class LineSensorsCalibrationState : public IState
{
}

/* Not allowed. */
LineSensorsCalibrationState(const LineSensorsCalibrationState& state); /**< Copy construction of an instance. */
LineSensorsCalibrationState& operator=(const LineSensorsCalibrationState& state); /**< Assignment of an instance. */
/**
* Copy construction of an instance.
* Not allowed.
*
* @param[in] state Source instance.
*/
LineSensorsCalibrationState(const LineSensorsCalibrationState& state);

/**
* Assignment of an instance.
* Not allowed.
*
* @param[in] state Source instance.
*
* @returns Reference to LineSensorsCalibrationState.
*/
LineSensorsCalibrationState& operator=(const LineSensorsCalibrationState& state);

/**
* Turn and calibrate the line sensors.
Expand Down
20 changes: 17 additions & 3 deletions lib/APPReinforcementLearning/src/MotorSpeedCalibrationState.h
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,23 @@ class MotorSpeedCalibrationState : public IState
{
}

/* Not allowed. */
MotorSpeedCalibrationState(const MotorSpeedCalibrationState& state); /**< Copy construction of an instance. */
MotorSpeedCalibrationState& operator=(const MotorSpeedCalibrationState& state); /**< Assignment of an instance. */
/**
* Copy construction of an instance.
* Not allowed.
*
* @param[in] state Source instance.
*/
MotorSpeedCalibrationState(const MotorSpeedCalibrationState& state);

/**
* Assignment of an instance.
* Not allowed.
*
* @param[in] state Source instance.
*
* @returns Reference to MotorSpeedCalibrationStateinstance.
*/
MotorSpeedCalibrationState& operator=(const MotorSpeedCalibrationState& state);

/**
* Determine the max. motor speed, considering both driving directions.
Expand Down

0 comments on commit c8c3094

Please sign in to comment.