Skip to content

Commit 755573a

Browse files
committed
Updates to close-figure.tex and rel-new-figure.tex. In rel-new-figure.tex removed an extraneous % at the end of its first \rSec. In close-figure.tex: added missing equality operator declarations in the synopsis; defaulted the default ctor in the synopsis, changed the construct: comment in the synopsis, and eliminated the definition of the default ctor later on in the file; and, eliminated the data_type type alias in the synopsis, eliminated the data accessors in the synopsis, and eliminated their definitions later on in the file.
1 parent 044a5bb commit 755573a

File tree

2 files changed

+15
-33
lines changed

2 files changed

+15
-33
lines changed

source/close-figure.tex

Lines changed: 14 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -13,48 +13,30 @@
1313
template <class GraphicsSurfaces>
1414
class basic_figure_items<GraphicsSurfaces>::close_figure {
1515
public:
16-
using data_type =
17-
typename GraphicsSurfaces::paths::abs_new_figure_data_type;
18-
19-
// \ref{\iotwod.closefigure.ctor}, construct:
20-
close_figure();
16+
// construct:
17+
close_figure() = default;
2118
close_figure(const close_figure& other) = default;
2219
close_figure(close_figure&& other) noexcept = default;
2320

2421
// assign:
2522
close_figure& operator=(const close_figure& other) = default;
2623
close_figure& operator=(close_figure&& other) noexcept = default;
27-
28-
// \ref{\iotwod.closefigure.acc}, accessors:
29-
const data_type& data() const noexcept;
30-
data_type& data() noexcept;
3124
};
25+
26+
// \ref{\iotwod.closefigure.eq}, equality operators:
27+
template <class GraphicsSurfaces>
28+
bool operator==(
29+
const typename basic_figure_items<GraphicsSurfaces>::close_figure& lhs,
30+
const typename basic_figure_items<GraphicsSurfaces>::close_figure& rhs)
31+
noexcept;
32+
template <class GraphicsSurfaces>
33+
bool operator!=(
34+
const typename basic_figure_items<GraphicsSurfaces>::close_figure& lhs,
35+
const typename basic_figure_items<GraphicsSurfaces>::close_figure& rhs)
36+
noexcept;
3237
}
3338
\end{codeblock}
3439

35-
\rSec1 [\iotwod.closefigure.ctor] {Constructors}%
36-
37-
\indexlibrary{\idxcode{close_figure}!constructor}%
38-
\begin{itemdecl}
39-
close_figure();
40-
\end{itemdecl}
41-
\begin{itemdescr}
42-
\pnum
43-
\effects Constructs an object of type \tcode{close_figure}.
44-
\end{itemdescr}
45-
46-
\rSec1 [\iotwod.closefigure.acc] {Accessors}%
47-
48-
\indexlibrarymember{data}{close_figure}%
49-
\begin{itemdecl}
50-
const data_type& data() const noexcept;
51-
data_type& data() noexcept;
52-
\end{itemdecl}
53-
\begin{itemdescr}
54-
\pnum
55-
\returns A reference to the \tcode{close_figure} object's data object (See: \ref{\iotwod.closefigure.intro}).
56-
\end{itemdescr}
57-
5840
\rSec1 [\iotwod.closefigure.eq] {Equality operators}%
5941

6042
\indexlibrarymember{operator==}{close_figure}%

source/rel-new-figure.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
%!TEX root = io2d.tex
2-
\rSec0 [\iotwod.relnewfigure] {Class template \tcode{basic_figure_items<GraphicsSurfaces>::rel_new_figure}}%
2+
\rSec0 [\iotwod.relnewfigure] {Class template \tcode{basic_figure_items<GraphicsSurfaces>::rel_new_figure}}
33

44
\rSec1 [\iotwod.relnewfigure.intro] {Overview}
55

0 commit comments

Comments
 (0)