Skip to content

Commit

Permalink
Add visibility to functions with inline removed
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Carroll <[email protected]>
  • Loading branch information
mjcarroll committed May 27, 2022
1 parent 5f4df55 commit 2e3bd57
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions include/gz/math/Helpers.hh
Original file line number Diff line number Diff line change
Expand Up @@ -563,20 +563,20 @@ namespace ignition
/// \brief Parse string into an integer.
/// \param[in] _input The input string.
/// \return An integer, or NAN_I if unable to parse the input.
int parseInt(const std::string &_input);
int IGNITION_MATH_VISIBLE parseInt(const std::string &_input);

/// \brief parse string into float.
/// \param [in] _input The string.
/// \return A floating point number (can be NaN) or NAN_D if the
/// _input could not be parsed.
double parseFloat(const std::string &_input);
double IGNITION_MATH_VISIBLE parseFloat(const std::string &_input);

/// \brief Convert a std::chrono::steady_clock::time_point to a seconds and
/// nanoseconds pair.
/// \param[in] _time The time point to convert.
/// \return A pair where the first element is the number of seconds and
/// the second is the number of nanoseconds.
std::pair<int64_t, int64_t> timePointToSecNsec(
std::pair<int64_t, int64_t> IGNITION_MATH_VISIBLE timePointToSecNsec(
const std::chrono::steady_clock::time_point &_time);

/// \brief Convert seconds and nanoseconds to
Expand All @@ -585,7 +585,8 @@ namespace ignition
/// \param[in] _nanosec The nanoseconds to convert.
/// \return A std::chrono::steady_clock::time_point based on the number of
/// seconds and the number of nanoseconds.
std::chrono::steady_clock::time_point secNsecToTimePoint(
std::chrono::steady_clock::time_point IGNITION_MATH_VISIBLE
secNsecToTimePoint(
const uint64_t &_sec, const uint64_t &_nanosec);

/// \brief Convert seconds and nanoseconds to
Expand All @@ -594,15 +595,15 @@ namespace ignition
/// \param[in] _nanosec The nanoseconds to convert.
/// \return A std::chrono::steady_clock::duration based on the number of
/// seconds and the number of nanoseconds.
std::chrono::steady_clock::duration secNsecToDuration(
std::chrono::steady_clock::duration IGNITION_MATH_VISIBLE secNsecToDuration(
const uint64_t &_sec, const uint64_t &_nanosec);

/// \brief Convert a std::chrono::steady_clock::duration to a seconds and
/// nanoseconds pair.
/// \param[in] _dur The duration to convert.
/// \return A pair where the first element is the number of seconds and
/// the second is the number of nanoseconds.
std::pair<int64_t, int64_t> durationToSecNsec(
std::pair<int64_t, int64_t> IGNITION_MATH_VISIBLE durationToSecNsec(
const std::chrono::steady_clock::duration &_dur);

// TODO(anyone): Replace this with std::chrono::days.
Expand Down

0 comments on commit 2e3bd57

Please sign in to comment.