|
56 | 56 |
|
57 | 57 | // HTML-SHAPE: <h1>class Shape</h1>
|
58 | 58 | // HTML-SHAPE: <p>Defined at line 8 of file {{.*}}Shape.h</p>
|
| 59 | +// HTML-SHAPE: <div>brief</div> |
| 60 | +// HTML-SHAPE: <p> Abstract base class for shapes.</p> |
59 | 61 | // HTML-SHAPE: <p> Provides a common interface for different types of shapes.</p>
|
60 | 62 | // HTML-SHAPE: <h2 id="Functions">Functions</h2>
|
61 | 63 | // HTML-SHAPE: <h3 id="{{([0-9A-F]{40})}}">area</h3>
|
62 | 64 | // HTML-SHAPE: <p>public double area()</p>
|
| 65 | +// HTML-SHAPE: <div>brief</div> |
| 66 | +// HTML-SHAPE: <p> Calculates the area of the shape.</p> |
63 | 67 | // HTML-SHAPE: <h3 id="{{([0-9A-F]{40})}}">perimeter</h3>
|
64 | 68 | // HTML-SHAPE: <p>public double perimeter()</p>
|
| 69 | +// HTML-SHAPE: <div>brief</div> |
| 70 | +// HTML-SHAPE: <p> Calculates the perimeter of the shape.</p> |
| 71 | +// HTML-SHAPE: <div>return</div> |
| 72 | +// HTML-SHAPE: <p> double The perimeter of the shape.</p> |
65 | 73 | // HTML-SHAPE: <h3 id="{{([0-9A-F]{40})}}">~Shape</h3>
|
66 | 74 | // HTML-SHAPE: <p>public void ~Shape()</p>
|
67 | 75 | // HTML-SHAPE: <p>Defined at line 13 of file {{.*}}Shape.h</p>
|
| 76 | +// HTML-SHAPE: <div>brief</div> |
| 77 | +// HTML-SHAPE: <p> Virtual destructor.</p> |
68 | 78 |
|
69 |
| -// HTML-CALC: <h1>class Calculator</h1> |
70 |
| -// HTML-CALC: <p>Defined at line 8 of file {{.*}}Calculator.h</p> |
71 |
| -// HTML-CALC: <p> Provides basic arithmetic operations.</p> |
72 |
| -// HTML-CALC: <h2 id="Functions">Functions</h2> |
73 |
| -// HTML-CALC: <h3 id="{{([0-9A-F]{40})}}">add</h3> |
74 |
| -// HTML-CALC: <p>public int add(int a, int b)</p> |
75 |
| -// HTML-CALC: <p>Defined at line 3 of file {{.*}}Calculator.cpp</p> |
76 |
| -// HTML-CALC: <h3 id="{{([0-9A-F]{40})}}">subtract</h3> |
77 |
| -// HTML-CALC: <p>public int subtract(int a, int b)</p> |
78 |
| -// HTML-CALC: <p>Defined at line 7 of file {{.*}}Calculator.cpp</p> |
79 |
| -// HTML-CALC: <h3 id="{{([0-9A-F]{40})}}">multiply</h3> |
80 |
| -// HTML-CALC: <p>public int multiply(int a, int b)</p> |
81 |
| -// HTML-CALC: <p>Defined at line 11 of file {{.*}}Calculator.cpp</p> |
82 |
| -// HTML-CALC: <h3 id="{{([0-9A-F]{40})}}">divide</h3> |
83 |
| -// HTML-CALC: <p>public double divide(int a, int b)</p> |
84 |
| -// HTML-CALC: <p>Defined at line 15 of file {{.*}}Calculator.cpp</p> |
| 79 | +// HTML-CALC: <h1>class Calculator</h1> |
| 80 | +// HTML-CALC: <p>Defined at line 8 of file {{.*}}Calculator.h</p> |
| 81 | +// HTML-CALC: <div>brief</div> |
| 82 | +// HTML-CALC: <p> A simple calculator class.</p> |
| 83 | +// HTML-CALC: <p> Provides basic arithmetic operations.</p> |
| 84 | +// HTML-CALC: <h2 id="Functions">Functions</h2> |
| 85 | +// HTML-CALC: <h3 id="{{([0-9A-F]{40})}}">add</h3> |
| 86 | +// HTML-CALC: <p>public int add(int a, int b)</p> |
| 87 | +// HTML-CALC: <p>Defined at line 3 of file {{.*}}Calculator.cpp</p> |
| 88 | +// HTML-CALC: <div>brief</div> |
| 89 | +// HTML-CALC: <p> Adds two integers.</p> |
| 90 | +// HTML-CALC: <div>return</div> |
| 91 | +// HTML-CALC: <p> int The sum of a and b.</p> |
| 92 | +// HTML-CALC: <h3 id="{{([0-9A-F]{40})}}">subtract</h3> |
| 93 | +// HTML-CALC: <p>public int subtract(int a, int b)</p> |
| 94 | +// HTML-CALC: <p>Defined at line 7 of file {{.*}}Calculator.cpp</p> |
| 95 | +// HTML-CALC: <div>brief</div> |
| 96 | +// HTML-CALC: <p> Subtracts the second integer from the first.</p> |
| 97 | +// HTML-CALC: <div>return</div> |
| 98 | +// HTML-CALC: <p> int The result of a - b.</p> |
| 99 | +// HTML-CALC: <h3 id="{{([0-9A-F]{40})}}">multiply</h3> |
| 100 | +// HTML-CALC: <p>public int multiply(int a, int b)</p> |
| 101 | +// HTML-CALC: <p>Defined at line 11 of file {{.*}}Calculator.cpp</p> |
| 102 | +// HTML-CALC: <div>brief</div> |
| 103 | +// HTML-CALC: <p> Multiplies two integers.</p> |
| 104 | +// HTML-CALC: <div>return</div> |
| 105 | +// HTML-CALC: <p> int The product of a and b.</p> |
| 106 | +// HTML-CALC: <h3 id="{{([0-9A-F]{40})}}">divide</h3> |
| 107 | +// HTML-CALC: <p>public double divide(int a, int b)</p> |
| 108 | +// HTML-CALC: <p>Defined at line 15 of file {{.*}}Calculator.cpp</p> |
| 109 | +// HTML-CALC: <div>brief</div> |
| 110 | +// HTML-CALC: <p> Divides the first integer by the second.</p> |
| 111 | +// HTML-CALC: <div>return</div> |
| 112 | +// HTML-CALC: <p> double The result of a / b.</p> |
| 113 | +// HTML-CALC: <div>throw</div> |
| 114 | +// HTML-CALC: <p>if b is zero.</p> |
85 | 115 |
|
86 | 116 | // HTML-RECTANGLE: <h1>class Rectangle</h1>
|
87 | 117 | // HTML-RECTANGLE: <p>Defined at line 10 of file {{.*}}Rectangle.h</p>
|
|
99 | 129 | // HTML-RECTANGLE: <h3 id="{{([0-9A-F]{40})}}">Rectangle</h3>
|
100 | 130 | // HTML-RECTANGLE: <p>public void Rectangle(double width, double height)</p>
|
101 | 131 | // HTML-RECTANGLE: <p>Defined at line 3 of file {{.*}}Rectangle.cpp</p>
|
| 132 | +// HTML-RECTANGLE: <div>brief</div> |
| 133 | +// HTML-RECTANGLE: <p> Constructs a new Rectangle object.</p> |
102 | 134 | // HTML-RECTANGLE: <h3 id="{{([0-9A-F]{40})}}">area</h3>
|
103 | 135 | // HTML-RECTANGLE: <p>public double area()</p>
|
104 | 136 | // HTML-RECTANGLE: <p>Defined at line 6 of file {{.*}}Rectangle.cpp</p>
|
| 137 | +// HTML-RECTANGLE: <div>brief</div> |
| 138 | +// HTML-RECTANGLE: <p> Calculates the area of the rectangle.</p> |
| 139 | +// HTML-RECTANGLE: <div>return</div> |
| 140 | +// HTML-RECTANGLE: <p> double The area of the rectangle.</p> |
105 | 141 | // HTML-RECTANGLE: <h3 id="{{([0-9A-F]{40})}}">perimeter</h3>
|
106 | 142 | // HTML-RECTANGLE: <p>public double perimeter()</p>
|
107 | 143 | // HTML-RECTANGLE: <p>Defined at line 10 of file {{.*}}Rectangle.cpp</p>
|
| 144 | +// HTML-RECTANGLE: <div>brief</div> |
| 145 | +// HTML-RECTANGLE: <p> Calculates the perimeter of the rectangle.</p> |
| 146 | +// HTML-RECTANGLE: <div>return</div> |
| 147 | +// HTML-RECTANGLE: <p> double The perimeter of the rectangle.</p> |
108 | 148 |
|
109 | 149 | // HTML-CIRCLE: <h1>class Circle</h1>
|
110 | 150 | // HTML-CIRCLE: <p>Defined at line 10 of file {{.*}}Circle.h</p>
|
| 151 | +// HTML-CIRCLE: <div>brief</div> |
| 152 | +// HTML-CIRCLE: <p> Circle class derived from Shape.</p> |
111 | 153 | // HTML-CIRCLE: <p> Represents a circle with a given radius.</p>
|
112 | 154 | // HTML-CIRCLE: <p>
|
113 | 155 | // HTML-CIRCLE: Inherits from
|
|
120 | 162 | // HTML-CIRCLE: <h3 id="{{([0-9A-F]{40})}}">Circle</h3>
|
121 | 163 | // HTML-CIRCLE: <p>public void Circle(double radius)</p>
|
122 | 164 | // HTML-CIRCLE: <p>Defined at line 3 of file {{.*}}Circle.cpp</p>
|
| 165 | +// HTML-CIRCLE: <div>brief</div> |
| 166 | +// HTML-CIRCLE: <p> Constructs a new Circle object.</p> |
123 | 167 | // HTML-CIRCLE: <h3 id="{{([0-9A-F]{40})}}">area</h3>
|
124 | 168 | // HTML-CIRCLE: <p>public double area()</p>
|
125 | 169 | // HTML-CIRCLE: <p>Defined at line 5 of file {{.*}}Circle.cpp</p>
|
| 170 | +// HTML-CIRCLE: <div>brief</div> |
| 171 | +// HTML-CIRCLE: <p> Calculates the area of the circle.</p> |
| 172 | +// HTML-CIRCLE: <div>return</div> |
| 173 | +// HTML-CIRCLE: <p> double The area of the circle.</p> |
126 | 174 | // HTML-CIRCLE: <h3 id="{{([0-9A-F]{40})}}">perimeter</h3>
|
127 | 175 | // HTML-CIRCLE: <p>public double perimeter()</p>
|
128 | 176 | // HTML-CIRCLE: <p>Defined at line 9 of file {{.*}}Circle.cpp</p>
|
| 177 | +// HTML-CIRCLE: <div>brief</div> |
| 178 | +// HTML-CIRCLE: <p> Calculates the perimeter of the circle.</p> |
| 179 | +// HTML-CIRCLE: <div>return</div> |
| 180 | +// HTML-CIRCLE: <p> double The perimeter of the circle.</p> |
129 | 181 |
|
130 | 182 | // MD-CALC: # class Calculator
|
131 | 183 | // MD-CALC: *Defined at .{{[\/]}}include{{[\/]}}Calculator.h#8*
|
|
0 commit comments