Skip to content

Commit 911abd3

Browse files
committed
Renamed path_factory to path_builder
1 parent 6ac0fce commit 911abd3

File tree

7 files changed

+215
-215
lines changed

7 files changed

+215
-215
lines changed

source/experimental-io2d.tex

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -82,49 +82,49 @@
8282
class path;
8383

8484
template <class Allocator = allocator<path_data::path_data_types>>
85-
class path_factory {
85+
class path_builder {
8686
public:
8787
using value_type = path_data::path_data_types;
8888
using allocator_type = Allocator;
8989
using reference = value_type&;
9090
using const_reference = const value_type&;
91-
using size_type = @\impdefx{type of \tcode{path_factory::size_type}}@. // See [container.requirements] in \cppseventeen.
92-
using difference_type = @\impdefx{type of \tcode{path_factory::size_type}}@. // See [container.requirements] in \cppseventeen.
93-
using iterator = @\impdefx{type of \tcode{path_factory::iterator}}@. // See [container.requirements] in \cppseventeen.
94-
using const_iterator = @\impdefx{type of \tcode{path_factory::const_iterator}}@. // See [container.requirements] in \cppseventeen.
91+
using size_type = @\impdefx{type of \tcode{path_builder::size_type}}@. // See [container.requirements] in \cppseventeen.
92+
using difference_type = @\impdefx{type of \tcode{path_builder::size_type}}@. // See [container.requirements] in \cppseventeen.
93+
using iterator = @\impdefx{type of \tcode{path_builder::iterator}}@. // See [container.requirements] in \cppseventeen.
94+
using const_iterator = @\impdefx{type of \tcode{path_builder::const_iterator}}@. // See [container.requirements] in \cppseventeen.
9595
using reverse_iterator = std::reverse_iterator<iterator>;
9696
using const_reverse_iterator = std::reverse_iterator<const_iterator>;
9797

98-
// \ref{pathfactory.cons}, construct, copy, move, destroy:
99-
path_factory() noexcept(noexcept(Allocator())) :
100-
path_factory(Allocator()) { }
101-
explicit path_factory(const Allocator&) noexcept;
102-
explicit path_factory(size_type n, const Allocator& = Allocator());
103-
path_factory(size_type n, const value_type& value,
98+
// \ref{pathbuilder.cons}, construct, copy, move, destroy:
99+
path_builder() noexcept(noexcept(Allocator())) :
100+
path_builder(Allocator()) { }
101+
explicit path_builder(const Allocator&) noexcept;
102+
explicit path_builder(size_type n, const Allocator& = Allocator());
103+
path_builder(size_type n, const value_type& value,
104104
const Allocator& = Allocator());
105105
template <class InputIterator>
106-
path_factory(InputIterator first, InputIterator last,
106+
path_builder(InputIterator first, InputIterator last,
107107
const Allocator& = Allocator());
108-
path_factory(const path_factory& x);
109-
path_factory(path_factory&&) noexcept;
110-
path_factory(const path_factory&, const Allocator&);
111-
path_factory(path_factory&&, const Allocator&);
112-
path_factory(initializer_list<value_type>, const Allocator& = Allocator());
113-
~path_factory();
114-
path_factory& operator=(const path_factory& x);
115-
path_factory& operator=(path_factory&& x)
108+
path_builder(const path_builder& x);
109+
path_builder(path_builder&&) noexcept;
110+
path_builder(const path_builder&, const Allocator&);
111+
path_builder(path_builder&&, const Allocator&);
112+
path_builder(initializer_list<value_type>, const Allocator& = Allocator());
113+
~path_builder();
114+
path_builder& operator=(const path_builder& x);
115+
path_builder& operator=(path_builder&& x)
116116
noexcept(
117117
allocator_traits<Allocator>::propagate_on_container_move_assignment::value
118118
||
119119
allocator_traits<Allocator>::is_always_equal::value);
120-
path_factory& operator=(initializer_list<value_type>);
120+
path_builder& operator=(initializer_list<value_type>);
121121
template <class InputIterator>
122122
void assign(InputIterator first, InputIterator last);
123123
void assign(size_type n, const value_type& u);
124124
void assign(initializer_list<value_type>);
125125
allocator_type get_allocator() const noexcept;
126126

127-
// \ref{pathfactory.iterators}, iterators:
127+
// \ref{pathbuilder.iterators}, iterators:
128128
iterator begin() noexcept;
129129
const_iterator begin() const noexcept;
130130
const_iterator cbegin() const noexcept;
@@ -141,7 +141,7 @@
141141
const_reverse_iterator rend() const noexcept;
142142
const_reverse_iterator crend() const noexcept;
143143

144-
// \ref{pathfactory.capacity}, capacity
144+
// \ref{pathbuilder.capacity}, capacity
145145
bool empty() const noexcept;
146146
size_type size() const noexcept;
147147
size_type max_size() const noexcept;
@@ -161,7 +161,7 @@
161161
reference back();
162162
const_reference back() const;
163163

164-
// \ref{pathfactory.modifiers}, modifiers:
164+
// \ref{pathbuilder.modifiers}, modifiers:
165165
void new_path() noexcept;
166166
void close_path() noexcept;
167167
void arc_clockwise(const vector_2d& center, double radius, double angle1,
@@ -201,12 +201,12 @@
201201
initializer_list<value_type> il);
202202
iterator erase(const_iterator position);
203203
iterator erase(const_iterator first, const_iterator last);
204-
void swap(path_factory&)
204+
void swap(path_builder&)
205205
noexcept(allocator_traits<Allocator>::propagate_on_container_swap::value
206206
|| allocator_traits<Allocator>::is_always_equal::value);
207207
void clear() noexcept;
208208

209-
// \ref{pathfactory.observers}, observers:
209+
// \ref{pathbuilder.observers}, observers:
210210
experimental::io2d::rectangle path_extents() const noexcept;
211211
bool has_current_point() const noexcept;
212212
vector_2d current_point() const;
@@ -216,15 +216,15 @@
216216
}
217217

218218
template <class Allocator>
219-
bool operator==(const path_factory<Allocator>& lhs,
220-
const path_factory<Allocator>& rhs);
219+
bool operator==(const path_builder<Allocator>& lhs,
220+
const path_builder<Allocator>& rhs);
221221
template <class Allocator>
222-
bool operator!=(const path_factory<Allocator>& lhs,
223-
const path_factory<Allocator>& rhs);
222+
bool operator!=(const path_builder<Allocator>& lhs,
223+
const path_builder<Allocator>& rhs);
224224

225-
// \ref{pathfactory.special}, specialized algorithms:
225+
// \ref{pathbuilder.special}, specialized algorithms:
226226
template <class Allocator>
227-
void swap(path_factory<Allocator>& lhs, path_factory<Allocator>& rhs)
227+
void swap(path_builder<Allocator>& lhs, path_builder<Allocator>& rhs)
228228
noexcept(noexcept(lhs.swap(rhs)));
229229

230230
class color_stop;

source/io2d-error.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
string.
8989
\\
9090
\tcode{invalid_path_data}
91-
& Invalid data was encountered in a \tcode{path_group} or a \tcode{path_factory}
91+
& Invalid data was encountered in a \tcode{path_group} or a \tcode{path_builder}
9292
object.
9393
\enternote
9494
This status value should only occur when a user creates invalid path data and

0 commit comments

Comments
 (0)