C++ Mock Module¶
Header file: <libs/src_cxx/mock_cxx.hpp>
[source]
-
inline double area_circle(const double radius)¶
Calculates the area of a circle given its radius.
This function calculates the area of a circle using the formula: \( A = \pi \times r^2 \) where \( A \) is the area and \( r \) is the radius.
- Parameters:
radius – The radius of the circle.
- Returns:
The area of the circle.
-
inline int add(const int ii, const int jj)¶
Adds two integers.
This function takes two integers and returns their sum.
- Parameters:
ii – The first integer.
jj – The second integer.
- Returns:
The sum of ii and jj.