Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Changes In Branch complete Excluding Merge-Ins

This is equivalent to a diff from e48bd28150 to 31958e69fc

2024-09-06
22:25
Update 3rdparty libs Leaf check-in: 31958e69fc user: fifr tags: complete
22:17
Merge trunk check-in: 55dae85334 user: fifr tags: complete
22:17
Merge kf6 Leaf check-in: e48bd28150 user: fifr tags: trunk
2024-05-27
07:33
Port to Qt6/KF6 Closed-Leaf check-in: ac1ca10256 user: fifr tags: kf6
2024-04-08
21:52
CMakeLists.txt: update minimal cmake version check-in: 66a4c93811 user: fifr tags: trunk

Added 3rdparty/graph/CMakeLists.txt.

































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
cmake_minimum_required(VERSION 3.6)

project(
  fifrgraph
  VERSION 0.1.0
  LANGUAGES CXX)

add_subdirectory(src/fifr/graph)

# Enable testing if this is toplevel.
if ( BUILD_TESTING AND (CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME) )
  enable_testing()
  add_subdirectory(tests)
endif ()


# package stuff

include(CMakePackageConfigHelpers)
write_basic_package_version_file(
  "${CMAKE_CURRENT_BINARY_DIR}/FifrGraph/FifrGraphConfigVersion.cmake"
  VERSION ${fifrgraph_VERSION}
  COMPATIBILITY SameMajorVersion
  )

export(
  EXPORT FifrGraphTargets
  FILE "${CMAKE_CURRENT_BINARY_DIR}/FifrGraph/FifrGraphTargets.cmake"
  NAMESPACE Fifr::
  )
configure_file(cmake/FifrGraphConfig.cmake
  "${CMAKE_CURRENT_BINARY_DIR}/FifrGraph/FifrGraphConfig.cmake"
  COPYONLY)

set(ConfigPackageLocation lib/cmake/FifrGraph)
install(EXPORT FifrGraphTargets
  FILE FifrGraphTargets.cmake
  NAMESPACE Fifr::
  DESTINATION ${ConfigPackageLocation}
  )
install(
  FILES
  cmake/FifrGraphConfig.cmake
  "${CMAKE_CURRENT_BINARY_DIR}/FifrGraph/FifrGraphConfigVersion.cmake"
  DESTINATION ${ConfigPackageLocation}
  COMPONENT
  devel
  )

Added 3rdparty/graph/cmake/FifrGraphConfig.cmake.



>
1
include("${CMAKE_CURRENT_LIST_DIR}/FifrGraphTargets.cmake")

Added 3rdparty/graph/src/fifr/graph/AttributedGraph.hxx.



















































































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
/*
 * Copyright (c) 2018 Frank Fischer <frank-fischer@shadow-soft.de>
 *
 * This program is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see  <http://www.gnu.org/licenses/>
 */

#ifndef __FIFR_GRAPH_ATTRIBUTEDGRAPH_HXX__
#define __FIFR_GRAPH_ATTRIBUTEDGRAPH_HXX__

#include <iosfwd>
#include <vector>

namespace fifr {
namespace graph {
template <typename Graph, typename G, typename V, typename E>
class AttributedGraph : public Graph
{
public:
    using size_type = typename Graph::size_type;
    using node_type = typename Graph::node_type;
    using edge_type = typename Graph::edge_type;
    using id_type = typename Graph::id_type;

    class builder : protected Graph::builder
    {
        friend class AttributedGraph;

    public:
        explicit builder(size_type node_capacity = 0, size_type edge_capacity = 0)
            : Graph::builder(node_capacity, edge_capacity)
        {
            node_attrs_.reserve(node_capacity);
            edge_attrs_.reserve(edge_capacity);
        }

        explicit builder(G attrs) : attrs_(std::move(attrs)) {}

        node_type add_node(V v = {})
        {
            node_attrs_.push_back(v);
            return Graph::builder::add_node();
        }

        std::vector<node_type> add_nodes(size_type n)
        {
            node_attrs_.resize(node_attrs_.size() + n, {});
            return Graph::builder::add_nodes(n);
        }

        std::vector<node_type> add_nodes(const std::vector<V>& attrs)
        {
            auto n = attrs.size();
            for (auto&& v : attrs) {
                node_attrs_.push_back(std::move(v));
            }
            return Graph::builder::add_nodes(n);
        }

        using Graph::builder::id2node;
        using Graph::builder::node_id;

        V& node(node_type u) { return node_attrs_.at(Graph::builder::node_id(u)); }

        const V& node(node_type u) const { return node_attrs_.at(Graph::builder::node_id(u)); }

        edge_type add_edge(node_type u, node_type v, E e = {})
        {
            edge_attrs_.push_back(std::move(e));
            return Graph::builder::add_edge(u, v);
        }

        using Graph::builder::edge_id;
        using Graph::builder::id2edge;

        E& edge(edge_type e) { return edge_attrs_.at(Graph::builder::edge_id(e)); }

        const E& edge(edge_type e) const { return edge_attrs_.at(Graph::builder::edge_id(e)); }

    private:
        G attrs_;
        std::vector<V> node_attrs_;
        std::vector<E> edge_attrs_;
    };

public:
    AttributedGraph() = default;

    AttributedGraph(AttributedGraph&& g) noexcept = default;
    explicit AttributedGraph(const AttributedGraph& g) = default;
    AttributedGraph& operator=(AttributedGraph&& g) noexcept = default;
    AttributedGraph& operator=(const AttributedGraph& g) = delete;
    ~AttributedGraph() = default;

    explicit AttributedGraph(builder&& b)
        : Graph(std::move(b)),
          attrs_(std::move(b.attrs_)),
          node_attrs_(std::move(b.node_attrs_)),
          edge_attrs_(std::move(b.edge_attrs_))
    {
    }

    explicit AttributedGraph(typename Graph::builder&& b)
        : Graph(std::move(b)), attrs_{}, node_attrs_(Graph::num_nodes()), edge_attrs_(Graph::num_edges())
    {
    }

    G& attr() { return attrs_; }
    const G& attr() const { return attrs_; }

    G& operator*() { return attrs_; }
    const G& operator*() const { return attrs_; }

    G* operator->() { return &attrs_; }
    const G* operator->() const { return &attrs_; }

    V& node(node_type u) { return node_attrs_[Graph::node_id(u)]; }
    const V& node(node_type u) const { return node_attrs_[Graph::node_id(u)]; }

    V& operator[](node_type u) { return node(u); }
    const V& operator[](node_type u) const { return node(u); }

    E& edge(edge_type e) { return edge_attrs_[Graph::edge_id(e)]; }
    const E& edge(edge_type e) const { return edge_attrs_[Graph::edge_id(e)]; }

    E& operator[](edge_type e) { return edge(e); }
    const E& operator[](edge_type e) const { return edge(e); }

    template <typename Gr_, typename G_, typename V_, typename E_>
    friend std::ostream& operator<<(std::ostream& out, const AttributedGraph<Gr_, G_, V_, E_>& g);
    template <typename Gr_, typename G_, typename V_, typename E_>
    friend std::istream& operator>>(std::istream& in, AttributedGraph<Gr_, G_, V_, E_>& g);

private:
    G attrs_;
    std::vector<V> node_attrs_;
    std::vector<E> edge_attrs_;
};

}  // namespace graph
}  // namespace fifr

#endif

Added 3rdparty/graph/src/fifr/graph/AttributedGraphIO.hxx.





























































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/*
 * Copyright (c) 2018 Frank Fischer <frank-fischer@shadow-soft.de>
 *
 * This program is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see  <http://www.gnu.org/licenses/>
 */

#include "AttributedGraph.hxx"

#include <fifr/util/PrettyStruct.hxx>

namespace fifr {
namespace graph {
template <typename Graph, typename G, typename V, typename E>
std::ostream& operator<<(std::ostream& out, const AttributedGraph<Graph, G, V, E>& g)
{
    fifr::util::pretty_print_struct_multiline(out,
                                              "AttributedGraph",
                                              "graph",
                                              static_cast<const Graph&>(g),
                                              "attrs",
                                              g.attrs_,
                                              "nodes",
                                              fifr::util::multiline(g.node_attrs_),
                                              "edges",
                                              fifr::util::multiline(g.edge_attrs_));
    return out;
}

template <typename Graph, typename G, typename V, typename E>
std::istream& operator>>(std::istream& in, AttributedGraph<Graph, G, V, E>& g)
{
    fifr::util::pretty_read_struct(in,
                                   "AttributedGraph",
                                   "graph",
                                   static_cast<Graph&>(g),
                                   "attrs",
                                   g.attrs_,
                                   "nodes",
                                   g.node_attrs_,
                                   "edges",
                                   g.edge_attrs_);
    if (g.node_attrs_.size() != g.num_nodes()) {
        throw fifr::util::ReadError("Invalid number of node attributes");
    }
    if (g.edge_attrs_.size() != g.num_edges()) {
        throw fifr::util::ReadError("Invalid number of edge attributes");
    }
    return in;
}
}  // namespace graph
}  // namespace fifr

Added 3rdparty/graph/src/fifr/graph/CMakeLists.txt.

























































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
cmake_minimum_required(VERSION 3.6)

cmake_policy(SET CMP0063 NEW)

add_library(Graph STATIC
  Grav.cxx
  LinkedListGraph.cxx
  LinkedListGraphIO.cxx)
add_library(Fifr::Graph ALIAS Graph)

set_property(TARGET Graph PROPERTY OUTPUT_NAME fifrgraph)
target_compile_features(Graph PUBLIC cxx_std_20)

if (CMAKE_CXX_COMPILER_ID MATCHES "Clang|GNU")
  target_compile_options(Graph PRIVATE -W -Wall -pedantic)
endif ()

# Packages

if (NOT TARGET Fifr::Util)
  find_package(FifrUtil REQUIRED)
endif()
target_link_libraries(Graph Fifr::Util)

# Install stuff

target_include_directories(Graph INTERFACE
  $<INSTALL_INTERFACE:include>
  $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../..>)

install(
  TARGETS Graph
  EXPORT FifrGraphTargets
  ARCHIVE DESTINATION lib
  LIBRARY DESTINATION lib
  INCLUDES DESTINATION include
  )

install(
  DIRECTORY .
  DESTINATION include/fifr/graph
  COMPONENT headers
  FILES_MATCHING PATTERN "*.hxx"
  )

Added 3rdparty/graph/src/fifr/graph/Classes.hxx.

























































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
/*
 * Copyright (c) 2024 Frank Fischer <frank-fischer@shadow-soft.de>
 *
 * This program is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see  <http://www.gnu.org/licenses/>
 */

#ifndef __FIFR_GRAPH_CLASSES_HXX__
#define __FIFR_GRAPH_CLASSES_HXX__

#include <cstddef>
#include <memory>

namespace fifr {
namespace graph {
/// Return a cycle.
///
/// If the graph is directed the cycle will be a directed cycle.
template <typename G>
G cycle(std::size_t n)
{
    typename G::builder builder(n, n);
    auto nodes = builder.add_nodes(n);
    for (std::size_t i = 0; i < nodes.size(); ++i) {
        builder.add_edge(nodes[i], nodes[(i + 1) % nodes.size()]);
    }
    return G(std::move(builder));
}

/// Return a complete bipartite graph.
///
/// The edges are directed from the `n` to the `m` nodes.
template <typename G>
G complete_bipartite(std::size_t n, std::size_t m)
{
    typename G::builder builder(n + m, n * m);
    auto a_nodes = builder.add_nodes(n);
    auto b_nodes = builder.add_nodes(m);
    for (auto u : a_nodes) {
        for (auto v : b_nodes) {
            builder.add_edge(u, v);
        }
    }
    return G(std::move(builder));
}

/// Return a Peterson graph.
template <typename G>
G peterson()
{
    typename G::builder builder(10, 15);
    auto nodes = builder.add_nodes(10);
    for (std::size_t i = 0; i < 5; i++) {
        builder.add_edge(nodes[i], nodes[(i + 1) % 5]);
        builder.add_edge(nodes[i + 5], nodes[((i + 1) % 5) + 5]);
        builder.add_edge(nodes[i], nodes[i + 5]);
    }
    return G(std::move(builder));
}

/// Return a hypercube of dimension `d`.
template <typename G>
G hypercube(std::size_t d)
{
    // TODO: check size of d
    std::size_t n = 1 << d;
    typename G::builder builder(n, n * d);
    auto nodes = builder.add_nodes(n);
    for (std::size_t i = 0; i < n; i++) {
        for (std::size_t bit = 0; bit < d; bit++) {
            if ((i & (1 << bit)) == 0) {
                builder.add_edge(nodes[i], nodes[i | (1 << bit)]);
            }
        }
    }
    return G(std::move(builder));
}

}  // namespace graph
}  // namespace fifr

#endif

Added 3rdparty/graph/src/fifr/graph/Grav.cxx.





















































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
/*
 * Copyright (c) 2017 Frank Fischer
 *
 * This file is part of KraView.
 *
 * KraView is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * KraView is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with KraView.  If not, see <http://www.gnu.org/licenses/>.
 */

#include "Grav.hxx"

#include <fifr/util/Convert.hxx>

#include <algorithm>
#include <charconv>
#include <istream>
#include <optional>
#include <sstream>
#include <unordered_map>
#include <utility>
#include <vector>

using namespace fifr::util;

namespace {
template <typename T>
auto str2num(const std::string& str, std::string::size_type beg, std::string::size_type& endpos) -> std::optional<T>
{
    T n;
    // Skip whitespace at the beginning
    while (beg < str.size() && isspace(str[beg]) != 0) {
        beg++;
    }
    auto result = std::from_chars(&str[beg], &str[str.size()], n);
    if (result.ec == std::errc()) {
        endpos = static_cast<std::string::size_type>(result.ptr - str.c_str());
        return {n};
    }
    endpos = beg;
    return std::nullopt;
}

std::optional<unsigned long> str2ul(const std::string& str, std::string::size_type beg, std::string::size_type& endpos)
{
    return str2num<unsigned long>(str, beg, endpos);
}

std::optional<unsigned> str2u(const std::string& str, std::string::size_type beg, std::string::size_type& endpos)
{
    return str2num<unsigned>(str, beg, endpos);
}

std::optional<double> str2d(const std::string& str, std::string::size_type beg, std::string::size_type& endpos)
{
    char* end = nullptr;
    auto n = std::strtod(str.c_str() + beg, &end);  // NOLINT
    if (end != nullptr && end >= str.c_str()) {
        endpos = static_cast<std::string::size_type>(end - str.c_str());
        return {n};
    }
    endpos = beg;
    return {};
}
}  // namespace

namespace fifr {
namespace graph {
namespace grav {
std::string Attributes::operator[](const std::string& attr) const
{
    for (auto&& it : *this) {
        if (it.first == attr) {
            return it.second;
        }
    }
    return {};
}

Attributes::const_iterator& Attributes::const_iterator::operator++()
{
    auto pos = data_.find('\0', pos_);
    if (pos != std::string::npos) {
        pos = data_.find('\0', pos + 1);
        if (pos != std::string::npos) {
            pos_ = pos + 1;
        } else {
            pos_ = data_.size();
        }
    } else {
        pos_ = data_.size();
    }
    return *this;
}

Attributes::const_iterator::value_type Attributes::const_iterator::operator*() const
{
    auto keyend = data_.find('\0', pos_);
    if (keyend == std::string::npos) {
        return {data_.substr(pos_), {}};
    }
    auto valend = data_.find('\0', keyend + 1);
    return {data_.substr(pos_, keyend - pos_), data_.substr(keyend + 1, valend - keyend - 1)};
}

static Net::Node add_node(Net::builder& net,
                          std::unordered_map<unsigned, Net::Node>& nodes_by_number,
                          size_type nodenumber,
                          NodeInfo nodedata)
{
    auto ret = nodes_by_number.insert({nodenumber, Net::nonode});

    if (ret.second) {
        ret.first->second = net.add_node(std::move(nodedata));
    } else {
        net.node(ret.first->second) = std::move(nodedata);
    }

    return ret.first->second;
}

static std::string::size_type parse_uint(const std::string& line, std::string::size_type pos, unsigned& n)
{
    std::string::size_type end;
    auto nn = str2u(line, pos, end);
    if (nn && (end == line.size() || isspace(line[end]) != 0)) {
        n = *nn;
        return end;
    }
    throw ReadError(std::string("Expected number, got '") + line.substr(pos) + "'");
}

static std::string::size_type parse_double(const std::string& line, std::string::size_type pos, double& n)
{
    std::string::size_type end;
    auto nn = str2d(line, pos, end);
    if (nn && (end == line.size() || isspace(line[end]) != 0)) {
        n = *nn;
        return end;
    }
    throw ReadError("Expected number, got '" + line.substr(pos) + "'");
}

static std::string::size_type parse_color(const std::string& line, std::string::size_type pos, Color& c)
{
    std::string::size_type end;

    auto r = str2ul(line, pos, end);
    if (!r || end >= line.size() || line[end] != ',') {
        throw ReadError("Invalid RGB color: " + line.substr(pos));
    }
    if (*r >= 256) {
        throw ReadError("Invalid red value in RGB color: " + line.substr(pos, end - pos));
    }

    pos = end + 1;
    auto g = str2ul(line, pos, end);
    if (!g || end >= line.size() || line[end] != ',') {
        throw ReadError("Invalid RGB color: " + line.substr(pos));
    }
    if (*g >= 256) {
        throw ReadError("Invalid green RGB color: " + line.substr(pos, end - pos));
    }

    pos = end + 1;
    auto b = str2ul(line, pos, end);
    if (!b || (end < line.size() && line[end] != ',' && isspace(line[end]) == 0)) {
        throw ReadError("Invalid RGB color: " + line.substr(pos));
    }
    if (end < line.size() && line[end] == ',') {
        // alpha value following
        pos = end + 1;
        auto a = str2d(line, pos, end);
        if (!a || (end < line.size() && isspace(line[end]) == 0)) {
            throw ReadError("Invalid RGB color: " + line.substr(pos));
        }
        if (a < -1e-6 || a > 1 + 1e-6) {
            throw ReadError("Invalid alpha value for color: " + line.substr(pos, end - pos));
        }
        c.alpha = *a;
    } else if (*b >= 256) {
        throw ReadError("Invalid blue RGB color: " + line.substr(pos, end - pos));
    }

    c.r = static_cast<uint8_t>(*r);
    c.g = static_cast<uint8_t>(*g);
    c.b = static_cast<uint8_t>(*b);

    return end;
}

static void parse_node_options(NodeInfo& node, const std::string& line, std::string::size_type pos, unsigned& desclen)
{
    desclen = 0;
    for (;;) {
        pos = line.find_first_not_of(" \t\r\n", pos);
        if (pos == std::string::npos) {
            break;
        }
        auto end = line.find_first_of(": \t\r\n", pos);
        if (end != std::string::npos && line[end] == ':') {
            if (line.compare(pos, end - pos, "x") == 0) {
                end = parse_double(line, end + 1, node.x);
            } else if (line.compare(pos, end - pos, "y") == 0) {
                end = parse_double(line, end + 1, node.y);
            } else if (line.compare(pos, end - pos, "weight") == 0) {
                end = parse_double(line, end + 1, node.weight);
            } else if (line.compare(pos, end - pos, "color") == 0) {
                end = parse_color(line, end + 1, node.color);
            } else if (line.compare(pos, end - pos, "desc") == 0) {
                end = parse_uint(line, end + 1, desclen);
            } else {
                throw ReadError("Unknown node option: " + line.substr(pos, end));
            }
        } else {
            if (end == std::string::npos) {
                end = line.size();
            }
            if (line.compare(pos, end - pos, "circ") == 0) {
                node.type = NodeType::Circle;
            } else if (line.compare(pos, end - pos, "disc") == 0) {
                node.type = NodeType::Disc;
            } else {
                throw ReadError("Unknown node option: " + line.substr(pos, end));
            }
        }
        pos = end;
    }
}

static Net::Node parse_node(Net::builder& net,
                            std::unordered_map<unsigned, Net::Node>& nodes_by_number,
                            const std::string& line,
                            std::string::size_type pos,
                            NodeInfo& defaultnode,
                            unsigned& desc)
{
    assert(line.size() < std::numeric_limits<std::string::size_type>::max());
    assert(line.size() < std::numeric_limits<unsigned>::max());

    desc = 0;

    std::string::size_type end;
    auto nodenr = str2ul(line, pos, end);

    if (end == line.size() || (isspace(line[end]) != 0)) {
        auto nodeid = add_node(net, nodes_by_number, *nodenr, defaultnode);
        auto& ndata = net.node(nodeid);
        if (end != line.size()) {
            parse_node_options(ndata, line, end, desc);
        }
        return nodeid;
    }
    parse_node_options(defaultnode, line, end, desc);
    if (desc > 0) {
        throw ReadError("Description not allowed for default options");
    }
    return Net::nonode;
}

static void parse_arc_options(EdgeInfo& edge, const std::string& line, std::string::size_type pos, unsigned& desclen)
{
    for (;;) {
        pos = line.find_first_not_of(" \t\r\n", pos);
        if (pos == std::string::npos) {
            break;
        }
        auto end = line.find(':', pos);
        if (end == std::string::npos) {
            throw ReadError("Unknown arc option: " + line.substr(pos, end));
        }
        if (line.compare(pos, end - pos, "flow") == 0) {
            end = parse_double(line, end + 1, edge.flow);
        } else if (line.compare(pos, end - pos, "cost") == 0) {
            end = parse_double(line, end + 1, edge.cost);
        } else if (line.compare(pos, end - pos, "color") == 0) {
            end = parse_color(line, end + 1, edge.color);
        } else if (line.compare(pos, end - pos, "desc") == 0) {
            end = parse_uint(line, end + 1, desclen);
        } else {
            throw ReadError("Unknown arc option: " + line.substr(pos, end));
        }
        pos = end;
    }
}

static Net::Edge parse_arc(Net::builder& net,
                           const std::unordered_map<unsigned, Net::Node>& nodes_by_number,
                           const std::string& line,
                           std::string::size_type pos,
                           EdgeInfo& defaultedge,
                           unsigned& desc)
{
    std::string::size_type end;
    auto srcnr = str2u(line, pos, end);
    if (srcnr && (end == line.size() || (isspace(line[end]) != 0))) {
        auto snknr = str2u(line, end, end);
        if (!snknr || (end < line.size() && (isspace(line[end]) == 0))) {
            throw ReadError("Invalid arc line: " + line);
        }

        auto srcit = nodes_by_number.find(*srcnr);
        if (srcit == nodes_by_number.end()) {
            throw ReadError("Unknown source node: " + std::to_string(*srcnr));
        }
        auto src = srcit->second;

        auto snkit = nodes_by_number.find(*snknr);
        if (snkit == nodes_by_number.end()) {
            throw ReadError("Unknown sink node: " + std::to_string(*snknr));
        }
        auto snk = snkit->second;

        auto arcid = net.add_edge(src, snk, defaultedge);
        parse_arc_options(net.edge(arcid), line, end, desc);
        return arcid;
    }
    parse_arc_options(defaultedge, line, end, desc);
    if (desc > 0) {
        throw ReadError("Description not allowed for default options");
    }

    return Net::noedge;
}

static Net read_net_from_lines(const NetSequence::getline_function& getline, size_type& lineno)
{
    NodeInfo defaultnode;
    defaultnode.x = 0;
    defaultnode.y = 0;
    defaultnode.color = Color{0, 0, 0, 1.0};
    defaultnode.type = NodeType::Circle;
    defaultnode.weight = 0;

    EdgeInfo defaultedge;
    defaultedge.color = Color{0, 0, 0, 1.0};
    defaultedge.flow = 0;
    defaultedge.cost = 0;

    Net::builder net;
    std::unordered_map<unsigned, Net::Node> nodes_by_number;

    std::string line;
    std::string desc;
    char* locale = setlocale(LC_NUMERIC, "C");
    try {
        bool found_end = false;
        while (getline(line, 0)) {
            lineno += 1;

            std::string::size_type pos = line.find('#');
            pos = line.find_last_not_of(" \t\r", pos);
            if (pos == std::string::npos) {
                continue;  // empty line
            }
            line.erase(pos + 1, std::string::npos);
            pos = line.find_first_not_of(" \t\r");

            auto end = line.find_first_of(" \t\r\n", pos);
            if (end == std::string::npos) {
                end = line.size();
            }
            if (line.compare(pos, end - pos, "node") == 0) {
                unsigned desclen = 0;
                Net::Node nodeid = parse_node(net, nodes_by_number, line, end + 1, defaultnode, desclen);
                if (desclen > 0) {
                    NodeInfo& n = net.node(nodeid);
                    if (!getline(desc, desclen)) {
                        throw ReadError("Too few bytes for description data.");
                    }
                    for (auto& it : desc) {
                        if (it == '\n') {
                            it = '\0';
                            lineno += 1;
                        }
                    }
                    n.attributes = Attributes(std::move(desc));
                }
            } else if (line.compare(pos, end - pos, "arc") == 0 || line.compare(pos, end - pos, "edge") == 0) {
                unsigned desclen = 0;
                Net::Edge arcid = parse_arc(net, nodes_by_number, line, end + 1, defaultedge, desclen);
                if (arcid != Net::noedge && line.compare(pos, end - pos, "edge") == 0) {
                    net.edge(arcid).directed = false;
                }
                if (desclen > 0) {
                    EdgeInfo& a = net.edge(arcid);
                    if (!getline(desc, desclen)) {
                        throw ReadError("Too few bytes for description data.");
                    }

                    for (auto& it : desc) {
                        if (it == '\n') {
                            it = '\0';
                            lineno += 1;
                        }
                    }
                    a.attributes = Attributes(std::move(desc));
                }
            } else if (line.compare(pos, end - pos, "end") == 0) {
                found_end = true;
                break;
            } else {
                throw ReadError(std::string("Unknown command: ") + line.substr(pos, end - pos) +
                                " (expected 'arc', 'edge' or 'node')");
            }
        }
        if (!found_end) {
            throw ReadError("Unexpected end of file (missing 'end' line?)");
        }
    } catch (ReadError& e) {
        e.set_line(lineno);
        setlocale(LC_NUMERIC, locale);
        throw;
    } catch (...) {
        setlocale(LC_NUMERIC, locale);
        throw;
    }
    setlocale(LC_NUMERIC, locale);

    return Net(std::move(net));
}

struct NetSequence::Data {
    std::string name;
    std::vector<Net> steps;
};

NetSequence::NetSequence(const std::string& name) : d(new Data{name, {}}) {}

NetSequence::NetSequence(NetSequence&& net) noexcept : d(std::move(net.d)) {}

NetSequence& NetSequence::operator=(NetSequence&& net) noexcept
{
    d = std::move(net.d);
    return *this;
}

NetSequence::~NetSequence() = default;

std::size_t NetSequence::size() const
{
    return d->steps.size();
}

const std::string& NetSequence::name() const
{
    return d->name;
}

const Net& NetSequence::operator[](std::size_t i) const
{
    return d->steps.at(i);
}

void NetSequence::add(Net net)
{
    d->steps.push_back(std::move(net));
}

NetSequence::Series NetSequence::from_stream(std::istream& in, const readgraph_function& readgraph, Series&& series)
{
    size_type lineno = 0;
    return NetSequence::from_stream(in, readgraph, lineno, std::move(series));
}

NetSequence::Series NetSequence::from_stream(std::istream& in,
                                             const readgraph_function& readgraph,
                                             size_type& lineno,
                                             Series&& series)
{
    return from_lines(
        [&](std::string& line, std::size_t len) {
            if (in.good()) {
                if (len == 0) {
                    std::getline(in, line);
                } else {
                    line.resize(len);
                    in.read(&(line[0]), static_cast<std::streamsize>(len));
                    return in.gcount() == (int)len;
                }
                return true;
            }
            return false;
        },
        readgraph,
        lineno,
        std::move(series));
}

NetSequence::Series NetSequence::from_lines(const getline_function& getline,
                                            const readgraph_function& readgraph,
                                            Series&& series)
{
    size_type lineno = 0;
    return from_lines(getline, readgraph, lineno, std::move(series));
}

NetSequence::Series NetSequence::from_lines(const getline_function& getline,
                                            const readgraph_function& readgraph,
                                            size_type& lineno,
                                            Series&& series)
{
    std::string line;
    while (getline(line, 0)) {
        lineno++;

        // remove comments, skip whitespace
        auto cmdbeg = line.find_first_not_of(" \t\r\n");
        auto nameend = line.find_last_not_of(" \t\r\n", line.find('#'));

        if (nameend != std::string::npos) {
            nameend += 1;  // position after the found character
        }

        // skip empty lines
        if (cmdbeg == std::string::npos) {
            continue;
        }

        // find command
        auto cmdend = line.find_first_of(" \t\r\n", cmdbeg);

        if (line.compare(cmdbeg, cmdend - cmdbeg, "newgraph") == 0 ||
            line.compare(cmdbeg, cmdend - cmdbeg, "addgraph") == 0)
        {
            auto namebeg = line.find_first_not_of(" \t\r\n", cmdend);
            if (namebeg == std::string::npos || namebeg >= nameend) {
                throw ReadError("Expected network name after " + line.substr(cmdbeg, cmdend - cmdbeg));
            }

            Net net;
            auto seqname = line.substr(namebeg, nameend - namebeg);
            auto it = series.find(seqname);
            if (it != series.end() && line[namebeg] == 'a') {
                auto& seq = it->second;
                net = Net((*seq)[seq->size() - 1]);
            }

            if (it == series.end()) {
                std::shared_ptr<NetSequence> newseq(new NetSequence(seqname));
                it = series.insert({seqname, std::move(newseq)}).first;
            }

            readgraph(seqname, it->second->size());

            try {
                net = read_net_from_lines(getline, lineno);
            } catch (...) {
                throw;
            }

            it->second->add(std::move(net));
        } else {
            throw ReadError("Unexpected command: " + line.substr(cmdbeg, cmdend - cmdbeg), lineno);
        }
    }
    return std::move(series);
}
}  // namespace grav
}  // namespace graph
}  // namespace fifr

Added 3rdparty/graph/src/fifr/graph/Grav.hxx.













































































































































































































































































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
/*
 * Copyright (c) 2017, 2018 Frank Fischer
 *
 * This file is part of KraView.
 *
 * KraView is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * KraView is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with KraView.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef __FIFR_GRAPH_GRAV_HXX__
#define __FIFR_GRAPH_GRAV_HXX__

#include "AttributedGraph.hxx"
#include "LinkedListGraph.hxx"

#include <functional>
#include <iosfwd>
#include <limits>
#include <map>
#include <memory>
#include <stdexcept>
#include <string>

namespace fifr {
namespace graph {
namespace grav {
using size_type = std::size_t;

/**
 * An error occurred when reading a grav file.
 */
class ReadError : public std::runtime_error
{
public:
    explicit ReadError(const std::string& msg) : ReadError(msg, 0) {}

    ReadError(const std::string& msg, size_type lineno) : std::runtime_error(msg), _lineno(lineno) {}

    ReadError(const ReadError&) = delete;

    ReadError(ReadError&&) noexcept = default;

    ReadError& operator=(const ReadError&) = delete;

    ReadError& operator=(ReadError&&) noexcept = default;

    ~ReadError() noexcept override = default;

    void set_line(size_type lineno) { _lineno = lineno; }

    [[nodiscard]] size_type lineno() const { return _lineno; }

private:
    size_type _lineno;
};

/**
 * Attributes for a node or edge.
 */
class Attributes
{
public:
    class const_iterator
    {
    public:
        using difference_type = std::ptrdiff_t;
        using value_type = std::pair<const std::string, const std::string>;
        using reference = std::pair<const std::string, const std::string>&;
        using pointer = std::pair<const std::string, const std::string>*;
        using iterator_category = std::forward_iterator_tag;

    public:
        const_iterator(const std::string& data, std::string::size_type pos) : data_(data), pos_(pos) {}

        value_type operator*() const;

        const_iterator& operator++();

        const_iterator operator++(int)
        {
            auto copy = *this;
            ++*this;
            return copy;
        }

        bool operator==(const const_iterator& it) const { return pos_ == it.pos_; }

        bool operator!=(const const_iterator& it) const { return !(*this == it); }

    private:
        const std::string& data_;
        std::string::size_type pos_;
    };

public:
    Attributes() = default;

    explicit Attributes(std::string&& data) : data_(std::move(data)) {}

    std::string operator[](const std::string& attr) const;

    [[nodiscard]] const_iterator begin() const { return {data_, 0}; }

    [[nodiscard]] const_iterator end() const { return {data_, data_.size()}; }

private:
    std::string data_;
};

struct Color {
    uint8_t r;
    uint8_t g;
    uint8_t b;
    double alpha;
};

enum class NodeType { None = -1, Circle, Disc };

struct NodeInfo {
    double x = 0;
    double y = 0;
    Color color = {};
    NodeType type = NodeType::None;
    double weight = 0;

    Attributes attributes;
};

struct EdgeInfo {
    Color color = {};
    double flow = 0;
    double cost = 0;
    bool directed = true;

    Attributes attributes;
};

using Empty = std::tuple<>;

class Net : public fifr::graph::AttributedGraph<Digraph, Empty, NodeInfo, EdgeInfo>
{
public:
    using Super = fifr::graph::AttributedGraph<Digraph, Empty, NodeInfo, EdgeInfo>;

    using Edge = Super::edge_type;
    using Node = Super::node_type;
    using builder = Super::builder;

    static constexpr Node nonode = Digraph::nonode;
    static constexpr Edge noedge = Digraph::noedge;

public:
    Net() = default;

    Net(Net&&) noexcept = default;

    explicit Net(const Net&) = default;

    explicit Net(Net::builder&& builder) : Super(Super(std::move(builder))) {}

    Net& operator=(Net&&) noexcept = default;

    Net& operator=(const Net&) = delete;

    ~Net() = default;
};

class NetSequence
{
public:
    using Series = std::map<std::string, std::shared_ptr<NetSequence>>;

    /**
     * Function read input data.
     *
     * The read data must be returned in the first argument.
     * The second argument is the number of bytes to read. If it is 0 a whole
     * line is read. The function must return true if the desired number of
     * bytes or a whole line could be read, otherwise it must return false.
     */
    using getline_function = std::function<bool(std::string&, std::size_t)>;

    using readgraph_function = std::function<void(const std::string&, std::size_t)>;

public:
    explicit NetSequence(const std::string& name);

    NetSequence(NetSequence&& net) noexcept;

    NetSequence(const NetSequence& net) = delete;

    NetSequence& operator=(NetSequence&& net) noexcept;

    NetSequence& operator=(const NetSequence& net) = delete;

    ~NetSequence();

    /// Return the number of networks in this sequence.
    [[nodiscard]] std::size_t size() const;

    /// Return the i-th network.
    const Net& operator[](std::size_t i) const;

    /// Return the name of this sequence.
    [[nodiscard]] const std::string& name() const;

    /// Append another network to the sequence.
    void add(Net net);

    /// Read a series of gravs from an input stream.
    static Series from_stream(std::istream& in,
                              const readgraph_function& readgraph,
                              size_type& lineno,
                              Series&& series = {});

    /// @overload
    static Series from_stream(std::istream& in, const readgraph_function& readgraph, Series&& series = {});

    /// Read a series of gravs from an input stream.
    static Series from_lines(const getline_function& getline,
                             const readgraph_function& readgraph,
                             size_type& lineno,
                             Series&& series = {});

    /// @overload
    static Series from_lines(const getline_function& getline, const readgraph_function& readgraph, Series&& series = {});

private:
    struct Data;
    std::unique_ptr<Data> d;
};
}  // namespace grav
}  // namespace graph
}  // namespace fifr

#endif

Added 3rdparty/graph/src/fifr/graph/Kruskal.hxx.





































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
/*
 * Copyright (c) 2018 Frank Fischer <frank-fischer@shadow-soft.de>
 *
 * This program is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see  <http://www.gnu.org/licenses/>
 */

#ifndef __FIFR_GRAPH_KRUSKAL_HXX__
#define __FIFR_GRAPH_KRUSKAL_HXX__

#include <algorithm>
#include <numeric>
#include <vector>

namespace fifr {
namespace graph {
/// Solve the Minimum Spanning Tree problem using Kruskal's algorithm.
///
/// - `graph` is the graph
/// - `weights` is a vector of edges weights
///
/// This implementation is sub-optimal because it does not use clever Union-Find
/// data structures.
template <typename G, typename W>
std::vector<typename G::Edge> kruskal(const G& graph, const W& weights)
{
    using E = typename G::Edge;
    std::vector<E> edges;
    edges.reserve(graph.num_edges());
    for (auto e : graph.edges()) {
        edges.push_back(e);
    }

    // sort edges by weight
    std::sort(edges.begin(), edges.end(), [&](E e, E f) { return weights(e) < weights(f); });

    typename G::template node_map<std::size_t> components(graph, 0);

    // fill `components` with {0, 1, 2, ..., g.num_nodes() - 1}.
    std::iota(components.begin(), components.end(), 0);

    std::vector<E> tree;
    tree.reserve(graph.num_nodes() - 1);

    for (auto e : edges) {
        auto uv = graph.enodes(e);
        auto u = uv.first;
        auto v = uv.second;
        auto comp_u = components[u];
        auto comp_v = components[v];

        if (comp_u != comp_v) {
            tree.push_back(e);
            for (auto& c : components) {
                if (c == comp_v) {
                    c = comp_u;
                }
            }
        }

        if (components.size() + 1 == graph.num_nodes()) {
            break;
        }
    }

    return tree;
}

}  // namespace graph
}  // namespace fifr

#endif

Added 3rdparty/graph/src/fifr/graph/LinkedListGraph.cxx.







































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
 * Copyright (c) 2018 Frank Fischer <frank-fischer@shadow-soft.de>
 *
 * This program is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see  <http://www.gnu.org/licenses/>
 */

#include "LinkedListGraph.hxx"

namespace fifr {
namespace graph {
template class LinkedListGraph<uint16_t>;
template class LinkedListDigraph<uint16_t>;
template class LinkedListNetwork<uint16_t>;

template class LinkedListGraph<uint32_t>;
template class LinkedListDigraph<uint32_t>;
template class LinkedListNetwork<uint32_t>;

template class LinkedListGraph<uint64_t>;
template class LinkedListDigraph<uint64_t>;
template class LinkedListNetwork<uint64_t>;

}  // namespace graph
}  // namespace fifr

Added 3rdparty/graph/src/fifr/graph/LinkedListGraph.hxx.



























































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
/*
 * Copyright (c) 2018 Frank Fischer <frank-fischer@shadow-soft.de>
 *
 * This program is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see  <http://www.gnu.org/licenses/>
 */

#ifndef __FIFR_GRAPH_LINKEDLISTGRAPH_HXX__
#define __FIFR_GRAPH_LINKEDLISTGRAPH_HXX__

#include <cassert>
#include <cstddef>
#include <cstdint>
#include <functional>
#include <iosfwd>
#include <limits>
#include <tuple>
#include <vector>

namespace fifr {
namespace graph {
/// Enumeration for the graph type.
enum class GraphType { Undirected, Directed };

/// A tag for undirected graphs.
struct undirected {
    static const GraphType id = GraphType::Undirected;
};

/// A tag for directed graphs.
struct directed {
    static const GraphType id = GraphType::Directed;
};

template <typename ID = uint32_t>
class LinkedListDigraph;

template <typename ID = uint32_t>
class LinkedListNetwork;

template <typename ID = uint32_t>
class LinkedListGraph;

namespace linkedlistgraph {
template <typename ID>
constexpr ID NO_ID = std::numeric_limits<ID>::max();

/// A node.
template <typename ID>
class Node
{
    friend class LinkedListGraph<ID>;
    friend class LinkedListDigraph<ID>;
    friend class LinkedListNetwork<ID>;
    friend struct std::hash<Node<ID>>;

public:
    Node() = default;
    explicit Node(ID id) : id(id) {}

    Node(const Node&) = default;
    Node(Node&&) noexcept = default;
    Node& operator=(const Node&) = default;
    Node& operator=(Node&&) noexcept = default;

    ~Node() = default;

    bool operator==(const Node& u) const { return id == u.id; }
    bool operator!=(const Node& u) const { return !(*this == u); }

    template <typename ID_>
    friend std::ostream& operator<<(std::ostream& out, const Node<ID_>& u);
    template <typename ID_>
    friend std::istream& operator>>(std::istream& in, Node<ID_>& u);

private:
    ID id = NO_ID<ID>;
};

/// An edge.
template <typename ID>
class Edge
{
    friend class LinkedListGraph<ID>;
    friend class LinkedListDigraph<ID>;
    friend class LinkedListNetwork<ID>;
    friend struct std::hash<Edge<ID>>;

public:
    Edge() = default;
    explicit Edge(ID id) : id(id) {}

    Edge(const Edge&) = default;
    Edge(Edge&&) noexcept = default;
    Edge& operator=(const Edge&) = default;
    Edge& operator=(Edge&&) noexcept = default;

    ~Edge() = default;

    bool operator==(const Edge& e) const { return id >> 1u == e.id >> 1u; }
    bool operator!=(const Edge& e) const { return !(*this == e); }

    template <typename ID_>
    friend std::ostream& operator<<(std::ostream& out, const Edge<ID_>& e);
    template <typename ID_>
    friend std::istream& operator>>(std::istream& in, Edge<ID_>& e);

private:
    ID id = NO_ID<ID>;
};

}  // namespace linkedlistgraph

template <typename ID>
class LinkedListGraph
{
protected:
    static constexpr ID no_id = linkedlistgraph::NO_ID<ID>;

    struct NodeData {
        /// The first adjacent edge.
        ID first = no_id;
    };

    struct EdgeData {
        /// The sink node.
        ID snk = no_id;
        /// The next arc adjacent to the source node.
        ID next = no_id;
    };

public:
    /// This graph is undirected.
    using graph_type = undirected;

    using size_type = std::size_t;
    using id_type = ID;

    /// Type of nodes.
    using Node = linkedlistgraph::Node<ID>;
    /// Type of nodes.
    using node_type = Node;

    /// Type of edges.
    using Edge = linkedlistgraph::Edge<ID>;
    /// Type of edges.
    using edge_type = Edge;

    /// Iterator over a consecutive range of valid IDs.
    template <typename T, ID offset>
    class id_iterator
    {
        friend class LinkedListGraph;

    public:
        using value_type = T;
        using pointer = const T*;
        using reference = T;
        using iterator_category = std::bidirectional_iterator_tag;

    public:
        id_iterator() = default;

        reference operator*() const { return T(id_); }

        id_iterator& operator++()
        {
            id_ += offset;
            return *this;
        }

        id_iterator operator++(int)
        {
            auto it = *this;
            ++(*this);
            return it;
        }

        id_iterator& operator--()
        {
            id_ -= offset;
            return *this;
        }

        id_iterator operator--(int)
        {
            auto it = *this;
            --(*this);
            return it;
        }

        bool operator==(const id_iterator& it) const { return id_ == it.id_; }
        bool operator!=(const id_iterator& it) const { return !(*this == it); }

    private:
        explicit id_iterator(ID id) : id_(id) {}

    private:
        ID id_ = no_id;
    };

    template <typename It>
    class range_proxy
    {
        friend class LinkedListGraph;

    public:
        using iterator = It;

    private:
        range_proxy(It&& begin, It&& end) : begin_(begin), end_(end) {}

    public:
        template <typename It_>
        explicit range_proxy(range_proxy<It_>&& rng) : begin_(It(rng.begin_)), end_(It(rng.end_))
        {
        }

        iterator begin() const { return begin_; }
        iterator end() const { return end_; }

    private:
        It begin_;
        It end_;
    };

    class neigh_iterator
    {
        friend class LinkedListDigraph<ID>::in_iterator;
        friend class LinkedListDigraph<ID>::out_iterator;

    public:
        using value_type = std::pair<Edge, Node>;
        using reference = std::pair<Edge, Node>;
        using iterator_category = std::forward_iterator_tag;

    public:
        neigh_iterator(ID edge, const std::vector<EdgeData>& edges) : edge_(edge), edges_(edges) {}

        reference operator*() const { return {edge(), node()}; }

        /// Return the current edge.
        [[nodiscard]] Edge edge() const
        {
            assert(edge_ != no_id);
            return Edge(edge_);
        }

        /// Return the other adjacent node of the current edge.
        [[nodiscard]] Node node() const
        {
            assert(edge_ != no_id);
            return Node(edges_[edge_].snk);
        }

        neigh_iterator& operator++()
        {
            assert(edge_ != no_id);
            edge_ = edges_[edge_].next;
            return *this;
        }

        neigh_iterator operator++(int)
        {
            auto it = *this;
            ++(*this);
            return it;
        }

        bool operator==(const neigh_iterator& it) const { return edge_ == it.edge_; }
        bool operator!=(const neigh_iterator& it) const { return !(*this == it); }

    private:
        ID edge_;
        const std::vector<EdgeData>& edges_;
    };

    using node_iterator = id_iterator<Node, 1>;
    using edge_iterator = id_iterator<Edge, 2>;

    using node_range = range_proxy<node_iterator>;
    using edge_range = range_proxy<edge_iterator>;
    using neigh_range = range_proxy<neigh_iterator>;

    class builder
    {
        friend class LinkedListGraph;

    public:
        explicit builder(std::size_t node_capacity = 0, std::size_t edge_capacity = 0)
        {
            nodes_.reserve(node_capacity);
            edges_.reserve(edge_capacity);
        }

        /// Return the number of nodes.
        [[nodiscard]] size_type num_nodes() const { return nodes_.size(); }

        /// Return the number of edges.
        [[nodiscard]] size_type num_edges() const { return edges_.size() / 2; }

        /// Add a new node to the graph.
        Node add_node()
        {
            assert(nodes_.size() + 1 < no_id);
            nodes_.push_back(NodeData{});
            return Node(static_cast<ID>(nodes_.size() - 1));
        }

        /// Add several nodes to the graph.
        std::vector<Node> add_nodes(size_type nnew)
        {
            std::vector<Node> newnodes;
            newnodes.reserve(nnew);
            for (size_type i = 0; i < nnew; ++i) {
                newnodes.push_back(add_node());
            }
            return newnodes;
        }

        /// Return the id of a node.
        [[nodiscard]] ID node_id(Node u) const { return u.id; }

        /// Return the node with a certain id.
        [[nodiscard]] Node id2node(ID id) const
        {
            assert(id >= 0 && id < static_cast<ID>(nodes_.size()));
            return Node(id);
        }

        /// Add an edge between u and v to the graph.
        Edge add_edge(Node u, Node v)
        {
            assert(edges_.size() + 2 < no_id);
            auto eid = static_cast<ID>(edges_.size());
            auto uid = u.id;
            auto vid = v.id;
            edges_.push_back(EdgeData{vid, nodes_[uid].first});
            edges_.push_back(EdgeData{uid, nodes_[vid].first});
            nodes_[uid].first = eid;
            nodes_[vid].first = eid + 1;
            return Edge(eid);
        }

        /// Return the id of an edge.
        [[nodiscard]] ID edge_id(Edge e) const { return e.id >> 1; }

        /// Return the edge with a certain id.
        [[nodiscard]] Edge id2edge(ID id) const
        {
            assert(id >= 0 && id < static_cast<ID>(edges_.size()));
            return Edge(id);
        }

    private:
        std::vector<NodeData> nodes_;
        std::vector<EdgeData> edges_;
    };

    /// A vector assigning some value to each node.
    template <typename T>
    class node_map : public std::vector<T>
    {
    public:
        explicit node_map(const LinkedListGraph& g) : std::vector<T>(g.num_nodes()) {}

        node_map(const LinkedListGraph& g, const T& value) : std::vector<T>(g.num_nodes(), value) {}

        node_map(const LinkedListGraph& g, std::vector<T> values) : std::vector<T>(std::move(values))
        {
            assert(std::vector<T>::size() == g.num_nodes());
        }

        T& operator[](Node u) { return std::vector<T>::operator[](u.id); }
        const T& operator[](Node u) const { return std::vector<T>::operator[](u.id); }
    };

    /// A vector assigning some value to each edge.
    template <typename T>
    class edge_map : public std::vector<T>
    {
    public:
        explicit edge_map(const LinkedListGraph& g) : std::vector<T>(g.num_edges()) {}

        edge_map(const LinkedListGraph& g, const T& value) : std::vector<T>(g.num_edges(), value) {}

        edge_map(const LinkedListGraph& g, std::vector<T> values) : std::vector<T>(std::move(values))
        {
            assert(std::vector<T>::size() == g.num_edges());
        }

        T& operator[](Edge e) { return std::vector<T>::operator[](e.id >> 1); }
        const T& operator[](Edge e) const { return std::vector<T>::operator[](e.id >> 1); }
    };

public:
    /// A non-existing node.
    static constexpr Node nonode = Node();
    /// A non-existing edge.
    static constexpr Edge noedge = Edge();

public:
    LinkedListGraph() = default;

    LinkedListGraph(LinkedListGraph&&) noexcept = default;

    explicit LinkedListGraph(const LinkedListGraph&) = default;

    explicit LinkedListGraph(builder&& b) : nodes_(std::move(b.nodes_)), edges_(std::move(b.edges_)) {}

    LinkedListGraph& operator=(LinkedListGraph&&) noexcept = default;

    LinkedListGraph& operator=(const LinkedListGraph&) = default;

    ~LinkedListGraph() = default;

public:
    /// Return the number of nodes.
    [[nodiscard]] size_type num_nodes() const { return nodes_.size(); }

    /// Return the number of edges.
    [[nodiscard]] size_type num_edges() const { return edges_.size() / 2; }

    /// Return the end nodes of an edge.
    ///
    /// Note that the order of the nodes is undefined. In fact, each time the
    /// method is called the order of the returned nodes may be different.
    [[nodiscard]] std::pair<Node, Node> enodes(Edge e) const
    {
        assert(e.id != no_id);
        return {Node{edges_[e.id | 1u].snk}, Node{edges_[e.id & ~static_cast<ID>(1)].snk}};
    }

    /// Return a node range.
    [[nodiscard]] node_range nodes() const
    {
        return {node_iterator(0), node_iterator(static_cast<ID>(nodes_.size()))};
    };

    /// Return the id associated with a node.
    [[nodiscard]] ID node_id(Node u) const
    {
        assert(u.id != no_id);
        return u.id;
    }

    /// Return the node with the given id.
    [[nodiscard]] Node id2node(ID id) const
    {
        assert(id >= 0 && id < static_cast<ID>(nodes_.size()));
        return Node(id);
    }

    /// Return an edge range.
    [[nodiscard]] edge_range edges() const
    {
        return {edge_iterator(0), edge_iterator(static_cast<ID>(edges_.size()))};
    };

    /// Return the id associated with a edge.
    [[nodiscard]] ID edge_id(Edge e) const
    {
        assert(e.id != no_id);
        return e.id >> 1u;
    }

    /// Return the edge with the given id.
    [[nodiscard]] Edge id2edge(ID id) const
    {
        assert(id >= 0 && (id * 2) < static_cast<ID>(edges_.size()));
        return Edge(id * 2);
    }

    /// Return a range over all edges adjacent to the given node `u`.
    [[nodiscard]] neigh_range neighs(Node u) const
    {
        assert(u.id != no_id);
        return {neigh_iterator(nodes_[u.id].first, edges_), neigh_iterator(no_id, edges_)};
    }

    template <typename ID_>
    friend std::ostream& operator<<(std::ostream& out, const LinkedListGraph<ID_>& g);
    template <typename ID_>
    friend std::istream& operator>>(std::istream& in, LinkedListGraph<ID_>& g);

protected:
    std::vector<NodeData> nodes_;
    std::vector<EdgeData> edges_;
};

template <typename ID>
class LinkedListDigraph : public LinkedListGraph<ID>
{
public:
    /// This graph is undirected.
    using graph_type = directed;

    using super_type = LinkedListGraph<ID>;
    using typename super_type::Edge;
    using typename super_type::Node;

    using typename super_type::neigh_iterator;

public:
    class in_iterator
    {
    public:
        using value_type = std::pair<Edge, Node>;
        using reference = std::pair<Edge, Node>;
        using iterator_category = std::forward_iterator_tag;

    public:
        explicit in_iterator(neigh_iterator it) : it_(it)
        {
            while ((it_.edge_ & 1u) == 0 && it_.edge_ != super_type::no_id) {
                ++it_;
            }
        }

        reference operator*() const { return *it_; }

        /// Return the current edge.
        [[nodiscard]] Edge edge() const { return it_.edge(); }

        /// Return the other adjacent node of the current edge.
        [[nodiscard]] Node node() const { return it_.node(); }

        in_iterator& operator++()
        {
            do {
                ++it_;
            } while ((it_.edge_ & 1u) == 0 && it_.edge_ != super_type::no_id);
            return *this;
        }

        in_iterator operator++(int)
        {
            auto it = *this;
            ++(*this);
            return it;
        }

        bool operator==(const in_iterator& it) const { return it_ == it.it_; }
        bool operator!=(const in_iterator& it) const { return !(*this == it); }

    private:
        neigh_iterator it_;
    };

    class out_iterator
    {
    public:
        using value_type = std::pair<Edge, Node>;
        using reference = std::pair<Edge, Node>;
        using iterator_category = std::forward_iterator_tag;

    public:
        explicit out_iterator(neigh_iterator it) : it_(it)
        {
            while ((it_.edge_ & 1u) != 0 && it_.edge_ != super_type::no_id) {
                ++it_;
            }
        }

        reference operator*() const { return *it_; }

        /// Return the current edge.
        [[nodiscard]] Edge edge() const { return it_.edge(); }

        /// Return the other adjacent node of the current edge.
        [[nodiscard]] Node node() const { return it_.node(); }

        out_iterator& operator++()
        {
            do {
                ++it_;
            } while ((it_.edge_ & 1u) != 0 && it_.edge_ != super_type::no_id);
            return *this;
        }

        out_iterator operator++(int)
        {
            auto it = *this;
            ++(*this);
            return it;
        }

        bool operator==(const out_iterator& it) const { return it_ == it.it_; }
        bool operator!=(const out_iterator& it) const { return !(*this == it); }

    private:
        neigh_iterator it_;
    };

    using in_range = typename super_type::template range_proxy<in_iterator>;
    using out_range = typename super_type::template range_proxy<out_iterator>;

    using typename super_type::builder;

public:
    LinkedListDigraph() = default;

    LinkedListDigraph(LinkedListDigraph&&) noexcept = default;

    explicit LinkedListDigraph(const LinkedListDigraph&) = default;

    LinkedListDigraph& operator=(LinkedListDigraph&&) noexcept = default;

    LinkedListDigraph& operator=(const LinkedListDigraph&) noexcept = delete;

    explicit LinkedListDigraph(builder&& b) : super_type(std::move(b)) {}

    ~LinkedListDigraph() = default;

    /// Return the source node of edge e.
    [[nodiscard]] Node src(Edge e) const
    {
        assert(e.id != super_type::no_id);
        return Node(super_type::edges_[e.id | 1u].snk);
    }

    /// Return the sink node of edge e.
    [[nodiscard]] Node snk(Edge e) const
    {
        assert(e.id != super_type::no_id);
        return Node(super_type::edges_[e.id & ~static_cast<ID>(1)].snk);
    }

    /// Return a range over all edges with destination node `u`.
    [[nodiscard]] in_range inedges(Node u) const
    {
        assert(u.id != super_type::no_id);
        return in_range(super_type::neighs(u));
    }

    /// Return a range over all edges with source node `u`.
    [[nodiscard]] out_range outedges(Node u) const
    {
        assert(u.id != super_type::no_id);
        return out_range(super_type::neighs(u));
    }
};

template <typename ID>
class LinkedListNetwork : public LinkedListDigraph<ID>
{
public:
    using super_type = LinkedListDigraph<ID>;
    using typename super_type::builder;
    using typename super_type::Edge;
    using typename super_type::Node;

    /// A vector assigning some value to each edge.
    template <typename T>
    class biedge_map : public std::vector<T>
    {
    public:
        explicit biedge_map(const LinkedListNetwork& g) : std::vector<T>(g.num_edges() * 2) {}

        biedge_map(const LinkedListNetwork& g, const T& value) : std::vector<T>(g.num_edges() * 2, value) {}

        T& operator[](Edge e) { return std::vector<T>::operator[](e.id); }
        const T& operator[](Edge e) const { return std::vector<T>::operator[](e.id); }
    };

public:
    LinkedListNetwork() = default;

    LinkedListNetwork(LinkedListNetwork&&) noexcept = default;

    explicit LinkedListNetwork(const LinkedListNetwork&) = default;

    LinkedListNetwork& operator=(LinkedListNetwork&&) noexcept = default;

    LinkedListNetwork& operator=(const LinkedListNetwork&) = delete;

    explicit LinkedListNetwork(builder&& b) : super_type(std::move(b)) {}

    ~LinkedListNetwork() = default;

    /// Return true if `e` is the reverse edge of `f`.
    [[nodiscard]] bool is_reverse(Edge e, Edge f) const
    {
        assert(e.id != super_type::no_id);
        assert(f.id != super_type::no_id);
        return (e.id ^ f.id) == 1;
    }

    /// Return the reverse edge of `e`.
    [[nodiscard]] Edge reverse(Edge e) const
    {
        assert(e.id != super_type::no_id);
        return Edge(e.id ^ 1u);
    }

    /// Return true if `e` is a forward edge.
    [[nodiscard]] bool is_forward(Edge e) const
    {
        assert(e.id != super_type::no_id);
        return (e.id & 1u) == 0;
    }

    /// Return the forward edge of `e`.
    ///
    /// If `e` is itself a forward edge, the edge `e` is returned, otherwise its
    /// reverse edge is returned.
    [[nodiscard]] Edge forward(Edge e) const { return is_forward(e) ? e : reverse(e); }

    /// Return true if `e` is a backward edge.
    [[nodiscard]] bool is_backward(Edge e) const { return !is_forward(e); }

    /// Return the backward edge of `e`.
    ///
    /// If `e` is itself a backward edge, the edge `e` is returned, otherwise its
    /// reverse edge is returned.
    [[nodiscard]] Edge backward(Edge e) const { return is_backward(e) ? e : reverse(e); }

    /// Return the source of the directed edge `e`.
    ///
    /// If `e` is a forward edge, this is the same as `src` otherwise it is
    /// `snk`.
    [[nodiscard]] Node bisrc(Edge e) const { return is_forward(e) ? super_type::src(e) : super_type::snk(e); }

    /// Return the sink of the directed edge `e`.
    ///
    /// If `e` is a forward edge, this is the same as `snk` otherwise it is
    /// `src`.
    [[nodiscard]] Node bisnk(Edge e) const { return is_forward(e) ? super_type::snk(e) : super_type::src(e); }
};

/// Default undirected graph with 32bit indices.
using Graph = LinkedListGraph<>;
/// Default directed graph with 32bit indices.
using Digraph = LinkedListDigraph<>;
/// Default network with 32bit indices.
using Net = LinkedListNetwork<>;

extern template class LinkedListGraph<uint16_t>;
extern template class LinkedListDigraph<uint16_t>;
extern template class LinkedListNetwork<uint16_t>;

extern template class LinkedListGraph<uint32_t>;
extern template class LinkedListDigraph<uint32_t>;
extern template class LinkedListNetwork<uint32_t>;

extern template class LinkedListGraph<uint64_t>;
extern template class LinkedListDigraph<uint64_t>;
extern template class LinkedListNetwork<uint64_t>;

}  // namespace graph
}  // namespace fifr

namespace std {
template <typename ID>
struct hash<fifr::graph::linkedlistgraph::Node<ID>> {
    std::size_t operator()(fifr::graph::linkedlistgraph::Node<ID> node) const noexcept
    {
        return std::hash<ID>{}(node.id);
    }
};

template <typename ID>
struct hash<fifr::graph::linkedlistgraph::Edge<ID>> {
    std::size_t operator()(fifr::graph::linkedlistgraph::Edge<ID> edge) const noexcept
    {
        return std::hash<ID>{}(edge.id >> 1);
    }
};
}  // namespace std

#endif

Added 3rdparty/graph/src/fifr/graph/LinkedListGraphIO.cxx.



























































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/*
 * Copyright (c) 2018 Frank Fischer <frank-fischer@shadow-soft.de>
 *
 * This program is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see  <http://www.gnu.org/licenses/>
 */

#include "LinkedListGraphIO.hxx"

namespace fifr {
namespace graph {
namespace linkedlistgraph {
template std::ostream& operator<<(std::ostream& out, const Node<uint16_t>& u);
template std::ostream& operator<<(std::ostream& out, const Node<uint32_t>& u);
template std::ostream& operator<<(std::ostream& out, const Node<uint64_t>& u);
template std::istream& operator>>(std::istream& in, Node<uint16_t>& u);
template std::istream& operator>>(std::istream& in, Node<uint32_t>& u);
template std::istream& operator>>(std::istream& in, Node<uint64_t>& u);

template std::ostream& operator<<(std::ostream& out, const Edge<uint16_t>& e);
template std::ostream& operator<<(std::ostream& out, const Edge<uint32_t>& e);
template std::ostream& operator<<(std::ostream& out, const Edge<uint64_t>& e);
template std::istream& operator>>(std::istream& in, Edge<uint16_t>& e);
template std::istream& operator>>(std::istream& in, Edge<uint32_t>& e);
template std::istream& operator>>(std::istream& in, Edge<uint64_t>& e);
}  // namespace linkedlistgraph

template std::ostream& operator<<(std::ostream& out, const LinkedListGraph<uint16_t>& g);
template std::ostream& operator<<(std::ostream& out, const LinkedListGraph<uint32_t>& g);
template std::ostream& operator<<(std::ostream& out, const LinkedListGraph<uint64_t>& g);
template std::istream& operator>>(std::istream& in, LinkedListGraph<uint16_t>& g);
template std::istream& operator>>(std::istream& in, LinkedListGraph<uint32_t>& g);
template std::istream& operator>>(std::istream& in, LinkedListGraph<uint64_t>& g);
}  // namespace graph
}  // namespace fifr

Added 3rdparty/graph/src/fifr/graph/LinkedListGraphIO.hxx.























































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
/*
 * Copyright (c) 2018 Frank Fischer <frank-fischer@shadow-soft.de>
 *
 * This program is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see  <http://www.gnu.org/licenses/>
 */

#ifndef __FIFR_GRAPH_LINKEDLISTGRAPHIO_HXX__
#define __FIFR_GRAPH_LINKEDLISTGRAPHIO_HXX__

#include "LinkedListGraph.hxx"

#include <fifr/util/PrettyStruct.hxx>

namespace fifr {
namespace graph {
namespace linkedlistgraph {
template <typename ID>
std::ostream& operator<<(std::ostream& out, const Node<ID>& u)
{
    fifr::util::pretty_print_struct(out, "Node", "id", u.id);
    return out;
}

template <typename ID>
std::istream& operator>>(std::istream& in, Node<ID>& u)
{
    fifr::util::pretty_read_struct(in, "Node", "id", u.id);
    return in;
}

template <typename ID>
std::ostream& operator<<(std::ostream& out, const Edge<ID>& e)
{
    fifr::util::pretty_print_struct(out, "Edge", "id", e.id >> 1u);
    return out;
}

template <typename ID>
std::istream& operator>>(std::istream& in, Edge<ID>& e)
{
    ID id;
    fifr::util::pretty_read_struct(in, "Edge", "id", id);
    e.id = id * 2;
    return in;
}

extern template std::ostream& operator<<(std::ostream& out, const Node<uint16_t>& u);
extern template std::ostream& operator<<(std::ostream& out, const Node<uint32_t>& u);
extern template std::ostream& operator<<(std::ostream& out, const Node<uint64_t>& u);
extern template std::istream& operator>>(std::istream& in, Node<uint16_t>& u);
extern template std::istream& operator>>(std::istream& in, Node<uint32_t>& u);
extern template std::istream& operator>>(std::istream& in, Node<uint64_t>& u);

extern template std::ostream& operator<<(std::ostream& out, const Edge<uint16_t>& e);
extern template std::ostream& operator<<(std::ostream& out, const Edge<uint32_t>& e);
extern template std::ostream& operator<<(std::ostream& out, const Edge<uint64_t>& e);
extern template std::istream& operator>>(std::istream& in, Edge<uint16_t>& e);
extern template std::istream& operator>>(std::istream& in, Edge<uint32_t>& e);
extern template std::istream& operator>>(std::istream& in, Edge<uint64_t>& e);
}  // namespace linkedlistgraph

template <typename ID>
std::ostream& operator<<(std::ostream& out, const LinkedListGraph<ID>& g)
{
    std::vector<std::pair<ID, ID>> edges;
    edges.reserve(g.num_edges());
    for (auto e : g.edges()) {
        auto uv = g.enodes(e);
        edges.push_back({g.node_id(uv.first), g.node_id(uv.second)});
    }
    fifr::util::pretty_print_struct(out, "Graph", "n", g.num_nodes(), "edges", edges);
    return out;
}

template <typename ID>
std::istream& operator>>(std::istream& in, LinkedListGraph<ID>& g)
{
    std::size_t n = 0;
    std::vector<std::pair<ID, ID>> edges;
    fifr::util::pretty_read_struct(in, "Graph", "n", n, "edges", edges);

    if (n >= static_cast<std::size_t>(LinkedListGraph<ID>::no_id)) {
        throw fifr::util::ReadError("Number of graph nodes is too large");
    }

    typename LinkedListGraph<ID>::builder b(n, edges.size());
    auto nodes = b.add_nodes(n);
    for (auto e : edges) {
        if (e.first < 0 || e.first >= static_cast<ID>(n)) {
            throw fifr::util::ReadError("Invalid node id " + std::to_string(e.first));
        }
        if (e.second < 0 || e.second >= static_cast<ID>(n)) {
            throw fifr::util::ReadError("Invalid node id " + std::to_string(e.second));
        }
        b.add_edge(nodes[e.first], nodes[e.second]);
    }
    g = LinkedListGraph<ID>(std::move(b));

    return in;
}

extern template std::ostream& operator<<(std::ostream& out, const LinkedListGraph<uint16_t>& g);
extern template std::ostream& operator<<(std::ostream& out, const LinkedListGraph<uint32_t>& g);
extern template std::ostream& operator<<(std::ostream& out, const LinkedListGraph<uint64_t>& g);
extern template std::istream& operator>>(std::istream& in, LinkedListGraph<uint16_t>& g);
extern template std::istream& operator>>(std::istream& in, LinkedListGraph<uint32_t>& g);
extern template std::istream& operator>>(std::istream& in, LinkedListGraph<uint64_t>& g);

}  // namespace graph
}  // namespace fifr

#endif

Added 3rdparty/graph/src/fifr/graph/Tikz.hxx.











































































































































































































































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
/*
 * Copyright (c) 2016, 2018 Frank Fischer <frank-fischer@shadow-soft.de>
 *
 * This program is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see  <http://www.gnu.org/licenses/>
 */

#ifndef __FIFR_GRAPH_TIKZ_HXX__
#define __FIFR_GRAPH_TIKZ_HXX__

#include "AttributedGraph.hxx"
#include "LinkedListGraph.hxx"

#include <iomanip>
#include <iostream>
#include <map>
#include <ostream>
#include <utility>

namespace fifr {
namespace graph {
enum class Shape {
    Circle,
    Disc,
};

struct Color {
    uint8_t red = 0;
    uint8_t green = 0;
    uint8_t blue = 0;
    double opacity = 1.0;

    bool is_black() const { return red == 0 && green == 0 && blue == 0; }
};

/**
 * Simple class to draw graphs in Tikz format.
 *
 * This class takes a reference to the graph to be drawn. Therefore
 * the graph must exist as long as the TikzDrawer is used.
 *
 * TikzDrawer can be used with directed and undirected graphs.
 */
template <class Graph>
class TikzDrawer
{
private:
public:
    /// Type of nodes.
    using Node = typename Graph::node_type;
    /// Type of edges.
    using Edge = typename Graph::edge_type;

    /// Coordinates of a node to be drawn.
    using Point = std::pair<double, double>;

    /// Bend configuration of an edge/edge.
    enum class Bend { None, Left, Right };

    /// Information associated with a node.
    struct NodeInfo {
        Point point = {0, 0};  ///< node coordinates
        Shape shape = Shape::Circle;
        Color color;
    };

    /// Information associated with a edge.
    struct EdgeInfo {
        Bend bend = Bend::None;  ///< bend attribute
        double width = 0.5;      ///< line width
        Color color;
    };

public:
    TikzDrawer(const Graph& graph) : graph_(graph), node_infos_(graph_), edge_infos_(graph_), indent_(0), doc_(false) {}

    /// Set whether document boiler plate should be drawn.
    void set_document(bool doc) { doc_ = doc; }

    /// Return the node information.
    NodeInfo& node(Node u) { return node_infos_[u]; }

    /// Return the node information.
    const NodeInfo& node(Node u) const { return node_infos_[u]; }

    /// Return the node information.
    EdgeInfo& edge(Edge e) { return edge_infos_[e]; }

    /// Return the node information.
    const EdgeInfo& edge(Edge e) const { return edge_infos_[e]; }

    /// Sets the point associated with a node.
    void set_point(Node u, Point x) { node_infos_[u].point = std::move(x); }

    /// Sets the bend attribute associated with an edge.
    void set_bend(Edge e, Bend bend) { edge_infos_[e].bend = bend; }

    /// Sets the line width of an edge.
    void set_width(Edge e, double width)
    {
        assert(width >= 0);
        edge_infos_[e].width = width;
    }

    /// Write TeX document preamble.
    static void write_begin(std::ostream& out)
    {
        out << "\\documentclass{article}\n";
        out << "\\usepackage[utf8]{inputenc}\n";
        out << "\\usepackage[T1]{fontenc}\n";
        out << "\\usepackage{tikz}\n";
        out << "\\begin{document}\n";
    }

    /// Write TeX document closing.
    static void write_end(std::ostream& out) { out << "\\end{document}\n"; }

    /// Write Tikz graph to output stream.
    std::ostream& write_tikz(std::ostream& out) const
    {
        if (doc_) {
            write_begin(out);
        }

        write_indent(out);

        out << "\\begin{tikzpicture}[>=stealth,inner sep=5pt]\n";
        out << std::setprecision(2);

        for (auto u : graph_.nodes()) {
            auto info = node_infos_[u];

            if (!info.color.is_black()) {
                write_indent(out, 1);
                out << "\\definecolor{currentcolor}{RGB}{" << (int)info.color.red << "," << (int)info.color.green << ","
                    << (int)info.color.blue << "}\n";
            }
            write_indent(out, 1);
            out << "\\node[circle,";
            switch (info.shape) {
                case Shape::Circle: out << "draw"; break;
                case Shape::Disc: out << "fill"; break;
            }
            if (!info.color.is_black()) {
                out << "=currentcolor";
            }
            if (info.color.opacity != 1) {
                out << ",opacity=" << std::fixed << info.color.opacity;
            }
            out << "] (" << graph_.node_id(u) << ") "
                << "at (" << std::fixed << info.point.first << "," << std::fixed << info.point.second << ") "
                << "{};\n";
            //<< "{" << (unsigned)(u+1) << "};\n";
        }

        for (auto e : graph_.edges()) {
            Node u, v;
            std::tie(u, v) = graph_.enodes(e);
            auto info = edge_infos_[e];

            if (!info.color.is_black()) {
                write_indent(out, 1);
                out << "\\definecolor{currentcolor}{RGB}{" << (int)info.color.red << "," << (int)info.color.green << ","
                    << (int)info.color.blue << "}\n";
            }
            write_indent(out, 1);
            out << "\\draw[";
            out << "line width=" << info.width << "pt";
            if (Graph::graph_type::id == GraphType::Directed) {
                out << ",->";
            }
            if (!info.color.is_black()) {
                out << ",color=currentcolor";
            }
            if (info.color.opacity != 1) {
                out << ",opacity=" << info.color.opacity;
            }
            out << "]";
            out << " (" << graph_.node_id(u) << ") ";
            out << "to";
            switch (info.bend) {
                case Bend::Left: out << "[bend left]"; break;
                case Bend::Right: out << "[bend right]"; break;
                case Bend::None: break;
            }
            out << " (" << graph_.node_id(v) << ");"
                << "\n";
        }

        write_indent(out);
        out << "\\end{tikzpicture}\n";

        if (doc_) {
            write_end(out);
        }

        return out;
    }

    inline void write_indent(std::ostream& out, unsigned offset = 0) const
    {
        for (auto i = 0u; i < 2 * (indent_ + offset); i++) {
            out << " ";
        }
    }

private:
    const Graph& graph_;

    typename Graph::template node_map<NodeInfo> node_infos_;
    typename Graph::template edge_map<EdgeInfo> edge_infos_;

    unsigned indent_;
    bool doc_;
};
}  // namespace graph
}  // namespace fifr

#endif

Added 3rdparty/graph/src/fifr/graph/VecGraph.hxx.















































































































































































































































































































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
/*
 * Copyright (c) 2024 Frank Fischer <frank-fischer@shadow-soft.de>
 *
 * This program is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see  <http://www.gnu.org/licenses/>
 */

#ifndef FIFR_GRAPH_VECGRAPH_HXX
#define FIFR_GRAPH_VECGRAPH_HXX

#include <cassert>
#include <cstdint>
#include <iterator>
#include <ranges>
#include <vector>

namespace fifr::graph {

template <typename ID = uint32_t>
class VecGraph
{
private:
    struct NodeData {
        ID firstout;
        ID firstin;
    };

    std::vector<NodeData> nodes_;
    /// The sink node for each (directed) edge.
    std::vector<ID> sinks_;
    // The list of adjacencies. This list contains the edge numbers in
    // a specific order, so that for each node the incident outgoing
    // and incoming edges are in successive positions.
    std::vector<ID> adj_;

public:
    class NeighIter
    {
    public:
        using iterator_category = std::forward_iterator_tag;
        using difference_type = std::ptrdiff_t;

    private:
        const std::vector<ID>* sinks_ = nullptr;
        std::vector<ID>::const_iterator it_;

    public:
        NeighIter() = default;
        NeighIter(const std::vector<ID>& sinks, std::vector<ID>::const_iterator it) : sinks_(&sinks), it_(it) {}
        NeighIter(NeighIter&&) = default;
        NeighIter(const NeighIter&) = default;
        auto operator=(NeighIter&&) -> NeighIter& = default;
        auto operator=(const NeighIter&) -> NeighIter& = default;
        ~NeighIter() = default;

        auto operator*() const -> std::pair<ID, ID> { return std::pair(*it_ / 2, (*sinks_)[*it_]); }

        auto operator++() -> NeighIter&
        {
            ++it_;
            return *this;
        }

        auto operator++(int) -> NeighIter
        {
            auto tmp = NeighIter(it_, sinks_);
            ++it_;
            return tmp;
        }

        auto operator==(const NeighIter& other) const { return it_ == other.it_; }
    };

    class builder
    {
        friend class VecGraph;

    private:
        std::size_t nnodes_ = 0;
        std::vector<std::pair<ID, ID>> edges_ = {};

    public:
        builder() = default;

        explicit builder(const builder&) = default;
        builder(builder&&) = default;
        auto operator=(const builder&) -> builder& = delete;
        auto operator=(builder&&) -> builder& = default;
        ~builder() = default;

        builder(std::size_t node_capacity, std::size_t edge_capacity)
        {
            (void)node_capacity;
            edges_.reserve(edge_capacity);
        }

        auto add_node() { return (ID)(nnodes_++); }

        auto add_nodes(std::size_t nnew)
        {
            std::vector<ID> newnodes;
            newnodes.reserve(nnew);
            for (ID i = 0; i < (ID)nnew; ++i) {
                newnodes.push_back(nnodes_++);
            }
            return newnodes;
        }

        auto add_edge(ID u, ID v)
        {
            assert(u >= 0 and u < nnodes_);
            assert(v >= 0 and v < nnodes_);
            edges_.push_back({u, v});
            return edges_.size() - 1;
        }
    };

public:
    VecGraph() = default;

    explicit VecGraph(const VecGraph&) = default;

    explicit VecGraph(builder&& b) : VecGraph(b.nnodes_, b.edges_) {}

    template <std::ranges::input_range T>
        requires std::is_same_v<typename T::value_type, std::pair<ID, ID>>
    VecGraph(std::size_t nnodes, T& edges) : nodes_(nnodes, {0, 0})
    {
        sinks_.reserve(edges.size() * 2);

        // first count the incident edges for each node
        for (auto [u, v] : edges) {
            assert(u >= 0 and u < nnodes);
            assert(v >= 0 and v < nnodes);
            nodes_[u].firstout += 1;
            nodes_[v].firstin += 1;
            sinks_.push_back(v);
            sinks_.push_back(u);
        }

        // now set the indices to the correct starts
        std::size_t nedges = 0;
        for (auto& node : nodes_) {
            auto nout = node.firstout;
            auto nin = node.firstin;
            node.firstout = nedges;
            node.firstin = nedges + nout;
            nedges += nout + nin;
        }

        assert(nedges == 2 * edges.size());

        // add the edges to the list of each node
        adj_.assign(2 * edges.size(), 0);
        for (auto e : std::ranges::iota_view{(std::size_t)0, edges.size()}) {
            auto [u, v] = edges[e];
            adj_[nodes_[u].firstout] = e << 1;
            adj_[nodes_[v].firstin] = (e << 1) | 1;
            nodes_[u].firstout += 1;
            nodes_[v].firstin += 1;
        }

        // finally set the indices to the correct starts again
        ID beg = 0;
        for (auto& node : nodes_) {
            auto next_beg = node.firstin;
            node.firstin = node.firstout;
            node.firstout = beg;
            beg = next_beg;
        }
    }

    VecGraph(VecGraph&&) = default;

    auto operator=(VecGraph&&) -> VecGraph& = default;

    auto operator=(const VecGraph&) -> VecGraph& = delete;

    ~VecGraph() = default;

    /// Return the number of nodes.
    auto num_nodes() const { return nodes_.size(); }

    /// Return the number of edges.
    auto num_edges() const { return sinks_.size() / 2; }

    /// Return an iterator over all nodes.
    auto nodes() const { return std::ranges::iota_view{(ID)0, (ID)num_nodes()}; }

    /// Return an iterator over all edges.
    auto edges() const { return std::ranges::iota_view{(ID)0, (ID)num_edges()}; }

    /// Return the end-nodes of an edge.
    ///
    /// If the edge is considered directed, the first node is the
    /// source and the second the sink of the edge.
    auto end_nodes(ID e) const
    {
        assert(e >= 0 and e < num_edges());
        return std::pair(sinks_[(e << 1) | 1], sinks_[e << 1]);
    }

    /// Return a range over all incident (edge, node) pairs.
    auto neighs(ID u) const
    {
        assert(u >= 0 and u < num_nodes());

        auto beg = adj_.begin() + nodes_[u].firstout;
        auto end = u + 1 < nodes_.size() ? adj_.begin() + nodes_[u + 1].firstout : adj_.end();

        return std::ranges::subrange(NeighIter(sinks_, beg), NeighIter(sinks_, end));
    }

    /// Return the source node of an edge.
    auto src(ID e) const
    {
        assert(e >= 0 and e < num_edges());
        return sinks_[(e << 1) | 1];
    }

    /// Return the sink node of an edge.
    auto snk(ID e) const
    {
        assert(e >= 0 and e < num_edges());
        return sinks_[e << 1];
    }

    /// Return a range over all outgoing (edge, node) pairs.
    auto out_edges(ID u) const
    {
        assert(u >= 0 and u < num_nodes());

        auto beg = adj_.begin() + nodes_[u].firstout;
        auto end = adj_.begin() + nodes_[u].firstin;

        return std::ranges::subrange(NeighIter(sinks_, beg), NeighIter(sinks_, end));
    }

    /// Return a range over all incoming (edge, node) pairs.
    auto in_edges(ID u) const
    {
        assert(u >= 0 and u < num_nodes());

        auto beg = adj_.begin() + nodes_[u].firstin;
        auto end = u + 1 < nodes_.size() ? adj_.begin() + nodes_[u + 1].firstout : adj_.end();

        return std::ranges::subrange(NeighIter(sinks_, beg), NeighIter(sinks_, end));
    }
};

}  // namespace fifr::graph

#endif

Added 3rdparty/graph/tests/CMakeLists.txt.

































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
add_test(NAME all COMMAND test_fifrgraph)

set(TEST_SOURCES
  test_main.cxx
  test_graph.cxx
  test_digraph.cxx
  test_linkedlistgraph.cxx
  test_kruskal.cxx
  test_vecgraph.cxx)

add_executable(test_fifrgraph ${TEST_SOURCES})
target_link_libraries(test_fifrgraph Graph)

if (CMAKE_CXX_COMPILER_ID MATCHES "Clang|GNU")
  target_compile_options(test_fifrgraph PRIVATE -W -Wall -pedantic)
endif ()

Added 3rdparty/graph/tests/catch.hpp.

more than 10,000 changes

Added 3rdparty/graph/tests/test_digraph.cxx.

































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
/*
 * Copyright (c) 2016 Frank Fischer <frank-fischer@shadow-soft.de>
 *
 * This program is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see  <http://www.gnu.org/licenses/>
 */

#include "catch.hpp"

#include <fifr/graph/AttributedGraph.hxx>
#include <fifr/graph/LinkedListGraph.hxx>
#include <fifr/util/Range.hxx>

using namespace fifr::util;
using namespace fifr::graph;

SCENARIO("An directed graph")
{
    GIVEN("A K3,3")
    {
        struct NodeAttr {
            double balance;
        };

        struct EdgeAttr {
            double flow;
        };

        using G = AttributedGraph<LinkedListDigraph<int16_t>, std::tuple<>, NodeAttr, EdgeAttr>;
        G::builder b;

        for (auto u : range(6)) {
            b.add_node({static_cast<double>(u)});
        }

        for (auto u : range(3)) {
            for (auto v : range(3, 6)) {
                b.add_edge(b.id2node(u), b.id2node(v), {static_cast<double>(u * v)});
            }
        }

        G g(std::move(b));

        THEN("should contain 6 nodes") { REQUIRE(g.num_nodes() == 6); }

        THEN("should iterate over all nodes")
        {
            double sum = 0;
            for (auto u : g.nodes()) {
                REQUIRE(g.node(u).balance == g.node_id(u));
                sum += g.node_id(u);
            }
            REQUIRE(sum == 15);
        }

        THEN("should contain 9 edges") { REQUIRE(g.num_edges() == 9); }

        THEN("should iterator over all edges")
        {
            auto cnt = 0;
            for (auto a : g.edges()) {
                auto u = g.node_id(g.src(a));
                auto v = g.node_id(g.snk(a));
                REQUIRE(g.edge(a).flow == u * v);
                ++cnt;
            }
            REQUIRE(cnt == 9);
        }

        THEN("should iterator over all outgoing edges")
        {
            auto cnt = 0;
            for (auto u : range(3)) {
                for (auto a : g.outedges(g.id2node(u))) {
                    auto x = g.node_id(g.src(a.first));
                    auto y = g.node_id(g.snk(a.first));
                    REQUIRE(u == x);
                    REQUIRE(y >= 3);
                    REQUIRE(g.edge(a.first).flow == x * y);
                    ++cnt;
                }
            }
            REQUIRE(cnt == 9);
        }

        THEN("should iterator over all incoming edges")
        {
            auto cnt = 0;
            for (auto v : range(3, 6)) {
                for (auto a : g.inedges(g.id2node(v))) {
                    auto x = g.node_id(g.src(a.first));
                    auto y = g.node_id(g.snk(a.first));
                    REQUIRE(x < 3);
                    REQUIRE(y == v);
                    REQUIRE(g.edge(a.first).flow == x * y);
                    ++cnt;
                }
            }
            REQUIRE(cnt == 9);
        }
    }
}

Added 3rdparty/graph/tests/test_graph.cxx.





























































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
/*
 * Copyright (c) 2016 Frank Fischer <frank-fischer@shadow-soft.de>
 *
 * This program is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see  <http://www.gnu.org/licenses/>
 */

#include "catch.hpp"

#include <fifr/graph/AttributedGraph.hxx>
#include <fifr/graph/LinkedListGraph.hxx>
#include <fifr/graph/LinkedListGraphIO.hxx>
#include <fifr/util/Range.hxx>

using namespace fifr::util;
using namespace fifr::graph;

SCENARIO("An undirected graph")
{
    GIVEN("A K3,3")
    {
        struct NodeAttr {
            double balance;
        };

        struct EdgeAttr {
            double flow;
        };

        using G = AttributedGraph<LinkedListGraph<int16_t>, std::tuple<>, NodeAttr, EdgeAttr>;
        G::builder b;

        for (auto u : range(6)) {
            b.add_node({static_cast<double>(u)});
        }

        for (auto u : range(3)) {
            for (auto v : range(3, 6)) {
                b.add_edge(b.id2node(u), b.id2node(v), {static_cast<double>(u * v)});
            }
        }

        G g(std::move(b));

        THEN("should contain 6 nodes") { REQUIRE(g.num_nodes() == 6); }

        THEN("should iterate over all nodes")
        {
            double sum = 0;
            for (auto u : g.nodes()) {
                REQUIRE(g.node(u).balance == g.node_id(u));
                sum += g.node_id(u);
            }
            REQUIRE(sum == 15);
        }

        THEN("should contain 9 edges") { REQUIRE(g.num_edges() == 9); }

        THEN("should iterator over all edges")
        {
            auto cnt = 0;
            for (auto e : g.edges()) {
                auto uv = g.enodes(e);
                REQUIRE(g.edge(e).flow == g.node_id(uv.first) * g.node_id(uv.second));
                ++cnt;
            }
            REQUIRE(cnt == 9);
        }

        THEN("should iterator over all outgoing edges")
        {
            auto cnt = 0;
            for (auto u : range(3)) {
                for (auto e : g.neighs(g.id2node(u))) {
                    auto uv = g.enodes(e.first);
                    REQUIRE(uv.first == g.id2node(u));
                    REQUIRE(g.node_id(uv.second) >= 3);
                    REQUIRE(g.edge(e.first).flow == g.node_id(uv.first) * g.node_id(uv.second));
                    ++cnt;
                }
            }
            REQUIRE(cnt == 9);
        }

        THEN("should iterator over all incoming edges")
        {
            auto cnt = 0;
            for (auto v : range(3, 6)) {
                for (auto e : g.neighs(g.id2node(v))) {
                    auto uv = g.enodes(e.first);
                    REQUIRE(g.node_id(uv.first) < 3);
                    REQUIRE(uv.second == g.id2node(v));
                    REQUIRE(g.edge(e.first).flow == g.node_id(uv.first) * g.node_id(uv.second));
                    ++cnt;
                }
            }
            REQUIRE(cnt == 9);
        }
    }
}

Added 3rdparty/graph/tests/test_kruskal.cxx.





































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/*
 * Copyright (c) 2018 Frank Fischer <frank-fischer@shadow-soft.de>
 *
 * This program is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see  <http://www.gnu.org/licenses/>
 */

#include "catch.hpp"

#include <fifr/graph/Kruskal.hxx>
#include <fifr/graph/LinkedListGraph.hxx>

using namespace fifr::graph;

SCENARIO("Minimum Spanning Tree")
{
    GIVEN("An undirected graph")
    {
        Graph::builder builder;
        auto nodes = builder.add_nodes(6);
        std::vector<int> weights;
        std::vector<std::tuple<int, int, int>> edges = {{0, 1, 1},
                                                        {0, 2, 3},
                                                        {1, 2, 2},
                                                        {1, 3, 4},
                                                        {2, 3, 5},
                                                        {2, 4, 6},
                                                        {3, 4, 7},
                                                        {3, 5, 8},
                                                        {4, 5, 9}};

        for (auto e : edges) {
            builder.add_edge(nodes[std::get<0>(e)], nodes[std::get<1>(e)]);
            weights.push_back(std::get<2>(e));
        }

        Graph graph(std::move(builder));

        WHEN("solving the MST")
        {
            auto tree = kruskal(graph, [&graph, &weights] (auto e) { return weights[graph.edge_id(e)]; });

            THEN("the resulting true should be correct")
            {
                std::set<std::pair<int, int>> tree_edges;
                for (auto e : tree) {
                    auto uv = graph.enodes(e);
                    tree_edges.insert({graph.node_id(uv.first), graph.node_id(uv.second)});
                }

                REQUIRE((tree_edges ==
                         std::set<std::pair<int, int>>{{0, 1}, {1, 2}, {1, 3}, {2, 4}, {3, 5}}));
            }
        }
    }
}

Added 3rdparty/graph/tests/test_linkedlistgraph.cxx.





























































































































































































































































































































































































































































































































































































































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
/*
 * Copyright (c) 2018 Frank Fischer <frank-fischer@shadow-soft.de>
 *
 * This program is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see  <http://www.gnu.org/licenses/>
 */

#include "catch.hpp"

#include <fifr/graph/AttributedGraph.hxx>
#include <fifr/graph/AttributedGraphIO.hxx>
#include <fifr/graph/Classes.hxx>
#include <fifr/graph/LinkedListGraph.hxx>
#include <fifr/graph/LinkedListGraphIO.hxx>
#include <fifr/util/Pretty.hxx>
#include <fifr/util/Range.hxx>

#include <iostream>

using namespace fifr::util;
using namespace fifr::graph;

SCENARIO("LinkedListGraph")
{
    GIVEN("An empty graph")
    {
        LinkedListGraph<> g;

        THEN("it should contain no nodes")
        {
            REQUIRE(g.num_nodes() == 0);
            for (auto u : g.nodes()) {
                REQUIRE(false);
            }
        }

        THEN("it should contain no edges")
        {
            REQUIRE(g.num_edges() == 0);
            for (auto u : g.edges()) {
                REQUIRE(false);
            }
        }

        THEN("it should iterator over incident edges")
        {
            for (auto u : g.nodes()) {
                for (auto e : g.neighs(u)) {
                    (void)e;
                    REQUIRE(false);
                }
            }
        }
    }
}

SCENARIO("LinkedListDigraph")
{
    GIVEN("An empty graph")
    {
        LinkedListDigraph<> g;

        THEN("it should contain no nodes")
        {
            REQUIRE(g.num_nodes() == 0);
            for (auto u : g.nodes()) {
                (void)u;
                REQUIRE(false);
            }
        }

        THEN("it should contain no edges")
        {
            REQUIRE(g.num_edges() == 0);
            for (auto u : g.edges()) {
                (void)u;
                REQUIRE(false);
            }
        }

        THEN("it should iterate over incoming edges")
        {
            for (auto u : g.nodes()) {
                for (auto e : g.inedges(u)) {
                    (void)e;
                    REQUIRE(false);
                }
            }
        }

        THEN("it should iterate over outgoing edges")
        {
            for (auto u : g.nodes()) {
                for (auto e : g.outedges(u)) {
                    (void)e;
                    REQUIRE(false);
                }
            }
        }
    }

    GIVEN("some graph")
    {
        for (auto& g : {cycle<Digraph>(7),
                        complete_bipartite<Digraph>(5, 6),
                        peterson<Digraph>(),
                        hypercube<Digraph>(5)}) {
            for (auto u : g.nodes()) {
                for (auto ev : g.outedges(u)) {
                    REQUIRE(u == g.src(ev.first));
                    REQUIRE(ev.second == g.snk(ev.first));
                }
                for (auto ev : g.inedges(u)) {
                    REQUIRE(u == g.snk(ev.first));
                    REQUIRE(ev.second == g.src(ev.first));
                }
            }
        }
    }
}

SCENARIO("LinkedListNetwork")
{
    for (auto& g : {cycle<Net>(7), peterson<Net>(), hypercube<Net>(5)}) {
        for (auto u : g.nodes()) {
            for (auto ev : g.outedges(u)) {
                REQUIRE(g.is_forward(ev.first));
            }
            for (auto ev : g.inedges(u)) {
                REQUIRE(g.is_backward(ev.first));
            }
            for (auto ev : g.neighs(u)) {
                REQUIRE(g.is_forward(ev.first) == (u == g.src(ev.first)));
            }
        }

        for (auto e : g.edges()) {
            REQUIRE(g.is_forward(e));
            REQUIRE(e == e);
            REQUIRE(e == g.reverse(e));
            REQUIRE(g.is_reverse(e, g.reverse(e)));
            REQUIRE(g.is_reverse(g.reverse(e), e));
            REQUIRE(!g.is_reverse(e, e));
            REQUIRE(g.is_forward(g.forward(e)));
            REQUIRE(g.is_backward(g.backward(e)));
        }
    }
}

SCENARIO("Graph builder")
{
    GIVEN("a builder")
    {
        Graph::builder builder;

        THEN("it should contain no nodes") { REQUIRE(builder.num_nodes() == 0); }
        THEN("it should contain no edges") { REQUIRE(builder.num_edges() == 0); }

        WHEN("adding 5 nodes")
        {
            std::vector<Graph::Node> nodes;
            for (auto i : range(5)) {
                nodes.push_back(builder.add_node());
            }

            THEN("it should contain 5 nodes") { REQUIRE(builder.num_nodes() == 5); }

            THEN("it should contain no edges") { REQUIRE(builder.num_edges() == 0); }
        }

        WHEN("adding 5 nodes and 4 edges")
        {
            std::vector<Graph::Node> nodes;
            for (auto i : range(5)) {
                nodes.push_back(builder.add_node());
            }

            for (auto i : range(1ul, builder.num_nodes())) {
                builder.add_edge(nodes[i - 1], nodes[i]);
            }

            THEN("it should contain 5 nodes") { REQUIRE(builder.num_nodes() == 5); }

            THEN("it should contain 4 edges") { REQUIRE(builder.num_edges() == 4); }
        }
    }
}

SCENARIO("graph classes")
{
    GIVEN("a cycle")
    {
        auto g = cycle<Net>(5);
        THEN("it should have 5 nodes") { REQUIRE(g.num_nodes() == 5); }
        THEN("it should have 5 edges") { REQUIRE(g.num_edges() == 5); }

        THEN("the edges should connect the nodes in a cycle")
        {
            for (auto e : g.edges()) {
                auto u = g.src(e);
                auto v = g.snk(e);
                REQUIRE((g.node_id(u) + 1) % g.num_nodes() == g.node_id(v));
            }
        }

        for (auto u : g.nodes()) {
            for (auto ev : g.neighs(u)) {
                Net::Edge e = ev.first;
                Net::Node v = ev.second;
                Net::Node a, b;
                std::tie(a, b) = g.enodes(e);
                REQUIRE((a == u || a == v));
                REQUIRE((b == u || b == v));
            }
        }
    }

    GIVEN("a complete bipartite graph")
    {
        auto g = complete_bipartite<Net>(3, 4);
        REQUIRE(g.num_nodes() == 7);
        REQUIRE(g.num_edges() == 3 * 4);
        for (auto e : g.edges()) {
            REQUIRE(g.node_id(g.src(e)) < 3);
            REQUIRE(g.node_id(g.snk(e)) >= 3);
        }
    }
}

SCENARIO("attributed graph")
{
    struct Gattr {
        int x = {};
    };

    struct Vattr {
        double balance = {};
    };

    struct Eattr {
        double cost = {};
    };

    using Gr = AttributedGraph<Digraph, Gattr, Vattr, Eattr>;

    auto g = peterson<Gr>();
    g->x = 23;
    for (auto u : g.nodes()) {
        g.node(u).balance = +1;
    }
    for (auto e : g.edges()) {
        g.edge(e).cost = 42.0;
    }
}

SCENARIO("biedge_map")
{
    auto net = peterson<Net>();
    Net::biedge_map<int> values(net);

    int i = 0;
    for (auto e : net.edges()) {
        values[net.forward(e)] = i++;
        values[net.backward(e)] = i++;
    }

    for (auto e : net.edges()) {
        REQUIRE(values[net.forward(e)] != values[net.backward(e)]);
    }
}

struct GraphInfo {
    std::string name;
};

std::ostream& operator<<(std::ostream& out, const GraphInfo& info)
{
    fifr::util::pretty_print_struct(out, "G", "name", info.name);
    return out;
}

std::istream& operator>>(std::istream& in, GraphInfo& info)
{
    fifr::util::pretty_read_struct(in, "G", "name", info.name);
    return in;
}

struct NodeInfo {
    double balance;
};

std::ostream& operator<<(std::ostream& out, const NodeInfo& info)
{
    fifr::util::pretty_print_struct(out, "N", "balance", info.balance);
    return out;
}

std::istream& operator>>(std::istream& in, NodeInfo& info)
{
    fifr::util::pretty_read_struct(in, "N", "balance", info.balance);
    return in;
}

struct EdgeInfo {
    double flow;
    double weight;
};

std::ostream& operator<<(std::ostream& out, const EdgeInfo& info)
{
    fifr::util::pretty_print_struct(out, "E", "flow", info.flow, "weight", info.weight);
    return out;
}

std::istream& operator>>(std::istream& in, EdgeInfo& info)
{
    fifr::util::pretty_read_struct(in, "E", "flow", info.flow, "weight", info.weight);
    return in;
}

SCENARIO("pretty-print graph")
{
    GIVEN("some graph")
    {
        auto g = peterson<Net>();

        WHEN("writing and reading the nodes")
        {
            for (auto u : g.nodes()) {
                std::ostringstream out;
                out << u;
                std::istringstream in(out.str());
                Digraph::Node v;
                in >> v;
                REQUIRE(u == v);
            }

            for (auto e : g.edges()) {
                std::ostringstream out;
                out << g.backward(e) << " " << g.forward(e);
                std::istringstream in(out.str());
                Digraph::Edge f1, f2;
                in >> f1 >> f2;
                REQUIRE(e == f1);
                REQUIRE(e == f2);
            }
        }

        WHEN("writing and reading the graph")
        {
            std::ostringstream out;
            out << g;
            std::istringstream in(out.str());
            Digraph h;
            in >> h;

            THEN("the two graphs should be identical")
            {
                REQUIRE(g.num_nodes() == h.num_nodes());
                REQUIRE(g.num_edges() == h.num_edges());

                for (auto e : g.edges()) {
                    auto f = h.id2edge(g.edge_id(e));
                    REQUIRE(g.node_id(g.src(e)) == h.node_id(h.src(e)));
                    REQUIRE(g.node_id(g.snk(e)) == h.node_id(h.snk(e)));
                }
            }
        }
    }

    GIVEN("an attributed graph")
    {
        using G = AttributedGraph<Net, GraphInfo, NodeInfo, EdgeInfo>;
        auto g = peterson<G>();

        g->name = "peterson";

        for (auto u : g.nodes()) {
            g[u].balance = g.node_id(u);
        }
        for (auto e : g.edges()) {
            g[e].weight = g.edge_id(e);
            g[e].flow = -static_cast<double>(g.edge_id(e));
        }

        WHEN("writing and reading the graph")
        {
            std::ostringstream out;
            out << g;
            std::istringstream in(out.str());
            G h;
            in >> h;

            for (auto u : h.nodes()) {
                REQUIRE(h[u].balance == h.node_id(u));
            }

            for (auto e : h.edges()) {
                REQUIRE(h[e].weight == h.edge_id(e));
                REQUIRE(h[e].flow == -static_cast<double>(h.edge_id(e)));
            }
        }
    }
}

Added 3rdparty/graph/tests/test_main.cxx.







































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*
 * Copyright (c) 2016 Frank Fischer <frank-fischer@shadow-soft.de>
 *
 * This program is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see  <http://www.gnu.org/licenses/>
 */

#define CATCH_CONFIG_MAIN
#include "catch.hpp"

Added 3rdparty/graph/tests/test_vecgraph.cxx.



























































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
/*
 * Copyright (c) 2024 Frank Fischer <frank-fischer@shadow-soft.de>
 *
 * This program is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see  <http://www.gnu.org/licenses/>
 */

#include "catch.hpp"

#include <fifr/graph/Classes.hxx>
#include <fifr/graph/VecGraph.hxx>

using namespace fifr::graph;

SCENARIO("VecGraph")
{
    GIVEN("An empty graph")
    {
        VecGraph<> g;

        THEN("it should contain no nodes")
        {
            REQUIRE(g.num_nodes() == 0);
            for (auto u : g.nodes()) {
                REQUIRE(false);
            }
        }

        THEN("it should contain no edges")
        {
            REQUIRE(g.num_edges() == 0);
            for (auto u : g.edges()) {
                REQUIRE(false);
            }
        }

        THEN("it should iterator over incident edges")
        {
            for (auto u : g.nodes()) {
                for (auto [e, v] : g.neighs(u)) {
                    (void)e;
                    REQUIRE(false);
                }
            }
        }

        THEN("it should iterate over incoming edges")
        {
            for (auto u : g.nodes()) {
                for (auto [e, v] : g.in_edges(u)) {
                    (void)e;
                    REQUIRE(false);
                }
            }
        }

        THEN("it should iterate over outgoing edges")
        {
            for (auto u : g.nodes()) {
                for (auto [e, v] : g.out_edges(u)) {
                    (void)e;
                    REQUIRE(false);
                }
            }
        }
    }

    GIVEN("some graph")
    {
        for (auto& g : {cycle<VecGraph<>>(7)}) {
            for (auto u : g.nodes()) {
                for (auto [e, v] : g.out_edges(u)) {
                    REQUIRE(u == g.src(e));
                    REQUIRE(v == g.snk(e));
                }
                for (auto [e, v] : g.in_edges(u)) {
                    REQUIRE(u == g.snk(e));
                    REQUIRE(v == g.src(e));
                }
            }
        }
    }
}

Added 3rdparty/util/CMakeLists.txt.























































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
cmake_minimum_required(VERSION 3.12)

project(
  fifrutil
  VERSION 0.1.0
  LANGUAGES CXX)

set(CMAKE_CXX_STANDARD 17)

add_subdirectory(src/fifr/util)

# Enable testing if this is toplevel.
if ( BUILD_TESTING AND (CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME) )
  enable_testing()
  add_subdirectory(tests)
endif ()


# package stuff

set(SUPPORTED_COMPONENTS)
if (ZLIB_FOUND)
  set (SUPPORTED_COMPONENTS GZip)
endif ()
if (BZIP2_FOUND)
  set (SUPPORTED_COMPONENTS "${SUPPORTED_COMPONENTS} BZip2")
endif ()

include(CMakePackageConfigHelpers)
write_basic_package_version_file(
  "${CMAKE_CURRENT_BINARY_DIR}/FifrUtil/FifrUtilConfigVersion.cmake"
  VERSION ${fifrutil_VERSION}
  COMPATIBILITY SameMajorVersion
  )

configure_file(cmake/FifrUtilConfig.cmake
  "${CMAKE_CURRENT_BINARY_DIR}/FifrUtil/FifrUtilConfig.cmake"
  @ONLY)

set(ConfigPackageLocation lib/cmake/FifrUtil)
export(
  EXPORT FifrUtilTargets
  FILE "${CMAKE_CURRENT_BINARY_DIR}/FifrUtil/FifrUtilTargets.cmake"
  NAMESPACE Fifr::
  )
install(EXPORT FifrUtilTargets
  FILE FifrUtilTargets.cmake
  NAMESPACE Fifr::
  DESTINATION ${ConfigPackageLocation}
  )
install(
  FILES
  "${CMAKE_CURRENT_BINARY_DIR}/FifrUtil/FifrUtilConfig.cmake"
  "${CMAKE_CURRENT_BINARY_DIR}/FifrUtil/FifrUtilConfigVersion.cmake"
  DESTINATION ${ConfigPackageLocation}
  COMPONENT
  devel
  )

get_directory_property(hasParent PARENT_DIRECTORY)
if (ZLIB_FOUND)
  export(
    EXPORT FifrUtilGZipTargets
    FILE "${CMAKE_CURRENT_BINARY_DIR}/FifrUtil/FifrUtilGZipTargets.cmake"
    NAMESPACE Fifr::Util::
    )
  install(EXPORT FifrUtilGZipTargets
    FILE FifrUtilGZipTargets.cmake
    NAMESPACE Fifr::Util::
    DESTINATION ${ConfigPackageLocation}
    )
  if (hasParent)
    set(FifrUtil_GZip_FOUND TRUE PARENT_SCOPE)
  endif ()
endif ()

if (BZIP2_FOUND)
  export(
    EXPORT FifrUtilBZip2Targets
    FILE "${CMAKE_CURRENT_BINARY_DIR}/FifrUtil/FifrUtilBZip2Targets.cmake"
    NAMESPACE Fifr::Util::
    )
  install(EXPORT FifrUtilBZip2Targets
    FILE FifrUtilBZip2Targets.cmake
    NAMESPACE Fifr::Util::
    DESTINATION ${ConfigPackageLocation}
    )
  if (hasParent)
    set(FifrUtil_BZip2_FOUND TRUE PARENT_SCOPE)
  endif ()
endif ()

Added 3rdparty/util/Doxyfile.























































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
# Doxyfile 1.8.9.1

# This file describes the settings to be used by the documentation system
# doxygen (www.doxygen.org) for a project.
#
# All text after a double hash (##) is considered a comment and is placed in
# front of the TAG it is preceding.
#
# All text after a single hash (#) is considered a comment and will be ignored.
# The format is:
# TAG = value [value, ...]
# For lists, items can also be appended using:
# TAG += value [value, ...]
# Values that contain spaces should be placed between quotes (\" \").

#---------------------------------------------------------------------------
# Project related configuration options
#---------------------------------------------------------------------------

# This tag specifies the encoding used for all characters in the config file
# that follow. The default is UTF-8 which is also the encoding used for all text
# before the first occurrence of this tag. Doxygen uses libiconv (or the iconv
# built into libc) for the transcoding. See http://www.gnu.org/software/libiconv
# for the list of possible encodings.
# The default value is: UTF-8.

DOXYFILE_ENCODING      = UTF-8

# The PROJECT_NAME tag is a single word (or a sequence of words surrounded by
# double-quotes, unless you are using Doxywizard) that should identify the
# project for which the documentation is generated. This name is used in the
# title of most generated pages and in a few other places.
# The default value is: My Project.

PROJECT_NAME           = "fifr::util"

# The PROJECT_NUMBER tag can be used to enter a project or revision number. This
# could be handy for archiving the generated documentation or if some version
# control system is used.

PROJECT_NUMBER         =

# Using the PROJECT_BRIEF tag one can provide an optional one line description
# for a project that appears at the top of each page and should give viewer a
# quick idea about the purpose of the project. Keep the description short.

PROJECT_BRIEF          =

# With the PROJECT_LOGO tag one can specify a logo or an icon that is included
# in the documentation. The maximum height of the logo should not exceed 55
# pixels and the maximum width should not exceed 200 pixels. Doxygen will copy
# the logo to the output directory.

PROJECT_LOGO           =

# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) path
# into which the generated documentation will be written. If a relative path is
# entered, it will be relative to the location where doxygen was started. If
# left blank the current directory will be used.

OUTPUT_DIRECTORY       = doc

# If the CREATE_SUBDIRS tag is set to YES then doxygen will create 4096 sub-
# directories (in 2 levels) under the output directory of each output format and
# will distribute the generated files over these directories. Enabling this
# option can be useful when feeding doxygen a huge amount of source files, where
# putting all generated files in the same directory would otherwise causes
# performance problems for the file system.
# The default value is: NO.

CREATE_SUBDIRS         = NO

# If the ALLOW_UNICODE_NAMES tag is set to YES, doxygen will allow non-ASCII
# characters to appear in the names of generated files. If set to NO, non-ASCII
# characters will be escaped, for example _xE3_x81_x84 will be used for Unicode
# U+3044.
# The default value is: NO.

ALLOW_UNICODE_NAMES    = NO

# The OUTPUT_LANGUAGE tag is used to specify the language in which all
# documentation generated by doxygen is written. Doxygen will use this
# information to generate all constant output in the proper language.
# Possible values are: Afrikaans, Arabic, Armenian, Brazilian, Catalan, Chinese,
# Chinese-Traditional, Croatian, Czech, Danish, Dutch, English (United States),
# Esperanto, Farsi (Persian), Finnish, French, German, Greek, Hungarian,
# Indonesian, Italian, Japanese, Japanese-en (Japanese with English messages),
# Korean, Korean-en (Korean with English messages), Latvian, Lithuanian,
# Macedonian, Norwegian, Persian (Farsi), Polish, Portuguese, Romanian, Russian,
# Serbian, Serbian-Cyrillic, Slovak, Slovene, Spanish, Swedish, Turkish,
# Ukrainian and Vietnamese.
# The default value is: English.

OUTPUT_LANGUAGE        = English

# If the BRIEF_MEMBER_DESC tag is set to YES, doxygen will include brief member
# descriptions after the members that are listed in the file and class
# documentation (similar to Javadoc). Set to NO to disable this.
# The default value is: YES.

BRIEF_MEMBER_DESC      = YES

# If the REPEAT_BRIEF tag is set to YES, doxygen will prepend the brief
# description of a member or function before the detailed description
#
# Note: If both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the
# brief descriptions will be completely suppressed.
# The default value is: YES.

REPEAT_BRIEF           = YES

# This tag implements a quasi-intelligent brief description abbreviator that is
# used to form the text in various listings. Each string in this list, if found
# as the leading text of the brief description, will be stripped from the text
# and the result, after processing the whole list, is used as the annotated
# text. Otherwise, the brief description is used as-is. If left blank, the
# following values are used ($name is automatically replaced with the name of
# the entity):The $name class, The $name widget, The $name file, is, provides,
# specifies, contains, represents, a, an and the.

ABBREVIATE_BRIEF       =

# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then
# doxygen will generate a detailed section even if there is only a brief
# description.
# The default value is: NO.

ALWAYS_DETAILED_SEC    = NO

# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all
# inherited members of a class in the documentation of that class as if those
# members were ordinary class members. Constructors, destructors and assignment
# operators of the base classes will not be shown.
# The default value is: NO.

INLINE_INHERITED_MEMB  = NO

# If the FULL_PATH_NAMES tag is set to YES, doxygen will prepend the full path
# before files name in the file list and in the header files. If set to NO the
# shortest path that makes the file name unique will be used
# The default value is: YES.

FULL_PATH_NAMES        = YES

# The STRIP_FROM_PATH tag can be used to strip a user-defined part of the path.
# Stripping is only done if one of the specified strings matches the left-hand
# part of the path. The tag can be used to show relative paths in the file list.
# If left blank the directory from which doxygen is run is used as the path to
# strip.
#
# Note that you can specify absolute paths here, but also relative paths, which
# will be relative from the directory where doxygen is started.
# This tag requires that the tag FULL_PATH_NAMES is set to YES.

STRIP_FROM_PATH        =

# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of the
# path mentioned in the documentation of a class, which tells the reader which
# header file to include in order to use a class. If left blank only the name of
# the header file containing the class definition is used. Otherwise one should
# specify the list of include paths that are normally passed to the compiler
# using the -I flag.

STRIP_FROM_INC_PATH    =

# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter (but
# less readable) file names. This can be useful is your file systems doesn't
# support long names like on DOS, Mac, or CD-ROM.
# The default value is: NO.

SHORT_NAMES            = YES

# If the JAVADOC_AUTOBRIEF tag is set to YES then doxygen will interpret the
# first line (until the first dot) of a Javadoc-style comment as the brief
# description. If set to NO, the Javadoc-style will behave just like regular Qt-
# style comments (thus requiring an explicit @brief command for a brief
# description.)
# The default value is: NO.

JAVADOC_AUTOBRIEF      = YES

# If the QT_AUTOBRIEF tag is set to YES then doxygen will interpret the first
# line (until the first dot) of a Qt-style comment as the brief description. If
# set to NO, the Qt-style will behave just like regular Qt-style comments (thus
# requiring an explicit \brief command for a brief description.)
# The default value is: NO.

QT_AUTOBRIEF           = YES

# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make doxygen treat a
# multi-line C++ special comment block (i.e. a block of //! or /// comments) as
# a brief description. This used to be the default behavior. The new default is
# to treat a multi-line C++ comment block as a detailed description. Set this
# tag to YES if you prefer the old behavior instead.
#
# Note that setting this tag to YES also means that rational rose comments are
# not recognized any more.
# The default value is: NO.

MULTILINE_CPP_IS_BRIEF = NO

# If the INHERIT_DOCS tag is set to YES then an undocumented member inherits the
# documentation from any documented member that it re-implements.
# The default value is: YES.

INHERIT_DOCS           = YES

# If the SEPARATE_MEMBER_PAGES tag is set to YES then doxygen will produce a new
# page for each member. If set to NO, the documentation of a member will be part
# of the file/class/namespace that contains it.
# The default value is: NO.

SEPARATE_MEMBER_PAGES  = NO

# The TAB_SIZE tag can be used to set the number of spaces in a tab. Doxygen
# uses this value to replace tabs by spaces in code fragments.
# Minimum value: 1, maximum value: 16, default value: 4.

TAB_SIZE               = 4

# This tag can be used to specify a number of aliases that act as commands in
# the documentation. An alias has the form:
# name=value
# For example adding
# "sideeffect=@par Side Effects:\n"
# will allow you to put the command \sideeffect (or @sideeffect) in the
# documentation, which will result in a user-defined paragraph with heading
# "Side Effects:". You can put \n's in the value part of an alias to insert
# newlines.

ALIASES                =

# This tag can be used to specify a number of word-keyword mappings (TCL only).
# A mapping has the form "name=value". For example adding "class=itcl::class"
# will allow you to use the command class in the itcl::class meaning.

TCL_SUBST              =

# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources
# only. Doxygen will then generate output that is more tailored for C. For
# instance, some of the names that are used will be different. The list of all
# members will be omitted, etc.
# The default value is: NO.

OPTIMIZE_OUTPUT_FOR_C  = YES

# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java or
# Python sources only. Doxygen will then generate output that is more tailored
# for that language. For instance, namespaces will be presented as packages,
# qualified scopes will look different, etc.
# The default value is: NO.

OPTIMIZE_OUTPUT_JAVA   = NO

# Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran
# sources. Doxygen will then generate output that is tailored for Fortran.
# The default value is: NO.

OPTIMIZE_FOR_FORTRAN   = NO

# Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL
# sources. Doxygen will then generate output that is tailored for VHDL.
# The default value is: NO.

OPTIMIZE_OUTPUT_VHDL   = NO

# Doxygen selects the parser to use depending on the extension of the files it
# parses. With this tag you can assign which parser to use for a given
# extension. Doxygen has a built-in mapping, but you can override or extend it
# using this tag. The format is ext=language, where ext is a file extension, and
# language is one of the parsers supported by doxygen: IDL, Java, Javascript,
# C#, C, C++, D, PHP, Objective-C, Python, Fortran (fixed format Fortran:
# FortranFixed, free formatted Fortran: FortranFree, unknown formatted Fortran:
# Fortran. In the later case the parser tries to guess whether the code is fixed
# or free formatted code, this is the default for Fortran type files), VHDL. For
# instance to make doxygen treat .inc files as Fortran files (default is PHP),
# and .f files as C (default is Fortran), use: inc=Fortran f=C.
#
# Note: For files without extension you can use no_extension as a placeholder.
#
# Note that for custom extensions you also need to set FILE_PATTERNS otherwise
# the files are not read by doxygen.

EXTENSION_MAPPING      =

# If the MARKDOWN_SUPPORT tag is enabled then doxygen pre-processes all comments
# according to the Markdown format, which allows for more readable
# documentation. See http://daringfireball.net/projects/markdown/ for details.
# The output of markdown processing is further processed by doxygen, so you can
# mix doxygen, HTML, and XML commands with Markdown formatting. Disable only in
# case of backward compatibilities issues.
# The default value is: YES.

MARKDOWN_SUPPORT       = YES

# When enabled doxygen tries to link words that correspond to documented
# classes, or namespaces to their corresponding documentation. Such a link can
# be prevented in individual cases by putting a % sign in front of the word or
# globally by setting AUTOLINK_SUPPORT to NO.
# The default value is: YES.

AUTOLINK_SUPPORT       = YES

# If you use STL classes (i.e. std::string, std::vector, etc.) but do not want
# to include (a tag file for) the STL sources as input, then you should set this
# tag to YES in order to let doxygen match functions declarations and
# definitions whose arguments contain STL classes (e.g. func(std::string);
# versus func(std::string) {}). This also make the inheritance and collaboration
# diagrams that involve STL classes more complete and accurate.
# The default value is: NO.

BUILTIN_STL_SUPPORT    = YES

# If you use Microsoft's C++/CLI language, you should set this option to YES to
# enable parsing support.
# The default value is: NO.

CPP_CLI_SUPPORT        = NO

# Set the SIP_SUPPORT tag to YES if your project consists of sip (see:
# http://www.riverbankcomputing.co.uk/software/sip/intro) sources only. Doxygen
# will parse them like normal C++ but will assume all classes use public instead
# of private inheritance when no explicit protection keyword is present.
# The default value is: NO.

SIP_SUPPORT            = NO

# For Microsoft's IDL there are propget and propput attributes to indicate
# getter and setter methods for a property. Setting this option to YES will make
# doxygen to replace the get and set methods by a property in the documentation.
# This will only work if the methods are indeed getting or setting a simple
# type. If this is not the case, or you want to show the methods anyway, you
# should set this option to NO.
# The default value is: YES.

IDL_PROPERTY_SUPPORT   = YES

# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC
# tag is set to YES then doxygen will reuse the documentation of the first
# member in the group (if any) for the other members of the group. By default
# all members of a group must be documented explicitly.
# The default value is: NO.

DISTRIBUTE_GROUP_DOC   = NO

# Set the SUBGROUPING tag to YES to allow class member groups of the same type
# (for instance a group of public functions) to be put as a subgroup of that
# type (e.g. under the Public Functions section). Set it to NO to prevent
# subgrouping. Alternatively, this can be done per class using the
# \nosubgrouping command.
# The default value is: YES.

SUBGROUPING            = YES

# When the INLINE_GROUPED_CLASSES tag is set to YES, classes, structs and unions
# are shown inside the group in which they are included (e.g. using \ingroup)
# instead of on a separate page (for HTML and Man pages) or section (for LaTeX
# and RTF).
#
# Note that this feature does not work in combination with
# SEPARATE_MEMBER_PAGES.
# The default value is: NO.

INLINE_GROUPED_CLASSES = NO

# When the INLINE_SIMPLE_STRUCTS tag is set to YES, structs, classes, and unions
# with only public data fields or simple typedef fields will be shown inline in
# the documentation of the scope in which they are defined (i.e. file,
# namespace, or group documentation), provided this scope is documented. If set
# to NO, structs, classes, and unions are shown on a separate page (for HTML and
# Man pages) or section (for LaTeX and RTF).
# The default value is: NO.

INLINE_SIMPLE_STRUCTS  = NO

# When TYPEDEF_HIDES_STRUCT tag is enabled, a typedef of a struct, union, or
# enum is documented as struct, union, or enum with the name of the typedef. So
# typedef struct TypeS {} TypeT, will appear in the documentation as a struct
# with name TypeT. When disabled the typedef will appear as a member of a file,
# namespace, or class. And the struct will be named TypeS. This can typically be
# useful for C code in case the coding convention dictates that all compound
# types are typedef'ed and only the typedef is referenced, never the tag name.
# The default value is: NO.

TYPEDEF_HIDES_STRUCT   = NO

# The size of the symbol lookup cache can be set using LOOKUP_CACHE_SIZE. This
# cache is used to resolve symbols given their name and scope. Since this can be
# an expensive process and often the same symbol appears multiple times in the
# code, doxygen keeps a cache of pre-resolved symbols. If the cache is too small
# doxygen will become slower. If the cache is too large, memory is wasted. The
# cache size is given by this formula: 2^(16+LOOKUP_CACHE_SIZE). The valid range
# is 0..9, the default is 0, corresponding to a cache size of 2^16=65536
# symbols. At the end of a run doxygen will report the cache usage and suggest
# the optimal cache size from a speed point of view.
# Minimum value: 0, maximum value: 9, default value: 0.

LOOKUP_CACHE_SIZE      = 0

#---------------------------------------------------------------------------
# Build related configuration options
#---------------------------------------------------------------------------

# If the EXTRACT_ALL tag is set to YES, doxygen will assume all entities in
# documentation are documented, even if no documentation was available. Private
# class members and static file members will be hidden unless the
# EXTRACT_PRIVATE respectively EXTRACT_STATIC tags are set to YES.
# Note: This will also disable the warnings about undocumented members that are
# normally produced when WARNINGS is set to YES.
# The default value is: NO.

EXTRACT_ALL            = NO

# If the EXTRACT_PRIVATE tag is set to YES, all private members of a class will
# be included in the documentation.
# The default value is: NO.

EXTRACT_PRIVATE        = NO

# If the EXTRACT_PACKAGE tag is set to YES, all members with package or internal
# scope will be included in the documentation.
# The default value is: NO.

EXTRACT_PACKAGE        = NO

# If the EXTRACT_STATIC tag is set to YES, all static members of a file will be
# included in the documentation.
# The default value is: NO.

EXTRACT_STATIC         = YES

# If the EXTRACT_LOCAL_CLASSES tag is set to YES, classes (and structs) defined
# locally in source files will be included in the documentation. If set to NO,
# only classes defined in header files are included. Does not have any effect
# for Java sources.
# The default value is: YES.

EXTRACT_LOCAL_CLASSES  = YES

# This flag is only useful for Objective-C code. If set to YES, local methods,
# which are defined in the implementation section but not in the interface are
# included in the documentation. If set to NO, only methods in the interface are
# included.
# The default value is: NO.

EXTRACT_LOCAL_METHODS  = NO

# If this flag is set to YES, the members of anonymous namespaces will be
# extracted and appear in the documentation as a namespace called
# 'anonymous_namespace{file}', where file will be replaced with the base name of
# the file that contains the anonymous namespace. By default anonymous namespace
# are hidden.
# The default value is: NO.

EXTRACT_ANON_NSPACES   = NO

# If the HIDE_UNDOC_MEMBERS tag is set to YES, doxygen will hide all
# undocumented members inside documented classes or files. If set to NO these
# members will be included in the various overviews, but no documentation
# section is generated. This option has no effect if EXTRACT_ALL is enabled.
# The default value is: NO.

HIDE_UNDOC_MEMBERS     = NO

# If the HIDE_UNDOC_CLASSES tag is set to YES, doxygen will hide all
# undocumented classes that are normally visible in the class hierarchy. If set
# to NO, these classes will be included in the various overviews. This option
# has no effect if EXTRACT_ALL is enabled.
# The default value is: NO.

HIDE_UNDOC_CLASSES     = YES

# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, doxygen will hide all friend
# (class|struct|union) declarations. If set to NO, these declarations will be
# included in the documentation.
# The default value is: NO.

HIDE_FRIEND_COMPOUNDS  = NO

# If the HIDE_IN_BODY_DOCS tag is set to YES, doxygen will hide any
# documentation blocks found inside the body of a function. If set to NO, these
# blocks will be appended to the function's detailed documentation block.
# The default value is: NO.

HIDE_IN_BODY_DOCS      = NO

# The INTERNAL_DOCS tag determines if documentation that is typed after a
# \internal command is included. If the tag is set to NO then the documentation
# will be excluded. Set it to YES to include the internal documentation.
# The default value is: NO.

INTERNAL_DOCS          = NO

# If the CASE_SENSE_NAMES tag is set to NO then doxygen will only generate file
# names in lower-case letters. If set to YES, upper-case letters are also
# allowed. This is useful if you have classes or files whose names only differ
# in case and if your file system supports case sensitive file names. Windows
# and Mac users are advised to set this option to NO.
# The default value is: system dependent.

CASE_SENSE_NAMES       = YES

# If the HIDE_SCOPE_NAMES tag is set to NO then doxygen will show members with
# their full class and namespace scopes in the documentation. If set to YES, the
# scope will be hidden.
# The default value is: NO.

HIDE_SCOPE_NAMES       = NO

# If the HIDE_COMPOUND_REFERENCE tag is set to NO (default) then doxygen will
# append additional text to a page's title, such as Class Reference. If set to
# YES the compound reference will be hidden.
# The default value is: NO.

HIDE_COMPOUND_REFERENCE= NO

# If the SHOW_INCLUDE_FILES tag is set to YES then doxygen will put a list of
# the files that are included by a file in the documentation of that file.
# The default value is: YES.

SHOW_INCLUDE_FILES     = YES

# If the SHOW_GROUPED_MEMB_INC tag is set to YES then Doxygen will add for each
# grouped member an include statement to the documentation, telling the reader
# which file to include in order to use the member.
# The default value is: NO.

SHOW_GROUPED_MEMB_INC  = NO

# If the FORCE_LOCAL_INCLUDES tag is set to YES then doxygen will list include
# files with double quotes in the documentation rather than with sharp brackets.
# The default value is: NO.

FORCE_LOCAL_INCLUDES   = NO

# If the INLINE_INFO tag is set to YES then a tag [inline] is inserted in the
# documentation for inline members.
# The default value is: YES.

INLINE_INFO            = YES

# If the SORT_MEMBER_DOCS tag is set to YES then doxygen will sort the
# (detailed) documentation of file and class members alphabetically by member
# name. If set to NO, the members will appear in declaration order.
# The default value is: YES.

SORT_MEMBER_DOCS       = YES

# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the brief
# descriptions of file, namespace and class members alphabetically by member
# name. If set to NO, the members will appear in declaration order. Note that
# this will also influence the order of the classes in the class list.
# The default value is: NO.

SORT_BRIEF_DOCS        = NO

# If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen will sort the
# (brief and detailed) documentation of class members so that constructors and
# destructors are listed first. If set to NO the constructors will appear in the
# respective orders defined by SORT_BRIEF_DOCS and SORT_MEMBER_DOCS.
# Note: If SORT_BRIEF_DOCS is set to NO this option is ignored for sorting brief
# member documentation.
# Note: If SORT_MEMBER_DOCS is set to NO this option is ignored for sorting
# detailed member documentation.
# The default value is: NO.

SORT_MEMBERS_CTORS_1ST = NO

# If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the hierarchy
# of group names into alphabetical order. If set to NO the group names will
# appear in their defined order.
# The default value is: NO.

SORT_GROUP_NAMES       = NO

# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be sorted by
# fully-qualified names, including namespaces. If set to NO, the class list will
# be sorted only by class name, not including the namespace part.
# Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES.
# Note: This option applies only to the class list, not to the alphabetical
# list.
# The default value is: NO.

SORT_BY_SCOPE_NAME     = NO

# If the STRICT_PROTO_MATCHING option is enabled and doxygen fails to do proper
# type resolution of all parameters of a function it will reject a match between
# the prototype and the implementation of a member function even if there is
# only one candidate or it is obvious which candidate to choose by doing a
# simple string match. By disabling STRICT_PROTO_MATCHING doxygen will still
# accept a match between prototype and implementation in such cases.
# The default value is: NO.

STRICT_PROTO_MATCHING  = NO

# The GENERATE_TODOLIST tag can be used to enable (YES) or disable (NO) the todo
# list. This list is created by putting \todo commands in the documentation.
# The default value is: YES.

GENERATE_TODOLIST      = YES

# The GENERATE_TESTLIST tag can be used to enable (YES) or disable (NO) the test
# list. This list is created by putting \test commands in the documentation.
# The default value is: YES.

GENERATE_TESTLIST      = YES

# The GENERATE_BUGLIST tag can be used to enable (YES) or disable (NO) the bug
# list. This list is created by putting \bug commands in the documentation.
# The default value is: YES.

GENERATE_BUGLIST       = YES

# The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or disable (NO)
# the deprecated list. This list is created by putting \deprecated commands in
# the documentation.
# The default value is: YES.

GENERATE_DEPRECATEDLIST= YES

# The ENABLED_SECTIONS tag can be used to enable conditional documentation
# sections, marked by \if <section_label> ... \endif and \cond <section_label>
# ... \endcond blocks.

ENABLED_SECTIONS       =

# The MAX_INITIALIZER_LINES tag determines the maximum number of lines that the
# initial value of a variable or macro / define can have for it to appear in the
# documentation. If the initializer consists of more lines than specified here
# it will be hidden. Use a value of 0 to hide initializers completely. The
# appearance of the value of individual variables and macros / defines can be
# controlled using \showinitializer or \hideinitializer command in the
# documentation regardless of this setting.
# Minimum value: 0, maximum value: 10000, default value: 30.

MAX_INITIALIZER_LINES  = 30

# Set the SHOW_USED_FILES tag to NO to disable the list of files generated at
# the bottom of the documentation of classes and structs. If set to YES, the
# list will mention the files that were used to generate the documentation.
# The default value is: YES.

SHOW_USED_FILES        = YES

# Set the SHOW_FILES tag to NO to disable the generation of the Files page. This
# will remove the Files entry from the Quick Index and from the Folder Tree View
# (if specified).
# The default value is: YES.

SHOW_FILES             = YES

# Set the SHOW_NAMESPACES tag to NO to disable the generation of the Namespaces
# page. This will remove the Namespaces entry from the Quick Index and from the
# Folder Tree View (if specified).
# The default value is: YES.

SHOW_NAMESPACES        = YES

# The FILE_VERSION_FILTER tag can be used to specify a program or script that
# doxygen should invoke to get the current version for each file (typically from
# the version control system). Doxygen will invoke the program by executing (via
# popen()) the command command input-file, where command is the value of the
# FILE_VERSION_FILTER tag, and input-file is the name of an input file provided
# by doxygen. Whatever the program writes to standard output is used as the file
# version. For an example see the documentation.

FILE_VERSION_FILTER    =

# The LAYOUT_FILE tag can be used to specify a layout file which will be parsed
# by doxygen. The layout file controls the global structure of the generated
# output files in an output format independent way. To create the layout file
# that represents doxygen's defaults, run doxygen with the -l option. You can
# optionally specify a file name after the option, if omitted DoxygenLayout.xml
# will be used as the name of the layout file.
#
# Note that if you run doxygen from a directory containing a file called
# DoxygenLayout.xml, doxygen will parse it automatically even if the LAYOUT_FILE
# tag is left empty.

LAYOUT_FILE            =

# The CITE_BIB_FILES tag can be used to specify one or more bib files containing
# the reference definitions. This must be a list of .bib files. The .bib
# extension is automatically appended if omitted. This requires the bibtex tool
# to be installed. See also http://en.wikipedia.org/wiki/BibTeX for more info.
# For LaTeX the style of the bibliography can be controlled using
# LATEX_BIB_STYLE. To use this feature you need bibtex and perl available in the
# search path. See also \cite for info how to create references.

CITE_BIB_FILES         = doc/refs.bib

#---------------------------------------------------------------------------
# Configuration options related to warning and progress messages
#---------------------------------------------------------------------------

# The QUIET tag can be used to turn on/off the messages that are generated to
# standard output by doxygen. If QUIET is set to YES this implies that the
# messages are off.
# The default value is: NO.

QUIET                  = NO

# The WARNINGS tag can be used to turn on/off the warning messages that are
# generated to standard error (stderr) by doxygen. If WARNINGS is set to YES
# this implies that the warnings are on.
#
# Tip: Turn warnings on while writing the documentation.
# The default value is: YES.

WARNINGS               = YES

# If the WARN_IF_UNDOCUMENTED tag is set to YES then doxygen will generate
# warnings for undocumented members. If EXTRACT_ALL is set to YES then this flag
# will automatically be disabled.
# The default value is: YES.

WARN_IF_UNDOCUMENTED   = YES

# If the WARN_IF_DOC_ERROR tag is set to YES, doxygen will generate warnings for
# potential errors in the documentation, such as not documenting some parameters
# in a documented function, or documenting parameters that don't exist or using
# markup commands wrongly.
# The default value is: YES.

WARN_IF_DOC_ERROR      = YES

# This WARN_NO_PARAMDOC option can be enabled to get warnings for functions that
# are documented, but have no documentation for their parameters or return
# value. If set to NO, doxygen will only warn about wrong or incomplete
# parameter documentation, but not about the absence of documentation.
# The default value is: NO.

WARN_NO_PARAMDOC       = NO

# The WARN_FORMAT tag determines the format of the warning messages that doxygen
# can produce. The string should contain the $file, $line, and $text tags, which
# will be replaced by the file and line number from which the warning originated
# and the warning text. Optionally the format may contain $version, which will
# be replaced by the version of the file (if it could be obtained via
# FILE_VERSION_FILTER)
# The default value is: $file:$line: $text.

WARN_FORMAT            = "$file:$line: $text"

# The WARN_LOGFILE tag can be used to specify a file to which warning and error
# messages should be written. If left blank the output is written to standard
# error (stderr).

WARN_LOGFILE           =

#---------------------------------------------------------------------------
# Configuration options related to the input files
#---------------------------------------------------------------------------

# The INPUT tag is used to specify the files and/or directories that contain
# documented source files. You may enter file names like myfile.cpp or
# directories like /usr/src/myproject. Separate the files or directories with
# spaces.
# Note: If this tag is empty the current directory is searched.

INPUT                  = README.md src/fifr src/fifr/util

# This tag can be used to specify the character encoding of the source files
# that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses
# libiconv (or the iconv built into libc) for the transcoding. See the libiconv
# documentation (see: http://www.gnu.org/software/libiconv) for the list of
# possible encodings.
# The default value is: UTF-8.

INPUT_ENCODING         = UTF-8

# If the value of the INPUT tag contains directories, you can use the
# FILE_PATTERNS tag to specify one or more wildcard patterns (like *.cpp and
# *.h) to filter out the source-files in the directories. If left blank the
# following patterns are tested:*.c, *.cc, *.cxx, *.cpp, *.c++, *.java, *.ii,
# *.ixx, *.ipp, *.i++, *.inl, *.idl, *.ddl, *.odl, *.h, *.hh, *.hxx, *.hpp,
# *.h++, *.cs, *.d, *.php, *.php4, *.php5, *.phtml, *.inc, *.m, *.markdown,
# *.md, *.mm, *.dox, *.py, *.f90, *.f, *.for, *.tcl, *.vhd, *.vhdl, *.ucf,
# *.qsf, *.as and *.js.

FILE_PATTERNS          =

# The RECURSIVE tag can be used to specify whether or not subdirectories should
# be searched for input files as well.
# The default value is: NO.

RECURSIVE              = NO

# The EXCLUDE tag can be used to specify files and/or directories that should be
# excluded from the INPUT source files. This way you can easily exclude a
# subdirectory from a directory tree whose root is specified with the INPUT tag.
#
# Note that relative paths are relative to the directory from which doxygen is
# run.

EXCLUDE                =

# The EXCLUDE_SYMLINKS tag can be used to select whether or not files or
# directories that are symbolic links (a Unix file system feature) are excluded
# from the input.
# The default value is: NO.

EXCLUDE_SYMLINKS       = NO

# If the value of the INPUT tag contains directories, you can use the
# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude
# certain files from those directories.
#
# Note that the wildcards are matched against the file with absolute path, so to
# exclude all test directories for example use the pattern */test/*

EXCLUDE_PATTERNS       =

# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names
# (namespaces, classes, functions, etc.) that should be excluded from the
# output. The symbol name can be a fully qualified name, a word, or if the
# wildcard * is used, a substring. Examples: ANamespace, AClass,
# AClass::ANamespace, ANamespace::*Test
#
# Note that the wildcards are matched against the file with absolute path, so to
# exclude all test directories use the pattern */test/*

EXCLUDE_SYMBOLS        =

# The EXAMPLE_PATH tag can be used to specify one or more files or directories
# that contain example code fragments that are included (see the \include
# command).

EXAMPLE_PATH           =

# If the value of the EXAMPLE_PATH tag contains directories, you can use the
# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp and
# *.h) to filter out the source-files in the directories. If left blank all
# files are included.

EXAMPLE_PATTERNS       =

# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be
# searched for input files to be used with the \include or \dontinclude commands
# irrespective of the value of the RECURSIVE tag.
# The default value is: NO.

EXAMPLE_RECURSIVE      = NO

# The IMAGE_PATH tag can be used to specify one or more files or directories
# that contain images that are to be included in the documentation (see the
# \image command).

IMAGE_PATH             = doc

# The INPUT_FILTER tag can be used to specify a program that doxygen should
# invoke to filter for each input file. Doxygen will invoke the filter program
# by executing (via popen()) the command:
#
# <filter> <input-file>
#
# where <filter> is the value of the INPUT_FILTER tag, and <input-file> is the
# name of an input file. Doxygen will then use the output that the filter
# program writes to standard output. If FILTER_PATTERNS is specified, this tag
# will be ignored.
#
# Note that the filter must not add or remove lines; it is applied before the
# code is scanned, but not when the output code is generated. If lines are added
# or removed, the anchors will not be placed correctly.

INPUT_FILTER           =

# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern
# basis. Doxygen will compare the file name with each pattern and apply the
# filter if there is a match. The filters are a list of the form: pattern=filter
# (like *.cpp=my_cpp_filter). See INPUT_FILTER for further information on how
# filters are used. If the FILTER_PATTERNS tag is empty or if none of the
# patterns match the file name, INPUT_FILTER is applied.

FILTER_PATTERNS        =

# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using
# INPUT_FILTER) will also be used to filter the input files that are used for
# producing the source files to browse (i.e. when SOURCE_BROWSER is set to YES).
# The default value is: NO.

FILTER_SOURCE_FILES    = NO

# The FILTER_SOURCE_PATTERNS tag can be used to specify source filters per file
# pattern. A pattern will override the setting for FILTER_PATTERN (if any) and
# it is also possible to disable source filtering for a specific pattern using
# *.ext= (so without naming a filter).
# This tag requires that the tag FILTER_SOURCE_FILES is set to YES.

FILTER_SOURCE_PATTERNS =

# If the USE_MDFILE_AS_MAINPAGE tag refers to the name of a markdown file that
# is part of the input, its contents will be placed on the main page
# (index.html). This can be useful if you have a project on for instance GitHub
# and want to reuse the introduction page also for the doxygen output.

USE_MDFILE_AS_MAINPAGE = README.md

#---------------------------------------------------------------------------
# Configuration options related to source browsing
#---------------------------------------------------------------------------

# If the SOURCE_BROWSER tag is set to YES then a list of source files will be
# generated. Documented entities will be cross-referenced with these sources.
#
# Note: To get rid of all source code in the generated output, make sure that
# also VERBATIM_HEADERS is set to NO.
# The default value is: NO.

SOURCE_BROWSER         = NO

# Setting the INLINE_SOURCES tag to YES will include the body of functions,
# classes and enums directly into the documentation.
# The default value is: NO.

INLINE_SOURCES         = NO

# Setting the STRIP_CODE_COMMENTS tag to YES will instruct doxygen to hide any
# special comment blocks from generated source code fragments. Normal C, C++ and
# Fortran comments will always remain visible.
# The default value is: YES.

STRIP_CODE_COMMENTS    = YES

# If the REFERENCED_BY_RELATION tag is set to YES then for each documented
# function all documented functions referencing it will be listed.
# The default value is: NO.

REFERENCED_BY_RELATION = NO

# If the REFERENCES_RELATION tag is set to YES then for each documented function
# all documented entities called/used by that function will be listed.
# The default value is: NO.

REFERENCES_RELATION    = NO

# If the REFERENCES_LINK_SOURCE tag is set to YES and SOURCE_BROWSER tag is set
# to YES then the hyperlinks from functions in REFERENCES_RELATION and
# REFERENCED_BY_RELATION lists will link to the source code. Otherwise they will
# link to the documentation.
# The default value is: YES.

REFERENCES_LINK_SOURCE = YES

# If SOURCE_TOOLTIPS is enabled (the default) then hovering a hyperlink in the
# source code will show a tooltip with additional information such as prototype,
# brief description and links to the definition and documentation. Since this
# will make the HTML file larger and loading of large files a bit slower, you
# can opt to disable this feature.
# The default value is: YES.
# This tag requires that the tag SOURCE_BROWSER is set to YES.

SOURCE_TOOLTIPS        = YES

# If the USE_HTAGS tag is set to YES then the references to source code will
# point to the HTML generated by the htags(1) tool instead of doxygen built-in
# source browser. The htags tool is part of GNU's global source tagging system
# (see http://www.gnu.org/software/global/global.html). You will need version
# 4.8.6 or higher.
#
# To use it do the following:
# - Install the latest version of global
# - Enable SOURCE_BROWSER and USE_HTAGS in the config file
# - Make sure the INPUT points to the root of the source tree
# - Run doxygen as normal
#
# Doxygen will invoke htags (and that will in turn invoke gtags), so these
# tools must be available from the command line (i.e. in the search path).
#
# The result: instead of the source browser generated by doxygen, the links to
# source code will now point to the output of htags.
# The default value is: NO.
# This tag requires that the tag SOURCE_BROWSER is set to YES.

USE_HTAGS              = NO

# If the VERBATIM_HEADERS tag is set the YES then doxygen will generate a
# verbatim copy of the header file for each class for which an include is
# specified. Set to NO to disable this.
# See also: Section \class.
# The default value is: YES.

VERBATIM_HEADERS       = YES

#---------------------------------------------------------------------------
# Configuration options related to the alphabetical class index
#---------------------------------------------------------------------------

# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index of all
# compounds will be generated. Enable this if the project contains a lot of
# classes, structs, unions or interfaces.
# The default value is: YES.

ALPHABETICAL_INDEX     = YES

# The COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns in
# which the alphabetical index list will be split.
# Minimum value: 1, maximum value: 20, default value: 5.
# This tag requires that the tag ALPHABETICAL_INDEX is set to YES.

COLS_IN_ALPHA_INDEX    = 5

# In case all classes in a project start with a common prefix, all classes will
# be put under the same header in the alphabetical index. The IGNORE_PREFIX tag
# can be used to specify a prefix (or a list of prefixes) that should be ignored
# while generating the index headers.
# This tag requires that the tag ALPHABETICAL_INDEX is set to YES.

IGNORE_PREFIX          =

#---------------------------------------------------------------------------
# Configuration options related to the HTML output
#---------------------------------------------------------------------------

# If the GENERATE_HTML tag is set to YES, doxygen will generate HTML output
# The default value is: YES.

GENERATE_HTML          = YES

# The HTML_OUTPUT tag is used to specify where the HTML docs will be put. If a
# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
# it.
# The default directory is: html.
# This tag requires that the tag GENERATE_HTML is set to YES.

HTML_OUTPUT            = html

# The HTML_FILE_EXTENSION tag can be used to specify the file extension for each
# generated HTML page (for example: .htm, .php, .asp).
# The default value is: .html.
# This tag requires that the tag GENERATE_HTML is set to YES.

HTML_FILE_EXTENSION    = .html

# The HTML_HEADER tag can be used to specify a user-defined HTML header file for
# each generated HTML page. If the tag is left blank doxygen will generate a
# standard header.
#
# To get valid HTML the header file that includes any scripts and style sheets
# that doxygen needs, which is dependent on the configuration options used (e.g.
# the setting GENERATE_TREEVIEW). It is highly recommended to start with a
# default header using
# doxygen -w html new_header.html new_footer.html new_stylesheet.css
# YourConfigFile
# and then modify the file new_header.html. See also section "Doxygen usage"
# for information on how to generate the default header that doxygen normally
# uses.
# Note: The header is subject to change so you typically have to regenerate the
# default header when upgrading to a newer version of doxygen. For a description
# of the possible markers and block names see the documentation.
# This tag requires that the tag GENERATE_HTML is set to YES.

HTML_HEADER            =

# The HTML_FOOTER tag can be used to specify a user-defined HTML footer for each
# generated HTML page. If the tag is left blank doxygen will generate a standard
# footer. See HTML_HEADER for more information on how to generate a default
# footer and what special commands can be used inside the footer. See also
# section "Doxygen usage" for information on how to generate the default footer
# that doxygen normally uses.
# This tag requires that the tag GENERATE_HTML is set to YES.

HTML_FOOTER            =

# The HTML_STYLESHEET tag can be used to specify a user-defined cascading style
# sheet that is used by each HTML page. It can be used to fine-tune the look of
# the HTML output. If left blank doxygen will generate a default style sheet.
# See also section "Doxygen usage" for information on how to generate the style
# sheet that doxygen normally uses.
# Note: It is recommended to use HTML_EXTRA_STYLESHEET instead of this tag, as
# it is more robust and this tag (HTML_STYLESHEET) will in the future become
# obsolete.
# This tag requires that the tag GENERATE_HTML is set to YES.

HTML_STYLESHEET        =

# The HTML_EXTRA_STYLESHEET tag can be used to specify additional user-defined
# cascading style sheets that are included after the standard style sheets
# created by doxygen. Using this option one can overrule certain style aspects.
# This is preferred over using HTML_STYLESHEET since it does not replace the
# standard style sheet and is therefore more robust against future updates.
# Doxygen will copy the style sheet files to the output directory.
# Note: The order of the extra style sheet files is of importance (e.g. the last
# style sheet in the list overrules the setting of the previous ones in the
# list). For an example see the documentation.
# This tag requires that the tag GENERATE_HTML is set to YES.

HTML_EXTRA_STYLESHEET  =

# The HTML_EXTRA_FILES tag can be used to specify one or more extra images or
# other source files which should be copied to the HTML output directory. Note
# that these files will be copied to the base HTML output directory. Use the
# $relpath^ marker in the HTML_HEADER and/or HTML_FOOTER files to load these
# files. In the HTML_STYLESHEET file, use the file name only. Also note that the
# files will be copied as-is; there are no commands or markers available.
# This tag requires that the tag GENERATE_HTML is set to YES.

HTML_EXTRA_FILES       =

# The HTML_COLORSTYLE_HUE tag controls the color of the HTML output. Doxygen
# will adjust the colors in the style sheet and background images according to
# this color. Hue is specified as an angle on a colorwheel, see
# http://en.wikipedia.org/wiki/Hue for more information. For instance the value
# 0 represents red, 60 is yellow, 120 is green, 180 is cyan, 240 is blue, 300
# purple, and 360 is red again.
# Minimum value: 0, maximum value: 359, default value: 220.
# This tag requires that the tag GENERATE_HTML is set to YES.

HTML_COLORSTYLE_HUE    = 220

# The HTML_COLORSTYLE_SAT tag controls the purity (or saturation) of the colors
# in the HTML output. For a value of 0 the output will use grayscales only. A
# value of 255 will produce the most vivid colors.
# Minimum value: 0, maximum value: 255, default value: 100.
# This tag requires that the tag GENERATE_HTML is set to YES.

HTML_COLORSTYLE_SAT    = 100

# The HTML_COLORSTYLE_GAMMA tag controls the gamma correction applied to the
# luminance component of the colors in the HTML output. Values below 100
# gradually make the output lighter, whereas values above 100 make the output
# darker. The value divided by 100 is the actual gamma applied, so 80 represents
# a gamma of 0.8, The value 220 represents a gamma of 2.2, and 100 does not
# change the gamma.
# Minimum value: 40, maximum value: 240, default value: 80.
# This tag requires that the tag GENERATE_HTML is set to YES.

HTML_COLORSTYLE_GAMMA  = 80

# If the HTML_TIMESTAMP tag is set to YES then the footer of each generated HTML
# page will contain the date and time when the page was generated. Setting this
# to NO can help when comparing the output of multiple runs.
# The default value is: YES.
# This tag requires that the tag GENERATE_HTML is set to YES.

HTML_TIMESTAMP         = YES

# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML
# documentation will contain sections that can be hidden and shown after the
# page has loaded.
# The default value is: NO.
# This tag requires that the tag GENERATE_HTML is set to YES.

HTML_DYNAMIC_SECTIONS  = NO

# With HTML_INDEX_NUM_ENTRIES one can control the preferred number of entries
# shown in the various tree structured indices initially; the user can expand
# and collapse entries dynamically later on. Doxygen will expand the tree to
# such a level that at most the specified number of entries are visible (unless
# a fully collapsed tree already exceeds this amount). So setting the number of
# entries 1 will produce a full collapsed tree by default. 0 is a special value
# representing an infinite number of entries and will result in a full expanded
# tree by default.
# Minimum value: 0, maximum value: 9999, default value: 100.
# This tag requires that the tag GENERATE_HTML is set to YES.

HTML_INDEX_NUM_ENTRIES = 100

# If the GENERATE_DOCSET tag is set to YES, additional index files will be
# generated that can be used as input for Apple's Xcode 3 integrated development
# environment (see: http://developer.apple.com/tools/xcode/), introduced with
# OSX 10.5 (Leopard). To create a documentation set, doxygen will generate a
# Makefile in the HTML output directory. Running make will produce the docset in
# that directory and running make install will install the docset in
# ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find it at
# startup. See http://developer.apple.com/tools/creatingdocsetswithdoxygen.html
# for more information.
# The default value is: NO.
# This tag requires that the tag GENERATE_HTML is set to YES.

GENERATE_DOCSET        = NO

# This tag determines the name of the docset feed. A documentation feed provides
# an umbrella under which multiple documentation sets from a single provider
# (such as a company or product suite) can be grouped.
# The default value is: Doxygen generated docs.
# This tag requires that the tag GENERATE_DOCSET is set to YES.

DOCSET_FEEDNAME        = "Doxygen generated docs"

# This tag specifies a string that should uniquely identify the documentation
# set bundle. This should be a reverse domain-name style string, e.g.
# com.mycompany.MyDocSet. Doxygen will append .docset to the name.
# The default value is: org.doxygen.Project.
# This tag requires that the tag GENERATE_DOCSET is set to YES.

DOCSET_BUNDLE_ID       = org.doxygen.Project

# The DOCSET_PUBLISHER_ID tag specifies a string that should uniquely identify
# the documentation publisher. This should be a reverse domain-name style
# string, e.g. com.mycompany.MyDocSet.documentation.
# The default value is: org.doxygen.Publisher.
# This tag requires that the tag GENERATE_DOCSET is set to YES.

DOCSET_PUBLISHER_ID    = org.doxygen.Publisher

# The DOCSET_PUBLISHER_NAME tag identifies the documentation publisher.
# The default value is: Publisher.
# This tag requires that the tag GENERATE_DOCSET is set to YES.

DOCSET_PUBLISHER_NAME  = Publisher

# If the GENERATE_HTMLHELP tag is set to YES then doxygen generates three
# additional HTML index files: index.hhp, index.hhc, and index.hhk. The
# index.hhp is a project file that can be read by Microsoft's HTML Help Workshop
# (see: http://www.microsoft.com/en-us/download/details.aspx?id=21138) on
# Windows.
#
# The HTML Help Workshop contains a compiler that can convert all HTML output
# generated by doxygen into a single compiled HTML file (.chm). Compiled HTML
# files are now used as the Windows 98 help format, and will replace the old
# Windows help format (.hlp) on all Windows platforms in the future. Compressed
# HTML files also contain an index, a table of contents, and you can search for
# words in the documentation. The HTML workshop also contains a viewer for
# compressed HTML files.
# The default value is: NO.
# This tag requires that the tag GENERATE_HTML is set to YES.

GENERATE_HTMLHELP      = NO

# The CHM_FILE tag can be used to specify the file name of the resulting .chm
# file. You can add a path in front of the file if the result should not be
# written to the html output directory.
# This tag requires that the tag GENERATE_HTMLHELP is set to YES.

CHM_FILE               =

# The HHC_LOCATION tag can be used to specify the location (absolute path
# including file name) of the HTML help compiler (hhc.exe). If non-empty,
# doxygen will try to run the HTML help compiler on the generated index.hhp.
# The file has to be specified with full path.
# This tag requires that the tag GENERATE_HTMLHELP is set to YES.

HHC_LOCATION           =

# The GENERATE_CHI flag controls if a separate .chi index file is generated
# (YES) or that it should be included in the master .chm file (NO).
# The default value is: NO.
# This tag requires that the tag GENERATE_HTMLHELP is set to YES.

GENERATE_CHI           = NO

# The CHM_INDEX_ENCODING is used to encode HtmlHelp index (hhk), content (hhc)
# and project file content.
# This tag requires that the tag GENERATE_HTMLHELP is set to YES.

CHM_INDEX_ENCODING     =

# The BINARY_TOC flag controls whether a binary table of contents is generated
# (YES) or a normal table of contents (NO) in the .chm file. Furthermore it
# enables the Previous and Next buttons.
# The default value is: NO.
# This tag requires that the tag GENERATE_HTMLHELP is set to YES.

BINARY_TOC             = NO

# The TOC_EXPAND flag can be set to YES to add extra items for group members to
# the table of contents of the HTML help documentation and to the tree view.
# The default value is: NO.
# This tag requires that the tag GENERATE_HTMLHELP is set to YES.

TOC_EXPAND             = NO

# If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and
# QHP_VIRTUAL_FOLDER are set, an additional index file will be generated that
# can be used as input for Qt's qhelpgenerator to generate a Qt Compressed Help
# (.qch) of the generated HTML documentation.
# The default value is: NO.
# This tag requires that the tag GENERATE_HTML is set to YES.

GENERATE_QHP           = NO

# If the QHG_LOCATION tag is specified, the QCH_FILE tag can be used to specify
# the file name of the resulting .qch file. The path specified is relative to
# the HTML output folder.
# This tag requires that the tag GENERATE_QHP is set to YES.

QCH_FILE               =

# The QHP_NAMESPACE tag specifies the namespace to use when generating Qt Help
# Project output. For more information please see Qt Help Project / Namespace
# (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#namespace).
# The default value is: org.doxygen.Project.
# This tag requires that the tag GENERATE_QHP is set to YES.

QHP_NAMESPACE          = org.doxygen.Project

# The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating Qt
# Help Project output. For more information please see Qt Help Project / Virtual
# Folders (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#virtual-
# folders).
# The default value is: doc.
# This tag requires that the tag GENERATE_QHP is set to YES.

QHP_VIRTUAL_FOLDER     = doc

# If the QHP_CUST_FILTER_NAME tag is set, it specifies the name of a custom
# filter to add. For more information please see Qt Help Project / Custom
# Filters (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#custom-
# filters).
# This tag requires that the tag GENERATE_QHP is set to YES.

QHP_CUST_FILTER_NAME   =

# The QHP_CUST_FILTER_ATTRS tag specifies the list of the attributes of the
# custom filter to add. For more information please see Qt Help Project / Custom
# Filters (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#custom-
# filters).
# This tag requires that the tag GENERATE_QHP is set to YES.

QHP_CUST_FILTER_ATTRS  =

# The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this
# project's filter section matches. Qt Help Project / Filter Attributes (see:
# http://qt-project.org/doc/qt-4.8/qthelpproject.html#filter-attributes).
# This tag requires that the tag GENERATE_QHP is set to YES.

QHP_SECT_FILTER_ATTRS  =

# The QHG_LOCATION tag can be used to specify the location of Qt's
# qhelpgenerator. If non-empty doxygen will try to run qhelpgenerator on the
# generated .qhp file.
# This tag requires that the tag GENERATE_QHP is set to YES.

QHG_LOCATION           =

# If the GENERATE_ECLIPSEHELP tag is set to YES, additional index files will be
# generated, together with the HTML files, they form an Eclipse help plugin. To
# install this plugin and make it available under the help contents menu in
# Eclipse, the contents of the directory containing the HTML and XML files needs
# to be copied into the plugins directory of eclipse. The name of the directory
# within the plugins directory should be the same as the ECLIPSE_DOC_ID value.
# After copying Eclipse needs to be restarted before the help appears.
# The default value is: NO.
# This tag requires that the tag GENERATE_HTML is set to YES.

GENERATE_ECLIPSEHELP   = NO

# A unique identifier for the Eclipse help plugin. When installing the plugin
# the directory name containing the HTML and XML files should also have this
# name. Each documentation set should have its own identifier.
# The default value is: org.doxygen.Project.
# This tag requires that the tag GENERATE_ECLIPSEHELP is set to YES.

ECLIPSE_DOC_ID         = org.doxygen.Project

# If you want full control over the layout of the generated HTML pages it might
# be necessary to disable the index and replace it with your own. The
# DISABLE_INDEX tag can be used to turn on/off the condensed index (tabs) at top
# of each HTML page. A value of NO enables the index and the value YES disables
# it. Since the tabs in the index contain the same information as the navigation
# tree, you can set this option to YES if you also set GENERATE_TREEVIEW to YES.
# The default value is: NO.
# This tag requires that the tag GENERATE_HTML is set to YES.

DISABLE_INDEX          = NO

# The GENERATE_TREEVIEW tag is used to specify whether a tree-like index
# structure should be generated to display hierarchical information. If the tag
# value is set to YES, a side panel will be generated containing a tree-like
# index structure (just like the one that is generated for HTML Help). For this
# to work a browser that supports JavaScript, DHTML, CSS and frames is required
# (i.e. any modern browser). Windows users are probably better off using the
# HTML help feature. Via custom style sheets (see HTML_EXTRA_STYLESHEET) one can
# further fine-tune the look of the index. As an example, the default style
# sheet generated by doxygen has an example that shows how to put an image at
# the root of the tree instead of the PROJECT_NAME. Since the tree basically has
# the same information as the tab index, you could consider setting
# DISABLE_INDEX to YES when enabling this option.
# The default value is: NO.
# This tag requires that the tag GENERATE_HTML is set to YES.

GENERATE_TREEVIEW      = NO

# The ENUM_VALUES_PER_LINE tag can be used to set the number of enum values that
# doxygen will group on one line in the generated HTML documentation.
#
# Note that a value of 0 will completely suppress the enum values from appearing
# in the overview section.
# Minimum value: 0, maximum value: 20, default value: 4.
# This tag requires that the tag GENERATE_HTML is set to YES.

ENUM_VALUES_PER_LINE   = 4

# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be used
# to set the initial width (in pixels) of the frame in which the tree is shown.
# Minimum value: 0, maximum value: 1500, default value: 250.
# This tag requires that the tag GENERATE_HTML is set to YES.

TREEVIEW_WIDTH         = 250

# If the EXT_LINKS_IN_WINDOW option is set to YES, doxygen will open links to
# external symbols imported via tag files in a separate window.
# The default value is: NO.
# This tag requires that the tag GENERATE_HTML is set to YES.

EXT_LINKS_IN_WINDOW    = NO

# Use this tag to change the font size of LaTeX formulas included as images in
# the HTML documentation. When you change the font size after a successful
# doxygen run you need to manually remove any form_*.png images from the HTML
# output directory to force them to be regenerated.
# Minimum value: 8, maximum value: 50, default value: 10.
# This tag requires that the tag GENERATE_HTML is set to YES.

FORMULA_FONTSIZE       = 10

# Use the FORMULA_TRANPARENT tag to determine whether or not the images
# generated for formulas are transparent PNGs. Transparent PNGs are not
# supported properly for IE 6.0, but are supported on all modern browsers.
#
# Note that when changing this option you need to delete any form_*.png files in
# the HTML output directory before the changes have effect.
# The default value is: YES.
# This tag requires that the tag GENERATE_HTML is set to YES.

FORMULA_TRANSPARENT    = YES

# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax (see
# http://www.mathjax.org) which uses client side Javascript for the rendering
# instead of using pre-rendered bitmaps. Use this if you do not have LaTeX
# installed or if you want to formulas look prettier in the HTML output. When
# enabled you may also need to install MathJax separately and configure the path
# to it using the MATHJAX_RELPATH option.
# The default value is: NO.
# This tag requires that the tag GENERATE_HTML is set to YES.

USE_MATHJAX            = NO

# When MathJax is enabled you can set the default output format to be used for
# the MathJax output. See the MathJax site (see:
# http://docs.mathjax.org/en/latest/output.html) for more details.
# Possible values are: HTML-CSS (which is slower, but has the best
# compatibility), NativeMML (i.e. MathML) and SVG.
# The default value is: HTML-CSS.
# This tag requires that the tag USE_MATHJAX is set to YES.

MATHJAX_FORMAT         = HTML-CSS

# When MathJax is enabled you need to specify the location relative to the HTML
# output directory using the MATHJAX_RELPATH option. The destination directory
# should contain the MathJax.js script. For instance, if the mathjax directory
# is located at the same level as the HTML output directory, then
# MATHJAX_RELPATH should be ../mathjax. The default value points to the MathJax
# Content Delivery Network so you can quickly see the result without installing
# MathJax. However, it is strongly recommended to install a local copy of
# MathJax from http://www.mathjax.org before deployment.
# The default value is: http://cdn.mathjax.org/mathjax/latest.
# This tag requires that the tag USE_MATHJAX is set to YES.

MATHJAX_RELPATH        = http://www.mathjax.org/mathjax

# The MATHJAX_EXTENSIONS tag can be used to specify one or more MathJax
# extension names that should be enabled during MathJax rendering. For example
# MATHJAX_EXTENSIONS = TeX/AMSmath TeX/AMSsymbols
# This tag requires that the tag USE_MATHJAX is set to YES.

MATHJAX_EXTENSIONS     =

# The MATHJAX_CODEFILE tag can be used to specify a file with javascript pieces
# of code that will be used on startup of the MathJax code. See the MathJax site
# (see: http://docs.mathjax.org/en/latest/output.html) for more details. For an
# example see the documentation.
# This tag requires that the tag USE_MATHJAX is set to YES.

MATHJAX_CODEFILE       =

# When the SEARCHENGINE tag is enabled doxygen will generate a search box for
# the HTML output. The underlying search engine uses javascript and DHTML and
# should work on any modern browser. Note that when using HTML help
# (GENERATE_HTMLHELP), Qt help (GENERATE_QHP), or docsets (GENERATE_DOCSET)
# there is already a search function so this one should typically be disabled.
# For large projects the javascript based search engine can be slow, then
# enabling SERVER_BASED_SEARCH may provide a better solution. It is possible to
# search using the keyboard; to jump to the search box use <access key> + S
# (what the <access key> is depends on the OS and browser, but it is typically
# <CTRL>, <ALT>/<option>, or both). Inside the search box use the <cursor down
# key> to jump into the search results window, the results can be navigated
# using the <cursor keys>. Press <Enter> to select an item or <escape> to cancel
# the search. The filter options can be selected when the cursor is inside the
# search box by pressing <Shift>+<cursor down>. Also here use the <cursor keys>
# to select a filter and <Enter> or <escape> to activate or cancel the filter
# option.
# The default value is: YES.
# This tag requires that the tag GENERATE_HTML is set to YES.

SEARCHENGINE           = YES

# When the SERVER_BASED_SEARCH tag is enabled the search engine will be
# implemented using a web server instead of a web client using Javascript. There
# are two flavors of web server based searching depending on the EXTERNAL_SEARCH
# setting. When disabled, doxygen will generate a PHP script for searching and
# an index file used by the script. When EXTERNAL_SEARCH is enabled the indexing
# and searching needs to be provided by external tools. See the section
# "External Indexing and Searching" for details.
# The default value is: NO.
# This tag requires that the tag SEARCHENGINE is set to YES.

SERVER_BASED_SEARCH    = NO

# When EXTERNAL_SEARCH tag is enabled doxygen will no longer generate the PHP
# script for searching. Instead the search results are written to an XML file
# which needs to be processed by an external indexer. Doxygen will invoke an
# external search engine pointed to by the SEARCHENGINE_URL option to obtain the
# search results.
#
# Doxygen ships with an example indexer (doxyindexer) and search engine
# (doxysearch.cgi) which are based on the open source search engine library
# Xapian (see: http://xapian.org/).
#
# See the section "External Indexing and Searching" for details.
# The default value is: NO.
# This tag requires that the tag SEARCHENGINE is set to YES.

EXTERNAL_SEARCH        = NO

# The SEARCHENGINE_URL should point to a search engine hosted by a web server
# which will return the search results when EXTERNAL_SEARCH is enabled.
#
# Doxygen ships with an example indexer (doxyindexer) and search engine
# (doxysearch.cgi) which are based on the open source search engine library
# Xapian (see: http://xapian.org/). See the section "External Indexing and
# Searching" for details.
# This tag requires that the tag SEARCHENGINE is set to YES.

SEARCHENGINE_URL       =

# When SERVER_BASED_SEARCH and EXTERNAL_SEARCH are both enabled the unindexed
# search data is written to a file for indexing by an external tool. With the
# SEARCHDATA_FILE tag the name of this file can be specified.
# The default file is: searchdata.xml.
# This tag requires that the tag SEARCHENGINE is set to YES.

SEARCHDATA_FILE        = searchdata.xml

# When SERVER_BASED_SEARCH and EXTERNAL_SEARCH are both enabled the
# EXTERNAL_SEARCH_ID tag can be used as an identifier for the project. This is
# useful in combination with EXTRA_SEARCH_MAPPINGS to search through multiple
# projects and redirect the results back to the right project.
# This tag requires that the tag SEARCHENGINE is set to YES.

EXTERNAL_SEARCH_ID     =

# The EXTRA_SEARCH_MAPPINGS tag can be used to enable searching through doxygen
# projects other than the one defined by this configuration file, but that are
# all added to the same external search index. Each project needs to have a
# unique id set via EXTERNAL_SEARCH_ID. The search mapping then maps the id of
# to a relative location where the documentation can be found. The format is:
# EXTRA_SEARCH_MAPPINGS = tagname1=loc1 tagname2=loc2 ...
# This tag requires that the tag SEARCHENGINE is set to YES.

EXTRA_SEARCH_MAPPINGS  =

#---------------------------------------------------------------------------
# Configuration options related to the LaTeX output
#---------------------------------------------------------------------------

# If the GENERATE_LATEX tag is set to YES, doxygen will generate LaTeX output.
# The default value is: YES.

GENERATE_LATEX         = NO

# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. If a
# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
# it.
# The default directory is: latex.
# This tag requires that the tag GENERATE_LATEX is set to YES.

LATEX_OUTPUT           = latex

# The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be
# invoked.
#
# Note that when enabling USE_PDFLATEX this option is only used for generating
# bitmaps for formulas in the HTML output, but not in the Makefile that is
# written to the output directory.
# The default file is: latex.
# This tag requires that the tag GENERATE_LATEX is set to YES.

LATEX_CMD_NAME         = latex

# The MAKEINDEX_CMD_NAME tag can be used to specify the command name to generate
# index for LaTeX.
# The default file is: makeindex.
# This tag requires that the tag GENERATE_LATEX is set to YES.

MAKEINDEX_CMD_NAME     = makeindex

# If the COMPACT_LATEX tag is set to YES, doxygen generates more compact LaTeX
# documents. This may be useful for small projects and may help to save some
# trees in general.
# The default value is: NO.
# This tag requires that the tag GENERATE_LATEX is set to YES.

COMPACT_LATEX          = NO

# The PAPER_TYPE tag can be used to set the paper type that is used by the
# printer.
# Possible values are: a4 (210 x 297 mm), letter (8.5 x 11 inches), legal (8.5 x
# 14 inches) and executive (7.25 x 10.5 inches).
# The default value is: a4.
# This tag requires that the tag GENERATE_LATEX is set to YES.

PAPER_TYPE             = a4

# The EXTRA_PACKAGES tag can be used to specify one or more LaTeX package names
# that should be included in the LaTeX output. To get the times font for
# instance you can specify
# EXTRA_PACKAGES=times
# If left blank no extra packages will be included.
# This tag requires that the tag GENERATE_LATEX is set to YES.

EXTRA_PACKAGES         = amsmath \
                         dsfont

# The LATEX_HEADER tag can be used to specify a personal LaTeX header for the
# generated LaTeX document. The header should contain everything until the first
# chapter. If it is left blank doxygen will generate a standard header. See
# section "Doxygen usage" for information on how to let doxygen write the
# default header to a separate file.
#
# Note: Only use a user-defined header if you know what you are doing! The
# following commands have a special meaning inside the header: $title,
# $datetime, $date, $doxygenversion, $projectname, $projectnumber,
# $projectbrief, $projectlogo. Doxygen will replace $title with the empty
# string, for the replacement values of the other commands the user is referred
# to HTML_HEADER.
# This tag requires that the tag GENERATE_LATEX is set to YES.

LATEX_HEADER           =

# The LATEX_FOOTER tag can be used to specify a personal LaTeX footer for the
# generated LaTeX document. The footer should contain everything after the last
# chapter. If it is left blank doxygen will generate a standard footer. See
# LATEX_HEADER for more information on how to generate a default footer and what
# special commands can be used inside the footer.
#
# Note: Only use a user-defined footer if you know what you are doing!
# This tag requires that the tag GENERATE_LATEX is set to YES.

LATEX_FOOTER           =

# The LATEX_EXTRA_STYLESHEET tag can be used to specify additional user-defined
# LaTeX style sheets that are included after the standard style sheets created
# by doxygen. Using this option one can overrule certain style aspects. Doxygen
# will copy the style sheet files to the output directory.
# Note: The order of the extra style sheet files is of importance (e.g. the last
# style sheet in the list overrules the setting of the previous ones in the
# list).
# This tag requires that the tag GENERATE_LATEX is set to YES.

LATEX_EXTRA_STYLESHEET =

# The LATEX_EXTRA_FILES tag can be used to specify one or more extra images or
# other source files which should be copied to the LATEX_OUTPUT output
# directory. Note that the files will be copied as-is; there are no commands or
# markers available.
# This tag requires that the tag GENERATE_LATEX is set to YES.

LATEX_EXTRA_FILES      =

# If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated is
# prepared for conversion to PDF (using ps2pdf or pdflatex). The PDF file will
# contain links (just like the HTML output) instead of page references. This
# makes the output suitable for online browsing using a PDF viewer.
# The default value is: YES.
# This tag requires that the tag GENERATE_LATEX is set to YES.

PDF_HYPERLINKS         = YES

# If the USE_PDFLATEX tag is set to YES, doxygen will use pdflatex to generate
# the PDF file directly from the LaTeX files. Set this option to YES, to get a
# higher quality PDF documentation.
# The default value is: YES.
# This tag requires that the tag GENERATE_LATEX is set to YES.

USE_PDFLATEX           = YES

# If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \batchmode
# command to the generated LaTeX files. This will instruct LaTeX to keep running
# if errors occur, instead of asking the user for help. This option is also used
# when generating formulas in HTML.
# The default value is: NO.
# This tag requires that the tag GENERATE_LATEX is set to YES.

LATEX_BATCHMODE        = NO

# If the LATEX_HIDE_INDICES tag is set to YES then doxygen will not include the
# index chapters (such as File Index, Compound Index, etc.) in the output.
# The default value is: NO.
# This tag requires that the tag GENERATE_LATEX is set to YES.

LATEX_HIDE_INDICES     = NO

# If the LATEX_SOURCE_CODE tag is set to YES then doxygen will include source
# code with syntax highlighting in the LaTeX output.
#
# Note that which sources are shown also depends on other settings such as
# SOURCE_BROWSER.
# The default value is: NO.
# This tag requires that the tag GENERATE_LATEX is set to YES.

LATEX_SOURCE_CODE      = NO

# The LATEX_BIB_STYLE tag can be used to specify the style to use for the
# bibliography, e.g. plainnat, or ieeetr. See
# http://en.wikipedia.org/wiki/BibTeX and \cite for more info.
# The default value is: plain.
# This tag requires that the tag GENERATE_LATEX is set to YES.

LATEX_BIB_STYLE        = plain

#---------------------------------------------------------------------------
# Configuration options related to the RTF output
#---------------------------------------------------------------------------

# If the GENERATE_RTF tag is set to YES, doxygen will generate RTF output. The
# RTF output is optimized for Word 97 and may not look too pretty with other RTF
# readers/editors.
# The default value is: NO.

GENERATE_RTF           = NO

# The RTF_OUTPUT tag is used to specify where the RTF docs will be put. If a
# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
# it.
# The default directory is: rtf.
# This tag requires that the tag GENERATE_RTF is set to YES.

RTF_OUTPUT             = rtf

# If the COMPACT_RTF tag is set to YES, doxygen generates more compact RTF
# documents. This may be useful for small projects and may help to save some
# trees in general.
# The default value is: NO.
# This tag requires that the tag GENERATE_RTF is set to YES.

COMPACT_RTF            = NO

# If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated will
# contain hyperlink fields. The RTF file will contain links (just like the HTML
# output) instead of page references. This makes the output suitable for online
# browsing using Word or some other Word compatible readers that support those
# fields.
#
# Note: WordPad (write) and others do not support links.
# The default value is: NO.
# This tag requires that the tag GENERATE_RTF is set to YES.

RTF_HYPERLINKS         = NO

# Load stylesheet definitions from file. Syntax is similar to doxygen's config
# file, i.e. a series of assignments. You only have to provide replacements,
# missing definitions are set to their default value.
#
# See also section "Doxygen usage" for information on how to generate the
# default style sheet that doxygen normally uses.
# This tag requires that the tag GENERATE_RTF is set to YES.

RTF_STYLESHEET_FILE    =

# Set optional variables used in the generation of an RTF document. Syntax is
# similar to doxygen's config file. A template extensions file can be generated
# using doxygen -e rtf extensionFile.
# This tag requires that the tag GENERATE_RTF is set to YES.

RTF_EXTENSIONS_FILE    =

# If the RTF_SOURCE_CODE tag is set to YES then doxygen will include source code
# with syntax highlighting in the RTF output.
#
# Note that which sources are shown also depends on other settings such as
# SOURCE_BROWSER.
# The default value is: NO.
# This tag requires that the tag GENERATE_RTF is set to YES.

RTF_SOURCE_CODE        = NO

#---------------------------------------------------------------------------
# Configuration options related to the man page output
#---------------------------------------------------------------------------

# If the GENERATE_MAN tag is set to YES, doxygen will generate man pages for
# classes and files.
# The default value is: NO.

GENERATE_MAN           = NO

# The MAN_OUTPUT tag is used to specify where the man pages will be put. If a
# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
# it. A directory man3 will be created inside the directory specified by
# MAN_OUTPUT.
# The default directory is: man.
# This tag requires that the tag GENERATE_MAN is set to YES.

MAN_OUTPUT             = man

# The MAN_EXTENSION tag determines the extension that is added to the generated
# man pages. In case the manual section does not start with a number, the number
# 3 is prepended. The dot (.) at the beginning of the MAN_EXTENSION tag is
# optional.
# The default value is: .3.
# This tag requires that the tag GENERATE_MAN is set to YES.

MAN_EXTENSION          = .3

# The MAN_SUBDIR tag determines the name of the directory created within
# MAN_OUTPUT in which the man pages are placed. If defaults to man followed by
# MAN_EXTENSION with the initial . removed.
# This tag requires that the tag GENERATE_MAN is set to YES.

MAN_SUBDIR             =

# If the MAN_LINKS tag is set to YES and doxygen generates man output, then it
# will generate one additional man file for each entity documented in the real
# man page(s). These additional files only source the real man page, but without
# them the man command would be unable to find the correct page.
# The default value is: NO.
# This tag requires that the tag GENERATE_MAN is set to YES.

MAN_LINKS              = NO

#---------------------------------------------------------------------------
# Configuration options related to the XML output
#---------------------------------------------------------------------------

# If the GENERATE_XML tag is set to YES, doxygen will generate an XML file that
# captures the structure of the code including all documentation.
# The default value is: NO.

GENERATE_XML           = NO

# The XML_OUTPUT tag is used to specify where the XML pages will be put. If a
# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
# it.
# The default directory is: xml.
# This tag requires that the tag GENERATE_XML is set to YES.

XML_OUTPUT             = xml

# If the XML_PROGRAMLISTING tag is set to YES, doxygen will dump the program
# listings (including syntax highlighting and cross-referencing information) to
# the XML output. Note that enabling this will significantly increase the size
# of the XML output.
# The default value is: YES.
# This tag requires that the tag GENERATE_XML is set to YES.

XML_PROGRAMLISTING     = YES

#---------------------------------------------------------------------------
# Configuration options related to the DOCBOOK output
#---------------------------------------------------------------------------

# If the GENERATE_DOCBOOK tag is set to YES, doxygen will generate Docbook files
# that can be used to generate PDF.
# The default value is: NO.

GENERATE_DOCBOOK       = NO

# The DOCBOOK_OUTPUT tag is used to specify where the Docbook pages will be put.
# If a relative path is entered the value of OUTPUT_DIRECTORY will be put in
# front of it.
# The default directory is: docbook.
# This tag requires that the tag GENERATE_DOCBOOK is set to YES.

DOCBOOK_OUTPUT         = docbook

# If the DOCBOOK_PROGRAMLISTING tag is set to YES, doxygen will include the
# program listings (including syntax highlighting and cross-referencing
# information) to the DOCBOOK output. Note that enabling this will significantly
# increase the size of the DOCBOOK output.
# The default value is: NO.
# This tag requires that the tag GENERATE_DOCBOOK is set to YES.

DOCBOOK_PROGRAMLISTING = NO

#---------------------------------------------------------------------------
# Configuration options for the AutoGen Definitions output
#---------------------------------------------------------------------------

# If the GENERATE_AUTOGEN_DEF tag is set to YES, doxygen will generate an
# AutoGen Definitions (see http://autogen.sf.net) file that captures the
# structure of the code including all documentation. Note that this feature is
# still experimental and incomplete at the moment.
# The default value is: NO.

GENERATE_AUTOGEN_DEF   = NO

#---------------------------------------------------------------------------
# Configuration options related to the Perl module output
#---------------------------------------------------------------------------

# If the GENERATE_PERLMOD tag is set to YES, doxygen will generate a Perl module
# file that captures the structure of the code including all documentation.
#
# Note that this feature is still experimental and incomplete at the moment.
# The default value is: NO.

GENERATE_PERLMOD       = NO

# If the PERLMOD_LATEX tag is set to YES, doxygen will generate the necessary
# Makefile rules, Perl scripts and LaTeX code to be able to generate PDF and DVI
# output from the Perl module output.
# The default value is: NO.
# This tag requires that the tag GENERATE_PERLMOD is set to YES.

PERLMOD_LATEX          = NO

# If the PERLMOD_PRETTY tag is set to YES, the Perl module output will be nicely
# formatted so it can be parsed by a human reader. This is useful if you want to
# understand what is going on. On the other hand, if this tag is set to NO, the
# size of the Perl module output will be much smaller and Perl will parse it
# just the same.
# The default value is: YES.
# This tag requires that the tag GENERATE_PERLMOD is set to YES.

PERLMOD_PRETTY         = YES

# The names of the make variables in the generated doxyrules.make file are
# prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX. This is useful
# so different doxyrules.make files included by the same Makefile don't
# overwrite each other's variables.
# This tag requires that the tag GENERATE_PERLMOD is set to YES.

PERLMOD_MAKEVAR_PREFIX =

#---------------------------------------------------------------------------
# Configuration options related to the preprocessor
#---------------------------------------------------------------------------

# If the ENABLE_PREPROCESSING tag is set to YES, doxygen will evaluate all
# C-preprocessor directives found in the sources and include files.
# The default value is: YES.

ENABLE_PREPROCESSING   = YES

# If the MACRO_EXPANSION tag is set to YES, doxygen will expand all macro names
# in the source code. If set to NO, only conditional compilation will be
# performed. Macro expansion can be done in a controlled way by setting
# EXPAND_ONLY_PREDEF to YES.
# The default value is: NO.
# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.

MACRO_EXPANSION        = NO

# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES then
# the macro expansion is limited to the macros specified with the PREDEFINED and
# EXPAND_AS_DEFINED tags.
# The default value is: NO.
# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.

EXPAND_ONLY_PREDEF     = NO

# If the SEARCH_INCLUDES tag is set to YES, the include files in the
# INCLUDE_PATH will be searched if a #include is found.
# The default value is: YES.
# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.

SEARCH_INCLUDES        = YES

# The INCLUDE_PATH tag can be used to specify one or more directories that
# contain include files that are not input files but should be processed by the
# preprocessor.
# This tag requires that the tag SEARCH_INCLUDES is set to YES.

INCLUDE_PATH           =

# You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard
# patterns (like *.h and *.hpp) to filter out the header-files in the
# directories. If left blank, the patterns specified with FILE_PATTERNS will be
# used.
# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.

INCLUDE_FILE_PATTERNS  =

# The PREDEFINED tag can be used to specify one or more macro names that are
# defined before the preprocessor is started (similar to the -D option of e.g.
# gcc). The argument of the tag is a list of macros of the form: name or
# name=definition (no spaces). If the definition and the "=" are omitted, "=1"
# is assumed. To prevent a macro definition from being undefined via #undef or
# recursively expanded use the := operator instead of the = operator.
# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.

PREDEFINED             =

# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then this
# tag can be used to specify a list of macro names that should be expanded. The
# macro definition that is found in the sources will be used. Use the PREDEFINED
# tag if you want to use a different macro definition that overrules the
# definition found in the source code.
# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.

EXPAND_AS_DEFINED      =

# If the SKIP_FUNCTION_MACROS tag is set to YES then doxygen's preprocessor will
# remove all references to function-like macros that are alone on a line, have
# an all uppercase name, and do not end with a semicolon. Such function macros
# are typically used for boiler-plate code, and will confuse the parser if not
# removed.
# The default value is: YES.
# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.

SKIP_FUNCTION_MACROS   = YES

#---------------------------------------------------------------------------
# Configuration options related to external references
#---------------------------------------------------------------------------

# The TAGFILES tag can be used to specify one or more tag files. For each tag
# file the location of the external documentation should be added. The format of
# a tag file without this location is as follows:
# TAGFILES = file1 file2 ...
# Adding location for the tag files is done as follows:
# TAGFILES = file1=loc1 "file2 = loc2" ...
# where loc1 and loc2 can be relative or absolute paths or URLs. See the
# section "Linking to external documentation" for more information about the use
# of tag files.
# Note: Each tag file must have a unique name (where the name does NOT include
# the path). If a tag file is not located in the directory in which doxygen is
# run, you must also specify the path to the tagfile here.

TAGFILES               =

# When a file name is specified after GENERATE_TAGFILE, doxygen will create a
# tag file that is based on the input files it reads. See section "Linking to
# external documentation" for more information about the usage of tag files.

GENERATE_TAGFILE       =

# If the ALLEXTERNALS tag is set to YES, all external class will be listed in
# the class index. If set to NO, only the inherited external classes will be
# listed.
# The default value is: NO.

ALLEXTERNALS           = NO

# If the EXTERNAL_GROUPS tag is set to YES, all external groups will be listed
# in the modules index. If set to NO, only the current project's groups will be
# listed.
# The default value is: YES.

EXTERNAL_GROUPS        = YES

# If the EXTERNAL_PAGES tag is set to YES, all external pages will be listed in
# the related pages index. If set to NO, only the current project's pages will
# be listed.
# The default value is: YES.

EXTERNAL_PAGES         = YES

# The PERL_PATH should be the absolute path and name of the perl script
# interpreter (i.e. the result of 'which perl').
# The default file (with absolute path) is: /usr/bin/perl.

PERL_PATH              = /usr/bin/perl

#---------------------------------------------------------------------------
# Configuration options related to the dot tool
#---------------------------------------------------------------------------

# If the CLASS_DIAGRAMS tag is set to YES, doxygen will generate a class diagram
# (in HTML and LaTeX) for classes with base or super classes. Setting the tag to
# NO turns the diagrams off. Note that this option also works with HAVE_DOT
# disabled, but it is recommended to install and use dot, since it yields more
# powerful graphs.
# The default value is: YES.

CLASS_DIAGRAMS         = YES

# You can define message sequence charts within doxygen comments using the \msc
# command. Doxygen will then run the mscgen tool (see:
# http://www.mcternan.me.uk/mscgen/)) to produce the chart and insert it in the
# documentation. The MSCGEN_PATH tag allows you to specify the directory where
# the mscgen tool resides. If left empty the tool is assumed to be found in the
# default search path.

MSCGEN_PATH            =

# You can include diagrams made with dia in doxygen documentation. Doxygen will
# then run dia to produce the diagram and insert it in the documentation. The
# DIA_PATH tag allows you to specify the directory where the dia binary resides.
# If left empty dia is assumed to be found in the default search path.

DIA_PATH               =

# If set to YES the inheritance and collaboration graphs will hide inheritance
# and usage relations if the target is undocumented or is not a class.
# The default value is: YES.

HIDE_UNDOC_RELATIONS   = YES

# If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is
# available from the path. This tool is part of Graphviz (see:
# http://www.graphviz.org/), a graph visualization toolkit from AT&T and Lucent
# Bell Labs. The other options in this section have no effect if this option is
# set to NO
# The default value is: NO.

HAVE_DOT               = NO

# The DOT_NUM_THREADS specifies the number of dot invocations doxygen is allowed
# to run in parallel. When set to 0 doxygen will base this on the number of
# processors available in the system. You can set it explicitly to a value
# larger than 0 to get control over the balance between CPU load and processing
# speed.
# Minimum value: 0, maximum value: 32, default value: 0.
# This tag requires that the tag HAVE_DOT is set to YES.

DOT_NUM_THREADS        = 0

# When you want a differently looking font in the dot files that doxygen
# generates you can specify the font name using DOT_FONTNAME. You need to make
# sure dot is able to find the font, which can be done by putting it in a
# standard location or by setting the DOTFONTPATH environment variable or by
# setting DOT_FONTPATH to the directory containing the font.
# The default value is: Helvetica.
# This tag requires that the tag HAVE_DOT is set to YES.

DOT_FONTNAME           = Helvetica

# The DOT_FONTSIZE tag can be used to set the size (in points) of the font of
# dot graphs.
# Minimum value: 4, maximum value: 24, default value: 10.
# This tag requires that the tag HAVE_DOT is set to YES.

DOT_FONTSIZE           = 10

# By default doxygen will tell dot to use the default font as specified with
# DOT_FONTNAME. If you specify a different font using DOT_FONTNAME you can set
# the path where dot can find it using this tag.
# This tag requires that the tag HAVE_DOT is set to YES.

DOT_FONTPATH           =

# If the CLASS_GRAPH tag is set to YES then doxygen will generate a graph for
# each documented class showing the direct and indirect inheritance relations.
# Setting this tag to YES will force the CLASS_DIAGRAMS tag to NO.
# The default value is: YES.
# This tag requires that the tag HAVE_DOT is set to YES.

CLASS_GRAPH            = YES

# If the COLLABORATION_GRAPH tag is set to YES then doxygen will generate a
# graph for each documented class showing the direct and indirect implementation
# dependencies (inheritance, containment, and class references variables) of the
# class with other documented classes.
# The default value is: YES.
# This tag requires that the tag HAVE_DOT is set to YES.

COLLABORATION_GRAPH    = YES

# If the GROUP_GRAPHS tag is set to YES then doxygen will generate a graph for
# groups, showing the direct groups dependencies.
# The default value is: YES.
# This tag requires that the tag HAVE_DOT is set to YES.

GROUP_GRAPHS           = YES

# If the UML_LOOK tag is set to YES, doxygen will generate inheritance and
# collaboration diagrams in a style similar to the OMG's Unified Modeling
# Language.
# The default value is: NO.
# This tag requires that the tag HAVE_DOT is set to YES.

UML_LOOK               = NO

# If the UML_LOOK tag is enabled, the fields and methods are shown inside the
# class node. If there are many fields or methods and many nodes the graph may
# become too big to be useful. The UML_LIMIT_NUM_FIELDS threshold limits the
# number of items for each type to make the size more manageable. Set this to 0
# for no limit. Note that the threshold may be exceeded by 50% before the limit
# is enforced. So when you set the threshold to 10, up to 15 fields may appear,
# but if the number exceeds 15, the total amount of fields shown is limited to
# 10.
# Minimum value: 0, maximum value: 100, default value: 10.
# This tag requires that the tag HAVE_DOT is set to YES.

UML_LIMIT_NUM_FIELDS   = 10

# If the TEMPLATE_RELATIONS tag is set to YES then the inheritance and
# collaboration graphs will show the relations between templates and their
# instances.
# The default value is: NO.
# This tag requires that the tag HAVE_DOT is set to YES.

TEMPLATE_RELATIONS     = NO

# If the INCLUDE_GRAPH, ENABLE_PREPROCESSING and SEARCH_INCLUDES tags are set to
# YES then doxygen will generate a graph for each documented file showing the
# direct and indirect include dependencies of the file with other documented
# files.
# The default value is: YES.
# This tag requires that the tag HAVE_DOT is set to YES.

INCLUDE_GRAPH          = YES

# If the INCLUDED_BY_GRAPH, ENABLE_PREPROCESSING and SEARCH_INCLUDES tags are
# set to YES then doxygen will generate a graph for each documented file showing
# the direct and indirect include dependencies of the file with other documented
# files.
# The default value is: YES.
# This tag requires that the tag HAVE_DOT is set to YES.

INCLUDED_BY_GRAPH      = YES

# If the CALL_GRAPH tag is set to YES then doxygen will generate a call
# dependency graph for every global function or class method.
#
# Note that enabling this option will significantly increase the time of a run.
# So in most cases it will be better to enable call graphs for selected
# functions only using the \callgraph command.
# The default value is: NO.
# This tag requires that the tag HAVE_DOT is set to YES.

CALL_GRAPH             = NO

# If the CALLER_GRAPH tag is set to YES then doxygen will generate a caller
# dependency graph for every global function or class method.
#
# Note that enabling this option will significantly increase the time of a run.
# So in most cases it will be better to enable caller graphs for selected
# functions only using the \callergraph command.
# The default value is: NO.
# This tag requires that the tag HAVE_DOT is set to YES.

CALLER_GRAPH           = NO

# If the GRAPHICAL_HIERARCHY tag is set to YES then doxygen will graphical
# hierarchy of all classes instead of a textual one.
# The default value is: YES.
# This tag requires that the tag HAVE_DOT is set to YES.

GRAPHICAL_HIERARCHY    = YES

# If the DIRECTORY_GRAPH tag is set to YES then doxygen will show the
# dependencies a directory has on other directories in a graphical way. The
# dependency relations are determined by the #include relations between the
# files in the directories.
# The default value is: YES.
# This tag requires that the tag HAVE_DOT is set to YES.

DIRECTORY_GRAPH        = YES

# The DOT_IMAGE_FORMAT tag can be used to set the image format of the images
# generated by dot.
# Note: If you choose svg you need to set HTML_FILE_EXTENSION to xhtml in order
# to make the SVG files visible in IE 9+ (other browsers do not have this
# requirement).
# Possible values are: png, jpg, gif and svg.
# The default value is: png.
# This tag requires that the tag HAVE_DOT is set to YES.

DOT_IMAGE_FORMAT       = png

# If DOT_IMAGE_FORMAT is set to svg, then this option can be set to YES to
# enable generation of interactive SVG images that allow zooming and panning.
#
# Note that this requires a modern browser other than Internet Explorer. Tested
# and working are Firefox, Chrome, Safari, and Opera.
# Note: For IE 9+ you need to set HTML_FILE_EXTENSION to xhtml in order to make
# the SVG files visible. Older versions of IE do not have SVG support.
# The default value is: NO.
# This tag requires that the tag HAVE_DOT is set to YES.

INTERACTIVE_SVG        = NO

# The DOT_PATH tag can be used to specify the path where the dot tool can be
# found. If left blank, it is assumed the dot tool can be found in the path.
# This tag requires that the tag HAVE_DOT is set to YES.

DOT_PATH               =

# The DOTFILE_DIRS tag can be used to specify one or more directories that
# contain dot files that are included in the documentation (see the \dotfile
# command).
# This tag requires that the tag HAVE_DOT is set to YES.

DOTFILE_DIRS           =

# The MSCFILE_DIRS tag can be used to specify one or more directories that
# contain msc files that are included in the documentation (see the \mscfile
# command).

MSCFILE_DIRS           =

# The DIAFILE_DIRS tag can be used to specify one or more directories that
# contain dia files that are included in the documentation (see the \diafile
# command).

DIAFILE_DIRS           =

# When using plantuml, the PLANTUML_JAR_PATH tag should be used to specify the
# path where java can find the plantuml.jar file. If left blank, it is assumed
# PlantUML is not used or called during a preprocessing step. Doxygen will
# generate a warning when it encounters a \startuml command in this case and
# will not generate output for the diagram.

PLANTUML_JAR_PATH      =

# When using plantuml, the specified paths are searched for files specified by
# the !include statement in a plantuml block.

PLANTUML_INCLUDE_PATH  =

# The DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of nodes
# that will be shown in the graph. If the number of nodes in a graph becomes
# larger than this value, doxygen will truncate the graph, which is visualized
# by representing a node as a red box. Note that doxygen if the number of direct
# children of the root node in a graph is already larger than
# DOT_GRAPH_MAX_NODES then the graph will not be shown at all. Also note that
# the size of a graph can be further restricted by MAX_DOT_GRAPH_DEPTH.
# Minimum value: 0, maximum value: 10000, default value: 50.
# This tag requires that the tag HAVE_DOT is set to YES.

DOT_GRAPH_MAX_NODES    = 50

# The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the graphs
# generated by dot. A depth value of 3 means that only nodes reachable from the
# root by following a path via at most 3 edges will be shown. Nodes that lay
# further from the root node will be omitted. Note that setting this option to 1
# or 2 may greatly reduce the computation time needed for large code bases. Also
# note that the size of a graph can be further restricted by
# DOT_GRAPH_MAX_NODES. Using a depth of 0 means no depth restriction.
# Minimum value: 0, maximum value: 1000, default value: 0.
# This tag requires that the tag HAVE_DOT is set to YES.

MAX_DOT_GRAPH_DEPTH    = 0

# Set the DOT_TRANSPARENT tag to YES to generate images with a transparent
# background. This is disabled by default, because dot on Windows does not seem
# to support this out of the box.
#
# Warning: Depending on the platform used, enabling this option may lead to
# badly anti-aliased labels on the edges of a graph (i.e. they become hard to
# read).
# The default value is: NO.
# This tag requires that the tag HAVE_DOT is set to YES.

DOT_TRANSPARENT        = NO

# Set the DOT_MULTI_TARGETS tag to YES to allow dot to generate multiple output
# files in one run (i.e. multiple -o and -T options on the command line). This
# makes dot run faster, but since only newer versions of dot (>1.8.10) support
# this, this feature is disabled by default.
# The default value is: NO.
# This tag requires that the tag HAVE_DOT is set to YES.

DOT_MULTI_TARGETS      = YES

# If the GENERATE_LEGEND tag is set to YES doxygen will generate a legend page
# explaining the meaning of the various boxes and arrows in the dot generated
# graphs.
# The default value is: YES.
# This tag requires that the tag HAVE_DOT is set to YES.

GENERATE_LEGEND        = YES

# If the DOT_CLEANUP tag is set to YES, doxygen will remove the intermediate dot
# files that are used to generate the various graphs.
# The default value is: YES.
# This tag requires that the tag HAVE_DOT is set to YES.

DOT_CLEANUP            = YES

Added 3rdparty/util/README.md.











































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
fifr::util C++ utility library
================================

Introduction
------------

This is small library of useful C++ functions.

Documentation
-------------

The (very sparse) API documentation can found [here][API].

   [API]: doc/html/index.html
   
Download
--------

Latest development version: [util-trunk.tar.gz][TRUNK]

The project lives in a [fossil](http://fossil-scm.org) repository. In
order to clone the repository, execute the following commands:

    fossil clone http://fifr.spdns.de/cpp-util path/to/cpp-util.fossil
	mkdir path/to/util-sources
	cd path/to/util-sources
	fossil open path/to/cpp-util.fossil
	
   [TRUNK]: http://fifr.spdns.de/fossils/cpp-util/tarball/util-trunk.tar.gz?name=util
   
Installation
------------

**fifr::util** is designed to be copied into your project. Just copy
all files from the `src/` directory to your project. Note that
**fifr::util** requires C++14.

Added 3rdparty/util/cmake/FifrUtilConfig.cmake.

















































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
cmake_policy(SET CMP0054 NEW)

include(CMakeFindDependencyMacro)

include("${CMAKE_CURRENT_LIST_DIR}/FifrUtilTargets.cmake")

set(_supported_components @SUPPORTED_COMPONENTS@)

foreach(_comp ${FifrUtil_FIND_COMPONENTS})
  if (NOT ";${_supported_components};" MATCHES ${_comp})
    if (FifrUtil_FIND_REQUIRED_${_comp})
      set(FifrUtil_FOUND False)
      set(FifrUtil_NOT_FOUND_MESSAGE "Unsupported component: ${_comp}")
    endif ()
  else ()
    if ("${_comp}" STREQUAL "GZip")
      #find_dependency(ZLIB)
    else ()
      find_dependency(${_comp})
    endif ()
    set(FifrUtil_${_comp}_FOUND True)
    include("${CMAKE_CURRENT_LIST_DIR}/FifrUtil${_comp}Targets.cmake")
  endif ()
endforeach()

Added 3rdparty/util/doc/html/a00001.html.































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>fifr::util: fifr::util::all_range Struct Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="classes.html"><span>Data&#160;Structure&#160;Index</span></a></li>
      <li><a href="functions.html"><span>Data&#160;Fields</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>fifr</b></li><li class="navelem"><a class="el" href="a00042.html">util</a></li><li class="navelem"><a class="el" href="a00001.html">all_range</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">fifr::util::all_range Struct Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Range covering all elements.  
 <a href="a00001.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00032_source.html">Range.hxx</a>&gt;</code></p>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Range covering all elements. </p>
</div><hr/>The documentation for this struct was generated from the following file:<ul>
<li>src/fifr/util/<a class="el" href="a00032_source.html">Range.hxx</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Feb 21 2017 22:46:02 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00002.html.

























































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>fifr::util: fifr::util::AutoTuple&lt; Args &gt; Struct Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="classes.html"><span>Data&#160;Structure&#160;Index</span></a></li>
      <li><a href="functions.html"><span>Data&#160;Fields</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>fifr</b></li><li class="navelem"><a class="el" href="a00042.html">util</a></li><li class="navelem"><a class="el" href="a00002.html">AutoTuple</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a>  </div>
  <div class="headertitle">
<div class="title">fifr::util::AutoTuple&lt; Args &gt; Struct Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Trait for returning tuple, pair or value depending on the number of type arguments.  
 <a href="a00002.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00029_source.html">AutoTuple.hxx</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a128ec7c89c8a49b8c20634781cad1843"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a128ec7c89c8a49b8c20634781cad1843"></a>
typedef std::tuple&lt; Args...&gt;&#160;</td><td class="memItemRight" valign="bottom"><b>type</b></td></tr>
<tr class="separator:a128ec7c89c8a49b8c20634781cad1843"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;typename... Args&gt;<br />
struct fifr::util::AutoTuple&lt; Args &gt;</h3>

<p>Trait for returning tuple, pair or value depending on the number of type arguments. </p>
<p>If the number of type arguments is 1, the returned type is the type itself. If the number of type arguments is 2, the returned type is a pair of these types. Otherwise the returned type is a tuple of these types. </p>
</div><hr/>The documentation for this struct was generated from the following file:<ul>
<li>src/fifr/util/<a class="el" href="a00029_source.html">AutoTuple.hxx</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Feb 21 2017 22:46:02 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00003.html.





































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>fifr::util: fifr::util::Convert&lt; To, From, Enable &gt; Struct Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="classes.html"><span>Data&#160;Structure&#160;Index</span></a></li>
      <li><a href="functions.html"><span>Data&#160;Fields</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>fifr</b></li><li class="navelem"><a class="el" href="a00042.html">util</a></li><li class="navelem"><a class="el" href="a00003.html">Convert</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">fifr::util::Convert&lt; To, From, Enable &gt; Struct Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Trait for converting two types.  
 <a href="a00003.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00030_source.html">Convert.hxx</a>&gt;</code></p>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;typename To, typename From, typename Enable = void&gt;<br />
struct fifr::util::Convert&lt; To, From, Enable &gt;</h3>

<p>Trait for converting two types. </p>
<p>A specialization is expected to implement a single static function <code>convert</code> </p><pre class="fragment">static To convert(From x);</pre> </div><hr/>The documentation for this struct was generated from the following file:<ul>
<li>src/fifr/util/<a class="el" href="a00030_source.html">Convert.hxx</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Feb 21 2017 22:46:02 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00004.html.























































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>fifr::util: fifr::util::Convert&lt; double, const char * &gt; Struct Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="classes.html"><span>Data&#160;Structure&#160;Index</span></a></li>
      <li><a href="functions.html"><span>Data&#160;Fields</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>fifr</b></li><li class="navelem"><a class="el" href="a00042.html">util</a></li><li class="navelem"><a class="el" href="a00004.html">Convert&lt; double, const char * &gt;</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-static-methods">Static Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">fifr::util::Convert&lt; double, const char * &gt; Struct Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="a00003.html" title="Trait for converting two types. ">Convert</a> <code>const char*</code> to <code>double</code>.  
 <a href="a00004.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00030_source.html">Convert.hxx</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a84b0457c9a6275a59b8258f966a2309b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a84b0457c9a6275a59b8258f966a2309b"></a>
static double&#160;</td><td class="memItemRight" valign="bottom"><b>convert</b> (const char *str)</td></tr>
<tr class="separator:a84b0457c9a6275a59b8258f966a2309b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;&gt;<br />
struct fifr::util::Convert&lt; double, const char * &gt;</h3>

<p><a class="el" href="a00003.html" title="Trait for converting two types. ">Convert</a> <code>const char*</code> to <code>double</code>. </p>
</div><hr/>The documentation for this struct was generated from the following file:<ul>
<li>src/fifr/util/<a class="el" href="a00030_source.html">Convert.hxx</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Feb 21 2017 22:46:03 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00005.html.























































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>fifr::util: fifr::util::Convert&lt; float, const char * &gt; Struct Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="classes.html"><span>Data&#160;Structure&#160;Index</span></a></li>
      <li><a href="functions.html"><span>Data&#160;Fields</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>fifr</b></li><li class="navelem"><a class="el" href="a00042.html">util</a></li><li class="navelem"><a class="el" href="a00005.html">Convert&lt; float, const char * &gt;</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-static-methods">Static Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">fifr::util::Convert&lt; float, const char * &gt; Struct Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="a00003.html" title="Trait for converting two types. ">Convert</a> <code>const char*</code> to <code>float</code>.  
 <a href="a00005.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00030_source.html">Convert.hxx</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a67428888f29bda7a3d8120fb3ab4e405"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a67428888f29bda7a3d8120fb3ab4e405"></a>
static float&#160;</td><td class="memItemRight" valign="bottom"><b>convert</b> (const char *str)</td></tr>
<tr class="separator:a67428888f29bda7a3d8120fb3ab4e405"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;&gt;<br />
struct fifr::util::Convert&lt; float, const char * &gt;</h3>

<p><a class="el" href="a00003.html" title="Trait for converting two types. ">Convert</a> <code>const char*</code> to <code>float</code>. </p>
</div><hr/>The documentation for this struct was generated from the following file:<ul>
<li>src/fifr/util/<a class="el" href="a00030_source.html">Convert.hxx</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Feb 21 2017 22:46:03 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00006.html.























































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>fifr::util: fifr::util::Convert&lt; int, const char * &gt; Struct Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="classes.html"><span>Data&#160;Structure&#160;Index</span></a></li>
      <li><a href="functions.html"><span>Data&#160;Fields</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>fifr</b></li><li class="navelem"><a class="el" href="a00042.html">util</a></li><li class="navelem"><a class="el" href="a00006.html">Convert&lt; int, const char * &gt;</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-static-methods">Static Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">fifr::util::Convert&lt; int, const char * &gt; Struct Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="a00003.html" title="Trait for converting two types. ">Convert</a> <code>const char*</code> to <code>int</code>.  
 <a href="a00006.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00030_source.html">Convert.hxx</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a7e45fc14d7639d8b72daa9b1c809f956"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7e45fc14d7639d8b72daa9b1c809f956"></a>
static int&#160;</td><td class="memItemRight" valign="bottom"><b>convert</b> (const char *str)</td></tr>
<tr class="separator:a7e45fc14d7639d8b72daa9b1c809f956"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;&gt;<br />
struct fifr::util::Convert&lt; int, const char * &gt;</h3>

<p><a class="el" href="a00003.html" title="Trait for converting two types. ">Convert</a> <code>const char*</code> to <code>int</code>. </p>
</div><hr/>The documentation for this struct was generated from the following file:<ul>
<li>src/fifr/util/<a class="el" href="a00030_source.html">Convert.hxx</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Feb 21 2017 22:46:03 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00007.html.























































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>fifr::util: fifr::util::Convert&lt; long double, const char * &gt; Struct Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="classes.html"><span>Data&#160;Structure&#160;Index</span></a></li>
      <li><a href="functions.html"><span>Data&#160;Fields</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>fifr</b></li><li class="navelem"><a class="el" href="a00042.html">util</a></li><li class="navelem"><a class="el" href="a00007.html">Convert&lt; long double, const char * &gt;</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-static-methods">Static Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">fifr::util::Convert&lt; long double, const char * &gt; Struct Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="a00003.html" title="Trait for converting two types. ">Convert</a> <code>const char*</code> to <code>long double</code>.  
 <a href="a00007.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00030_source.html">Convert.hxx</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:acf4b07435a54af6310a5f77ff24d9ec3"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="acf4b07435a54af6310a5f77ff24d9ec3"></a>
static long double&#160;</td><td class="memItemRight" valign="bottom"><b>convert</b> (const char *str)</td></tr>
<tr class="separator:acf4b07435a54af6310a5f77ff24d9ec3"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;&gt;<br />
struct fifr::util::Convert&lt; long double, const char * &gt;</h3>

<p><a class="el" href="a00003.html" title="Trait for converting two types. ">Convert</a> <code>const char*</code> to <code>long double</code>. </p>
</div><hr/>The documentation for this struct was generated from the following file:<ul>
<li>src/fifr/util/<a class="el" href="a00030_source.html">Convert.hxx</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Feb 21 2017 22:46:03 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00008.html.























































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>fifr::util: fifr::util::Convert&lt; long long, const char * &gt; Struct Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="classes.html"><span>Data&#160;Structure&#160;Index</span></a></li>
      <li><a href="functions.html"><span>Data&#160;Fields</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>fifr</b></li><li class="navelem"><a class="el" href="a00042.html">util</a></li><li class="navelem"><a class="el" href="a00008.html">Convert&lt; long long, const char * &gt;</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-static-methods">Static Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">fifr::util::Convert&lt; long long, const char * &gt; Struct Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="a00003.html" title="Trait for converting two types. ">Convert</a> <code>const char*</code> to <code>long long</code>.  
 <a href="a00008.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00030_source.html">Convert.hxx</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:af19ce4e9c5a5db1867c120fcff35ee63"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af19ce4e9c5a5db1867c120fcff35ee63"></a>
static long long&#160;</td><td class="memItemRight" valign="bottom"><b>convert</b> (const char *str)</td></tr>
<tr class="separator:af19ce4e9c5a5db1867c120fcff35ee63"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;&gt;<br />
struct fifr::util::Convert&lt; long long, const char * &gt;</h3>

<p><a class="el" href="a00003.html" title="Trait for converting two types. ">Convert</a> <code>const char*</code> to <code>long long</code>. </p>
</div><hr/>The documentation for this struct was generated from the following file:<ul>
<li>src/fifr/util/<a class="el" href="a00030_source.html">Convert.hxx</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Feb 21 2017 22:46:03 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00008_source.html.







































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>fifr::util: src/fifr/util/AutoTuple.hxx Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_410dc4a63588d435a0c08a3db8b9f0cd.html">fifr</a></li><li class="navelem"><a class="el" href="dir_2a722471f978b7073f859d2d7c3aa2b4.html">util</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">AutoTuple.hxx</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Copyright (c) 2017 Frank Fischer &lt;frank-fischer@shadow-soft.de&gt;</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * This program is free software: you can redistribute it and/or</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * modify it under the terms of the GNU General Public License as</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * published by the Free Software Foundation, either version 3 of the</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * License, or (at your option) any later version.</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> * This program is distributed in the hope that it will be useful, but</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> * WITHOUT ANY WARRANTY; without even the implied warranty of</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> * General Public License for more details.</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> * You should have received a copy of the GNU General Public License</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> * along with this program.  If not, see  &lt;http://www.gnu.org/licenses/&gt;</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;</div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="preprocessor">#ifndef __FIFR_UTIL_AUTOTUPLE_HXX__</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor">#define __FIFR_UTIL_AUTOTUPLE_HXX__</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;</div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor">#include &lt;tuple&gt;</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;</div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="keyword">namespace </span><a class="code" href="a00078.html">fifr</a></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;{</div><div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="a00079.html">   25</a></span>&#160;<span class="keyword">namespace </span>util</div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;{</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span>... Args&gt;</div><div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="a00631.html">   34</a></span>&#160;<span class="keyword">struct </span><a class="code" href="a00631.html">AutoTuple</a> {</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;    <span class="keyword">typedef</span> std::tuple&lt;Args...&gt; type;</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;};</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> Arg&gt;</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="keyword">struct </span><a class="code" href="a00631.html">AutoTuple</a>&lt;Arg&gt; {</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;    <span class="keyword">typedef</span> Arg type;</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;};</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> Arg1, <span class="keyword">typename</span> Arg2&gt;</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="keyword">struct </span>AutoTuple&lt;Arg1, Arg2&gt; {</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;    <span class="keyword">typedef</span> std::pair&lt;Arg1, Arg2&gt; type;</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;};</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span>... Args&gt;</div><div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="a00079.html#a2bdff2715e924516df9cc786e65d248e">   56</a></span>&#160;<span class="keyword">typename</span> <a class="code" href="a00631.html">AutoTuple</a>&lt;Args...&gt;::type <a class="code" href="a00079.html#a2bdff2715e924516df9cc786e65d248e">make_auto_tuple</a>(Args&amp;&amp;... args)</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;{</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    <span class="keywordflow">return</span> <span class="keyword">typename</span> <a class="code" href="a00631.html">AutoTuple</a>&lt;Args...&gt;::type{std::forward&lt;Args&gt;(args)...};</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;}</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;}  <span class="comment">// namespace util</span></div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;}  <span class="comment">// namespace fifr</span></div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;<span class="preprocessor">#endif</span></div><div class="ttc" id="a00079_html_a2bdff2715e924516df9cc786e65d248e"><div class="ttname"><a href="a00079.html#a2bdff2715e924516df9cc786e65d248e">fifr::util::make_auto_tuple</a></div><div class="ttdeci">AutoTuple&lt; Args... &gt;::type make_auto_tuple(Args &amp;&amp;... args)</div><div class="ttdoc">Return the arguments as value, pair or tuple. </div><div class="ttdef"><b>Definition:</b> AutoTuple.hxx:56</div></div>
<div class="ttc" id="a00078_html"><div class="ttname"><a href="a00078.html">fifr</a></div><div class="ttdef"><b>Definition:</b> AutoTuple.hxx:23</div></div>
<div class="ttc" id="a00631_html"><div class="ttname"><a href="a00631.html">fifr::util::AutoTuple</a></div><div class="ttdoc">Trait for returning tuple, pair or value depending on the number of type arguments. </div><div class="ttdef"><b>Definition:</b> AutoTuple.hxx:34</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Aug 6 2018 13:22:44 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00009.html.























































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>fifr::util: fifr::util::Convert&lt; long, const char * &gt; Struct Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="classes.html"><span>Data&#160;Structure&#160;Index</span></a></li>
      <li><a href="functions.html"><span>Data&#160;Fields</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>fifr</b></li><li class="navelem"><a class="el" href="a00042.html">util</a></li><li class="navelem"><a class="el" href="a00009.html">Convert&lt; long, const char * &gt;</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-static-methods">Static Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">fifr::util::Convert&lt; long, const char * &gt; Struct Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="a00003.html" title="Trait for converting two types. ">Convert</a> <code>const char*</code> to <code>long</code>.  
 <a href="a00009.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00030_source.html">Convert.hxx</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:abec419a160e63a41314a13e82e1b5a25"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abec419a160e63a41314a13e82e1b5a25"></a>
static long&#160;</td><td class="memItemRight" valign="bottom"><b>convert</b> (const char *str)</td></tr>
<tr class="separator:abec419a160e63a41314a13e82e1b5a25"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;&gt;<br />
struct fifr::util::Convert&lt; long, const char * &gt;</h3>

<p><a class="el" href="a00003.html" title="Trait for converting two types. ">Convert</a> <code>const char*</code> to <code>long</code>. </p>
</div><hr/>The documentation for this struct was generated from the following file:<ul>
<li>src/fifr/util/<a class="el" href="a00030_source.html">Convert.hxx</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Feb 21 2017 22:46:03 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00010.html.

























































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>fifr::util: fifr::util::Convert&lt; std::array&lt; To, N &gt;, std::array&lt; From, N &gt; &gt; Struct Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="classes.html"><span>Data&#160;Structure&#160;Index</span></a></li>
      <li><a href="functions.html"><span>Data&#160;Fields</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>fifr</b></li><li class="navelem"><a class="el" href="a00042.html">util</a></li><li class="navelem"><a class="el" href="a00010.html">Convert&lt; std::array&lt; To, N &gt;, std::array&lt; From, N &gt; &gt;</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-static-methods">Static Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">fifr::util::Convert&lt; std::array&lt; To, N &gt;, std::array&lt; From, N &gt; &gt; Struct Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="a00003.html" title="Trait for converting two types. ">Convert</a> array to another array.  
 <a href="a00010.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00030_source.html">Convert.hxx</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a4065ad957f9feba1629e4d6f51272dc4"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4065ad957f9feba1629e4d6f51272dc4"></a>
static std::array&lt; To, N &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>convert</b> (const std::array&lt; From, N &gt; &amp;args)</td></tr>
<tr class="separator:a4065ad957f9feba1629e4d6f51272dc4"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;typename To, typename From, std::size_t N&gt;<br />
struct fifr::util::Convert&lt; std::array&lt; To, N &gt;, std::array&lt; From, N &gt; &gt;</h3>

<p><a class="el" href="a00003.html" title="Trait for converting two types. ">Convert</a> array to another array. </p>
<p>This is done by converting each element. </p>
</div><hr/>The documentation for this struct was generated from the following file:<ul>
<li>src/fifr/util/<a class="el" href="a00030_source.html">Convert.hxx</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Feb 21 2017 22:46:03 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00011.html.

























































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>fifr::util: fifr::util::Convert&lt; std::pair&lt; To1, To2 &gt;, std::pair&lt; From1, From2 &gt; &gt; Struct Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="classes.html"><span>Data&#160;Structure&#160;Index</span></a></li>
      <li><a href="functions.html"><span>Data&#160;Fields</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>fifr</b></li><li class="navelem"><a class="el" href="a00042.html">util</a></li><li class="navelem"><a class="el" href="a00011.html">Convert&lt; std::pair&lt; To1, To2 &gt;, std::pair&lt; From1, From2 &gt; &gt;</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-static-methods">Static Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">fifr::util::Convert&lt; std::pair&lt; To1, To2 &gt;, std::pair&lt; From1, From2 &gt; &gt; Struct Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="a00003.html" title="Trait for converting two types. ">Convert</a> pair to another pair.  
 <a href="a00011.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00030_source.html">Convert.hxx</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a1db3c1f9c2b9a149d029bc427903b218"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1db3c1f9c2b9a149d029bc427903b218"></a>
static std::pair&lt; To1, To2 &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>convert</b> (const std::pair&lt; From1, From2 &gt; &amp;from)</td></tr>
<tr class="separator:a1db3c1f9c2b9a149d029bc427903b218"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;typename To1, typename To2, typename From1, typename From2&gt;<br />
struct fifr::util::Convert&lt; std::pair&lt; To1, To2 &gt;, std::pair&lt; From1, From2 &gt; &gt;</h3>

<p><a class="el" href="a00003.html" title="Trait for converting two types. ">Convert</a> pair to another pair. </p>
<p>This is done by converting each element. </p>
</div><hr/>The documentation for this struct was generated from the following file:<ul>
<li>src/fifr/util/<a class="el" href="a00030_source.html">Convert.hxx</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Feb 21 2017 22:46:03 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00012.html.























































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>fifr::util: fifr::util::Convert&lt; std::string, const char * &gt; Struct Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="classes.html"><span>Data&#160;Structure&#160;Index</span></a></li>
      <li><a href="functions.html"><span>Data&#160;Fields</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>fifr</b></li><li class="navelem"><a class="el" href="a00042.html">util</a></li><li class="navelem"><a class="el" href="a00012.html">Convert&lt; std::string, const char * &gt;</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-static-methods">Static Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">fifr::util::Convert&lt; std::string, const char * &gt; Struct Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="a00003.html" title="Trait for converting two types. ">Convert</a> <code>const char*</code> to `std::string.  
 <a href="a00012.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00030_source.html">Convert.hxx</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a46bd38de438a3221046cd200cb2e1b0a"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a46bd38de438a3221046cd200cb2e1b0a"></a>
static std::string&#160;</td><td class="memItemRight" valign="bottom"><b>convert</b> (const char *str)</td></tr>
<tr class="separator:a46bd38de438a3221046cd200cb2e1b0a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;&gt;<br />
struct fifr::util::Convert&lt; std::string, const char * &gt;</h3>

<p><a class="el" href="a00003.html" title="Trait for converting two types. ">Convert</a> <code>const char*</code> to `std::string. </p>
</div><hr/>The documentation for this struct was generated from the following file:<ul>
<li>src/fifr/util/<a class="el" href="a00030_source.html">Convert.hxx</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Feb 21 2017 22:46:03 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00013.html.























































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>fifr::util: fifr::util::Convert&lt; std::string, std::string &gt; Struct Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="classes.html"><span>Data&#160;Structure&#160;Index</span></a></li>
      <li><a href="functions.html"><span>Data&#160;Fields</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>fifr</b></li><li class="navelem"><a class="el" href="a00042.html">util</a></li><li class="navelem"><a class="el" href="a00013.html">Convert&lt; std::string, std::string &gt;</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-static-methods">Static Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">fifr::util::Convert&lt; std::string, std::string &gt; Struct Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Special self conversions to remove ambiguity.  
 <a href="a00013.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00030_source.html">Convert.hxx</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a1d15d61bf06ed8bacfdbc8d30450452c"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1d15d61bf06ed8bacfdbc8d30450452c"></a>
static std::string&#160;</td><td class="memItemRight" valign="bottom"><b>convert</b> (std::string &amp;&amp;x)</td></tr>
<tr class="separator:a1d15d61bf06ed8bacfdbc8d30450452c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;&gt;<br />
struct fifr::util::Convert&lt; std::string, std::string &gt;</h3>

<p>Special self conversions to remove ambiguity. </p>
</div><hr/>The documentation for this struct was generated from the following file:<ul>
<li>src/fifr/util/<a class="el" href="a00030_source.html">Convert.hxx</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Feb 21 2017 22:46:03 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00014.html.























































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>fifr::util: fifr::util::Convert&lt; std::string, T, decltype((void) std::to_string(std::declval&lt; T &gt;()))&gt; Struct Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="classes.html"><span>Data&#160;Structure&#160;Index</span></a></li>
      <li><a href="functions.html"><span>Data&#160;Fields</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>fifr</b></li><li class="navelem"><a class="el" href="a00042.html">util</a></li><li class="navelem"><a class="el" href="a00014.html">Convert&lt; std::string, T, decltype((void) std::to_string(std::declval&lt; T &gt;()))&gt;</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-static-methods">Static Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">fifr::util::Convert&lt; std::string, T, decltype((void) std::to_string(std::declval&lt; T &gt;()))&gt; Struct Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="a00003.html" title="Trait for converting two types. ">Convert</a> to <code>std::string</code> using <code>std::to_string</code>.  
 <a href="a00014.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00030_source.html">Convert.hxx</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a7d07c09879e86e8c2495781a1e902838"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7d07c09879e86e8c2495781a1e902838"></a>
static std::string&#160;</td><td class="memItemRight" valign="bottom"><b>convert</b> (const T &amp;x)</td></tr>
<tr class="separator:a7d07c09879e86e8c2495781a1e902838"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;typename T&gt;<br />
struct fifr::util::Convert&lt; std::string, T, decltype((void) std::to_string(std::declval&lt; T &gt;()))&gt;</h3>

<p><a class="el" href="a00003.html" title="Trait for converting two types. ">Convert</a> to <code>std::string</code> using <code>std::to_string</code>. </p>
</div><hr/>The documentation for this struct was generated from the following file:<ul>
<li>src/fifr/util/<a class="el" href="a00030_source.html">Convert.hxx</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Feb 21 2017 22:46:03 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00014_source.html.



















































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>fifr::util: src/fifr/util/AutoZipStream.hxx Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_410dc4a63588d435a0c08a3db8b9f0cd.html">fifr</a></li><li class="navelem"><a class="el" href="dir_2a722471f978b7073f859d2d7c3aa2b4.html">util</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">AutoZipStream.hxx</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Copyright (c) 2017 Frank Fischer &lt;frank-fischer@shadow-soft.de&gt;</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * This program is free software: you can redistribute it and/or</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * modify it under the terms of the GNU General Public License as</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * published by the Free Software Foundation, either version 3 of the</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * License, or (at your option) any later version.</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> * This program is distributed in the hope that it will be useful, but</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> * WITHOUT ANY WARRANTY; without even the implied warranty of</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> * General Public License for more details.</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> * You should have received a copy of the GNU General Public License</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> * along with this program.  If not, see  &lt;http://www.gnu.org/licenses/&gt;</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;</div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="preprocessor">#ifndef __FIFR_UTIL_AUTOZIPSTREAM_HXX__</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor">#define __FIFR_UTIL_AUTOZIPSTREAM_HXX__</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;</div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor">#include &lt;functional&gt;</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor">#include &lt;istream&gt;</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#include &lt;memory&gt;</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="preprocessor">#include &lt;ostream&gt;</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;</div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="keyword">namespace </span><a class="code" href="a00078.html">fifr</a></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;{</div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="keyword">namespace </span>util</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;{</div><div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="a00079.html#af2481a377dd3823a98547966b7ce7f70">   31</a></span>&#160;<span class="keyword">enum class</span> <a class="code" href="a00079.html#af2481a377dd3823a98547966b7ce7f70">ZipMode</a> {</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;    <a class="code" href="a00079.html#af2481a377dd3823a98547966b7ce7f70a06b9281e396db002010bde1de57262eb">Auto</a>,</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;    <a class="code" href="a00079.html#af2481a377dd3823a98547966b7ce7f70aafbf0897a5a83fdd873dfb032ec695d3">Internal</a>,</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;    <a class="code" href="a00079.html#af2481a377dd3823a98547966b7ce7f70ab206a1b4ea1097761f78e8876f6da779">External</a>,</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;};</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="keyword">typedef</span> std::function&lt;</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;    std::unique_ptr&lt;std::streambuf&gt;(<span class="keyword">const</span> std::string&amp;, std::ios::openmode, <a class="code" href="a00079.html#af2481a377dd3823a98547966b7ce7f70">ZipMode</a>)&gt;</div><div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="a00079.html#ab35030b49111e5496edbd06a4b568435">   46</a></span>&#160;    <a class="code" href="a00079.html#ab35030b49111e5496edbd06a4b568435">open_streambuf</a>;</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;std::unique_ptr&lt;std::streambuf&gt; <a class="code" href="a00079.html#a28a41e2b56c30668238b0015371f3d72">open_by_extension</a>(<span class="keyword">const</span> std::string&amp; name,</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;                                                  std::ios::openmode,</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;                                                  <a class="code" href="a00079.html#af2481a377dd3823a98547966b7ce7f70">ZipMode</a> zipmode);</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;<span class="keyword">class </span>AutoZipStreamData;</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;</div><div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="a00651.html">   73</a></span>&#160;<span class="keyword">class </span><a class="code" href="a00651.html">InputAutoZipStream</a> : <span class="keyword">public</span> std::istream</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;{</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;    <a class="code" href="a00651.html">InputAutoZipStream</a>(<a class="code" href="a00079.html#af2481a377dd3823a98547966b7ce7f70">ZipMode</a> zipmode = <a class="code" href="a00079.html#af2481a377dd3823a98547966b7ce7f70a06b9281e396db002010bde1de57262eb">ZipMode::Auto</a>,</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;                       <span class="keyword">const</span> <a class="code" href="a00079.html#ab35030b49111e5496edbd06a4b568435">open_streambuf</a>&amp; open = <a class="code" href="a00079.html#a28a41e2b56c30668238b0015371f3d72">open_by_extension</a>);</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;    <a class="code" href="a00651.html">InputAutoZipStream</a>(<span class="keyword">const</span> std::string&amp; name,</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;                       std::ios::openmode op_mode = std::ios::in,</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;                       <a class="code" href="a00079.html#af2481a377dd3823a98547966b7ce7f70">ZipMode</a> zipmode = <a class="code" href="a00079.html#af2481a377dd3823a98547966b7ce7f70a06b9281e396db002010bde1de57262eb">ZipMode::Auto</a>,</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;                       <span class="keyword">const</span> <a class="code" href="a00079.html#ab35030b49111e5496edbd06a4b568435">open_streambuf</a>&amp; open = <a class="code" href="a00079.html#a28a41e2b56c30668238b0015371f3d72">open_by_extension</a>);</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;    <a class="code" href="a00651.html">InputAutoZipStream</a>(<a class="code" href="a00651.html">InputAutoZipStream</a>&amp;&amp; s);</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;    ~<a class="code" href="a00651.html">InputAutoZipStream</a>();</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;    <a class="code" href="a00651.html">InputAutoZipStream</a>&amp; operator=(<a class="code" href="a00651.html">InputAutoZipStream</a>&amp;&amp; s);</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;    <span class="keywordtype">void</span> open(<span class="keyword">const</span> std::string&amp; name, std::ios_base::openmode op_mode = std::ios::in);</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;    std::unique_ptr&lt;AutoZipStreamData&gt; d;</div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;};</div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;</div><div class="line"><a name="l00107"></a><span class="lineno"><a class="line" href="a00655.html">  107</a></span>&#160;<span class="keyword">class </span><a class="code" href="a00655.html">OutputAutoZipStream</a> : <span class="keyword">public</span> std::ostream</div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;{</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;    <a class="code" href="a00655.html">OutputAutoZipStream</a>(<a class="code" href="a00079.html#af2481a377dd3823a98547966b7ce7f70">ZipMode</a> zipmode = <a class="code" href="a00079.html#af2481a377dd3823a98547966b7ce7f70a06b9281e396db002010bde1de57262eb">ZipMode::Auto</a>,</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;                        <span class="keyword">const</span> <a class="code" href="a00079.html#ab35030b49111e5496edbd06a4b568435">open_streambuf</a>&amp; open = <a class="code" href="a00079.html#a28a41e2b56c30668238b0015371f3d72">open_by_extension</a>);</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;</div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;    <a class="code" href="a00655.html">OutputAutoZipStream</a>(<span class="keyword">const</span> std::string&amp; name,</div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;                        std::ios::openmode op_mode = std::ios::out,</div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;                        <a class="code" href="a00079.html#af2481a377dd3823a98547966b7ce7f70">ZipMode</a> zipmode = <a class="code" href="a00079.html#af2481a377dd3823a98547966b7ce7f70a06b9281e396db002010bde1de57262eb">ZipMode::Auto</a>,</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;                        <span class="keyword">const</span> <a class="code" href="a00079.html#ab35030b49111e5496edbd06a4b568435">open_streambuf</a>&amp; open = <a class="code" href="a00079.html#a28a41e2b56c30668238b0015371f3d72">open_by_extension</a>);</div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;</div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;    <a class="code" href="a00655.html">OutputAutoZipStream</a>(<a class="code" href="a00655.html">OutputAutoZipStream</a>&amp;&amp; s);</div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;</div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;    ~<a class="code" href="a00655.html">OutputAutoZipStream</a>();</div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;</div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;    <a class="code" href="a00655.html">OutputAutoZipStream</a>&amp; operator=(<a class="code" href="a00655.html">OutputAutoZipStream</a>&amp;&amp; s);</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;    <span class="keywordtype">void</span> open(<span class="keyword">const</span> std::string&amp; name, std::ios_base::openmode op_mode = std::ios::out);</div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;</div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;    std::unique_ptr&lt;AutoZipStreamData&gt; d;</div><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;};</div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;</div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;<span class="keyword">typedef</span> <a class="code" href="a00651.html">InputAutoZipStream</a> <a class="code" href="a00651.html">izipstream</a>;</div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;<span class="keyword">typedef</span> <a class="code" href="a00655.html">OutputAutoZipStream</a> <a class="code" href="a00655.html">ozipstream</a>;</div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;}  <span class="comment">// namespace util</span></div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;}  <span class="comment">// namespace fifr</span></div><div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;</div><div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;<span class="preprocessor">#endif</span></div><div class="ttc" id="a00079_html_a28a41e2b56c30668238b0015371f3d72"><div class="ttname"><a href="a00079.html#a28a41e2b56c30668238b0015371f3d72">fifr::util::open_by_extension</a></div><div class="ttdeci">std::unique_ptr&lt; std::streambuf &gt; open_by_extension(const std::string &amp;name, std::ios::openmode opmode, ZipMode zipmode)</div><div class="ttdoc">Open a streambuf depending on the file extension. </div><div class="ttdef"><b>Definition:</b> AutoZipStream.cxx:68</div></div>
<div class="ttc" id="a00655_html"><div class="ttname"><a href="a00655.html">fifr::util::OutputAutoZipStream</a></div><div class="ttdoc">A file stream that automatically compresses files. </div><div class="ttdef"><b>Definition:</b> AutoZipStream.hxx:107</div></div>
<div class="ttc" id="a00079_html_af2481a377dd3823a98547966b7ce7f70"><div class="ttname"><a href="a00079.html#af2481a377dd3823a98547966b7ce7f70">fifr::util::ZipMode</a></div><div class="ttdeci">ZipMode</div><div class="ttdoc">Selection of an internal or external compressor. </div><div class="ttdef"><b>Definition:</b> AutoZipStream.hxx:31</div></div>
<div class="ttc" id="a00079_html_ab35030b49111e5496edbd06a4b568435"><div class="ttname"><a href="a00079.html#ab35030b49111e5496edbd06a4b568435">fifr::util::open_streambuf</a></div><div class="ttdeci">std::function&lt; std::unique_ptr&lt; std::streambuf &gt;const std::string &amp;, std::ios::openmode, ZipMode)&gt; open_streambuf</div><div class="ttdoc">A function to open a streambuf depending on filename, openmode and zipmode. </div><div class="ttdef"><b>Definition:</b> AutoZipStream.hxx:46</div></div>
<div class="ttc" id="a00079_html_af2481a377dd3823a98547966b7ce7f70aafbf0897a5a83fdd873dfb032ec695d3"><div class="ttname"><a href="a00079.html#af2481a377dd3823a98547966b7ce7f70aafbf0897a5a83fdd873dfb032ec695d3">fifr::util::ZipMode::Internal</a></div><div class="ttdoc">Always use the linked compression library (if available). </div></div>
<div class="ttc" id="a00078_html"><div class="ttname"><a href="a00078.html">fifr</a></div><div class="ttdef"><b>Definition:</b> AutoTuple.hxx:23</div></div>
<div class="ttc" id="a00079_html_af2481a377dd3823a98547966b7ce7f70a06b9281e396db002010bde1de57262eb"><div class="ttname"><a href="a00079.html#af2481a377dd3823a98547966b7ce7f70a06b9281e396db002010bde1de57262eb">fifr::util::ZipMode::Auto</a></div><div class="ttdoc">Automatically select the compressor. </div></div>
<div class="ttc" id="a00079_html_af2481a377dd3823a98547966b7ce7f70ab206a1b4ea1097761f78e8876f6da779"><div class="ttname"><a href="a00079.html#af2481a377dd3823a98547966b7ce7f70ab206a1b4ea1097761f78e8876f6da779">fifr::util::ZipMode::External</a></div><div class="ttdoc">Always use the external compression tool. </div></div>
<div class="ttc" id="a00651_html"><div class="ttname"><a href="a00651.html">fifr::util::InputAutoZipStream</a></div><div class="ttdoc">A file stream that automatically decompresses files. </div><div class="ttdef"><b>Definition:</b> AutoZipStream.hxx:73</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Aug 6 2018 13:22:44 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00015.html.

























































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>fifr::util: fifr::util::Convert&lt; std::tuple&lt; To...&gt;, std::tuple&lt; From...&gt; &gt; Struct Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="classes.html"><span>Data&#160;Structure&#160;Index</span></a></li>
      <li><a href="functions.html"><span>Data&#160;Fields</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>fifr</b></li><li class="navelem"><a class="el" href="a00042.html">util</a></li><li class="navelem"><a class="el" href="a00015.html">Convert&lt; std::tuple&lt; To...&gt;, std::tuple&lt; From...&gt; &gt;</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-static-methods">Static Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">fifr::util::Convert&lt; std::tuple&lt; To...&gt;, std::tuple&lt; From...&gt; &gt; Struct Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="a00003.html" title="Trait for converting two types. ">Convert</a> tuple to another tuple.  
 <a href="a00015.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00030_source.html">Convert.hxx</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a9793d75700b6bb64e315030f15fda579"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9793d75700b6bb64e315030f15fda579"></a>
static std::tuple&lt; To...&gt;&#160;</td><td class="memItemRight" valign="bottom"><b>convert</b> (const std::tuple&lt; From...&gt; &amp;args)</td></tr>
<tr class="separator:a9793d75700b6bb64e315030f15fda579"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;typename... To, typename... From&gt;<br />
struct fifr::util::Convert&lt; std::tuple&lt; To...&gt;, std::tuple&lt; From...&gt; &gt;</h3>

<p><a class="el" href="a00003.html" title="Trait for converting two types. ">Convert</a> tuple to another tuple. </p>
<p>This is done by converting each element. </p>
</div><hr/>The documentation for this struct was generated from the following file:<ul>
<li>src/fifr/util/<a class="el" href="a00030_source.html">Convert.hxx</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Feb 21 2017 22:46:03 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00016.html.

























































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>fifr::util: fifr::util::Convert&lt; std::vector&lt; To &gt;, std::vector&lt; From &gt; &gt; Struct Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="classes.html"><span>Data&#160;Structure&#160;Index</span></a></li>
      <li><a href="functions.html"><span>Data&#160;Fields</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>fifr</b></li><li class="navelem"><a class="el" href="a00042.html">util</a></li><li class="navelem"><a class="el" href="a00016.html">Convert&lt; std::vector&lt; To &gt;, std::vector&lt; From &gt; &gt;</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-static-methods">Static Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">fifr::util::Convert&lt; std::vector&lt; To &gt;, std::vector&lt; From &gt; &gt; Struct Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="a00003.html" title="Trait for converting two types. ">Convert</a> vector to another vector.  
 <a href="a00016.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00030_source.html">Convert.hxx</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a95c01380ef9969feb4812ff8fdd24e17"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a95c01380ef9969feb4812ff8fdd24e17"></a>
static std::vector&lt; To &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>convert</b> (const std::vector&lt; From &gt; &amp;args)</td></tr>
<tr class="separator:a95c01380ef9969feb4812ff8fdd24e17"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;typename To, typename From&gt;<br />
struct fifr::util::Convert&lt; std::vector&lt; To &gt;, std::vector&lt; From &gt; &gt;</h3>

<p><a class="el" href="a00003.html" title="Trait for converting two types. ">Convert</a> vector to another vector. </p>
<p>This is done by converting each element. </p>
</div><hr/>The documentation for this struct was generated from the following file:<ul>
<li>src/fifr/util/<a class="el" href="a00030_source.html">Convert.hxx</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Feb 21 2017 22:46:03 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00017.html.























































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>fifr::util: fifr::util::Convert&lt; T, T &gt; Struct Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="classes.html"><span>Data&#160;Structure&#160;Index</span></a></li>
      <li><a href="functions.html"><span>Data&#160;Fields</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>fifr</b></li><li class="navelem"><a class="el" href="a00042.html">util</a></li><li class="navelem"><a class="el" href="a00017.html">Convert&lt; T, T &gt;</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-static-methods">Static Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">fifr::util::Convert&lt; T, T &gt; Struct Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Conversion from some type to itself.  
 <a href="a00017.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00030_source.html">Convert.hxx</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a9b8832db4a12d02bd861713113008790"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9b8832db4a12d02bd861713113008790"></a>
static T&#160;</td><td class="memItemRight" valign="bottom"><b>convert</b> (T &amp;&amp;x)</td></tr>
<tr class="separator:a9b8832db4a12d02bd861713113008790"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;typename T&gt;<br />
struct fifr::util::Convert&lt; T, T &gt;</h3>

<p>Conversion from some type to itself. </p>
</div><hr/>The documentation for this struct was generated from the following file:<ul>
<li>src/fifr/util/<a class="el" href="a00030_source.html">Convert.hxx</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Feb 21 2017 22:46:03 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00018.html.























































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>fifr::util: fifr::util::Convert&lt; To, const char[N]&gt; Struct Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="classes.html"><span>Data&#160;Structure&#160;Index</span></a></li>
      <li><a href="functions.html"><span>Data&#160;Fields</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>fifr</b></li><li class="navelem"><a class="el" href="a00042.html">util</a></li><li class="navelem"><a class="el" href="a00018.html">Convert&lt; To, const char[N]&gt;</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-static-methods">Static Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">fifr::util::Convert&lt; To, const char[N]&gt; Struct Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="a00003.html" title="Trait for converting two types. ">Convert</a> <code>const char[N]</code> to something else converting through <code>const char*</code>.  
 <a href="a00018.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00030_source.html">Convert.hxx</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a1d7f8b3e3635edbeb4ddc785ff879da6"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1d7f8b3e3635edbeb4ddc785ff879da6"></a>
static To&#160;</td><td class="memItemRight" valign="bottom"><b>convert</b> (const char *str)</td></tr>
<tr class="separator:a1d7f8b3e3635edbeb4ddc785ff879da6"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;typename To, std::size_t N&gt;<br />
struct fifr::util::Convert&lt; To, const char[N]&gt;</h3>

<p><a class="el" href="a00003.html" title="Trait for converting two types. ">Convert</a> <code>const char[N]</code> to something else converting through <code>const char*</code>. </p>
</div><hr/>The documentation for this struct was generated from the following file:<ul>
<li>src/fifr/util/<a class="el" href="a00030_source.html">Convert.hxx</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Feb 21 2017 22:46:03 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00019.html.























































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>fifr::util: fifr::util::Convert&lt; To, const From &gt; Struct Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="classes.html"><span>Data&#160;Structure&#160;Index</span></a></li>
      <li><a href="functions.html"><span>Data&#160;Fields</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>fifr</b></li><li class="navelem"><a class="el" href="a00042.html">util</a></li><li class="navelem"><a class="el" href="a00019.html">Convert&lt; To, const From &gt;</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-static-methods">Static Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">fifr::util::Convert&lt; To, const From &gt; Struct Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Conversion from some const type.  
 <a href="a00019.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00030_source.html">Convert.hxx</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:afd52e6a50c27e7db8acc66e5de32be81"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="afd52e6a50c27e7db8acc66e5de32be81"></a>
static To&#160;</td><td class="memItemRight" valign="bottom"><b>convert</b> (const From &amp;x)</td></tr>
<tr class="separator:afd52e6a50c27e7db8acc66e5de32be81"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;typename To, typename From&gt;<br />
struct fifr::util::Convert&lt; To, const From &gt;</h3>

<p>Conversion from some const type. </p>
</div><hr/>The documentation for this struct was generated from the following file:<ul>
<li>src/fifr/util/<a class="el" href="a00030_source.html">Convert.hxx</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Feb 21 2017 22:46:03 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00020.html.























































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>fifr::util: fifr::util::Convert&lt; To, std::string &gt; Struct Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="classes.html"><span>Data&#160;Structure&#160;Index</span></a></li>
      <li><a href="functions.html"><span>Data&#160;Fields</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>fifr</b></li><li class="navelem"><a class="el" href="a00042.html">util</a></li><li class="navelem"><a class="el" href="a00020.html">Convert&lt; To, std::string &gt;</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-static-methods">Static Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">fifr::util::Convert&lt; To, std::string &gt; Struct Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="a00003.html" title="Trait for converting two types. ">Convert</a> <code>std::string</code> to something else converting through <code>const char*</code>.  
 <a href="a00020.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00030_source.html">Convert.hxx</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a11a687322d75bf03f584de31301f37d1"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a11a687322d75bf03f584de31301f37d1"></a>
static To&#160;</td><td class="memItemRight" valign="bottom"><b>convert</b> (const std::string &amp;str)</td></tr>
<tr class="separator:a11a687322d75bf03f584de31301f37d1"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;typename To&gt;<br />
struct fifr::util::Convert&lt; To, std::string &gt;</h3>

<p><a class="el" href="a00003.html" title="Trait for converting two types. ">Convert</a> <code>std::string</code> to something else converting through <code>const char*</code>. </p>
</div><hr/>The documentation for this struct was generated from the following file:<ul>
<li>src/fifr/util/<a class="el" href="a00030_source.html">Convert.hxx</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Feb 21 2017 22:46:03 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00020_source.html.















































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>fifr::util: src/fifr/util/BZip2Stream.hxx Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_410dc4a63588d435a0c08a3db8b9f0cd.html">fifr</a></li><li class="navelem"><a class="el" href="dir_2a722471f978b7073f859d2d7c3aa2b4.html">util</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">BZip2Stream.hxx</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#ifndef __FIFRUTIL_BZIP2STREAM_HXX__</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#define __FIFRUTIL_BZIP2STREAM_HXX__</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;</div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#include &lt;memory&gt;</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#include &lt;streambuf&gt;</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;</div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#include &quot;ZipStreamBase.hxx&quot;</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;</div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="keyword">namespace </span><a class="code" href="a00078.html">fifr</a></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;{</div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="keyword">namespace </span>util</div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;{</div><div class="line"><a name="l00015"></a><span class="lineno"><a class="line" href="a00663.html">   15</a></span>&#160;<span class="keyword">class </span><a class="code" href="a00663.html">BZip2StreamBuf</a> : <span class="keyword">public</span> std::streambuf</div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;{</div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;    <a class="code" href="a00663.html#a1e3446e302e276c7c366cd5f30dbce1b">BZip2StreamBuf</a>();</div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;</div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;    <a class="code" href="a00663.html#a9ff9e4ac10619304d9762e82a472347d">~BZip2StreamBuf</a>();</div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;</div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="a00663.html#a9ebe88a8f0e41f3d7b797e673820b262">is_open</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;    <a class="code" href="a00663.html">BZip2StreamBuf</a>* <a class="code" href="a00663.html#aafdc74695793e2884eca22d6a5cc8493">open</a>(<span class="keyword">const</span> std::string&amp; fname, std::ios_base::openmode op_mode);</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    <a class="code" href="a00663.html">BZip2StreamBuf</a>* <a class="code" href="a00663.html#ad43c71a8d5642691ef77c890950a9cd8">close</a>();</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;    <span class="keywordtype">int</span> overflow(<span class="keywordtype">int</span> c = EOF);</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    <span class="keywordtype">int</span> underflow();</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;    <span class="keywordtype">int</span> sync();</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    <span class="keywordtype">int</span> flush_buffer();</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;    <span class="keyword">struct </span>Data;</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;    std::unique_ptr&lt;Data&gt; d;</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;};</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;<span class="keyword">typedef</span> InputZipStreamBase&lt;BZip2StreamBuf&gt; InputBZip2Stream;</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;<span class="keyword">typedef</span> OutputZipStreamBase&lt;BZip2StreamBuf&gt; OutputBZip2Stream;</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;<span class="keyword">typedef</span> InputBZip2Stream ibz2stream;</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;<span class="keyword">typedef</span> OutputBZip2Stream obz2stream;</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;}  <span class="comment">// namespace util</span></div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;}  <span class="comment">// namespace fifr</span></div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;<span class="preprocessor">#endif</span></div><div class="ttc" id="a00663_html_ad43c71a8d5642691ef77c890950a9cd8"><div class="ttname"><a href="a00663.html#ad43c71a8d5642691ef77c890950a9cd8">fifr::util::BZip2StreamBuf::close</a></div><div class="ttdeci">BZip2StreamBuf * close()</div><div class="ttdoc">Closes the associated file. </div><div class="ttdef"><b>Definition:</b> BZip2Stream.cxx:107</div></div>
<div class="ttc" id="a00663_html_aafdc74695793e2884eca22d6a5cc8493"><div class="ttname"><a href="a00663.html#aafdc74695793e2884eca22d6a5cc8493">fifr::util::BZip2StreamBuf::open</a></div><div class="ttdeci">BZip2StreamBuf * open(const std::string &amp;fname, std::ios_base::openmode op_mode)</div><div class="ttdoc">Opens a file. </div><div class="ttdef"><b>Definition:</b> BZip2Stream.cxx:57</div></div>
<div class="ttc" id="a00663_html_a9ebe88a8f0e41f3d7b797e673820b262"><div class="ttname"><a href="a00663.html#a9ebe88a8f0e41f3d7b797e673820b262">fifr::util::BZip2StreamBuf::is_open</a></div><div class="ttdeci">bool is_open() const</div><div class="ttdoc">Returns true if the associated file is opened. </div><div class="ttdef"><b>Definition:</b> BZip2Stream.cxx:52</div></div>
<div class="ttc" id="a00663_html"><div class="ttname"><a href="a00663.html">fifr::util::BZip2StreamBuf</a></div><div class="ttdoc">Stream buffer for bzip2ed files. </div><div class="ttdef"><b>Definition:</b> BZip2Stream.hxx:15</div></div>
<div class="ttc" id="a00663_html_a9ff9e4ac10619304d9762e82a472347d"><div class="ttname"><a href="a00663.html#a9ff9e4ac10619304d9762e82a472347d">fifr::util::BZip2StreamBuf::~BZip2StreamBuf</a></div><div class="ttdeci">~BZip2StreamBuf()</div><div class="ttdoc">Destructor. </div><div class="ttdef"><b>Definition:</b> BZip2Stream.cxx:47</div></div>
<div class="ttc" id="a00078_html"><div class="ttname"><a href="a00078.html">fifr</a></div><div class="ttdef"><b>Definition:</b> AutoTuple.hxx:23</div></div>
<div class="ttc" id="a00663_html_a1e3446e302e276c7c366cd5f30dbce1b"><div class="ttname"><a href="a00663.html#a1e3446e302e276c7c366cd5f30dbce1b">fifr::util::BZip2StreamBuf::BZip2StreamBuf</a></div><div class="ttdeci">BZip2StreamBuf()</div><div class="ttdoc">Constructor. </div><div class="ttdef"><b>Definition:</b> BZip2Stream.cxx:41</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Aug 6 2018 13:22:44 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00021.html.























































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>fifr::util: fifr::util::Convert&lt; unsigned long long, const char * &gt; Struct Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="classes.html"><span>Data&#160;Structure&#160;Index</span></a></li>
      <li><a href="functions.html"><span>Data&#160;Fields</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>fifr</b></li><li class="navelem"><a class="el" href="a00042.html">util</a></li><li class="navelem"><a class="el" href="a00021.html">Convert&lt; unsigned long long, const char * &gt;</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-static-methods">Static Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">fifr::util::Convert&lt; unsigned long long, const char * &gt; Struct Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="a00003.html" title="Trait for converting two types. ">Convert</a> <code>const char*</code> to <code>unsigned long long</code>.  
 <a href="a00021.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00030_source.html">Convert.hxx</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a4a8c515b470dd46daba68955bb6f416f"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4a8c515b470dd46daba68955bb6f416f"></a>
static unsigned long long&#160;</td><td class="memItemRight" valign="bottom"><b>convert</b> (const char *str)</td></tr>
<tr class="separator:a4a8c515b470dd46daba68955bb6f416f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;&gt;<br />
struct fifr::util::Convert&lt; unsigned long long, const char * &gt;</h3>

<p><a class="el" href="a00003.html" title="Trait for converting two types. ">Convert</a> <code>const char*</code> to <code>unsigned long long</code>. </p>
</div><hr/>The documentation for this struct was generated from the following file:<ul>
<li>src/fifr/util/<a class="el" href="a00030_source.html">Convert.hxx</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Feb 21 2017 22:46:03 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00022.html.























































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>fifr::util: fifr::util::Convert&lt; unsigned long, const char * &gt; Struct Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="classes.html"><span>Data&#160;Structure&#160;Index</span></a></li>
      <li><a href="functions.html"><span>Data&#160;Fields</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>fifr</b></li><li class="navelem"><a class="el" href="a00042.html">util</a></li><li class="navelem"><a class="el" href="a00022.html">Convert&lt; unsigned long, const char * &gt;</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-static-methods">Static Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">fifr::util::Convert&lt; unsigned long, const char * &gt; Struct Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="a00003.html" title="Trait for converting two types. ">Convert</a> <code>const char*</code> to <code>unsigned long</code>.  
 <a href="a00022.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00030_source.html">Convert.hxx</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:acf975a681ecf959ad619d427092a211f"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="acf975a681ecf959ad619d427092a211f"></a>
static unsigned long&#160;</td><td class="memItemRight" valign="bottom"><b>convert</b> (const char *str)</td></tr>
<tr class="separator:acf975a681ecf959ad619d427092a211f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;&gt;<br />
struct fifr::util::Convert&lt; unsigned long, const char * &gt;</h3>

<p><a class="el" href="a00003.html" title="Trait for converting two types. ">Convert</a> <code>const char*</code> to <code>unsigned long</code>. </p>
</div><hr/>The documentation for this struct was generated from the following file:<ul>
<li>src/fifr/util/<a class="el" href="a00030_source.html">Convert.hxx</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Feb 21 2017 22:46:03 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00023.html.











































































































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>fifr::util: fifr::util::IteratorProxy&lt; It_ &gt; Class Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="classes.html"><span>Data&#160;Structure&#160;Index</span></a></li>
      <li><a href="functions.html"><span>Data&#160;Fields</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>fifr</b></li><li class="navelem"><a class="el" href="a00042.html">util</a></li><li class="navelem"><a class="el" href="a00023.html">IteratorProxy</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">fifr::util::IteratorProxy&lt; It_ &gt; Class Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Proxy providing access to some iterators.  
 <a href="a00023.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00032_source.html">Range.hxx</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:adbc399dd923cf29e482cc9cd4ede5561"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="adbc399dd923cf29e482cc9cd4ede5561"></a>
typedef It_&#160;</td><td class="memItemRight" valign="bottom"><b>iterator</b></td></tr>
<tr class="separator:adbc399dd923cf29e482cc9cd4ede5561"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a97988d9e557a0e693a2b07d51ae3f9f6"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a97988d9e557a0e693a2b07d51ae3f9f6"></a>
typedef iterator::value_type&#160;</td><td class="memItemRight" valign="bottom"><b>value_type</b></td></tr>
<tr class="separator:a97988d9e557a0e693a2b07d51ae3f9f6"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a384032b881a35d1db3c6b2e4b25e3364"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a384032b881a35d1db3c6b2e4b25e3364"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>IteratorProxy</b> (iterator &amp;&amp;start, iterator &amp;&amp;end)</td></tr>
<tr class="separator:a384032b881a35d1db3c6b2e4b25e3364"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2790ee8fefc5128da493aef026bd8033"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2790ee8fefc5128da493aef026bd8033"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>IteratorProxy</b> (const <a class="el" href="a00023.html">IteratorProxy</a> &amp;)=delete</td></tr>
<tr class="separator:a2790ee8fefc5128da493aef026bd8033"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a766f7b75d29544608397ba0e6f22748f"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a766f7b75d29544608397ba0e6f22748f"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>IteratorProxy</b> (<a class="el" href="a00023.html">IteratorProxy</a> &amp;&amp;)=delete</td></tr>
<tr class="separator:a766f7b75d29544608397ba0e6f22748f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9f1a5eae05dd9bcadaec5960b29702fb"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9f1a5eae05dd9bcadaec5960b29702fb"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>operator=</b> (const <a class="el" href="a00023.html">IteratorProxy</a> &amp;)=delete</td></tr>
<tr class="separator:a9f1a5eae05dd9bcadaec5960b29702fb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a211dc418a9d1478ad6f6238c14c7ab97"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a211dc418a9d1478ad6f6238c14c7ab97"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>operator=</b> (<a class="el" href="a00023.html">IteratorProxy</a> &amp;&amp;)=delete</td></tr>
<tr class="separator:a211dc418a9d1478ad6f6238c14c7ab97"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac12623291de8b6455e3814173a775f54"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac12623291de8b6455e3814173a775f54"></a>
iterator&#160;</td><td class="memItemRight" valign="bottom"><b>begin</b> () const </td></tr>
<tr class="separator:ac12623291de8b6455e3814173a775f54"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9757af9eba83c76601a2c5054343a0ca"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9757af9eba83c76601a2c5054343a0ca"></a>
iterator&#160;</td><td class="memItemRight" valign="bottom"><b>end</b> () const </td></tr>
<tr class="separator:a9757af9eba83c76601a2c5054343a0ca"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1256f4f9987956a07dab9575212e3008"><td class="memTemplParams" colspan="2"><a class="anchor" id="a1256f4f9987956a07dab9575212e3008"></a>
template&lt;typename T &gt; </td></tr>
<tr class="memitem:a1256f4f9987956a07dab9575212e3008"><td class="memTemplItemLeft" align="right" valign="top">&#160;</td><td class="memTemplItemRight" valign="bottom"><b>operator std::vector&lt; T &gt;</b> () const &amp;</td></tr>
<tr class="separator:a1256f4f9987956a07dab9575212e3008"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abe3219fe3b0d4bd0507ad995f628e8c4"><td class="memTemplParams" colspan="2"><a class="anchor" id="abe3219fe3b0d4bd0507ad995f628e8c4"></a>
template&lt;typename T &gt; </td></tr>
<tr class="memitem:abe3219fe3b0d4bd0507ad995f628e8c4"><td class="memTemplItemLeft" align="right" valign="top">&#160;</td><td class="memTemplItemRight" valign="bottom"><b>operator std::vector&lt; T &gt;</b> ()&amp;&amp;</td></tr>
<tr class="separator:abe3219fe3b0d4bd0507ad995f628e8c4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a651810d68c74a1e4f541901e20205e80"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a651810d68c74a1e4f541901e20205e80"></a>
std::vector&lt; value_type &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>collect</b> () const &amp;</td></tr>
<tr class="separator:a651810d68c74a1e4f541901e20205e80"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5e72cc1455b7572304ebec3ff00d57af"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5e72cc1455b7572304ebec3ff00d57af"></a>
std::vector&lt; value_type &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>collect</b> ()&amp;&amp;</td></tr>
<tr class="separator:a5e72cc1455b7572304ebec3ff00d57af"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;typename It_&gt;<br />
class fifr::util::IteratorProxy&lt; It_ &gt;</h3>

<p>Proxy providing access to some iterators. </p>
</div><hr/>The documentation for this class was generated from the following file:<ul>
<li>src/fifr/util/<a class="el" href="a00032_source.html">Range.hxx</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Feb 21 2017 22:46:03 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00024.html.















































































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>fifr::util: fifr::util::Join&lt; C &gt; Class Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="classes.html"><span>Data&#160;Structure&#160;Index</span></a></li>
      <li><a href="functions.html"><span>Data&#160;Fields</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>fifr</b></li><li class="navelem"><a class="el" href="a00042.html">util</a></li><li class="navelem"><a class="el" href="a00024.html">Join</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#friends">Friends</a>  </div>
  <div class="headertitle">
<div class="title">fifr::util::Join&lt; C &gt; Class Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="a00024.html" title="Join operator. ">Join</a> operator.  
 <a href="a00024.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00031_source.html">Join.hxx</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ad00065b035eb0075d14b2ffdafae4af0"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad00065b035eb0075d14b2ffdafae4af0"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>Join</b> (const C &amp;container, const std::string &amp;sep)</td></tr>
<tr class="separator:ad00065b035eb0075d14b2ffdafae4af0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abf006a658165863097ae0d90305aea8f"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abf006a658165863097ae0d90305aea8f"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>Join</b> (<a class="el" href="a00024.html">Join</a> &amp;&amp;)=delete</td></tr>
<tr class="separator:abf006a658165863097ae0d90305aea8f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a880b4e67a063e99c25c90b6e762b1412"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a880b4e67a063e99c25c90b6e762b1412"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>Join</b> (const <a class="el" href="a00024.html">Join</a> &amp;)=delete</td></tr>
<tr class="separator:a880b4e67a063e99c25c90b6e762b1412"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ade5d141100a32bce37fe34d2bb57eaa3"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ade5d141100a32bce37fe34d2bb57eaa3"></a>
<a class="el" href="a00024.html">Join</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator=</b> (<a class="el" href="a00024.html">Join</a> &amp;&amp;)=delete</td></tr>
<tr class="separator:ade5d141100a32bce37fe34d2bb57eaa3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a10de59a40cabbf48eb148cd809d92a6e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a10de59a40cabbf48eb148cd809d92a6e"></a>
<a class="el" href="a00024.html">Join</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator=</b> (const <a class="el" href="a00024.html">Join</a> &amp;)=delete</td></tr>
<tr class="separator:a10de59a40cabbf48eb148cd809d92a6e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a18d514b42ad07d92d60f0431f1d3e92d"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a18d514b42ad07d92d60f0431f1d3e92d"></a>
std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00024.html#a18d514b42ad07d92d60f0431f1d3e92d">str</a> () const </td></tr>
<tr class="memdesc:a18d514b42ad07d92d60f0431f1d3e92d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the joined string. <br /></td></tr>
<tr class="separator:a18d514b42ad07d92d60f0431f1d3e92d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3a155415d89ad806eeaba75ad577884e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3a155415d89ad806eeaba75ad577884e"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>operator std::string</b> () const </td></tr>
<tr class="separator:a3a155415d89ad806eeaba75ad577884e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a>
Friends</h2></td></tr>
<tr class="memitem:a183002cf4728b5e69ec86ee4ec183b15"><td class="memTemplParams" colspan="2"><a class="anchor" id="a183002cf4728b5e69ec86ee4ec183b15"></a>
template&lt;class C_ &gt; </td></tr>
<tr class="memitem:a183002cf4728b5e69ec86ee4ec183b15"><td class="memTemplItemLeft" align="right" valign="top">std::ostream &amp;&#160;</td><td class="memTemplItemRight" valign="bottom"><b>operator&lt;&lt;</b> (std::ostream &amp;out, const <a class="el" href="a00024.html">Join</a>&lt; C_ &gt; &amp;<a class="el" href="a00042.html#a4549a4c462e3314bd2dae501eae9d9c9">join</a>)</td></tr>
<tr class="separator:a183002cf4728b5e69ec86ee4ec183b15"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;class C&gt;<br />
class fifr::util::Join&lt; C &gt;</h3>

<p><a class="el" href="a00024.html" title="Join operator. ">Join</a> operator. </p>
<p>This object can be converted to a string, a C-string or written to an output stream. </p>
</div><hr/>The documentation for this class was generated from the following file:<ul>
<li>src/fifr/util/<a class="el" href="a00031_source.html">Join.hxx</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Feb 21 2017 22:46:03 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00025.html.





























































































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>fifr::util: fifr::util::ScanIterator&lt; Args &gt; Class Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="classes.html"><span>Data&#160;Structure&#160;Index</span></a></li>
      <li><a href="functions.html"><span>Data&#160;Fields</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>fifr</b></li><li class="navelem"><a class="el" href="a00042.html">util</a></li><li class="navelem"><a class="el" href="a00025.html">ScanIterator</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">fifr::util::ScanIterator&lt; Args &gt; Class Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Iterator for matches of a scan operation.  
 <a href="a00025.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00034_source.html">Scan.hxx</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a00155e6cba315d2418f8dfaf1c6775d1"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a00155e6cba315d2418f8dfaf1c6775d1"></a>
typedef std::sregex_iterator::difference_type&#160;</td><td class="memItemRight" valign="bottom"><b>difference_type</b></td></tr>
<tr class="separator:a00155e6cba315d2418f8dfaf1c6775d1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7b6fb3c9b847a2c3382f6225f27f0df8"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7b6fb3c9b847a2c3382f6225f27f0df8"></a>
typedef <a class="el" href="a00002.html">AutoTuple</a>&lt; Args...&gt;::type&#160;</td><td class="memItemRight" valign="bottom"><b>value_type</b></td></tr>
<tr class="separator:a7b6fb3c9b847a2c3382f6225f27f0df8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9df569c1bc0d41c18951a2691e76ef30"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9df569c1bc0d41c18951a2691e76ef30"></a>
typedef const value_type *&#160;</td><td class="memItemRight" valign="bottom"><b>pointer</b></td></tr>
<tr class="separator:a9df569c1bc0d41c18951a2691e76ef30"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac4a114a0177b3b6483d17ea34c7b486e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac4a114a0177b3b6483d17ea34c7b486e"></a>
typedef const value_type &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>reference</b></td></tr>
<tr class="separator:ac4a114a0177b3b6483d17ea34c7b486e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9a4f8a8d63e39dfd5d4114785c90edcb"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9a4f8a8d63e39dfd5d4114785c90edcb"></a>
typedef std::forward_iterator_tag&#160;</td><td class="memItemRight" valign="bottom"><b>iterator_category</b></td></tr>
<tr class="separator:a9a4f8a8d63e39dfd5d4114785c90edcb"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a6e5a05bc67cfa15e4a3b511892d59f1a"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6e5a05bc67cfa15e4a3b511892d59f1a"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>ScanIterator</b> (std::sregex_iterator &amp;&amp;it)</td></tr>
<tr class="separator:a6e5a05bc67cfa15e4a3b511892d59f1a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a03d0e1fd7566a382518dfb7b95772d94"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a03d0e1fd7566a382518dfb7b95772d94"></a>
value_type&#160;</td><td class="memItemRight" valign="bottom"><b>operator*</b> () const </td></tr>
<tr class="separator:a03d0e1fd7566a382518dfb7b95772d94"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a061cdee706a68905064c98c8e2fc910c"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a061cdee706a68905064c98c8e2fc910c"></a>
<a class="el" href="a00025.html">ScanIterator</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator++</b> ()</td></tr>
<tr class="separator:a061cdee706a68905064c98c8e2fc910c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3ad78d721feb0a48d87e734d731bac74"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3ad78d721feb0a48d87e734d731bac74"></a>
<a class="el" href="a00025.html">ScanIterator</a>&#160;</td><td class="memItemRight" valign="bottom"><b>operator++</b> (int)</td></tr>
<tr class="separator:a3ad78d721feb0a48d87e734d731bac74"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac12ed16522310c460407bfa5df7fabbd"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac12ed16522310c460407bfa5df7fabbd"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>operator==</b> (const <a class="el" href="a00025.html">ScanIterator</a> &amp;other) const </td></tr>
<tr class="separator:ac12ed16522310c460407bfa5df7fabbd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aadb5cf39a520c797b019ac219c1912f0"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aadb5cf39a520c797b019ac219c1912f0"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>operator!=</b> (const <a class="el" href="a00025.html">ScanIterator</a> &amp;other) const </td></tr>
<tr class="separator:aadb5cf39a520c797b019ac219c1912f0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;typename... Args&gt;<br />
class fifr::util::ScanIterator&lt; Args &gt;</h3>

<p>Iterator for matches of a scan operation. </p>
<p>Elements of this operator are the submatches converted to types Args and returned as a tuple. </p>
</div><hr/>The documentation for this class was generated from the following file:<ul>
<li>src/fifr/util/<a class="el" href="a00034_source.html">Scan.hxx</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Feb 21 2017 22:46:03 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00026.html.





























































































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>fifr::util: fifr::util::ScanIterator&lt;&gt; Class Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="classes.html"><span>Data&#160;Structure&#160;Index</span></a></li>
      <li><a href="functions.html"><span>Data&#160;Fields</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>fifr</b></li><li class="navelem"><a class="el" href="a00042.html">util</a></li><li class="navelem"><a class="el" href="a00026.html">ScanIterator&lt;&gt;</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">fifr::util::ScanIterator&lt;&gt; Class Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Full match scan iterator.  
 <a href="a00026.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00034_source.html">Scan.hxx</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:aad5dd00318ab27326b3ac08d69bfd661"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aad5dd00318ab27326b3ac08d69bfd661"></a>
typedef std::sregex_iterator::difference_type&#160;</td><td class="memItemRight" valign="bottom"><b>difference_type</b></td></tr>
<tr class="separator:aad5dd00318ab27326b3ac08d69bfd661"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a10be5dcef0741fb5618a744c95068136"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a10be5dcef0741fb5618a744c95068136"></a>
typedef std::string&#160;</td><td class="memItemRight" valign="bottom"><b>value_type</b></td></tr>
<tr class="separator:a10be5dcef0741fb5618a744c95068136"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aafd7aeb3ed51d750229a3f8d23dde2d5"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aafd7aeb3ed51d750229a3f8d23dde2d5"></a>
typedef const std::string *&#160;</td><td class="memItemRight" valign="bottom"><b>pointer</b></td></tr>
<tr class="separator:aafd7aeb3ed51d750229a3f8d23dde2d5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1f151cc322a0db880e6b6bd0dbcdb396"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1f151cc322a0db880e6b6bd0dbcdb396"></a>
typedef const std::string &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>reference</b></td></tr>
<tr class="separator:a1f151cc322a0db880e6b6bd0dbcdb396"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afe5d2e2b2d3fb97cbccefab60c6a07c9"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="afe5d2e2b2d3fb97cbccefab60c6a07c9"></a>
typedef std::forward_iterator_tag&#160;</td><td class="memItemRight" valign="bottom"><b>iterator_category</b></td></tr>
<tr class="separator:afe5d2e2b2d3fb97cbccefab60c6a07c9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a6937359c201712c828cf51b742eaacba"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6937359c201712c828cf51b742eaacba"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>ScanIterator</b> (std::sregex_iterator &amp;&amp;it)</td></tr>
<tr class="separator:a6937359c201712c828cf51b742eaacba"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae06ae093b98ac581c8352da64b730076"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae06ae093b98ac581c8352da64b730076"></a>
value_type&#160;</td><td class="memItemRight" valign="bottom"><b>operator*</b> () const </td></tr>
<tr class="separator:ae06ae093b98ac581c8352da64b730076"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a37a8751222aa14425dea6372b2cc1670"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a37a8751222aa14425dea6372b2cc1670"></a>
<a class="el" href="a00025.html">ScanIterator</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator++</b> ()</td></tr>
<tr class="separator:a37a8751222aa14425dea6372b2cc1670"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a92d9d8b388748bd200580287317e32b4"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a92d9d8b388748bd200580287317e32b4"></a>
<a class="el" href="a00025.html">ScanIterator</a>&#160;</td><td class="memItemRight" valign="bottom"><b>operator++</b> (int)</td></tr>
<tr class="separator:a92d9d8b388748bd200580287317e32b4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a99c77e8afcaa34e2c6a32a8de70e25ba"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a99c77e8afcaa34e2c6a32a8de70e25ba"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>operator==</b> (const <a class="el" href="a00025.html">ScanIterator</a> &amp;other) const </td></tr>
<tr class="separator:a99c77e8afcaa34e2c6a32a8de70e25ba"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af332c531fa2b7171f993254d472f8e96"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af332c531fa2b7171f993254d472f8e96"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>operator!=</b> (const <a class="el" href="a00025.html">ScanIterator</a> &amp;other) const </td></tr>
<tr class="separator:af332c531fa2b7171f993254d472f8e96"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;&gt;<br />
class fifr::util::ScanIterator&lt;&gt;</h3>

<p>Full match scan iterator. </p>
<p>The elements of this iterator are the full scan matches as a string. </p>
</div><hr/>The documentation for this class was generated from the following file:<ul>
<li>src/fifr/util/<a class="el" href="a00034_source.html">Scan.hxx</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Feb 21 2017 22:46:03 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00026_source.html.

cannot compute difference between binary files

Added 3rdparty/util/doc/html/a00027.html.



























































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>fifr::util: fifr::util::SplitIterator Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="classes.html"><span>Data&#160;Structure&#160;Index</span></a></li>
      <li><a href="functions.html"><span>Data&#160;Fields</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>fifr</b></li><li class="navelem"><a class="el" href="a00042.html">util</a></li><li class="navelem"><a class="el" href="a00027.html">SplitIterator</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">fifr::util::SplitIterator Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Iterator over the parts of a split string.  
 <a href="a00027.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00036_source.html">Split.hxx</a>&gt;</code></p>

<p>Inherits iterator&lt; std::forward_iterator_tag, std::string &gt;.</p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ab70940b4245b4f71190af2a83b478b95"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab70940b4245b4f71190af2a83b478b95"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>SplitIterator</b> (const std::string &amp;str, std::sregex_iterator &amp;&amp;it)</td></tr>
<tr class="separator:ab70940b4245b4f71190af2a83b478b95"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aae9867ecafa477e87446824779485427"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aae9867ecafa477e87446824779485427"></a>
std::string&#160;</td><td class="memItemRight" valign="bottom"><b>operator*</b> () const </td></tr>
<tr class="separator:aae9867ecafa477e87446824779485427"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7b8ed3eec30921145e025c509efa84db"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7b8ed3eec30921145e025c509efa84db"></a>
<a class="el" href="a00027.html">SplitIterator</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator++</b> ()</td></tr>
<tr class="separator:a7b8ed3eec30921145e025c509efa84db"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adab0fb40eb960092d959121e4db69fcc"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="adab0fb40eb960092d959121e4db69fcc"></a>
<a class="el" href="a00027.html">SplitIterator</a>&#160;</td><td class="memItemRight" valign="bottom"><b>operator++</b> (int)</td></tr>
<tr class="separator:adab0fb40eb960092d959121e4db69fcc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a13dbc9c4c4da2e198d43785a8ce311be"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a13dbc9c4c4da2e198d43785a8ce311be"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>operator==</b> (const <a class="el" href="a00027.html">SplitIterator</a> &amp;it) const </td></tr>
<tr class="separator:a13dbc9c4c4da2e198d43785a8ce311be"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab2fcfed7213486a61584d9b08e6808ed"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab2fcfed7213486a61584d9b08e6808ed"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>operator!=</b> (const <a class="el" href="a00027.html">SplitIterator</a> &amp;it) const </td></tr>
<tr class="separator:ab2fcfed7213486a61584d9b08e6808ed"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a38b1c3968990f68a1b68e6e9dac21e93"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a38b1c3968990f68a1b68e6e9dac21e93"></a>
std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00027.html#a38b1c3968990f68a1b68e6e9dac21e93">rest</a> () const </td></tr>
<tr class="memdesc:a38b1c3968990f68a1b68e6e9dac21e93"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the rest of the string starting at the current part. <br /></td></tr>
<tr class="separator:a38b1c3968990f68a1b68e6e9dac21e93"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Iterator over the parts of a split string. </p>
</div><hr/>The documentation for this class was generated from the following file:<ul>
<li>src/fifr/util/<a class="el" href="a00036_source.html">Split.hxx</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Feb 21 2017 22:46:03 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00029.html.

































































































































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>fifr::util: src/fifr/util/Convert.hxx File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_410dc4a63588d435a0c08a3db8b9f0cd.html">fifr</a></li><li class="navelem"><a class="el" href="dir_2a722471f978b7073f859d2d7c3aa2b4.html">util</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#namespaces">Namespaces</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Convert.hxx File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Implement a Rust inspired conversion trait <code>Convert</code>.  
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &lt;string&gt;</code><br />
<code>#include &lt;tuple&gt;</code><br />
<code>#include &lt;utility&gt;</code><br />
<code>#include &lt;vector&gt;</code><br />
</div>
<p><a href="a00029_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00707.html">fifr::util::Convert&lt; To, From, Enable &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Trait for converting two types.  <a href="a00707.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00711.html">fifr::util::Convert&lt; T, T &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Conversion from some type to itself.  <a href="a00711.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00715.html">fifr::util::Convert&lt; std::string, std::string &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Special self conversions to remove ambiguity.  <a href="a00715.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00719.html">fifr::util::Convert&lt; std::string, T, decltype((void) std::to_string(std::declval&lt; T &gt;()))&gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> to <code>std::string</code> using <code>std::to_string</code>.  <a href="a00719.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00723.html">fifr::util::Convert&lt; std::string, T, decltype((void) std::declval&lt; const T &amp; &gt;().to_string())&gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> to <code>std::string</code> using <code>this.to_string()</code>.  <a href="a00723.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00727.html">fifr::util::Convert&lt; To, std::string &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> <code>std::string</code> to something else converting through <code>const char*</code>.  <a href="a00727.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00731.html">fifr::util::Convert&lt; To, char[N]&gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> <code>char[N]</code> to something else converting through <code>const char*</code>.  <a href="a00731.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00735.html">fifr::util::Convert&lt; std::string, char * &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> <code>char*</code> to `std::string.  <a href="a00735.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00739.html">fifr::util::Convert&lt; int, char * &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> <code>char*</code> to <code>int</code>.  <a href="a00739.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00743.html">fifr::util::Convert&lt; long, char * &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> <code>char*</code> to <code>long</code>.  <a href="a00743.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00747.html">fifr::util::Convert&lt; long long, char * &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> <code>char*</code> to <code>long long</code>.  <a href="a00747.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00751.html">fifr::util::Convert&lt; unsigned int, char * &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> <code>char*</code> to <code>unsigned int</code>.  <a href="a00751.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00755.html">fifr::util::Convert&lt; unsigned long, char * &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> <code>char*</code> to <code>unsigned long</code>.  <a href="a00755.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00759.html">fifr::util::Convert&lt; unsigned long long, char * &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> <code>char*</code> to <code>unsigned long long</code>.  <a href="a00759.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00763.html">fifr::util::Convert&lt; float, char * &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> <code>char*</code> to <code>float</code>.  <a href="a00763.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00767.html">fifr::util::Convert&lt; double, char * &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> <code>char*</code> to <code>double</code>.  <a href="a00767.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00771.html">fifr::util::Convert&lt; long double, char * &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> <code>char*</code> to <code>long double</code>.  <a href="a00771.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00779.html">fifr::util::Convert&lt; std::pair&lt; To1, To2 &gt;, std::pair&lt; From1, From2 &gt; &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> pair to another pair.  <a href="a00779.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00783.html">fifr::util::Convert&lt; std::tuple&lt; To... &gt;, std::tuple&lt; From... &gt; &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> tuple to another tuple.  <a href="a00783.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00787.html">fifr::util::Convert&lt; std::array&lt; To, N &gt;, std::array&lt; From, N &gt; &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> array to another array.  <a href="a00787.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00791.html">fifr::util::Convert&lt; std::vector&lt; To &gt;, std::vector&lt; From &gt; &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> vector to another vector.  <a href="a00791.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
Namespaces</h2></td></tr>
<tr class="memitem:a00079"><td class="memItemLeft" align="right" valign="top"> &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00079.html">fifr::util</a></td></tr>
<tr class="memdesc:a00079"><td class="mdescLeft">&#160;</td><td class="mdescRight">Utility functions for c++. <br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a2571be8e8b55e880f6c251f93bbf1d97"><td class="memTemplParams" colspan="2"><a id="a2571be8e8b55e880f6c251f93bbf1d97"></a>
template&lt;typename To , typename From &gt; </td></tr>
<tr class="memitem:a2571be8e8b55e880f6c251f93bbf1d97"><td class="memTemplItemLeft" align="right" valign="top">To&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00079.html#a2571be8e8b55e880f6c251f93bbf1d97">fifr::util::convert</a> (From &amp;&amp;x)</td></tr>
<tr class="memdesc:a2571be8e8b55e880f6c251f93bbf1d97"><td class="mdescLeft">&#160;</td><td class="mdescRight">Generic conversion function. <br /></td></tr>
<tr class="separator:a2571be8e8b55e880f6c251f93bbf1d97"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Implement a Rust inspired conversion trait <code>Convert</code>. </p>
</div></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Aug 6 2018 13:22:44 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00029_source.html.

cannot compute difference between binary files

Added 3rdparty/util/doc/html/a00030.html.

































































































































































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>fifr::util: src/fifr/util/Convert.hxx File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_410dc4a63588d435a0c08a3db8b9f0cd.html">fifr</a></li><li class="navelem"><a class="el" href="dir_2a722471f978b7073f859d2d7c3aa2b4.html">util</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#namespaces">Namespaces</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Convert.hxx File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Implement a Rust inspired conversion trait <code>Convert</code>.  
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &lt;utility&gt;</code><br />
<code>#include &lt;string&gt;</code><br />
<code>#include &lt;tuple&gt;</code><br />
<code>#include &lt;vector&gt;</code><br />
</div>
<p><a href="a00030_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00003.html">fifr::util::Convert&lt; To, From, Enable &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Trait for converting two types.  <a href="a00003.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00017.html">fifr::util::Convert&lt; T, T &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Conversion from some type to itself.  <a href="a00017.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00013.html">fifr::util::Convert&lt; std::string, std::string &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Special self conversions to remove ambiguity.  <a href="a00013.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00019.html">fifr::util::Convert&lt; To, const From &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Conversion from some const type.  <a href="a00019.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00014.html">fifr::util::Convert&lt; std::string, T, decltype((void) std::to_string(std::declval&lt; T &gt;()))&gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="a00003.html" title="Trait for converting two types. ">Convert</a> to <code>std::string</code> using <code>std::to_string</code>.  <a href="a00014.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00020.html">fifr::util::Convert&lt; To, std::string &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="a00003.html" title="Trait for converting two types. ">Convert</a> <code>std::string</code> to something else converting through <code>const char*</code>.  <a href="a00020.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00018.html">fifr::util::Convert&lt; To, const char[N]&gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="a00003.html" title="Trait for converting two types. ">Convert</a> <code>const char[N]</code> to something else converting through <code>const char*</code>.  <a href="a00018.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00012.html">fifr::util::Convert&lt; std::string, const char * &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="a00003.html" title="Trait for converting two types. ">Convert</a> <code>const char*</code> to `std::string.  <a href="a00012.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00006.html">fifr::util::Convert&lt; int, const char * &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="a00003.html" title="Trait for converting two types. ">Convert</a> <code>const char*</code> to <code>int</code>.  <a href="a00006.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00009.html">fifr::util::Convert&lt; long, const char * &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="a00003.html" title="Trait for converting two types. ">Convert</a> <code>const char*</code> to <code>long</code>.  <a href="a00009.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00008.html">fifr::util::Convert&lt; long long, const char * &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="a00003.html" title="Trait for converting two types. ">Convert</a> <code>const char*</code> to <code>long long</code>.  <a href="a00008.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00022.html">fifr::util::Convert&lt; unsigned long, const char * &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="a00003.html" title="Trait for converting two types. ">Convert</a> <code>const char*</code> to <code>unsigned long</code>.  <a href="a00022.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00021.html">fifr::util::Convert&lt; unsigned long long, const char * &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="a00003.html" title="Trait for converting two types. ">Convert</a> <code>const char*</code> to <code>unsigned long long</code>.  <a href="a00021.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00005.html">fifr::util::Convert&lt; float, const char * &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="a00003.html" title="Trait for converting two types. ">Convert</a> <code>const char*</code> to <code>float</code>.  <a href="a00005.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00004.html">fifr::util::Convert&lt; double, const char * &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="a00003.html" title="Trait for converting two types. ">Convert</a> <code>const char*</code> to <code>double</code>.  <a href="a00004.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00007.html">fifr::util::Convert&lt; long double, const char * &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="a00003.html" title="Trait for converting two types. ">Convert</a> <code>const char*</code> to <code>long double</code>.  <a href="a00007.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00011.html">fifr::util::Convert&lt; std::pair&lt; To1, To2 &gt;, std::pair&lt; From1, From2 &gt; &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="a00003.html" title="Trait for converting two types. ">Convert</a> pair to another pair.  <a href="a00011.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00015.html">fifr::util::Convert&lt; std::tuple&lt; To...&gt;, std::tuple&lt; From...&gt; &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="a00003.html" title="Trait for converting two types. ">Convert</a> tuple to another tuple.  <a href="a00015.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00010.html">fifr::util::Convert&lt; std::array&lt; To, N &gt;, std::array&lt; From, N &gt; &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="a00003.html" title="Trait for converting two types. ">Convert</a> array to another array.  <a href="a00010.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00016.html">fifr::util::Convert&lt; std::vector&lt; To &gt;, std::vector&lt; From &gt; &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="a00003.html" title="Trait for converting two types. ">Convert</a> vector to another vector.  <a href="a00016.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
Namespaces</h2></td></tr>
<tr class="memitem:a00042"><td class="memItemLeft" align="right" valign="top"> &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00042.html">fifr::util</a></td></tr>
<tr class="memdesc:a00042"><td class="mdescLeft">&#160;</td><td class="mdescRight">Utility functions for c++. <br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a2571be8e8b55e880f6c251f93bbf1d97"><td class="memTemplParams" colspan="2"><a class="anchor" id="a2571be8e8b55e880f6c251f93bbf1d97"></a>
template&lt;typename To , typename From &gt; </td></tr>
<tr class="memitem:a2571be8e8b55e880f6c251f93bbf1d97"><td class="memTemplItemLeft" align="right" valign="top">To&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00042.html#a2571be8e8b55e880f6c251f93bbf1d97">fifr::util::convert</a> (From &amp;&amp;x)</td></tr>
<tr class="memdesc:a2571be8e8b55e880f6c251f93bbf1d97"><td class="mdescLeft">&#160;</td><td class="mdescRight">Generic conversion function. <br /></td></tr>
<tr class="separator:a2571be8e8b55e880f6c251f93bbf1d97"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Implement a Rust inspired conversion trait <code>Convert</code>. </p>
</div></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Feb 21 2017 22:46:02 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00030_source.html.







































































































































































































































































































































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>fifr::util: src/fifr/util/Convert.hxx Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_410dc4a63588d435a0c08a3db8b9f0cd.html">fifr</a></li><li class="navelem"><a class="el" href="dir_2a722471f978b7073f859d2d7c3aa2b4.html">util</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">Convert.hxx</div>  </div>
</div><!--header-->
<div class="contents">
<a href="a00030.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Copyright (c) 2016, 2017 Frank Fischer &lt;frank-fischer@shadow-soft.de&gt;</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * This program is free software: you can redistribute it and/or</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * modify it under the terms of the GNU General Public License as</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * published by the Free Software Foundation, either version 3 of the</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * License, or (at your option) any later version.</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> * This program is distributed in the hope that it will be useful, but</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> * WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> * General Public License for more details.</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> * along with this program.  If not, see  &lt;http://www.gnu.org/licenses/&gt;</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="preprocessor">#ifndef __FIFR_UTIL_CONVERT_HXX__</span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor">#define __FIFR_UTIL_CONVERT_HXX__</span></div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor">#include &lt;utility&gt;</span></div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="preprocessor">#include &lt;tuple&gt;</span></div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="keyword">namespace </span><a class="code" href="a00041.html">fifr</a> {</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="keyword">namespace </span>util {</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;</div>
<div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="a00003.html">   43</a></span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> To, <span class="keyword">typename</span> From, <span class="keyword">typename</span> Enable=<span class="keywordtype">void</span>&gt; <span class="keyword">struct </span><a class="code" href="a00003.html">Convert</a>;</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="a00017.html">   47</a></span>&#160;<span class="keyword">struct </span><a class="code" href="a00003.html">Convert</a>&lt;T,T&gt; {</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;    <span class="keyword">inline</span> <span class="keyword">static</span> T <a class="code" href="a00042.html#a2571be8e8b55e880f6c251f93bbf1d97">convert</a>(T&amp;&amp; x) { <span class="keywordflow">return</span> std::forward&lt;T&gt;(x); }</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;};</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;<span class="keyword">template</span> &lt;&gt;</div>
<div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="a00013.html">   53</a></span>&#160;<span class="keyword">struct </span><a class="code" href="a00003.html">Convert</a>&lt;<a class="code" href="a00045.html">std</a>::string, std::string&gt; {</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    <span class="keyword">inline</span> <span class="keyword">static</span> std::string <a class="code" href="a00042.html#a2571be8e8b55e880f6c251f93bbf1d97">convert</a>(std::string&amp;&amp; x) { <span class="keywordflow">return</span> std::forward&lt;std::string&gt;(x); }</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;};</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> To, <span class="keyword">typename</span> From&gt;</div>
<div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="a00019.html">   59</a></span>&#160;<span class="keyword">struct </span><a class="code" href="a00003.html">Convert</a>&lt;To, const From&gt; {</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    <span class="keyword">inline</span> <span class="keyword">static</span> To <a class="code" href="a00042.html#a2571be8e8b55e880f6c251f93bbf1d97">convert</a>(<span class="keyword">const</span> From&amp; x) {</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="a00003.html">Convert&lt;To, typename std::remove_reference&lt;From&gt;::type</a>&gt;<a class="code" href="a00042.html#a2571be8e8b55e880f6c251f93bbf1d97">::convert</a>(x);</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    }</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;};</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="a00014.html">   67</a></span>&#160;<span class="keyword">struct </span><a class="code" href="a00003.html">Convert</a>&lt;<a class="code" href="a00045.html">std</a>::string, T, decltype((void)std::to_string(std::declval&lt;T&gt;()))&gt; {</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;    <span class="keyword">inline</span> <span class="keyword">static</span> std::string <a class="code" href="a00042.html#a2571be8e8b55e880f6c251f93bbf1d97">convert</a>(<span class="keyword">const</span> T&amp; x) {</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;        <span class="keywordflow">return</span> std::to_string(x);</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;    }</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;};</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> To&gt;</div>
<div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="a00020.html">   75</a></span>&#160;<span class="keyword">struct </span><a class="code" href="a00003.html">Convert</a>&lt;To, <a class="code" href="a00045.html">std</a>::string&gt; {</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;    <span class="keyword">inline</span> <span class="keyword">static</span> To <a class="code" href="a00042.html#a2571be8e8b55e880f6c251f93bbf1d97">convert</a>(<span class="keyword">const</span> std::string&amp; str) {</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="a00042.html#a2571be8e8b55e880f6c251f93bbf1d97">Convert&lt;To, const char*&gt;::convert</a>(str.c_str());</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;    }</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;};</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> To, std::<span class="keywordtype">size_t</span> N&gt;</div>
<div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="a00018.html">   83</a></span>&#160;<span class="keyword">struct </span><a class="code" href="a00003.html">Convert</a>&lt;To, const char[N]&gt; {</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;    <span class="keyword">inline</span> <span class="keyword">static</span> To <a class="code" href="a00042.html#a2571be8e8b55e880f6c251f93bbf1d97">convert</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* str) {</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="a00042.html#a2571be8e8b55e880f6c251f93bbf1d97">Convert&lt;To, const char*&gt;::convert</a>(str);</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;    }</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;};</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;<span class="keyword">template</span> &lt;&gt;</div>
<div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="a00012.html">   91</a></span>&#160;<span class="keyword">struct </span><a class="code" href="a00003.html">Convert</a>&lt;<a class="code" href="a00045.html">std</a>::string, const char*&gt; {</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;    <span class="keyword">inline</span> <span class="keyword">static</span> std::string <a class="code" href="a00042.html#a2571be8e8b55e880f6c251f93bbf1d97">convert</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* str) { <span class="keywordflow">return</span> {str}; }</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;};</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;<span class="keyword">template</span> &lt;&gt;</div>
<div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="a00006.html">   97</a></span>&#160;<span class="keyword">struct </span><a class="code" href="a00003.html">Convert</a>&lt;int, const char*&gt; {</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;    <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="a00042.html#a2571be8e8b55e880f6c251f93bbf1d97">convert</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* str) { <span class="keywordflow">return</span> std::stoi(str); }</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;};</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;<span class="keyword">template</span> &lt;&gt;</div>
<div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="a00009.html">  103</a></span>&#160;<span class="keyword">struct </span><a class="code" href="a00003.html">Convert</a>&lt;long, const char*&gt; {</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;    <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">long</span> <a class="code" href="a00042.html#a2571be8e8b55e880f6c251f93bbf1d97">convert</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* str) { <span class="keywordflow">return</span> std::stol(str); }</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;};</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;<span class="keyword">template</span> &lt;&gt;</div>
<div class="line"><a name="l00109"></a><span class="lineno"><a class="line" href="a00008.html">  109</a></span>&#160;<span class="keyword">struct </span><a class="code" href="a00003.html">Convert</a>&lt;long long, const char*&gt; {</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;    <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">long</span> <span class="keywordtype">long</span> <a class="code" href="a00042.html#a2571be8e8b55e880f6c251f93bbf1d97">convert</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* str) { <span class="keywordflow">return</span> std::stoll(str); }</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;};</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;<span class="keyword">template</span> &lt;&gt;</div>
<div class="line"><a name="l00115"></a><span class="lineno"><a class="line" href="a00022.html">  115</a></span>&#160;<span class="keyword">struct </span><a class="code" href="a00003.html">Convert</a>&lt;unsigned long, const char*&gt; {</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;    <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="a00042.html#a2571be8e8b55e880f6c251f93bbf1d97">convert</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* str) { <span class="keywordflow">return</span> std::stoul(str); }</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;};</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;<span class="keyword">template</span> &lt;&gt;</div>
<div class="line"><a name="l00121"></a><span class="lineno"><a class="line" href="a00021.html">  121</a></span>&#160;<span class="keyword">struct </span><a class="code" href="a00003.html">Convert</a>&lt;unsigned long long, const char*&gt; {</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;    <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <span class="keywordtype">long</span> <a class="code" href="a00042.html#a2571be8e8b55e880f6c251f93bbf1d97">convert</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* str) { <span class="keywordflow">return</span> std::stoull(str); }</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;};</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;</div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;<span class="keyword">template</span> &lt;&gt;</div>
<div class="line"><a name="l00127"></a><span class="lineno"><a class="line" href="a00005.html">  127</a></span>&#160;<span class="keyword">struct </span><a class="code" href="a00003.html">Convert</a>&lt;float, const char*&gt; {</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;    <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">float</span> <a class="code" href="a00042.html#a2571be8e8b55e880f6c251f93bbf1d97">convert</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* str) { <span class="keywordflow">return</span> std::stof(str); }</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;};</div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;<span class="keyword">template</span> &lt;&gt;</div>
<div class="line"><a name="l00133"></a><span class="lineno"><a class="line" href="a00004.html">  133</a></span>&#160;<span class="keyword">struct </span><a class="code" href="a00003.html">Convert</a>&lt;double, const char*&gt; {</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;    <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">double</span> <a class="code" href="a00042.html#a2571be8e8b55e880f6c251f93bbf1d97">convert</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* str) { <span class="keywordflow">return</span> std::stod(str); }</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;};</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;<span class="keyword">template</span> &lt;&gt;</div>
<div class="line"><a name="l00139"></a><span class="lineno"><a class="line" href="a00007.html">  139</a></span>&#160;<span class="keyword">struct </span><a class="code" href="a00003.html">Convert</a>&lt;long double, const char*&gt; {</div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;    <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">long</span> <span class="keywordtype">double</span> <a class="code" href="a00042.html#a2571be8e8b55e880f6c251f93bbf1d97">convert</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* str) { <span class="keywordflow">return</span> std::stold(str); }</div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;};</div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;</div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> To1, <span class="keyword">typename</span> To2, <span class="keyword">typename</span> From1, <span class="keyword">typename</span> From2&gt;</div>
<div class="line"><a name="l00147"></a><span class="lineno"><a class="line" href="a00011.html">  147</a></span>&#160;<span class="keyword">struct </span><a class="code" href="a00003.html">Convert</a>&lt;<a class="code" href="a00045.html">std</a>::pair&lt;To1,To2&gt;, std::pair&lt;From1,From2&gt;&gt;</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;{</div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;    <span class="keyword">inline</span> <span class="keyword">static</span> std::pair&lt;To1,To2&gt; <a class="code" href="a00042.html#a2571be8e8b55e880f6c251f93bbf1d97">convert</a>(<span class="keyword">const</span> std::pair&lt;From1,From2&gt;&amp; from) {</div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;        <span class="keywordflow">return</span> std::make_pair(<a class="code" href="a00003.html">Convert&lt;To1, From1&gt;::convert</a>(from.first),</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;                              <a class="code" href="a00003.html">Convert&lt;To2, From2&gt;::convert</a>(from.second));</div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;    }</div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;};</div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;</div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span>... To, <span class="keyword">typename</span>... From&gt;</div>
<div class="line"><a name="l00159"></a><span class="lineno"><a class="line" href="a00015.html">  159</a></span>&#160;<span class="keyword">struct </span><a class="code" href="a00003.html">Convert</a>&lt;<a class="code" href="a00045.html">std</a>::tuple&lt;To...&gt;, std::tuple&lt;From...&gt;&gt;</div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;{</div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;    <span class="keyword">inline</span> <span class="keyword">static</span> std::tuple&lt;To...&gt; <a class="code" href="a00042.html#a2571be8e8b55e880f6c251f93bbf1d97">convert</a>(<span class="keyword">const</span> std::tuple&lt;From...&gt;&amp; args) {</div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;        <span class="keyword">static</span> constexpr <span class="keyword">auto</span> size = std::tuple_size&lt;std::tuple&lt;From...&gt;&gt;::value;</div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;        <span class="keywordflow">return</span> <span class="keyword">get</span>(args, std::make_index_sequence&lt;size&gt;{});</div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;    }</div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;</div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160; <span class="keyword">private</span>:</div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;    <span class="keyword">template</span> &lt;<span class="keywordtype">size_t</span> ... I&gt;</div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;    <span class="keyword">static</span> std::tuple&lt;To...&gt; <span class="keyword">get</span>(<span class="keyword">const</span> std::tuple&lt;From...&gt;&amp; args, std::index_sequence&lt;I...&gt;) {</div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;        <span class="keywordflow">return</span> std::make_tuple(<a class="code" href="a00003.html">Convert&lt;To, From&gt;::convert</a>(std::get&lt;I&gt;(args))...);</div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;    }</div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;};</div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;</div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> To, <span class="keyword">typename</span> From, std::<span class="keywordtype">size_t</span> N&gt;</div>
<div class="line"><a name="l00177"></a><span class="lineno"><a class="line" href="a00010.html">  177</a></span>&#160;<span class="keyword">struct </span><a class="code" href="a00003.html">Convert</a>&lt;<a class="code" href="a00045.html">std</a>::array&lt;To, N&gt;, std::array&lt;From, N&gt;&gt;</div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;{</div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;    <span class="keyword">inline</span> <span class="keyword">static</span> std::array&lt;To, N&gt; <a class="code" href="a00042.html#a2571be8e8b55e880f6c251f93bbf1d97">convert</a>(<span class="keyword">const</span> std::array&lt;From, N&gt;&amp; args) {</div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;        std::array&lt;To, N&gt; result;</div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;        <span class="keywordtype">size_t</span> i = 0;</div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;        <span class="keywordflow">for</span> (<span class="keyword">auto</span>&amp; x : args) {</div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;            result[i++] = <a class="code" href="a00042.html#a2571be8e8b55e880f6c251f93bbf1d97">Convert&lt;To,From&gt;::convert</a>(x);</div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;        }</div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;        <span class="keywordflow">return</span> result;</div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;    }</div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;};</div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;</div>
<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> To, <span class="keyword">typename</span> From&gt;</div>
<div class="line"><a name="l00193"></a><span class="lineno"><a class="line" href="a00016.html">  193</a></span>&#160;<span class="keyword">struct </span><a class="code" href="a00003.html">Convert</a>&lt;<a class="code" href="a00045.html">std</a>::vector&lt;To&gt;, std::vector&lt;From&gt;&gt;</div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;{</div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;    <span class="keyword">inline</span> <span class="keyword">static</span> std::vector&lt;To&gt; <a class="code" href="a00042.html#a2571be8e8b55e880f6c251f93bbf1d97">convert</a>(<span class="keyword">const</span> std::vector&lt;From&gt;&amp; args) {</div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;        std::vector&lt;To&gt; result;</div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;        result.reserve(args.size());</div>
<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;        <span class="keywordflow">for</span> (<span class="keyword">auto</span>&amp; x : args) {</div>
<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;            result.push_back(<a class="code" href="a00003.html">Convert&lt;To,From&gt;::convert</a>(x));</div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;        }</div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;        <span class="keywordflow">return</span> result;</div>
<div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;    }</div>
<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;};</div>
<div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;</div>
<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> To, <span class="keyword">typename</span> From&gt;</div>
<div class="line"><a name="l00207"></a><span class="lineno"><a class="line" href="a00042.html#a2571be8e8b55e880f6c251f93bbf1d97">  207</a></span>&#160;<span class="keyword">inline</span> To <a class="code" href="a00042.html#a2571be8e8b55e880f6c251f93bbf1d97">convert</a>(From&amp;&amp; x) {</div>
<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="a00003.html">Convert&lt;To, typename std::remove_reference&lt;From&gt;::type</a>&gt;<a class="code" href="a00042.html#a2571be8e8b55e880f6c251f93bbf1d97">::convert</a>(std::forward&lt;From&gt;(x));</div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;}</div>
<div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;</div>
<div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;}</div>
<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;}</div>
<div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;</div>
<div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="ttc" id="a00003_html"><div class="ttname"><a href="a00003.html">fifr::util::Convert</a></div><div class="ttdoc">Trait for converting two types. </div><div class="ttdef"><b>Definition:</b> Convert.hxx:43</div></div>
<div class="ttc" id="a00041_html"><div class="ttname"><a href="a00041.html">fifr</a></div><div class="ttdef"><b>Definition:</b> AutoTuple.hxx:23</div></div>
<div class="ttc" id="a00042_html_a2571be8e8b55e880f6c251f93bbf1d97"><div class="ttname"><a href="a00042.html#a2571be8e8b55e880f6c251f93bbf1d97">fifr::util::convert</a></div><div class="ttdeci">To convert(From &amp;&amp;x)</div><div class="ttdoc">Generic conversion function. </div><div class="ttdef"><b>Definition:</b> Convert.hxx:207</div></div>
<div class="ttc" id="a00045_html"><div class="ttname"><a href="a00045.html">std</a></div><div class="ttdoc">STL namespace. </div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Feb 21 2017 22:46:02 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00031_source.html.



















































































































































































































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>fifr::util: src/fifr/util/Join.hxx Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_410dc4a63588d435a0c08a3db8b9f0cd.html">fifr</a></li><li class="navelem"><a class="el" href="dir_2a722471f978b7073f859d2d7c3aa2b4.html">util</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">Join.hxx</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Copyright (c) 2016, 2017 Frank Fischer &lt;frank-fischer@shadow-soft.de&gt;</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * This program is free software: you can redistribute it and/or</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * modify it under the terms of the GNU General Public License as</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * published by the Free Software Foundation, either version 3 of the</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * License, or (at your option) any later version.</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> * This program is distributed in the hope that it will be useful, but</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> * WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> * General Public License for more details.</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> * along with this program.  If not, see  &lt;http://www.gnu.org/licenses/&gt;</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;</div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="preprocessor">#ifndef __FIFR_UTIL_JOIN_HXX__</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor">#define __FIFR_UTIL_JOIN_HXX__</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;</div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor">#include &lt;sstream&gt;</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#include &lt;array&gt;</span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="a00030.html">Convert.hxx</a>&quot;</span></div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="keyword">namespace </span><a class="code" href="a00041.html">fifr</a> {</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="keyword">namespace </span>util {</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">class</span> C&gt;</div>
<div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="a00024.html">   37</a></span>&#160;<span class="keyword">class </span><a class="code" href="a00024.html">Join</a> {</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;    <a class="code" href="a00024.html">Join</a>(<span class="keyword">const</span> C&amp; container, <span class="keyword">const</span> std::string&amp; sep) :</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;        container_(container), sep_(sep)</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;    {}</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    <a class="code" href="a00024.html">Join</a>(<a class="code" href="a00024.html">Join</a>&amp;&amp;) = <span class="keyword">delete</span>;</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;    <a class="code" href="a00024.html">Join</a>(<span class="keyword">const</span> <a class="code" href="a00024.html">Join</a>&amp;) = <span class="keyword">delete</span>;</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    <a class="code" href="a00024.html">Join</a>&amp; operator =(<a class="code" href="a00024.html">Join</a>&amp;&amp;) = <span class="keyword">delete</span>;</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;    <a class="code" href="a00024.html">Join</a>&amp; operator =(<span class="keyword">const</span> <a class="code" href="a00024.html">Join</a>&amp;) = <span class="keyword">delete</span>;</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;</div>
<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="a00024.html#a18d514b42ad07d92d60f0431f1d3e92d">   52</a></span>&#160;    std::string <a class="code" href="a00024.html#a18d514b42ad07d92d60f0431f1d3e92d">str</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;        std::ostringstream out;</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;        out &lt;&lt; *<span class="keyword">this</span>;</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;        <span class="keywordflow">return</span> out.str();</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;    }</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    <span class="keyword">operator</span> std::string()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="a00024.html#a18d514b42ad07d92d60f0431f1d3e92d">str</a>(); }</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    <span class="keyword">template</span> &lt;<span class="keyword">class</span> C_&gt;</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    <span class="keyword">friend</span> std::ostream&amp; operator&lt;&lt;(std::ostream&amp; out, const Join&lt;C_&gt;&amp; <a class="code" href="a00042.html#a4549a4c462e3314bd2dae501eae9d9c9">join</a>);</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;    <span class="keyword">const</span> C&amp; container_;</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;    <span class="keyword">const</span> std::string&amp; sep_;</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;};</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">class</span> C&gt;</div>
<div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="a00042.html#a763fb6df77ab87aaa34abbff74100af7">   71</a></span>&#160;std::ostream&amp; operator&lt;&lt;(std::ostream&amp; out, const Join&lt;C&gt;&amp; <a class="code" href="a00042.html#a4549a4c462e3314bd2dae501eae9d9c9">join</a>) {</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    <span class="keyword">auto</span> it = <a class="code" href="a00042.html#a4549a4c462e3314bd2dae501eae9d9c9">join</a>.container_.begin();</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;    <span class="keyword">auto</span> itend = <a class="code" href="a00042.html#a4549a4c462e3314bd2dae501eae9d9c9">join</a>.container_.end();</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;    <span class="keywordflow">if</span> (it != itend) {</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;        out &lt;&lt; *it;</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;        ++it;</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;        <span class="keywordflow">for</span> (;it != itend; ++it) {</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;            out &lt;&lt; <a class="code" href="a00042.html#a4549a4c462e3314bd2dae501eae9d9c9">join</a>.sep_ &lt;&lt; *it;</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;        }</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    }</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;    <span class="keywordflow">return</span> out;</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;}</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> C&gt;</div>
<div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="a00042.html#a4549a4c462e3314bd2dae501eae9d9c9">   89</a></span>&#160;<a class="code" href="a00024.html">Join&lt;C&gt;</a> <a class="code" href="a00042.html#a4549a4c462e3314bd2dae501eae9d9c9">join</a>(<span class="keyword">const</span> C&amp; container, std::string sep=<span class="stringliteral">&quot;&quot;</span>) {</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;    <span class="keywordflow">return</span> {container, std::move(sep)};</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;}</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> C&gt;</div>
<div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="a00042.html#a47864c335721f56fe75f007a9c52d004">   95</a></span>&#160;std::string <a class="code" href="a00042.html#a47864c335721f56fe75f007a9c52d004">operator+</a>(<span class="keyword">const</span> std::string&amp; str, <span class="keyword">const</span> <a class="code" href="a00024.html">Join&lt;C&gt;</a>&amp; <a class="code" href="a00042.html#a4549a4c462e3314bd2dae501eae9d9c9">join</a>) {</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;    <span class="keywordflow">return</span> str + join.<a class="code" href="a00024.html#a18d514b42ad07d92d60f0431f1d3e92d">str</a>();</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;}</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> C&gt;</div>
<div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="a00042.html#ae914a11121ac9980ffdbe1b224cdb18e">  101</a></span>&#160;std::string <a class="code" href="a00042.html#a47864c335721f56fe75f007a9c52d004">operator+</a>(<span class="keyword">const</span> <a class="code" href="a00024.html">Join&lt;C&gt;</a>&amp; <a class="code" href="a00042.html#a4549a4c462e3314bd2dae501eae9d9c9">join</a>, <span class="keyword">const</span> std::string&amp; str) {</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;    <span class="keywordflow">return</span> join.<a class="code" href="a00024.html#a18d514b42ad07d92d60f0431f1d3e92d">str</a>() + str;</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;}</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> C&gt;</div>
<div class="line"><a name="l00107"></a><span class="lineno"><a class="line" href="a00042.html#a2b58dac747e9b7727aac01660043d13f">  107</a></span>&#160;std::string <a class="code" href="a00042.html#a47864c335721f56fe75f007a9c52d004">operator+</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* str, <span class="keyword">const</span> <a class="code" href="a00024.html">Join&lt;C&gt;</a>&amp; <a class="code" href="a00042.html#a4549a4c462e3314bd2dae501eae9d9c9">join</a>) {</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;    <span class="keywordflow">return</span> str + join.<a class="code" href="a00024.html#a18d514b42ad07d92d60f0431f1d3e92d">str</a>();</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;}</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> C&gt;</div>
<div class="line"><a name="l00113"></a><span class="lineno"><a class="line" href="a00042.html#a76148b1bd88947607632d38ade173609">  113</a></span>&#160;std::string <a class="code" href="a00042.html#a47864c335721f56fe75f007a9c52d004">operator+</a>(<span class="keyword">const</span> <a class="code" href="a00024.html">Join&lt;C&gt;</a>&amp; <a class="code" href="a00042.html#a4549a4c462e3314bd2dae501eae9d9c9">join</a>, <span class="keyword">const</span> <span class="keywordtype">char</span>* str) {</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;    <span class="keywordflow">return</span> join.<a class="code" href="a00024.html#a18d514b42ad07d92d60f0431f1d3e92d">str</a>() + str;</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;}</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;</div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> ...Args&gt;</div>
<div class="line"><a name="l00127"></a><span class="lineno"><a class="line" href="a00042.html#abf6490f9cac627dae1ae7ea60e1cefd3">  127</a></span>&#160;std::string <a class="code" href="a00042.html#a4549a4c462e3314bd2dae501eae9d9c9">join</a>(<span class="keyword">const</span> std::string&amp; separator, Args&amp;&amp; ...args)</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;{</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="a00042.html#a4549a4c462e3314bd2dae501eae9d9c9">join</a>(std::array&lt;std::string, <span class="keyword">sizeof</span>...(Args)&gt;{{convert&lt;std::string&gt;(std::forward&lt;Args&gt;(args))...}},</div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;                separator);</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;}</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;}</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;}</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="ttc" id="a00024_html"><div class="ttname"><a href="a00024.html">fifr::util::Join</a></div><div class="ttdoc">Join operator. </div><div class="ttdef"><b>Definition:</b> Join.hxx:37</div></div>
<div class="ttc" id="a00030_html"><div class="ttname"><a href="a00030.html">Convert.hxx</a></div><div class="ttdoc">Implement a Rust inspired conversion trait Convert. </div></div>
<div class="ttc" id="a00042_html_a4549a4c462e3314bd2dae501eae9d9c9"><div class="ttname"><a href="a00042.html#a4549a4c462e3314bd2dae501eae9d9c9">fifr::util::join</a></div><div class="ttdeci">Join&lt; C &gt; join(const C &amp;container, std::string sep=&quot;&quot;)</div><div class="ttdoc">Join a container to a string. </div><div class="ttdef"><b>Definition:</b> Join.hxx:89</div></div>
<div class="ttc" id="a00024_html_a18d514b42ad07d92d60f0431f1d3e92d"><div class="ttname"><a href="a00024.html#a18d514b42ad07d92d60f0431f1d3e92d">fifr::util::Join::str</a></div><div class="ttdeci">std::string str() const </div><div class="ttdoc">Return the joined string. </div><div class="ttdef"><b>Definition:</b> Join.hxx:52</div></div>
<div class="ttc" id="a00041_html"><div class="ttname"><a href="a00041.html">fifr</a></div><div class="ttdef"><b>Definition:</b> AutoTuple.hxx:23</div></div>
<div class="ttc" id="a00042_html_a47864c335721f56fe75f007a9c52d004"><div class="ttname"><a href="a00042.html#a47864c335721f56fe75f007a9c52d004">fifr::util::operator+</a></div><div class="ttdeci">std::string operator+(const std::string &amp;str, const Join&lt; C &gt; &amp;join)</div><div class="ttdoc">Add string and joined string. </div><div class="ttdef"><b>Definition:</b> Join.hxx:95</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Feb 21 2017 22:46:02 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00032_source.html.



































































































































































































































































































































































































































































































































































































































































































































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>fifr::util: src/fifr/util/Range.hxx Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_410dc4a63588d435a0c08a3db8b9f0cd.html">fifr</a></li><li class="navelem"><a class="el" href="dir_2a722471f978b7073f859d2d7c3aa2b4.html">util</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">Range.hxx</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Copyright (c) 2015, 2016, 2017 Frank Fischer &lt;frank-fischer@shadow-soft.de&gt;</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * This program is free software: you can redistribute it and/or</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * modify it under the terms of the GNU General Public License as</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * published by the Free Software Foundation, either version 3 of the</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * License, or (at your option) any later version.</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> * This program is distributed in the hope that it will be useful, but</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> * WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> * General Public License for more details.</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> * along with this program.  If not, see  &lt;http://www.gnu.org/licenses/&gt;</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;</div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="preprocessor">#ifndef __FIFR_UTIL_RANGE_HXX__</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor">#define __FIFR_UTIL_RANGE_HXX__</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;</div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="a00030.html">Convert.hxx</a>&quot;</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#include &lt;iterator&gt;</span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="preprocessor">#include &lt;type_traits&gt;</span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor">#include &lt;cassert&gt;</span></div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="keyword">namespace </span><a class="code" href="a00041.html">fifr</a> {</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="keyword">namespace </span>util {</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="keyword">namespace </span>detail {</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="keyword">struct </span>range_iter_base :</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;        std::iterator&lt;std::random_access_iterator_tag,</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;                      T,</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;                      std::ptrdiff_t,</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;                      const T*,</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;                      const T&amp;&gt;</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;{</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;    <span class="keyword">typedef</span> std::iterator&lt;std::random_access_iterator_tag,</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;                          T,</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;                          std::ptrdiff_t,</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;                          <span class="keyword">const</span> T*,</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;                          <span class="keyword">const</span> T&amp;&gt; super_type;</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;    <span class="keyword">using</span> <span class="keyword">typename</span> super_type::difference_type;</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;    <span class="keyword">using</span> <span class="keyword">typename</span> super_type::pointer;</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    <span class="keyword">using</span> <span class="keyword">typename</span> super_type::reference;</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;    range_iter_base(T lcurrent) : current(lcurrent) { }</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    reference operator *()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> current; }</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;    pointer operator -&gt;()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> &amp;current; }</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    range_iter_base&amp; operator ++() {</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;        ++current;</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;        <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    }</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;    range_iter_base operator ++(<span class="keywordtype">int</span>) {</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;        <span class="keyword">auto</span> copy = *<span class="keyword">this</span>;</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;        ++*<span class="keyword">this</span>;</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;        <span class="keywordflow">return</span> copy;</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;    }</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;    range_iter_base&amp; operator +=(difference_type n) {</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;        current += n;</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;        <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    }</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;    range_iter_base <a class="code" href="a00042.html#a47864c335721f56fe75f007a9c52d004">operator +</a>(difference_type n)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;        <span class="keyword">auto</span> copy = *<span class="keyword">this</span>;</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;        copy += n;</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;        <span class="keywordflow">return</span> copy;</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;    }</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    <span class="keyword">friend</span> range_iter_base <a class="code" href="a00042.html#a47864c335721f56fe75f007a9c52d004">operator +</a>(difference_type n, <span class="keyword">const</span> range_iter_base&amp; it) {</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;        <span class="keywordflow">return</span> it + n;</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;    }</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;    range_iter_base&amp; operator --() {</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;        --current;</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;        <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;    }</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;    range_iter_base operator --(<span class="keywordtype">int</span>) {</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;        <span class="keyword">auto</span> copy = *<span class="keyword">this</span>;</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;        --*<span class="keyword">this</span>;</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;        <span class="keywordflow">return</span> copy;</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;    }</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;    range_iter_base&amp; operator -=(difference_type n) {</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;        current -= n;</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;        <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;    }</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;    range_iter_base operator -(difference_type n)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;        <span class="keyword">auto</span> copy = *<span class="keyword">this</span>;</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;        copy -= n;</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;        <span class="keywordflow">return</span> copy;</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;    }</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;    difference_type operator -(<span class="keyword">const</span> range_iter_base&amp; other)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;        <span class="keywordflow">return</span> current - other.current;</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;    }</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;    reference operator[](difference_type n)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;        <span class="keywordflow">return</span> *(*<span class="keyword">this</span> + n);</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;    }</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;    <span class="keywordtype">bool</span> operator ==(<span class="keyword">const</span> range_iter_base&amp; other)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;        <span class="keywordflow">return</span> current == other.current;</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;    }</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;    <span class="keywordtype">bool</span> operator !=(<span class="keyword">const</span> range_iter_base&amp; other)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;        <span class="keywordflow">return</span> not (*<span class="keyword">this</span> == other);</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;    }</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;    <span class="keywordtype">bool</span> operator &lt;(<span class="keyword">const</span> range_iter_base&amp; other)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;        <span class="keywordflow">return</span> current &lt; other.current;</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;    }</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;</div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;    <span class="keywordtype">bool</span> operator &lt;=(<span class="keyword">const</span> range_iter_base&amp; other)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;        <span class="keywordflow">return</span> current &lt;= other.current;</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;    }</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;</div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;    <span class="keywordtype">bool</span> operator &gt;=(<span class="keyword">const</span> range_iter_base&amp; other)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;        <span class="keywordflow">return</span> current &gt;= other.current;</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;    }</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;    <span class="keywordtype">bool</span> operator &gt;(<span class="keyword">const</span> range_iter_base&amp; other)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;        <span class="keywordflow">return</span> current &gt; other.current;</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;    }</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;<span class="keyword">protected</span>:</div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;    T current;</div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;};</div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;</div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;} <span class="comment">// namespace detail</span></div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;</div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;<span class="keyword">struct </span>range_proxy {</div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;    <span class="keyword">struct </span>iter : detail::range_iter_base&lt;T&gt; {</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;        iter(T lcurrent) : detail::range_iter_base&lt;T&gt;(lcurrent) { }</div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;    };</div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;</div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;    <span class="keyword">struct </span>step_range_proxy {</div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;        <span class="keyword">struct </span>iter : detail::range_iter_base&lt;T&gt; {</div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;            iter(T lcurrent, T lstep)</div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;                : detail::range_iter_base&lt;T&gt;(lcurrent), step(lstep) { }</div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;</div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;            <span class="keyword">using</span> detail::range_iter_base&lt;T&gt;::current;</div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;</div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;            iter&amp; operator ++() {</div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;                current += step;</div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;                <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;            }</div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;</div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;            iter operator ++(<span class="keywordtype">int</span>) {</div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;                <span class="keyword">auto</span> copy = *<span class="keyword">this</span>;</div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;                ++*<span class="keyword">this</span>;</div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;                <span class="keywordflow">return</span> copy;</div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;            }</div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;</div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;            <span class="comment">// Loses commutativity. Iterator-based ranges are simply broken. :-(</span></div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;            <span class="keywordtype">bool</span> operator ==(iter <span class="keyword">const</span>&amp; other)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;                <span class="keywordflow">return</span> step &gt; 0 ? current &gt;= other.current</div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;                    : current &lt; other.current;</div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;            }</div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;</div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;            <span class="keywordtype">bool</span> operator !=(iter <span class="keyword">const</span>&amp; other)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;                <span class="keywordflow">return</span> not (*<span class="keyword">this</span> == other);</div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;            }</div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;</div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;        <span class="keyword">private</span>:</div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;            T step;</div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;        };</div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;</div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;        step_range_proxy(T lbegin, T lend, T lstep)</div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;            : begin_(lbegin, lstep), end_(lend, lstep) { }</div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;</div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;        iter begin()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> begin_; }</div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;</div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;        iter end()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> end_; }</div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;</div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;    <span class="keyword">private</span>:</div>
<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;        iter begin_;</div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;        iter end_;</div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;    };</div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;</div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;    range_proxy(T lbegin, T lend) : begin_(lbegin), end_(lend) {assert (lbegin &lt;= lend); }</div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;</div>
<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;    step_range_proxy step(T lstep) {</div>
<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;        <span class="keywordflow">return</span> {*begin_, *end_, lstep};</div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;    }</div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;</div>
<div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;    iter begin()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> begin_; }</div>
<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;</div>
<div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;    iter end()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> end_; }</div>
<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;</div>
<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;    iter begin_;</div>
<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;    iter end_;</div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;</div>
<div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;    <span class="keyword">auto</span> size() const -&gt; decltype(end_ - begin_) { <span class="keywordflow">return</span> end_ - begin_; }</div>
<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;};</div>
<div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;</div>
<div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00216"></a><span class="lineno"><a class="line" href="a00042.html#a635542a3a6fb35d5a7d726c472a8262e">  216</a></span>&#160;range_proxy&lt;T&gt; <a class="code" href="a00042.html#a635542a3a6fb35d5a7d726c472a8262e">range</a>(T begin, T end) {</div>
<div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;    <span class="keywordflow">return</span> {begin, end};</div>
<div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;}</div>
<div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;</div>
<div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00222"></a><span class="lineno"><a class="line" href="a00042.html#ae5344551ba7335029de1d5208dc4533b">  222</a></span>&#160;range_proxy&lt;T&gt; <a class="code" href="a00042.html#a635542a3a6fb35d5a7d726c472a8262e">range</a>(T end) {</div>
<div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;    <span class="keywordflow">return</span> {0,end};</div>
<div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;}</div>
<div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;</div>
<div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;<span class="keyword">namespace </span>traits {</div>
<div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;</div>
<div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> C&gt;</div>
<div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;<span class="keyword">struct </span>has_size {</div>
<div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;    <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;    <span class="keyword">static</span> constexpr <span class="keyword">auto</span> check(T*) -&gt;</div>
<div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;        <span class="keyword">typename</span> std::is_integral&lt;decltype(std::declval&lt;T const&gt;().size())&gt;::type {<span class="keywordflow">return</span> std::true_type();}</div>
<div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;</div>
<div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;                     <span class="keyword">template</span> &lt;<span class="keyword">typename</span>&gt;</div>
<div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;                     <span class="keyword">static</span> constexpr <span class="keyword">auto</span> check(...) -&gt; std::false_type;</div>
<div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;</div>
<div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;    <span class="keyword">using</span> type = decltype(check&lt;C&gt;(0));</div>
<div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;    <span class="keyword">static</span> constexpr <span class="keywordtype">bool</span> value = type::value;</div>
<div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;};</div>
<div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;</div>
<div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;} <span class="comment">// namespace traits</span></div>
<div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;</div>
<div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;template &lt;typename C, typename = typename std::enable_if&lt;traits::has_size&lt;C&gt;::value&gt;&gt;</div>
<div class="line"><a name="l00250"></a><span class="lineno"><a class="line" href="a00042.html#ab85f8d0d402de83302c77b45a93d2d2d">  250</a></span>&#160;    <span class="keyword">auto</span> <a class="code" href="a00042.html#ab85f8d0d402de83302c77b45a93d2d2d">indices</a>(C <span class="keyword">const</span>&amp; cont) -&gt; range_proxy&lt;decltype(cont.size())&gt; {</div>
<div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;    <span class="keywordflow">return</span> {0, cont.size()};</div>
<div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;}</div>
<div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;</div>
<div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, std::<span class="keywordtype">size_t</span> N&gt;</div>
<div class="line"><a name="l00258"></a><span class="lineno"><a class="line" href="a00042.html#ac0e7de37628b9706c441b240544c2be4">  258</a></span>&#160;range_proxy&lt;std::size_t&gt; <a class="code" href="a00042.html#ab85f8d0d402de83302c77b45a93d2d2d">indices</a>(T (&amp;)[N]) {</div>
<div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;    <span class="keywordflow">return</span> {0, N};</div>
<div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;}</div>
<div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;</div>
<div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;range_proxy&lt;typename std::initializer_list&lt;T&gt;::size_type&gt;</div>
<div class="line"><a name="l00267"></a><span class="lineno"><a class="line" href="a00042.html#a6c93a762ec4867221e61e00124616fa6">  267</a></span>&#160;<a class="code" href="a00042.html#ab85f8d0d402de83302c77b45a93d2d2d">indices</a>(std::initializer_list&lt;T&gt;&amp;&amp; cont) {</div>
<div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160;    <span class="keywordflow">return</span> {0, cont.size()};</div>
<div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160;}</div>
<div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160;</div>
<div class="line"><a name="l00272"></a><span class="lineno"><a class="line" href="a00001.html">  272</a></span>&#160;<span class="keyword">struct </span><a class="code" href="a00001.html">all_range</a> {};</div>
<div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;</div>
<div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;constexpr <a class="code" href="a00001.html">all_range</a> all{};</div>
<div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160;</div>
<div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> Size&gt;</div>
<div class="line"><a name="l00278"></a><span class="lineno"><a class="line" href="a00042.html#a40d02e79f662d3f9b8720198615f8ad4">  278</a></span>&#160;Size <a class="code" href="a00042.html#a40d02e79f662d3f9b8720198615f8ad4">range_begin</a>(<a class="code" href="a00001.html">all_range</a>, Size) { <span class="keywordflow">return</span> 0; }</div>
<div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;</div>
<div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> Size&gt;</div>
<div class="line"><a name="l00282"></a><span class="lineno"><a class="line" href="a00042.html#a072c669eeb901b9f5ff50e22cbe9ba52">  282</a></span>&#160;Size <a class="code" href="a00042.html#a072c669eeb901b9f5ff50e22cbe9ba52">range_end</a>(<a class="code" href="a00001.html">all_range</a>, Size n) { <span class="keywordflow">return</span> n; }</div>
<div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;</div>
<div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> Size&gt;</div>
<div class="line"><a name="l00286"></a><span class="lineno"><a class="line" href="a00042.html#a794f0c94f474118782db17f128e628a3">  286</a></span>&#160;Size <a class="code" href="a00042.html#a794f0c94f474118782db17f128e628a3">range_size</a>(<a class="code" href="a00001.html">all_range</a>, Size n) { <span class="keywordflow">return</span> n; }</div>
<div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160;</div>
<div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, <span class="keyword">typename</span> Size,</div>
<div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160;          <span class="keyword">typename</span> std::enable_if&lt;std::is_integral&lt;T&gt;::value&gt;::type* = <span class="keyword">nullptr</span>&gt;</div>
<div class="line"><a name="l00291"></a><span class="lineno"><a class="line" href="a00042.html#a91fd04eecd118d6037d0d55f53ef2799">  291</a></span>&#160;Size <a class="code" href="a00042.html#a40d02e79f662d3f9b8720198615f8ad4">range_begin</a>(T i, Size) { <span class="keywordflow">return</span> i; }</div>
<div class="line"><a name="l00292"></a><span class="lineno">  292</span>&#160;</div>
<div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, <span class="keyword">typename</span> Size,</div>
<div class="line"><a name="l00295"></a><span class="lineno">  295</span>&#160;          <span class="keyword">typename</span> std::enable_if&lt;std::is_integral&lt;T&gt;::value&gt;::type* = <span class="keyword">nullptr</span>&gt;</div>
<div class="line"><a name="l00296"></a><span class="lineno"><a class="line" href="a00042.html#a0a935b9e5f4e88a484402627e6c8da36">  296</a></span>&#160;Size <a class="code" href="a00042.html#a072c669eeb901b9f5ff50e22cbe9ba52">range_end</a>(T i, Size) { <span class="keywordflow">return</span> i+1; }</div>
<div class="line"><a name="l00297"></a><span class="lineno">  297</span>&#160;</div>
<div class="line"><a name="l00299"></a><span class="lineno">  299</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, <span class="keyword">typename</span> Size,</div>
<div class="line"><a name="l00300"></a><span class="lineno">  300</span>&#160;          <span class="keyword">typename</span> std::enable_if&lt;std::is_integral&lt;T&gt;::value&gt;::type* = <span class="keyword">nullptr</span>&gt;</div>
<div class="line"><a name="l00301"></a><span class="lineno"><a class="line" href="a00042.html#ab4fca9109feff56d9fa4b5567013655c">  301</a></span>&#160;Size <a class="code" href="a00042.html#a794f0c94f474118782db17f128e628a3">range_size</a>(T,  Size) { <span class="keywordflow">return</span> 1; }</div>
<div class="line"><a name="l00302"></a><span class="lineno">  302</span>&#160;</div>
<div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, <span class="keyword">typename</span> Size&gt;</div>
<div class="line"><a name="l00305"></a><span class="lineno"><a class="line" href="a00042.html#a3a71f914e941d12e6f70963f736fca4a">  305</a></span>&#160;Size <a class="code" href="a00042.html#a40d02e79f662d3f9b8720198615f8ad4">range_begin</a>(<span class="keyword">const</span> range_proxy&lt;T&gt;&amp; rng, Size) {</div>
<div class="line"><a name="l00306"></a><span class="lineno">  306</span>&#160;    <span class="keywordflow">return</span> *rng.begin();</div>
<div class="line"><a name="l00307"></a><span class="lineno">  307</span>&#160;}</div>
<div class="line"><a name="l00308"></a><span class="lineno">  308</span>&#160;</div>
<div class="line"><a name="l00310"></a><span class="lineno">  310</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, <span class="keyword">typename</span> Size&gt;</div>
<div class="line"><a name="l00311"></a><span class="lineno"><a class="line" href="a00042.html#a014cff4079ea58c93598c1a06c3dd402">  311</a></span>&#160;Size <a class="code" href="a00042.html#a072c669eeb901b9f5ff50e22cbe9ba52">range_end</a>(<span class="keyword">const</span> range_proxy&lt;T&gt;&amp; rng, Size) {</div>
<div class="line"><a name="l00312"></a><span class="lineno">  312</span>&#160;    <span class="keywordflow">return</span> *rng.end();</div>
<div class="line"><a name="l00313"></a><span class="lineno">  313</span>&#160;}</div>
<div class="line"><a name="l00314"></a><span class="lineno">  314</span>&#160;</div>
<div class="line"><a name="l00316"></a><span class="lineno">  316</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, <span class="keyword">typename</span> Size&gt;</div>
<div class="line"><a name="l00317"></a><span class="lineno"><a class="line" href="a00042.html#afc1a7108d8445c9c10e345baa1c57dd2">  317</a></span>&#160;Size <a class="code" href="a00042.html#a794f0c94f474118782db17f128e628a3">range_size</a>(<span class="keyword">const</span> range_proxy&lt;T&gt;&amp; rng, Size) {</div>
<div class="line"><a name="l00318"></a><span class="lineno">  318</span>&#160;    <span class="keywordflow">return</span> rng.end() - rng.begin();</div>
<div class="line"><a name="l00319"></a><span class="lineno">  319</span>&#160;}</div>
<div class="line"><a name="l00320"></a><span class="lineno">  320</span>&#160;</div>
<div class="line"><a name="l00321"></a><span class="lineno">  321</span>&#160;</div>
<div class="line"><a name="l00323"></a><span class="lineno">  323</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> It_&gt;</div>
<div class="line"><a name="l00324"></a><span class="lineno"><a class="line" href="a00023.html">  324</a></span>&#160;<span class="keyword">class </span><a class="code" href="a00023.html">IteratorProxy</a></div>
<div class="line"><a name="l00325"></a><span class="lineno">  325</span>&#160;{</div>
<div class="line"><a name="l00326"></a><span class="lineno">  326</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00327"></a><span class="lineno">  327</span>&#160;    <span class="keyword">typedef</span> It_ iterator;</div>
<div class="line"><a name="l00328"></a><span class="lineno">  328</span>&#160;    <span class="keyword">typedef</span> <span class="keyword">typename</span> iterator::value_type value_type;</div>
<div class="line"><a name="l00329"></a><span class="lineno">  329</span>&#160;</div>
<div class="line"><a name="l00330"></a><span class="lineno">  330</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00331"></a><span class="lineno">  331</span>&#160;    <a class="code" href="a00023.html">IteratorProxy</a>(iterator&amp;&amp; start, iterator&amp;&amp; end) :</div>
<div class="line"><a name="l00332"></a><span class="lineno">  332</span>&#160;        start_(std::move(start)), end_(std::move(end))</div>
<div class="line"><a name="l00333"></a><span class="lineno">  333</span>&#160;    {}</div>
<div class="line"><a name="l00334"></a><span class="lineno">  334</span>&#160;</div>
<div class="line"><a name="l00335"></a><span class="lineno">  335</span>&#160;</div>
<div class="line"><a name="l00336"></a><span class="lineno">  336</span>&#160;    <a class="code" href="a00023.html">IteratorProxy</a>(<span class="keyword">const</span> <a class="code" href="a00023.html">IteratorProxy</a>&amp;) = <span class="keyword">delete</span>;</div>
<div class="line"><a name="l00337"></a><span class="lineno">  337</span>&#160;</div>
<div class="line"><a name="l00338"></a><span class="lineno">  338</span>&#160;    <a class="code" href="a00023.html">IteratorProxy</a>(<a class="code" href="a00023.html">IteratorProxy</a>&amp;&amp;) = <span class="keyword">delete</span>;</div>
<div class="line"><a name="l00339"></a><span class="lineno">  339</span>&#160;</div>
<div class="line"><a name="l00340"></a><span class="lineno">  340</span>&#160;    <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a00023.html">IteratorProxy</a>&amp;) = <span class="keyword">delete</span>;</div>
<div class="line"><a name="l00341"></a><span class="lineno">  341</span>&#160;</div>
<div class="line"><a name="l00342"></a><span class="lineno">  342</span>&#160;    <span class="keywordtype">void</span> operator=(<a class="code" href="a00023.html">IteratorProxy</a>&amp;&amp;) = <span class="keyword">delete</span>;</div>
<div class="line"><a name="l00343"></a><span class="lineno">  343</span>&#160;</div>
<div class="line"><a name="l00344"></a><span class="lineno">  344</span>&#160;</div>
<div class="line"><a name="l00345"></a><span class="lineno">  345</span>&#160;    iterator begin()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> start_; }</div>
<div class="line"><a name="l00346"></a><span class="lineno">  346</span>&#160;</div>
<div class="line"><a name="l00347"></a><span class="lineno">  347</span>&#160;    iterator end()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> end_; }</div>
<div class="line"><a name="l00348"></a><span class="lineno">  348</span>&#160;</div>
<div class="line"><a name="l00349"></a><span class="lineno">  349</span>&#160;    <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00350"></a><span class="lineno">  350</span>&#160;    <span class="keyword">operator</span> std::vector&lt;T&gt; () <span class="keyword">const</span> &amp; {</div>
<div class="line"><a name="l00351"></a><span class="lineno">  351</span>&#160;        std::vector&lt;T&gt; result;</div>
<div class="line"><a name="l00352"></a><span class="lineno">  352</span>&#160;        <span class="keywordflow">for</span> (<span class="keyword">auto</span> it : *<span class="keyword">this</span>) {</div>
<div class="line"><a name="l00353"></a><span class="lineno">  353</span>&#160;            result.push_back(convert&lt;T&gt;(it));</div>
<div class="line"><a name="l00354"></a><span class="lineno">  354</span>&#160;        }</div>
<div class="line"><a name="l00355"></a><span class="lineno">  355</span>&#160;        <span class="keywordflow">return</span> result;</div>
<div class="line"><a name="l00356"></a><span class="lineno">  356</span>&#160;    }</div>
<div class="line"><a name="l00357"></a><span class="lineno">  357</span>&#160;</div>
<div class="line"><a name="l00358"></a><span class="lineno">  358</span>&#160;    <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00359"></a><span class="lineno">  359</span>&#160;    <span class="keyword">operator</span> std::vector&lt;T&gt; () &amp;&amp; {</div>
<div class="line"><a name="l00360"></a><span class="lineno">  360</span>&#160;        std::vector&lt;T&gt; result;</div>
<div class="line"><a name="l00361"></a><span class="lineno">  361</span>&#160;        <span class="keywordflow">for</span> (<span class="keyword">auto</span>&amp;&amp; val : *<span class="keyword">this</span>) {</div>
<div class="line"><a name="l00362"></a><span class="lineno">  362</span>&#160;            result.push_back(convert&lt;T&gt;(std::move(val)));</div>
<div class="line"><a name="l00363"></a><span class="lineno">  363</span>&#160;        }</div>
<div class="line"><a name="l00364"></a><span class="lineno">  364</span>&#160;        <span class="keywordflow">return</span> result;</div>
<div class="line"><a name="l00365"></a><span class="lineno">  365</span>&#160;    }</div>
<div class="line"><a name="l00366"></a><span class="lineno">  366</span>&#160;</div>
<div class="line"><a name="l00367"></a><span class="lineno">  367</span>&#160;    std::vector&lt;value_type&gt; collect() <span class="keyword">const</span> &amp; {</div>
<div class="line"><a name="l00368"></a><span class="lineno">  368</span>&#160;        <span class="keywordflow">return</span> {start_, end_};</div>
<div class="line"><a name="l00369"></a><span class="lineno">  369</span>&#160;    }</div>
<div class="line"><a name="l00370"></a><span class="lineno">  370</span>&#160;</div>
<div class="line"><a name="l00371"></a><span class="lineno">  371</span>&#160;    std::vector&lt;value_type&gt; collect() &amp;&amp; {</div>
<div class="line"><a name="l00372"></a><span class="lineno">  372</span>&#160;        <span class="keywordflow">return</span> {std::move(start_), std::move(end_)};</div>
<div class="line"><a name="l00373"></a><span class="lineno">  373</span>&#160;    }</div>
<div class="line"><a name="l00374"></a><span class="lineno">  374</span>&#160;</div>
<div class="line"><a name="l00375"></a><span class="lineno">  375</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00376"></a><span class="lineno">  376</span>&#160;    iterator start_;</div>
<div class="line"><a name="l00377"></a><span class="lineno">  377</span>&#160;    iterator end_;</div>
<div class="line"><a name="l00378"></a><span class="lineno">  378</span>&#160;};</div>
<div class="line"><a name="l00379"></a><span class="lineno">  379</span>&#160;</div>
<div class="line"><a name="l00380"></a><span class="lineno">  380</span>&#160;} <span class="comment">// namespace util</span></div>
<div class="line"><a name="l00381"></a><span class="lineno">  381</span>&#160;} <span class="comment">// namespace fifr</span></div>
<div class="line"><a name="l00382"></a><span class="lineno">  382</span>&#160;</div>
<div class="line"><a name="l00383"></a><span class="lineno">  383</span>&#160;<span class="preprocessor">#endif // __FIFR_UTIL_RANGE_HXX__</span></div>
<div class="ttc" id="a00030_html"><div class="ttname"><a href="a00030.html">Convert.hxx</a></div><div class="ttdoc">Implement a Rust inspired conversion trait Convert. </div></div>
<div class="ttc" id="a00001_html"><div class="ttname"><a href="a00001.html">fifr::util::all_range</a></div><div class="ttdoc">Range covering all elements. </div><div class="ttdef"><b>Definition:</b> Range.hxx:272</div></div>
<div class="ttc" id="a00023_html"><div class="ttname"><a href="a00023.html">fifr::util::IteratorProxy</a></div><div class="ttdoc">Proxy providing access to some iterators. </div><div class="ttdef"><b>Definition:</b> Range.hxx:324</div></div>
<div class="ttc" id="a00042_html_a635542a3a6fb35d5a7d726c472a8262e"><div class="ttname"><a href="a00042.html#a635542a3a6fb35d5a7d726c472a8262e">fifr::util::range</a></div><div class="ttdeci">range_proxy&lt; T &gt; range(T begin, T end)</div><div class="ttdoc">Return range over [begin,end). </div><div class="ttdef"><b>Definition:</b> Range.hxx:216</div></div>
<div class="ttc" id="a00041_html"><div class="ttname"><a href="a00041.html">fifr</a></div><div class="ttdef"><b>Definition:</b> AutoTuple.hxx:23</div></div>
<div class="ttc" id="a00042_html_a47864c335721f56fe75f007a9c52d004"><div class="ttname"><a href="a00042.html#a47864c335721f56fe75f007a9c52d004">fifr::util::operator+</a></div><div class="ttdeci">std::string operator+(const std::string &amp;str, const Join&lt; C &gt; &amp;join)</div><div class="ttdoc">Add string and joined string. </div><div class="ttdef"><b>Definition:</b> Join.hxx:95</div></div>
<div class="ttc" id="a00042_html_ab85f8d0d402de83302c77b45a93d2d2d"><div class="ttname"><a href="a00042.html#ab85f8d0d402de83302c77b45a93d2d2d">fifr::util::indices</a></div><div class="ttdeci">auto indices(C const &amp;cont) -&gt; range_proxy&lt; decltype(cont.size())&gt;</div><div class="ttdoc">Return range over the valid indices of a container. </div><div class="ttdef"><b>Definition:</b> Range.hxx:250</div></div>
<div class="ttc" id="a00042_html_a794f0c94f474118782db17f128e628a3"><div class="ttname"><a href="a00042.html#a794f0c94f474118782db17f128e628a3">fifr::util::range_size</a></div><div class="ttdeci">Size range_size(all_range, Size n)</div><div class="ttdoc">Size of an all-range. </div><div class="ttdef"><b>Definition:</b> Range.hxx:286</div></div>
<div class="ttc" id="a00042_html_a072c669eeb901b9f5ff50e22cbe9ba52"><div class="ttname"><a href="a00042.html#a072c669eeb901b9f5ff50e22cbe9ba52">fifr::util::range_end</a></div><div class="ttdeci">Size range_end(all_range, Size n)</div><div class="ttdoc">End of an all-range. </div><div class="ttdef"><b>Definition:</b> Range.hxx:282</div></div>
<div class="ttc" id="a00042_html_a40d02e79f662d3f9b8720198615f8ad4"><div class="ttname"><a href="a00042.html#a40d02e79f662d3f9b8720198615f8ad4">fifr::util::range_begin</a></div><div class="ttdeci">Size range_begin(all_range, Size)</div><div class="ttdoc">Beginning of an all-range. </div><div class="ttdef"><b>Definition:</b> Range.hxx:278</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Feb 21 2017 22:46:02 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00034_source.html.































































































































































































































































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>fifr::util: src/fifr/util/Scan.hxx Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_410dc4a63588d435a0c08a3db8b9f0cd.html">fifr</a></li><li class="navelem"><a class="el" href="dir_2a722471f978b7073f859d2d7c3aa2b4.html">util</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">Scan.hxx</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Copyright (c) 2017 Frank Fischer &lt;frank-fischer@shadow-soft.de&gt;</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * This program is free software: you can redistribute it and/or</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * modify it under the terms of the GNU General Public License as</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * published by the Free Software Foundation, either version 3 of the</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * License, or (at your option) any later version.</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> * This program is distributed in the hope that it will be useful, but</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> * WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> * General Public License for more details.</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> * along with this program.  If not, see  &lt;http://www.gnu.org/licenses/&gt;</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;</div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="preprocessor">#ifndef __FIFR_UTIL_SCAN_HXX__</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor">#define __FIFR_UTIL_SCAN_HXX__</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;</div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="a00030.html">Convert.hxx</a>&quot;</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor">#include &quot;Range.hxx&quot;</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#include &quot;AutoTuple.hxx&quot;</span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor">#include &lt;regex&gt;</span></div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="keyword">namespace </span><a class="code" href="a00041.html">fifr</a> {</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="keyword">namespace </span>util {</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span>... Args&gt;</div>
<div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="a00025.html">   35</a></span>&#160;<span class="keyword">class </span><a class="code" href="a00025.html">ScanIterator</a></div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;{</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;    <span class="keyword">typedef</span> <span class="keyword">typename</span> std::sregex_iterator::difference_type difference_type;</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;    <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="a00002.html">AutoTuple</a>&lt;Args...&gt;::type value_type;</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;    <span class="keyword">typedef</span> <span class="keyword">const</span> value_type* pointer;</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;    <span class="keyword">typedef</span> <span class="keyword">const</span> value_type&amp; reference;</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;    <span class="keyword">typedef</span> std::forward_iterator_tag iterator_category;</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;    <a class="code" href="a00025.html">ScanIterator</a>(std::sregex_iterator&amp;&amp; it) : it_(std::move(it)) {}</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    value_type operator *()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;        <span class="keyword">static</span> constexpr <span class="keyword">auto</span> size = std::tuple_size&lt;std::tuple&lt;Args...&gt;&gt;::value;</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;        <span class="keywordflow">return</span> get_matches(*it_, std::make_index_sequence&lt;size&gt;{});</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    }</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;    <a class="code" href="a00025.html">ScanIterator</a>&amp; operator ++() {</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;        ++it_;</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;        <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    }</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;    <a class="code" href="a00025.html">ScanIterator</a> operator ++(<span class="keywordtype">int</span>) {</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;        <span class="keyword">auto</span> copy = *<span class="keyword">this</span>;</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;        ++*<span class="keyword">this</span>;</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;        <span class="keywordflow">return</span> copy;</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    }</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;    <span class="keywordtype">bool</span> operator == (<span class="keyword">const</span> <a class="code" href="a00025.html">ScanIterator</a>&amp; other)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;        <span class="keywordflow">return</span> it_ == other.it_;</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;    }</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;    <span class="keywordtype">bool</span> operator != (<span class="keyword">const</span> <a class="code" href="a00025.html">ScanIterator</a>&amp; other)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;        <span class="keywordflow">return</span> it_ != other.it_;</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;    }</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    <span class="keyword">template</span> &lt;<span class="keywordtype">size_t</span> ... I&gt;</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;    <span class="keyword">static</span> value_type get_matches(<span class="keyword">const</span> std::sregex_iterator::value_type&amp; m, std::index_sequence&lt;I...&gt;)</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;    {</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="a00042.html#a67fa88821d4e4a16934fb966a14199bf">make_auto_tuple</a>(convert&lt;Args&gt;(m.str(I+1))...);</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;    }</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;    std::sregex_iterator it_;</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;};</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;<span class="keyword">template</span> &lt;&gt;</div>
<div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="a00026.html">   87</a></span>&#160;<span class="keyword">class </span><a class="code" href="a00025.html">ScanIterator</a>&lt;&gt;</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;{</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;    <span class="keyword">typedef</span> <span class="keyword">typename</span> std::sregex_iterator::difference_type difference_type;</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;    <span class="keyword">typedef</span> std::string value_type;</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;    <span class="keyword">typedef</span> <span class="keyword">const</span> std::string* pointer;</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;    <span class="keyword">typedef</span> <span class="keyword">const</span> std::string&amp; reference;</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;    <span class="keyword">typedef</span> std::forward_iterator_tag iterator_category;</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;    <a class="code" href="a00025.html">ScanIterator</a>(std::sregex_iterator&amp;&amp; it) : it_(std::move(it)) {}</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;    value_type operator *()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;        <span class="keywordflow">return</span> it_-&gt;str();</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;    }</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;    <a class="code" href="a00025.html">ScanIterator</a>&amp; operator ++() {</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;        ++it_;</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;        <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;    }</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;    <a class="code" href="a00025.html">ScanIterator</a> operator ++(<span class="keywordtype">int</span>) {</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;        <span class="keyword">auto</span> copy = *<span class="keyword">this</span>;</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;        ++*<span class="keyword">this</span>;</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;        <span class="keywordflow">return</span> copy;</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;    }</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;    <span class="keywordtype">bool</span> operator == (<span class="keyword">const</span> <a class="code" href="a00025.html">ScanIterator</a>&amp; other)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;        <span class="keywordflow">return</span> it_ == other.it_;</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;    }</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;    <span class="keywordtype">bool</span> operator != (<span class="keyword">const</span> <a class="code" href="a00025.html">ScanIterator</a>&amp; other)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;        <span class="keywordflow">return</span> it_ != other.it_;</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;    }</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;    std::sregex_iterator it_;</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;};</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;<a class="code" href="a00023.html">IteratorProxy&lt;std::sregex_iterator&gt;</a></div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;<a class="code" href="a00042.html#a3093afe9b956797b3ce3fb1191b21409">scan_matches</a>(<span class="keyword">const</span> std::string&amp; str, <span class="keyword">const</span> std::regex&amp; re);</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;</div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span>... Args&gt;</div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;<a class="code" href="a00023.html">IteratorProxy</a>&lt;<a class="code" href="a00025.html">ScanIterator</a>&lt;Args...&gt;&gt;</div>
<div class="line"><a name="l00185"></a><span class="lineno"><a class="line" href="a00042.html#a965fae864f05b845194b24177ffd3a81">  185</a></span>&#160;<a class="code" href="a00042.html#a965fae864f05b845194b24177ffd3a81">scan</a>(<span class="keyword">const</span> std::string&amp; str, <span class="keyword">const</span> std::regex&amp; re)</div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;{</div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;    <span class="keywordflow">return</span> {std::sregex_iterator(str.begin(), str.end(), re), std::sregex_iterator()};</div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;}</div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;</div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;}</div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;}</div>
<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;</div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="ttc" id="a00042_html_a67fa88821d4e4a16934fb966a14199bf"><div class="ttname"><a href="a00042.html#a67fa88821d4e4a16934fb966a14199bf">fifr::util::make_auto_tuple</a></div><div class="ttdeci">AutoTuple&lt; Args...&gt;::type make_auto_tuple(Args &amp;&amp;...args)</div><div class="ttdoc">Return the arguments as value, pair or tuple. </div><div class="ttdef"><b>Definition:</b> AutoTuple.hxx:56</div></div>
<div class="ttc" id="a00042_html_a965fae864f05b845194b24177ffd3a81"><div class="ttname"><a href="a00042.html#a965fae864f05b845194b24177ffd3a81">fifr::util::scan</a></div><div class="ttdeci">IteratorProxy&lt; ScanIterator&lt; Args...&gt; &gt; scan(const std::string &amp;str, const std::regex &amp;re)</div><div class="ttdoc">Returns an iterator proxy over all matches within a string. </div><div class="ttdef"><b>Definition:</b> Scan.hxx:185</div></div>
<div class="ttc" id="a00042_html_a3093afe9b956797b3ce3fb1191b21409"><div class="ttname"><a href="a00042.html#a3093afe9b956797b3ce3fb1191b21409">fifr::util::scan_matches</a></div><div class="ttdeci">IteratorProxy&lt; std::sregex_iterator &gt; scan_matches(const std::string &amp;str, const std::regex &amp;re)</div><div class="ttdoc">Returns an iterator proxy over all matches within a string. </div><div class="ttdef"><b>Definition:</b> Scan.cxx:24</div></div>
<div class="ttc" id="a00030_html"><div class="ttname"><a href="a00030.html">Convert.hxx</a></div><div class="ttdoc">Implement a Rust inspired conversion trait Convert. </div></div>
<div class="ttc" id="a00023_html"><div class="ttname"><a href="a00023.html">fifr::util::IteratorProxy</a></div><div class="ttdoc">Proxy providing access to some iterators. </div><div class="ttdef"><b>Definition:</b> Range.hxx:324</div></div>
<div class="ttc" id="a00041_html"><div class="ttname"><a href="a00041.html">fifr</a></div><div class="ttdef"><b>Definition:</b> AutoTuple.hxx:23</div></div>
<div class="ttc" id="a00025_html"><div class="ttname"><a href="a00025.html">fifr::util::ScanIterator</a></div><div class="ttdoc">Iterator for matches of a scan operation. </div><div class="ttdef"><b>Definition:</b> Scan.hxx:35</div></div>
<div class="ttc" id="a00002_html"><div class="ttname"><a href="a00002.html">fifr::util::AutoTuple</a></div><div class="ttdoc">Trait for returning tuple, pair or value depending on the number of type arguments. </div><div class="ttdef"><b>Definition:</b> AutoTuple.hxx:33</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Feb 21 2017 22:46:02 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00035.html.











































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>fifr::util: src/fifr/util/SortBy.hxx File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_410dc4a63588d435a0c08a3db8b9f0cd.html">fifr</a></li><li class="navelem"><a class="el" href="dir_2a722471f978b7073f859d2d7c3aa2b4.html">util</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#namespaces">Namespaces</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">SortBy.hxx File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Sort function to sort elements by a key.  
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &lt;vector&gt;</code><br />
<code>#include &lt;algorithm&gt;</code><br />
<code>#include &lt;functional&gt;</code><br />
<code>#include &lt;cassert&gt;</code><br />
</div>
<p><a href="a00035_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
Namespaces</h2></td></tr>
<tr class="memitem:a00042"><td class="memItemLeft" align="right" valign="top"> &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00042.html">fifr::util</a></td></tr>
<tr class="memdesc:a00042"><td class="mdescLeft">&#160;</td><td class="mdescRight">Utility functions for c++. <br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a22abdf2c6d5581264dc1d7933e06319b"><td class="memTemplParams" colspan="2"><a class="anchor" id="a22abdf2c6d5581264dc1d7933e06319b"></a>
template&lt;typename C , typename Keys , typename std::remove_reference&lt; decltype(std::declval&lt; C &gt;()[0])&gt;::type *  = nullptr, typename std::remove_reference&lt; decltype(std::declval&lt; C &gt;().size())&gt;::type *  = nullptr, typename std::remove_reference&lt; decltype(std::declval&lt; Keys &gt;()[0])&gt;::type *  = nullptr, typename std::remove_reference&lt; decltype(std::declval&lt; Keys &gt;().size())&gt;::type *  = nullptr&gt; </td></tr>
<tr class="memitem:a22abdf2c6d5581264dc1d7933e06319b"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00042.html#a22abdf2c6d5581264dc1d7933e06319b">fifr::util::sort_by</a> (C &amp;container, const Keys &amp;keys)</td></tr>
<tr class="memdesc:a22abdf2c6d5581264dc1d7933e06319b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sort container of values by some given container of keys. <br /></td></tr>
<tr class="separator:a22abdf2c6d5581264dc1d7933e06319b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a87337d5276c5ab23b339b19fd1cb952e"><td class="memTemplParams" colspan="2"><a class="anchor" id="a87337d5276c5ab23b339b19fd1cb952e"></a>
template&lt;typename C , typename Fun , typename std::remove_reference&lt; decltype(std::declval&lt; C &gt;()[0])&gt;::type *  = nullptr, typename std::remove_reference&lt; decltype(std::declval&lt; C &gt;().size())&gt;::type *  = nullptr, typename std::remove_reference&lt; decltype(std::declval&lt; Fun &gt;()(std::declval&lt; C &gt;()[0]))&gt;::type *  = nullptr&gt; </td></tr>
<tr class="memitem:a87337d5276c5ab23b339b19fd1cb952e"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00042.html#a87337d5276c5ab23b339b19fd1cb952e">fifr::util::sort_by</a> (C &amp;container, Fun fun)</td></tr>
<tr class="memdesc:a87337d5276c5ab23b339b19fd1cb952e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sort container of values by some given function of keys. <br /></td></tr>
<tr class="separator:a87337d5276c5ab23b339b19fd1cb952e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Sort function to sort elements by a key. </p>
</div></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Feb 21 2017 22:46:02 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00035_source.html.















































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>fifr::util: src/fifr/util/GZipStream.hxx Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_410dc4a63588d435a0c08a3db8b9f0cd.html">fifr</a></li><li class="navelem"><a class="el" href="dir_2a722471f978b7073f859d2d7c3aa2b4.html">util</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">GZipStream.hxx</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Copyright (c) 2017 Frank Fischer &lt;frank-fischer@shadow-soft.de&gt;</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * This program is free software: you can redistribute it and/or</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * modify it under the terms of the GNU General Public License as</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * published by the Free Software Foundation, either version 3 of the</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * License, or (at your option) any later version.</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> * This program is distributed in the hope that it will be useful, but</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> * WITHOUT ANY WARRANTY; without even the implied warranty of</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> * General Public License for more details.</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> * You should have received a copy of the GNU General Public License</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> * along with this program.  If not, see  &lt;http://www.gnu.org/licenses/&gt;</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;</div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="preprocessor">#ifndef __FIFR_UTIL_GZIPSTREAM_HXX__</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor">#define __FIFR_UTIL_GZIPSTREAM_HXX__</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;</div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor">#include &lt;memory&gt;</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor">#include &lt;streambuf&gt;</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;</div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor">#include &quot;ZipStreamBase.hxx&quot;</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;</div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="keyword">namespace </span><a class="code" href="a00078.html">fifr</a></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;{</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="keyword">namespace </span>util</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;{</div><div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="a00799.html">   34</a></span>&#160;<span class="keyword">class </span><a class="code" href="a00799.html">GZipStreamBuf</a> : <span class="keyword">public</span> std::streambuf</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;{</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;    <a class="code" href="a00799.html#ae59f9cd9bcf226c4654cc58f6aeda2fb">GZipStreamBuf</a>();</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    <a class="code" href="a00799.html#a3d3601c783a0b972293fa1a36db9e39b">~GZipStreamBuf</a>();</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="a00799.html#a9087cf9a619e738806251df7d7d57f05">is_open</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;    <a class="code" href="a00799.html">GZipStreamBuf</a>* <a class="code" href="a00799.html#a01e310fee815cbcb6994af835155cd6b">open</a>(<span class="keyword">const</span> std::string&amp; fname, std::ios_base::openmode op_mode);</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    <a class="code" href="a00799.html">GZipStreamBuf</a>* <a class="code" href="a00799.html#ada54dcff985e2b6ac280b52a4d237f30">close</a>();</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;    <span class="keywordtype">int</span> overflow(<span class="keywordtype">int</span> c = EOF);</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;    <span class="keywordtype">int</span> underflow();</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;    <span class="keywordtype">int</span> sync();</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    <span class="keywordtype">int</span> flush_buffer();</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;    <span class="keyword">struct </span>Data;</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;    std::unique_ptr&lt;Data&gt; d;</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;};</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;<span class="keyword">typedef</span> InputZipStreamBase&lt;GZipStreamBuf&gt; InputGZipStream;</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;<span class="keyword">typedef</span> OutputZipStreamBase&lt;GZipStreamBuf&gt; OutputGZipStream;</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;<span class="keyword">typedef</span> InputGZipStream igzstream;</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;<span class="keyword">typedef</span> OutputGZipStream ogzstream;</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;}  <span class="comment">// namespace util</span></div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;}  <span class="comment">// namespace fifr</span></div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;<span class="preprocessor">#endif</span></div><div class="ttc" id="a00799_html_a3d3601c783a0b972293fa1a36db9e39b"><div class="ttname"><a href="a00799.html#a3d3601c783a0b972293fa1a36db9e39b">fifr::util::GZipStreamBuf::~GZipStreamBuf</a></div><div class="ttdeci">~GZipStreamBuf()</div><div class="ttdoc">Destructor. </div><div class="ttdef"><b>Definition:</b> GZipStream.cxx:27</div></div>
<div class="ttc" id="a00799_html_a9087cf9a619e738806251df7d7d57f05"><div class="ttname"><a href="a00799.html#a9087cf9a619e738806251df7d7d57f05">fifr::util::GZipStreamBuf::is_open</a></div><div class="ttdeci">bool is_open() const</div><div class="ttdoc">Returns true if the associated file is opened. </div><div class="ttdef"><b>Definition:</b> GZipStream.cxx:32</div></div>
<div class="ttc" id="a00799_html"><div class="ttname"><a href="a00799.html">fifr::util::GZipStreamBuf</a></div><div class="ttdoc">Stream buffer for gzipped files. </div><div class="ttdef"><b>Definition:</b> GZipStream.hxx:34</div></div>
<div class="ttc" id="a00799_html_a01e310fee815cbcb6994af835155cd6b"><div class="ttname"><a href="a00799.html#a01e310fee815cbcb6994af835155cd6b">fifr::util::GZipStreamBuf::open</a></div><div class="ttdeci">GZipStreamBuf * open(const std::string &amp;fname, std::ios_base::openmode op_mode)</div><div class="ttdoc">Opens a file. </div><div class="ttdef"><b>Definition:</b> GZipStream.cxx:37</div></div>
<div class="ttc" id="a00078_html"><div class="ttname"><a href="a00078.html">fifr</a></div><div class="ttdef"><b>Definition:</b> AutoTuple.hxx:23</div></div>
<div class="ttc" id="a00799_html_ada54dcff985e2b6ac280b52a4d237f30"><div class="ttname"><a href="a00799.html#ada54dcff985e2b6ac280b52a4d237f30">fifr::util::GZipStreamBuf::close</a></div><div class="ttdeci">GZipStreamBuf * close()</div><div class="ttdoc">Closes the associated file. </div><div class="ttdef"><b>Definition:</b> GZipStream.cxx:72</div></div>
<div class="ttc" id="a00799_html_ae59f9cd9bcf226c4654cc58f6aeda2fb"><div class="ttname"><a href="a00799.html#ae59f9cd9bcf226c4654cc58f6aeda2fb">fifr::util::GZipStreamBuf::GZipStreamBuf</a></div><div class="ttdeci">GZipStreamBuf()</div><div class="ttdoc">Constructor. </div><div class="ttdef"><b>Definition:</b> GZipStream.cxx:21</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Aug 6 2018 13:22:44 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00036_source.html.



















































































































































































































































































































































































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>fifr::util: src/fifr/util/Split.hxx Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_410dc4a63588d435a0c08a3db8b9f0cd.html">fifr</a></li><li class="navelem"><a class="el" href="dir_2a722471f978b7073f859d2d7c3aa2b4.html">util</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">Split.hxx</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Copyright (c) 2016, 2017 Frank Fischer &lt;frank-fischer@shadow-soft.de&gt;</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * This program is free software: you can redistribute it and/or</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * modify it under the terms of the GNU General Public License as</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * published by the Free Software Foundation, either version 3 of the</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * License, or (at your option) any later version.</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> * This program is distributed in the hope that it will be useful, but</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> * WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> * General Public License for more details.</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> * along with this program.  If not, see  &lt;http://www.gnu.org/licenses/&gt;</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;</div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="preprocessor">#ifndef __FIFR_UTIL_SPLIT_HXX__</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor">#define __FIFR_UTIL_SPLIT_HXX__</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;</div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor">#include &quot;Range.hxx&quot;</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="a00030.html">Convert.hxx</a>&quot;</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor">#include &lt;iterator&gt;</span></div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor">#include &lt;regex&gt;</span></div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor">#include &lt;array&gt;</span></div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="preprocessor">#include &lt;utility&gt;</span></div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="keyword">namespace </span><a class="code" href="a00041.html">fifr</a> {</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="keyword">namespace </span>util {</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;</div>
<div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="a00042.html#ac4bdb5919b69453de8a723476cb21157">   34</a></span>&#160;<span class="keyword">const</span> std::regex <a class="code" href="a00042.html#ac4bdb5919b69453de8a723476cb21157">default_split</a> = std::regex(<span class="stringliteral">&quot;[[:space:]]+&quot;</span>);</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;</div>
<div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="a00027.html">   37</a></span>&#160;<span class="keyword">class </span><a class="code" href="a00027.html">SplitIterator</a> :</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;        <span class="keyword">public</span> std::iterator&lt;std::forward_iterator_tag, std::string&gt;</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;{</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;    <span class="keyword">typedef</span> std::iterator&lt;std::forward_iterator_tag, std::string&gt; Super;</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    <span class="keyword">using</span> <span class="keyword">typename</span> Super::value_type;</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;    <span class="keyword">using</span> <span class="keyword">typename</span> Super::difference_type;</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;    <span class="keyword">using</span> <span class="keyword">typename</span> Super::pointer;</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;    <span class="keyword">using</span> <span class="keyword">typename</span> Super::reference;</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;    <a class="code" href="a00027.html">SplitIterator</a>() : beg_(std::string::npos), end_(std::string::npos) {}</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    <a class="code" href="a00027.html">SplitIterator</a>(<span class="keyword">const</span> std::string&amp; str, std::sregex_iterator&amp;&amp; it) :</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;        str_(&amp;str), it_(std::move(it)), beg_(0)</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;    {</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;        end_ = it_ != std::sregex_iterator() ? (std::string::size_type)it_-&gt;position(0) : std::string::npos;</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    }</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;    std::string operator *()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;        <span class="keywordflow">return</span> str_-&gt;substr(beg_, end_ - beg_);</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    }</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    <a class="code" href="a00027.html">SplitIterator</a>&amp; operator ++() {</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;        <span class="keywordflow">if</span> (it_ != std::sregex_iterator()) {</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;            beg_ = end_ + (std::string::size_type)it_-&gt;length(0);</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;            ++it_;</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;            end_ = it_ != std::sregex_iterator() ? (std::string::size_type)it_-&gt;position(0) : std::string::npos;</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;        } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;            beg_ = std::string::npos;</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;            end_ = std::string::npos;</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;        }</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;        <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;    }</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    <a class="code" href="a00027.html">SplitIterator</a> operator ++(<span class="keywordtype">int</span>) {</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;        <span class="keyword">auto</span> copy = *<span class="keyword">this</span>;</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;        ++*<span class="keyword">this</span>;</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;        <span class="keywordflow">return</span> copy;</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;    }</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;    <span class="keywordtype">bool</span> operator ==(<span class="keyword">const</span> <a class="code" href="a00027.html">SplitIterator</a>&amp; it)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;        <span class="keywordflow">return</span> beg_ == it.beg_;</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    }</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;    <span class="keywordtype">bool</span> operator !=(<span class="keyword">const</span> <a class="code" href="a00027.html">SplitIterator</a>&amp; it)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;        <span class="keywordflow">return</span> !(*<span class="keyword">this</span> == it);</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;    }</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;</div>
<div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="a00027.html#a38b1c3968990f68a1b68e6e9dac21e93">   87</a></span>&#160;    std::string <a class="code" href="a00027.html#a38b1c3968990f68a1b68e6e9dac21e93">rest</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;        <span class="keywordflow">return</span> str_-&gt;substr(beg_);</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;    }</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;    <span class="keyword">const</span> std::string* str_;</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;    std::sregex_iterator it_;</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;    std::string::size_type beg_;</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;    std::string::size_type end_;</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;};</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;</div>
<div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="a00042.html#a1c074a76b80bda682fed3eb223e5169d">   99</a></span>&#160;<span class="keyword">inline</span> <a class="code" href="a00027.html">SplitIterator</a> <a class="code" href="a00042.html#a1c074a76b80bda682fed3eb223e5169d">split_begin</a>(<span class="keyword">const</span> std::string&amp; str,</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;                                 <span class="keyword">const</span> std::regex&amp; re = default_split)</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;{</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;    <span class="keywordflow">return</span> { str, std::sregex_iterator(str.begin(), str.end(), re) };</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;}</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;</div>
<div class="line"><a name="l00106"></a><span class="lineno"><a class="line" href="a00042.html#a4554785c6f64cc545562fbb6af04e480">  106</a></span>&#160;<span class="keyword">inline</span> <a class="code" href="a00027.html">SplitIterator</a> <a class="code" href="a00042.html#a4554785c6f64cc545562fbb6af04e480">split_end</a>() {</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;    <span class="keywordflow">return</span> {};</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;}</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;</div>
<div class="line"><a name="l00111"></a><span class="lineno"><a class="line" href="a00042.html#a9442425143b6d80f976c80b9c1680bc0">  111</a></span>&#160;<span class="keyword">inline</span> <a class="code" href="a00023.html">IteratorProxy&lt;SplitIterator&gt;</a> <a class="code" href="a00042.html#a9442425143b6d80f976c80b9c1680bc0">split</a>(<span class="keyword">const</span> std::string&amp; str,</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;                                          <span class="keyword">const</span> std::regex&amp; re = default_split)</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;{</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;    <span class="keywordflow">return</span> {<a class="code" href="a00042.html#a1c074a76b80bda682fed3eb223e5169d">split_begin</a>(str, re), <a class="code" href="a00042.html#a4554785c6f64cc545562fbb6af04e480">split_end</a>()};</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;}</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;</div>
<div class="line"><a name="l00118"></a><span class="lineno"><a class="line" href="a00042.html#a5080ec6002a4cb7180a8f758a10a9797">  118</a></span>&#160;<span class="keyword">inline</span> std::vector&lt;std::string&gt; <a class="code" href="a00042.html#a5080ec6002a4cb7180a8f758a10a9797">splitv</a>(<span class="keyword">const</span> std::string&amp; str,</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;                                       <span class="keyword">const</span> std::regex&amp; re = default_split)</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;{</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;    <span class="keywordflow">return</span> {<a class="code" href="a00042.html#a1c074a76b80bda682fed3eb223e5169d">split_begin</a>(str, re), <a class="code" href="a00042.html#a4554785c6f64cc545562fbb6af04e480">split_end</a>()};</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;}</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;std::vector&lt;T&gt; <a class="code" href="a00042.html#a5080ec6002a4cb7180a8f758a10a9797">splitv</a>(<span class="keyword">const</span> std::string&amp; str, <span class="keyword">const</span> std::regex&amp; re = default_split) {</div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;    std::vector&lt;T&gt; result;</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;    <span class="keywordflow">for</span> (<span class="keyword">auto</span> x : <a class="code" href="a00042.html#a9442425143b6d80f976c80b9c1680bc0">split</a>(str, re)) {</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;        result.push_back(convert&lt;T&gt;(x));</div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;    }</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;    <span class="keywordflow">return</span> result;</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;}</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;</div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;<span class="keyword">template</span> &lt;std::<span class="keywordtype">size_t</span> N, <span class="keyword">typename</span> T = std::<span class="keywordtype">string</span>&gt;</div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;std::array&lt;T, N&gt;</div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;<a class="code" href="a00042.html#a9442425143b6d80f976c80b9c1680bc0">split</a>(<span class="keyword">const</span> std::string&amp; str, <span class="keyword">const</span> std::regex&amp; re = default_split) {</div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;    std::size_t i = 0;</div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;    std::array&lt;T, N&gt; result;</div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;    <span class="keyword">auto</span> it = <a class="code" href="a00042.html#a1c074a76b80bda682fed3eb223e5169d">split_begin</a>(str, re);</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;    <span class="keyword">auto</span> it_end = <a class="code" href="a00042.html#a4554785c6f64cc545562fbb6af04e480">split_end</a>();</div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;    <span class="keywordflow">while</span> (i &lt; N &amp;&amp; it != it_end) {</div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;        result[i] = convert&lt;T&gt;(*it);</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;        ++it;</div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;        ++i;</div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;    }</div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;</div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;    <span class="keywordflow">return</span> std::move(result);</div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;}</div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;</div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;<span class="keyword">namespace </span>detail {</div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;</div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> It&gt;</div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;<span class="keywordtype">void</span> split_args(It&amp;, It&amp;) {}</div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;</div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> It, <span class="keyword">typename</span> Arg0, <span class="keyword">typename</span> ...Args&gt;</div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;<span class="keywordtype">void</span> split_args(It&amp; it, It&amp; it_end, Arg0&amp; arg0, Args&amp;... args)</div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;{</div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;    <span class="keywordflow">if</span> (it != it_end) {</div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;        arg0 = convert&lt;Arg0&gt;(*it);</div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;        split_args(++it, it_end, args...);</div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;    }</div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;}</div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;</div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;}</div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;</div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span>... Args&gt;</div>
<div class="line"><a name="l00181"></a><span class="lineno"><a class="line" href="a00042.html#a468385ee0419414435a78bd019a2937c">  181</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="a00042.html#a9442425143b6d80f976c80b9c1680bc0">split</a>(<span class="keyword">const</span> std::string&amp; str, <span class="keyword">const</span> std::regex&amp; re, Args&amp;... args) {</div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;    <span class="keyword">auto</span> it = <a class="code" href="a00042.html#a1c074a76b80bda682fed3eb223e5169d">split_begin</a>(str, re);</div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;    <span class="keyword">auto</span> it_end = <a class="code" href="a00042.html#a4554785c6f64cc545562fbb6af04e480">split_end</a>();</div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;    detail::split_args(it, it_end, args...);</div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;}</div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;</div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;<span class="keyword">namespace </span>detail {</div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;</div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> Tuple, <span class="keywordtype">size_t</span> ... I&gt;</div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;<span class="keywordtype">void</span> split_tuple(<span class="keyword">const</span> std::string&amp; str, <span class="keyword">const</span> std::regex&amp; re, Tuple&amp; t, std::index_sequence&lt;I...&gt;)</div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;{</div>
<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;    <a class="code" href="a00042.html#a9442425143b6d80f976c80b9c1680bc0">split</a>(str, re, std::get&lt;I&gt;(t)...);</div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;}</div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;</div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;}</div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;</div>
<div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span>... Args&gt;</div>
<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;std::tuple&lt;Args...&gt; <a class="code" href="a00042.html#a9442425143b6d80f976c80b9c1680bc0">split</a>(<span class="keyword">const</span> std::string&amp; str, <span class="keyword">const</span> std::regex&amp; re = default_split)</div>
<div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;{</div>
<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;    <span class="keyword">static</span> constexpr <span class="keyword">auto</span> size = std::tuple_size&lt;std::tuple&lt;Args...&gt;&gt;::value;</div>
<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;    std::tuple&lt;Args...&gt; result;</div>
<div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;    detail::split_tuple(str, re, result, std::make_index_sequence&lt;size&gt;{});</div>
<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;    <span class="keywordflow">return</span> result;</div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;}</div>
<div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;</div>
<div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;}</div>
<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;}</div>
<div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;</div>
<div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="ttc" id="a00027_html"><div class="ttname"><a href="a00027.html">fifr::util::SplitIterator</a></div><div class="ttdoc">Iterator over the parts of a split string. </div><div class="ttdef"><b>Definition:</b> Split.hxx:37</div></div>
<div class="ttc" id="a00030_html"><div class="ttname"><a href="a00030.html">Convert.hxx</a></div><div class="ttdoc">Implement a Rust inspired conversion trait Convert. </div></div>
<div class="ttc" id="a00023_html"><div class="ttname"><a href="a00023.html">fifr::util::IteratorProxy</a></div><div class="ttdoc">Proxy providing access to some iterators. </div><div class="ttdef"><b>Definition:</b> Range.hxx:324</div></div>
<div class="ttc" id="a00042_html_a9442425143b6d80f976c80b9c1680bc0"><div class="ttname"><a href="a00042.html#a9442425143b6d80f976c80b9c1680bc0">fifr::util::split</a></div><div class="ttdeci">IteratorProxy&lt; SplitIterator &gt; split(const std::string &amp;str, const std::regex &amp;re=default_split)</div><div class="ttdoc">Return an iterator proxy of parts of a split string. </div><div class="ttdef"><b>Definition:</b> Split.hxx:111</div></div>
<div class="ttc" id="a00041_html"><div class="ttname"><a href="a00041.html">fifr</a></div><div class="ttdef"><b>Definition:</b> AutoTuple.hxx:23</div></div>
<div class="ttc" id="a00042_html_a4554785c6f64cc545562fbb6af04e480"><div class="ttname"><a href="a00042.html#a4554785c6f64cc545562fbb6af04e480">fifr::util::split_end</a></div><div class="ttdeci">SplitIterator split_end()</div><div class="ttdoc">Return an end iterator over parts of a split string. </div><div class="ttdef"><b>Definition:</b> Split.hxx:106</div></div>
<div class="ttc" id="a00042_html_ac4bdb5919b69453de8a723476cb21157"><div class="ttname"><a href="a00042.html#ac4bdb5919b69453de8a723476cb21157">fifr::util::default_split</a></div><div class="ttdeci">const std::regex default_split</div><div class="ttdoc">Split on white spaces by default. </div><div class="ttdef"><b>Definition:</b> Split.hxx:34</div></div>
<div class="ttc" id="a00027_html_a38b1c3968990f68a1b68e6e9dac21e93"><div class="ttname"><a href="a00027.html#a38b1c3968990f68a1b68e6e9dac21e93">fifr::util::SplitIterator::rest</a></div><div class="ttdeci">std::string rest() const </div><div class="ttdoc">Return the rest of the string starting at the current part. </div><div class="ttdef"><b>Definition:</b> Split.hxx:87</div></div>
<div class="ttc" id="a00042_html_a5080ec6002a4cb7180a8f758a10a9797"><div class="ttname"><a href="a00042.html#a5080ec6002a4cb7180a8f758a10a9797">fifr::util::splitv</a></div><div class="ttdeci">std::vector&lt; std::string &gt; splitv(const std::string &amp;str, const std::regex &amp;re=default_split)</div><div class="ttdoc">Return a split string as a vector. </div><div class="ttdef"><b>Definition:</b> Split.hxx:118</div></div>
<div class="ttc" id="a00042_html_a1c074a76b80bda682fed3eb223e5169d"><div class="ttname"><a href="a00042.html#a1c074a76b80bda682fed3eb223e5169d">fifr::util::split_begin</a></div><div class="ttdeci">SplitIterator split_begin(const std::string &amp;str, const std::regex &amp;re=default_split)</div><div class="ttdoc">Return an iterator over parts of a split string. </div><div class="ttdef"><b>Definition:</b> Split.hxx:99</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Feb 21 2017 22:46:02 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00038_source.html.













































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>fifr::util: src/fifr/util/Join.hxx Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_410dc4a63588d435a0c08a3db8b9f0cd.html">fifr</a></li><li class="navelem"><a class="el" href="dir_2a722471f978b7073f859d2d7c3aa2b4.html">util</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">Join.hxx</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Copyright (c) 2016, 2017 Frank Fischer &lt;frank-fischer@shadow-soft.de&gt;</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * This program is free software: you can redistribute it and/or</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * modify it under the terms of the GNU General Public License as</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * published by the Free Software Foundation, either version 3 of the</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * License, or (at your option) any later version.</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> * This program is distributed in the hope that it will be useful, but</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> * WITHOUT ANY WARRANTY; without even the implied warranty of</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> * General Public License for more details.</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> * You should have received a copy of the GNU General Public License</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> * along with this program.  If not, see  &lt;http://www.gnu.org/licenses/&gt;</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;</div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="preprocessor">#ifndef __FIFR_UTIL_JOIN_HXX__</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor">#define __FIFR_UTIL_JOIN_HXX__</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;</div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor">#include &lt;array&gt;</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor">#include &lt;sstream&gt;</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;</div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="a00029.html">Convert.hxx</a>&quot;</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;</div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="keyword">namespace </span><a class="code" href="a00078.html">fifr</a></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;{</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="keyword">namespace </span>util</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;{</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">class</span> C&gt;</div><div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="a00803.html">   38</a></span>&#160;<span class="keyword">class </span><a class="code" href="a00803.html">Join</a></div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;{</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;    <a class="code" href="a00803.html">Join</a>(<span class="keyword">const</span> C&amp; container, <span class="keyword">const</span> std::string&amp; sep) : container_(container), sep_(sep) {}</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    <a class="code" href="a00803.html">Join</a>(<a class="code" href="a00803.html">Join</a>&amp;&amp;) = <span class="keyword">delete</span>;</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;    <a class="code" href="a00803.html">Join</a>(<span class="keyword">const</span> <a class="code" href="a00803.html">Join</a>&amp;) = <span class="keyword">delete</span>;</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    <a class="code" href="a00803.html">Join</a>&amp; operator=(<a class="code" href="a00803.html">Join</a>&amp;&amp;) = <span class="keyword">delete</span>;</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;    <a class="code" href="a00803.html">Join</a>&amp; operator=(<span class="keyword">const</span> <a class="code" href="a00803.html">Join</a>&amp;) = <span class="keyword">delete</span>;</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;</div><div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="a00803.html#a7464b23617dfcfef5e1fa85b9eae8116">   52</a></span>&#160;    std::string <a class="code" href="a00803.html#a7464b23617dfcfef5e1fa85b9eae8116">str</a>()<span class="keyword"> const</span></div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;<span class="keyword">    </span>{</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;        std::ostringstream out;</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;        out &lt;&lt; *<span class="keyword">this</span>;</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;        <span class="keywordflow">return</span> out.str();</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;    }</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;    <span class="keyword">operator</span> std::string()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="a00803.html#a7464b23617dfcfef5e1fa85b9eae8116">str</a>(); }</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    <span class="keyword">template</span> &lt;<span class="keyword">class</span> C_&gt;</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    <span class="keyword">friend</span> std::ostream&amp; operator&lt;&lt;(std::ostream&amp; out, const Join&lt;C_&gt;&amp; <a class="code" href="a00079.html#a4549a4c462e3314bd2dae501eae9d9c9">join</a>);</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;    <span class="keyword">const</span> C&amp; container_;</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;    <span class="keyword">const</span> std::string&amp; sep_;</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;};</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">class</span> C&gt;</div><div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="a00079.html#a763fb6df77ab87aaa34abbff74100af7">   71</a></span>&#160;std::ostream&amp; operator&lt;&lt;(std::ostream&amp; out, const Join&lt;C&gt;&amp; <a class="code" href="a00079.html#a4549a4c462e3314bd2dae501eae9d9c9">join</a>)</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;{</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;    <span class="keyword">auto</span> it = <a class="code" href="a00079.html#a4549a4c462e3314bd2dae501eae9d9c9">join</a>.container_.begin();</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;    <span class="keyword">auto</span> itend = <a class="code" href="a00079.html#a4549a4c462e3314bd2dae501eae9d9c9">join</a>.container_.end();</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;    <span class="keywordflow">if</span> (it != itend) {</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;        out &lt;&lt; *it;</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;        ++it;</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;        <span class="keywordflow">for</span> (; it != itend; ++it) {</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;            out &lt;&lt; <a class="code" href="a00079.html#a4549a4c462e3314bd2dae501eae9d9c9">join</a>.sep_ &lt;&lt; *it;</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;        }</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;    }</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;    <span class="keywordflow">return</span> out;</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;}</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> C&gt;</div><div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="a00079.html#a4549a4c462e3314bd2dae501eae9d9c9">   89</a></span>&#160;<a class="code" href="a00803.html">Join&lt;C&gt;</a> <a class="code" href="a00079.html#a4549a4c462e3314bd2dae501eae9d9c9">join</a>(<span class="keyword">const</span> C&amp; container, std::string sep = <span class="stringliteral">&quot;&quot;</span>)</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;{</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;    <span class="keywordflow">return</span> {container, std::move(sep)};</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;}</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;</div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> C&gt;</div><div class="line"><a name="l00096"></a><span class="lineno"><a class="line" href="a00079.html#a47864c335721f56fe75f007a9c52d004">   96</a></span>&#160;std::string <a class="code" href="a00079.html#a47864c335721f56fe75f007a9c52d004">operator+</a>(<span class="keyword">const</span> std::string&amp; str, <span class="keyword">const</span> <a class="code" href="a00803.html">Join&lt;C&gt;</a>&amp; <a class="code" href="a00079.html#a4549a4c462e3314bd2dae501eae9d9c9">join</a>)</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;{</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;    <span class="keywordflow">return</span> str + <a class="code" href="a00079.html#a4549a4c462e3314bd2dae501eae9d9c9">join</a>.str();</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;}</div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> C&gt;</div><div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="a00079.html#ae914a11121ac9980ffdbe1b224cdb18e">  103</a></span>&#160;std::string <a class="code" href="a00079.html#a47864c335721f56fe75f007a9c52d004">operator+</a>(<span class="keyword">const</span> <a class="code" href="a00803.html">Join&lt;C&gt;</a>&amp; <a class="code" href="a00079.html#a4549a4c462e3314bd2dae501eae9d9c9">join</a>, <span class="keyword">const</span> std::string&amp; str)</div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;{</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="a00079.html#a4549a4c462e3314bd2dae501eae9d9c9">join</a>.str() + str;</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;}</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> C&gt;</div><div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="a00079.html#a2b58dac747e9b7727aac01660043d13f">  110</a></span>&#160;std::string <a class="code" href="a00079.html#a47864c335721f56fe75f007a9c52d004">operator+</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* str, <span class="keyword">const</span> <a class="code" href="a00803.html">Join&lt;C&gt;</a>&amp; <a class="code" href="a00079.html#a4549a4c462e3314bd2dae501eae9d9c9">join</a>)</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;{</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;    <span class="keywordflow">return</span> str + <a class="code" href="a00079.html#a4549a4c462e3314bd2dae501eae9d9c9">join</a>.str();</div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;}</div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> C&gt;</div><div class="line"><a name="l00117"></a><span class="lineno"><a class="line" href="a00079.html#a76148b1bd88947607632d38ade173609">  117</a></span>&#160;std::string <a class="code" href="a00079.html#a47864c335721f56fe75f007a9c52d004">operator+</a>(<span class="keyword">const</span> <a class="code" href="a00803.html">Join&lt;C&gt;</a>&amp; <a class="code" href="a00079.html#a4549a4c462e3314bd2dae501eae9d9c9">join</a>, <span class="keyword">const</span> <span class="keywordtype">char</span>* str)</div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;{</div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="a00079.html#a4549a4c462e3314bd2dae501eae9d9c9">join</a>.str() + str;</div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;}</div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;</div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span>... Args&gt;</div><div class="line"><a name="l00132"></a><span class="lineno"><a class="line" href="a00079.html#a70b39361cae719a25356d0565c23582f">  132</a></span>&#160;std::string <a class="code" href="a00079.html#a4549a4c462e3314bd2dae501eae9d9c9">join</a>(<span class="keyword">const</span> std::string&amp; separator, Args&amp;&amp;... args)</div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;{</div><div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="a00079.html#a4549a4c462e3314bd2dae501eae9d9c9">join</a>(std::array&lt;std::string, <span class="keyword">sizeof</span>...(Args)&gt;{{convert&lt;std::string&gt;(</div><div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;                    std::forward&lt;Args&gt;(args))...}},</div><div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;                separator);</div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;}</div><div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;}  <span class="comment">// namespace util</span></div><div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;}  <span class="comment">// namespace fifr</span></div><div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;</div><div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;<span class="preprocessor">#endif</span></div><div class="ttc" id="a00803_html"><div class="ttname"><a href="a00803.html">fifr::util::Join</a></div><div class="ttdoc">Join operator. </div><div class="ttdef"><b>Definition:</b> Join.hxx:38</div></div>
<div class="ttc" id="a00079_html_a4549a4c462e3314bd2dae501eae9d9c9"><div class="ttname"><a href="a00079.html#a4549a4c462e3314bd2dae501eae9d9c9">fifr::util::join</a></div><div class="ttdeci">Join&lt; C &gt; join(const C &amp;container, std::string sep=&quot;&quot;)</div><div class="ttdoc">Join a container to a string. </div><div class="ttdef"><b>Definition:</b> Join.hxx:89</div></div>
<div class="ttc" id="a00803_html_a7464b23617dfcfef5e1fa85b9eae8116"><div class="ttname"><a href="a00803.html#a7464b23617dfcfef5e1fa85b9eae8116">fifr::util::Join::str</a></div><div class="ttdeci">std::string str() const</div><div class="ttdoc">Return the joined string. </div><div class="ttdef"><b>Definition:</b> Join.hxx:52</div></div>
<div class="ttc" id="a00079_html_a47864c335721f56fe75f007a9c52d004"><div class="ttname"><a href="a00079.html#a47864c335721f56fe75f007a9c52d004">fifr::util::operator+</a></div><div class="ttdeci">std::string operator+(const std::string &amp;str, const Join&lt; C &gt; &amp;join)</div><div class="ttdoc">Add string and joined string. </div><div class="ttdef"><b>Definition:</b> Join.hxx:96</div></div>
<div class="ttc" id="a00029_html"><div class="ttname"><a href="a00029.html">Convert.hxx</a></div><div class="ttdoc">Implement a Rust inspired conversion trait Convert. </div></div>
<div class="ttc" id="a00078_html"><div class="ttname"><a href="a00078.html">fifr</a></div><div class="ttdef"><b>Definition:</b> AutoTuple.hxx:23</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Aug 6 2018 13:22:44 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00040_source.html.



















































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>fifr::util: src/fifr/util/ZOpen.hxx Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_410dc4a63588d435a0c08a3db8b9f0cd.html">fifr</a></li><li class="navelem"><a class="el" href="dir_2a722471f978b7073f859d2d7c3aa2b4.html">util</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">ZOpen.hxx</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Copyright (c) 2016 Frank Fischer &lt;frank-fischer@shadow-soft.de&gt;</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * This program is free software: you can redistribute it and/or</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * modify it under the terms of the GNU General Public License as</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * published by the Free Software Foundation, either version 3 of the</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * License, or (at your option) any later version.</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> * This program is distributed in the hope that it will be useful, but</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> * WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> * General Public License for more details.</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> * along with this program.  If not, see  &lt;http://www.gnu.org/licenses/&gt;</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;</div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="preprocessor">#ifndef __FIFR_UTIL_ZOPEN_HXX__</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor">#define __FIFR_UTIL_ZOPEN_HXX__</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;</div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor">#include &lt;iosfwd&gt;</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor">#include &lt;ios&gt;</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="preprocessor">#include &lt;functional&gt;</span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="keyword">namespace </span><a class="code" href="a00041.html">fifr</a> {</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="keyword">namespace </span>util {</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<span class="keywordtype">bool</span> <a class="code" href="a00042.html#a1a4130e2791da8127252286ca2029345">zopen</a>(<span class="keyword">const</span> std::string&amp; filename,</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;           std::ios_base::openmode openmode,</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;           std::function&lt;<span class="keywordtype">void</span>(std::iostream&amp;)&gt; f);</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;}</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;}</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="ttc" id="a00042_html_a1a4130e2791da8127252286ca2029345"><div class="ttname"><a href="a00042.html#a1a4130e2791da8127252286ca2029345">fifr::util::zopen</a></div><div class="ttdeci">bool zopen(const std::string &amp;filename, std::ios_base::openmode openmode, std::function&lt; void(std::iostream &amp;)&gt; f)</div><div class="ttdoc">Open an io-stream, possibly decompressing files. </div><div class="ttdef"><b>Definition:</b> ZOpen.cxx:27</div></div>
<div class="ttc" id="a00041_html"><div class="ttname"><a href="a00041.html">fifr</a></div><div class="ttdef"><b>Definition:</b> AutoTuple.hxx:23</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Feb 21 2017 22:46:02 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00042.html.







































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>fifr::util: fifr::util Namespace Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="namespaces.html"><span>Namespace&#160;List</span></a></li>
      <li><a href="namespacemembers.html"><span>Namespace&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>fifr</b></li><li class="navelem"><a class="el" href="a00042.html">util</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle">
<div class="title">fifr::util Namespace Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Utility functions for c++.  
<a href="#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00001.html">all_range</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Range covering all elements.  <a href="a00001.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00002.html">AutoTuple</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Trait for returning tuple, pair or value depending on the number of type arguments.  <a href="a00002.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00003.html">Convert</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Trait for converting two types.  <a href="a00003.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00004.html">Convert&lt; double, const char * &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="a00003.html" title="Trait for converting two types. ">Convert</a> <code>const char*</code> to <code>double</code>.  <a href="a00004.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00005.html">Convert&lt; float, const char * &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="a00003.html" title="Trait for converting two types. ">Convert</a> <code>const char*</code> to <code>float</code>.  <a href="a00005.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00006.html">Convert&lt; int, const char * &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="a00003.html" title="Trait for converting two types. ">Convert</a> <code>const char*</code> to <code>int</code>.  <a href="a00006.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00007.html">Convert&lt; long double, const char * &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="a00003.html" title="Trait for converting two types. ">Convert</a> <code>const char*</code> to <code>long double</code>.  <a href="a00007.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00008.html">Convert&lt; long long, const char * &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="a00003.html" title="Trait for converting two types. ">Convert</a> <code>const char*</code> to <code>long long</code>.  <a href="a00008.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00009.html">Convert&lt; long, const char * &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="a00003.html" title="Trait for converting two types. ">Convert</a> <code>const char*</code> to <code>long</code>.  <a href="a00009.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00010.html">Convert&lt; std::array&lt; To, N &gt;, std::array&lt; From, N &gt; &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="a00003.html" title="Trait for converting two types. ">Convert</a> array to another array.  <a href="a00010.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00011.html">Convert&lt; std::pair&lt; To1, To2 &gt;, std::pair&lt; From1, From2 &gt; &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="a00003.html" title="Trait for converting two types. ">Convert</a> pair to another pair.  <a href="a00011.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00012.html">Convert&lt; std::string, const char * &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="a00003.html" title="Trait for converting two types. ">Convert</a> <code>const char*</code> to `std::string.  <a href="a00012.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00013.html">Convert&lt; std::string, std::string &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Special self conversions to remove ambiguity.  <a href="a00013.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00014.html">Convert&lt; std::string, T, decltype((void) std::to_string(std::declval&lt; T &gt;()))&gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="a00003.html" title="Trait for converting two types. ">Convert</a> to <code>std::string</code> using <code>std::to_string</code>.  <a href="a00014.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00015.html">Convert&lt; std::tuple&lt; To...&gt;, std::tuple&lt; From...&gt; &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="a00003.html" title="Trait for converting two types. ">Convert</a> tuple to another tuple.  <a href="a00015.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00016.html">Convert&lt; std::vector&lt; To &gt;, std::vector&lt; From &gt; &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="a00003.html" title="Trait for converting two types. ">Convert</a> vector to another vector.  <a href="a00016.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00017.html">Convert&lt; T, T &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Conversion from some type to itself.  <a href="a00017.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00018.html">Convert&lt; To, const char[N]&gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="a00003.html" title="Trait for converting two types. ">Convert</a> <code>const char[N]</code> to something else converting through <code>const char*</code>.  <a href="a00018.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00019.html">Convert&lt; To, const From &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Conversion from some const type.  <a href="a00019.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00020.html">Convert&lt; To, std::string &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="a00003.html" title="Trait for converting two types. ">Convert</a> <code>std::string</code> to something else converting through <code>const char*</code>.  <a href="a00020.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00021.html">Convert&lt; unsigned long long, const char * &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="a00003.html" title="Trait for converting two types. ">Convert</a> <code>const char*</code> to <code>unsigned long long</code>.  <a href="a00021.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00022.html">Convert&lt; unsigned long, const char * &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="a00003.html" title="Trait for converting two types. ">Convert</a> <code>const char*</code> to <code>unsigned long</code>.  <a href="a00022.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00023.html">IteratorProxy</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Proxy providing access to some iterators.  <a href="a00023.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00024.html">Join</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="a00024.html" title="Join operator. ">Join</a> operator.  <a href="a00024.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00025.html">ScanIterator</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Iterator for matches of a scan operation.  <a href="a00025.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00026.html">ScanIterator&lt;&gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Full match scan iterator.  <a href="a00026.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00027.html">SplitIterator</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Iterator over the parts of a split string.  <a href="a00027.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a67fa88821d4e4a16934fb966a14199bf"><td class="memTemplParams" colspan="2">template&lt;typename... Args&gt; </td></tr>
<tr class="memitem:a67fa88821d4e4a16934fb966a14199bf"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="a00002.html">AutoTuple</a>&lt; Args...&gt;::type&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00042.html#a67fa88821d4e4a16934fb966a14199bf">make_auto_tuple</a> (Args &amp;&amp;...args)</td></tr>
<tr class="memdesc:a67fa88821d4e4a16934fb966a14199bf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the arguments as value, pair or tuple.  <a href="#a67fa88821d4e4a16934fb966a14199bf">More...</a><br /></td></tr>
<tr class="separator:a67fa88821d4e4a16934fb966a14199bf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2571be8e8b55e880f6c251f93bbf1d97"><td class="memTemplParams" colspan="2"><a class="anchor" id="a2571be8e8b55e880f6c251f93bbf1d97"></a>
template&lt;typename To , typename From &gt; </td></tr>
<tr class="memitem:a2571be8e8b55e880f6c251f93bbf1d97"><td class="memTemplItemLeft" align="right" valign="top">To&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00042.html#a2571be8e8b55e880f6c251f93bbf1d97">convert</a> (From &amp;&amp;x)</td></tr>
<tr class="memdesc:a2571be8e8b55e880f6c251f93bbf1d97"><td class="mdescLeft">&#160;</td><td class="mdescRight">Generic conversion function. <br /></td></tr>
<tr class="separator:a2571be8e8b55e880f6c251f93bbf1d97"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a763fb6df77ab87aaa34abbff74100af7"><td class="memTemplParams" colspan="2"><a class="anchor" id="a763fb6df77ab87aaa34abbff74100af7"></a>
template&lt;class C &gt; </td></tr>
<tr class="memitem:a763fb6df77ab87aaa34abbff74100af7"><td class="memTemplItemLeft" align="right" valign="top">std::ostream &amp;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00042.html#a763fb6df77ab87aaa34abbff74100af7">operator&lt;&lt;</a> (std::ostream &amp;out, const <a class="el" href="a00024.html">Join</a>&lt; C &gt; &amp;<a class="el" href="a00042.html#a4549a4c462e3314bd2dae501eae9d9c9">join</a>)</td></tr>
<tr class="memdesc:a763fb6df77ab87aaa34abbff74100af7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write a joined vector to an output stream. <br /></td></tr>
<tr class="separator:a763fb6df77ab87aaa34abbff74100af7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4549a4c462e3314bd2dae501eae9d9c9"><td class="memTemplParams" colspan="2"><a class="anchor" id="a4549a4c462e3314bd2dae501eae9d9c9"></a>
template&lt;typename C &gt; </td></tr>
<tr class="memitem:a4549a4c462e3314bd2dae501eae9d9c9"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="a00024.html">Join</a>&lt; C &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00042.html#a4549a4c462e3314bd2dae501eae9d9c9">join</a> (const C &amp;container, std::string sep=&quot;&quot;)</td></tr>
<tr class="memdesc:a4549a4c462e3314bd2dae501eae9d9c9"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="a00024.html" title="Join operator. ">Join</a> a container to a string. <br /></td></tr>
<tr class="separator:a4549a4c462e3314bd2dae501eae9d9c9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a47864c335721f56fe75f007a9c52d004"><td class="memTemplParams" colspan="2"><a class="anchor" id="a47864c335721f56fe75f007a9c52d004"></a>
template&lt;typename C &gt; </td></tr>
<tr class="memitem:a47864c335721f56fe75f007a9c52d004"><td class="memTemplItemLeft" align="right" valign="top">std::string&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00042.html#a47864c335721f56fe75f007a9c52d004">operator+</a> (const std::string &amp;str, const <a class="el" href="a00024.html">Join</a>&lt; C &gt; &amp;<a class="el" href="a00042.html#a4549a4c462e3314bd2dae501eae9d9c9">join</a>)</td></tr>
<tr class="memdesc:a47864c335721f56fe75f007a9c52d004"><td class="mdescLeft">&#160;</td><td class="mdescRight">Add string and joined string. <br /></td></tr>
<tr class="separator:a47864c335721f56fe75f007a9c52d004"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae914a11121ac9980ffdbe1b224cdb18e"><td class="memTemplParams" colspan="2"><a class="anchor" id="ae914a11121ac9980ffdbe1b224cdb18e"></a>
template&lt;typename C &gt; </td></tr>
<tr class="memitem:ae914a11121ac9980ffdbe1b224cdb18e"><td class="memTemplItemLeft" align="right" valign="top">std::string&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00042.html#ae914a11121ac9980ffdbe1b224cdb18e">operator+</a> (const <a class="el" href="a00024.html">Join</a>&lt; C &gt; &amp;<a class="el" href="a00042.html#a4549a4c462e3314bd2dae501eae9d9c9">join</a>, const std::string &amp;str)</td></tr>
<tr class="memdesc:ae914a11121ac9980ffdbe1b224cdb18e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Add joined string and string. <br /></td></tr>
<tr class="separator:ae914a11121ac9980ffdbe1b224cdb18e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2b58dac747e9b7727aac01660043d13f"><td class="memTemplParams" colspan="2"><a class="anchor" id="a2b58dac747e9b7727aac01660043d13f"></a>
template&lt;typename C &gt; </td></tr>
<tr class="memitem:a2b58dac747e9b7727aac01660043d13f"><td class="memTemplItemLeft" align="right" valign="top">std::string&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00042.html#a2b58dac747e9b7727aac01660043d13f">operator+</a> (const char *str, const <a class="el" href="a00024.html">Join</a>&lt; C &gt; &amp;<a class="el" href="a00042.html#a4549a4c462e3314bd2dae501eae9d9c9">join</a>)</td></tr>
<tr class="memdesc:a2b58dac747e9b7727aac01660043d13f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Add string and joined string. <br /></td></tr>
<tr class="separator:a2b58dac747e9b7727aac01660043d13f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a76148b1bd88947607632d38ade173609"><td class="memTemplParams" colspan="2"><a class="anchor" id="a76148b1bd88947607632d38ade173609"></a>
template&lt;typename C &gt; </td></tr>
<tr class="memitem:a76148b1bd88947607632d38ade173609"><td class="memTemplItemLeft" align="right" valign="top">std::string&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00042.html#a76148b1bd88947607632d38ade173609">operator+</a> (const <a class="el" href="a00024.html">Join</a>&lt; C &gt; &amp;<a class="el" href="a00042.html#a4549a4c462e3314bd2dae501eae9d9c9">join</a>, const char *str)</td></tr>
<tr class="memdesc:a76148b1bd88947607632d38ade173609"><td class="mdescLeft">&#160;</td><td class="mdescRight">Add joined string and string. <br /></td></tr>
<tr class="separator:a76148b1bd88947607632d38ade173609"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abf6490f9cac627dae1ae7ea60e1cefd3"><td class="memTemplParams" colspan="2">template&lt;typename... Args&gt; </td></tr>
<tr class="memitem:abf6490f9cac627dae1ae7ea60e1cefd3"><td class="memTemplItemLeft" align="right" valign="top">std::string&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00042.html#abf6490f9cac627dae1ae7ea60e1cefd3">join</a> (const std::string &amp;separator, Args &amp;&amp;...args)</td></tr>
<tr class="memdesc:abf6490f9cac627dae1ae7ea60e1cefd3"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="a00024.html" title="Join operator. ">Join</a> a fixed number of objects.  <a href="#abf6490f9cac627dae1ae7ea60e1cefd3">More...</a><br /></td></tr>
<tr class="separator:abf6490f9cac627dae1ae7ea60e1cefd3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a635542a3a6fb35d5a7d726c472a8262e"><td class="memTemplParams" colspan="2"><a class="anchor" id="a635542a3a6fb35d5a7d726c472a8262e"></a>
template&lt;typename T &gt; </td></tr>
<tr class="memitem:a635542a3a6fb35d5a7d726c472a8262e"><td class="memTemplItemLeft" align="right" valign="top">range_proxy&lt; T &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00042.html#a635542a3a6fb35d5a7d726c472a8262e">range</a> (T begin, T end)</td></tr>
<tr class="memdesc:a635542a3a6fb35d5a7d726c472a8262e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return range over [begin,end). <br /></td></tr>
<tr class="separator:a635542a3a6fb35d5a7d726c472a8262e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae5344551ba7335029de1d5208dc4533b"><td class="memTemplParams" colspan="2"><a class="anchor" id="ae5344551ba7335029de1d5208dc4533b"></a>
template&lt;typename T &gt; </td></tr>
<tr class="memitem:ae5344551ba7335029de1d5208dc4533b"><td class="memTemplItemLeft" align="right" valign="top">range_proxy&lt; T &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00042.html#ae5344551ba7335029de1d5208dc4533b">range</a> (T end)</td></tr>
<tr class="memdesc:ae5344551ba7335029de1d5208dc4533b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return range over [0,end) <br /></td></tr>
<tr class="separator:ae5344551ba7335029de1d5208dc4533b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab85f8d0d402de83302c77b45a93d2d2d"><td class="memTemplParams" colspan="2">template&lt;typename C , typename  = typename std::enable_if&lt;traits::has_size&lt;C&gt;::value&gt;&gt; </td></tr>
<tr class="memitem:ab85f8d0d402de83302c77b45a93d2d2d"><td class="memTemplItemLeft" align="right" valign="top">auto&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00042.html#ab85f8d0d402de83302c77b45a93d2d2d">indices</a> (C const &amp;cont) -&gt; range_proxy&lt; decltype(cont.size())&gt;</td></tr>
<tr class="memdesc:ab85f8d0d402de83302c77b45a93d2d2d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return range over the valid indices of a container.  <a href="#ab85f8d0d402de83302c77b45a93d2d2d">More...</a><br /></td></tr>
<tr class="separator:ab85f8d0d402de83302c77b45a93d2d2d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac0e7de37628b9706c441b240544c2be4"><td class="memTemplParams" colspan="2"><a class="anchor" id="ac0e7de37628b9706c441b240544c2be4"></a>
template&lt;typename T , std::size_t N&gt; </td></tr>
<tr class="memitem:ac0e7de37628b9706c441b240544c2be4"><td class="memTemplItemLeft" align="right" valign="top">range_proxy&lt; std::size_t &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00042.html#ac0e7de37628b9706c441b240544c2be4">indices</a> (T(&amp;)[N])</td></tr>
<tr class="memdesc:ac0e7de37628b9706c441b240544c2be4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return range over the valid indices of a fixed size array. <br /></td></tr>
<tr class="separator:ac0e7de37628b9706c441b240544c2be4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6c93a762ec4867221e61e00124616fa6"><td class="memTemplParams" colspan="2"><a class="anchor" id="a6c93a762ec4867221e61e00124616fa6"></a>
template&lt;typename T &gt; </td></tr>
<tr class="memitem:a6c93a762ec4867221e61e00124616fa6"><td class="memTemplItemLeft" align="right" valign="top">range_proxy&lt; typename std::initializer_list&lt; T &gt;::size_type &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00042.html#a6c93a762ec4867221e61e00124616fa6">indices</a> (std::initializer_list&lt; T &gt; &amp;&amp;cont)</td></tr>
<tr class="memdesc:a6c93a762ec4867221e61e00124616fa6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return range over the valid indices of an initializer list. <br /></td></tr>
<tr class="separator:a6c93a762ec4867221e61e00124616fa6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a40d02e79f662d3f9b8720198615f8ad4"><td class="memTemplParams" colspan="2"><a class="anchor" id="a40d02e79f662d3f9b8720198615f8ad4"></a>
template&lt;typename Size &gt; </td></tr>
<tr class="memitem:a40d02e79f662d3f9b8720198615f8ad4"><td class="memTemplItemLeft" align="right" valign="top">Size&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00042.html#a40d02e79f662d3f9b8720198615f8ad4">range_begin</a> (<a class="el" href="a00001.html">all_range</a>, Size)</td></tr>
<tr class="memdesc:a40d02e79f662d3f9b8720198615f8ad4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Beginning of an all-range. <br /></td></tr>
<tr class="separator:a40d02e79f662d3f9b8720198615f8ad4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a072c669eeb901b9f5ff50e22cbe9ba52"><td class="memTemplParams" colspan="2"><a class="anchor" id="a072c669eeb901b9f5ff50e22cbe9ba52"></a>
template&lt;typename Size &gt; </td></tr>
<tr class="memitem:a072c669eeb901b9f5ff50e22cbe9ba52"><td class="memTemplItemLeft" align="right" valign="top">Size&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00042.html#a072c669eeb901b9f5ff50e22cbe9ba52">range_end</a> (<a class="el" href="a00001.html">all_range</a>, Size n)</td></tr>
<tr class="memdesc:a072c669eeb901b9f5ff50e22cbe9ba52"><td class="mdescLeft">&#160;</td><td class="mdescRight">End of an all-range. <br /></td></tr>
<tr class="separator:a072c669eeb901b9f5ff50e22cbe9ba52"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a794f0c94f474118782db17f128e628a3"><td class="memTemplParams" colspan="2"><a class="anchor" id="a794f0c94f474118782db17f128e628a3"></a>
template&lt;typename Size &gt; </td></tr>
<tr class="memitem:a794f0c94f474118782db17f128e628a3"><td class="memTemplItemLeft" align="right" valign="top">Size&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00042.html#a794f0c94f474118782db17f128e628a3">range_size</a> (<a class="el" href="a00001.html">all_range</a>, Size n)</td></tr>
<tr class="memdesc:a794f0c94f474118782db17f128e628a3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Size of an all-range. <br /></td></tr>
<tr class="separator:a794f0c94f474118782db17f128e628a3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a91fd04eecd118d6037d0d55f53ef2799"><td class="memTemplParams" colspan="2"><a class="anchor" id="a91fd04eecd118d6037d0d55f53ef2799"></a>
template&lt;typename T , typename Size , typename std::enable_if&lt; std::is_integral&lt; T &gt;::value &gt;::type *  = nullptr&gt; </td></tr>
<tr class="memitem:a91fd04eecd118d6037d0d55f53ef2799"><td class="memTemplItemLeft" align="right" valign="top">Size&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00042.html#a91fd04eecd118d6037d0d55f53ef2799">range_begin</a> (T i, Size)</td></tr>
<tr class="memdesc:a91fd04eecd118d6037d0d55f53ef2799"><td class="mdescLeft">&#160;</td><td class="mdescRight">Begin of a single value range. <br /></td></tr>
<tr class="separator:a91fd04eecd118d6037d0d55f53ef2799"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0a935b9e5f4e88a484402627e6c8da36"><td class="memTemplParams" colspan="2"><a class="anchor" id="a0a935b9e5f4e88a484402627e6c8da36"></a>
template&lt;typename T , typename Size , typename std::enable_if&lt; std::is_integral&lt; T &gt;::value &gt;::type *  = nullptr&gt; </td></tr>
<tr class="memitem:a0a935b9e5f4e88a484402627e6c8da36"><td class="memTemplItemLeft" align="right" valign="top">Size&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00042.html#a0a935b9e5f4e88a484402627e6c8da36">range_end</a> (T i, Size)</td></tr>
<tr class="memdesc:a0a935b9e5f4e88a484402627e6c8da36"><td class="mdescLeft">&#160;</td><td class="mdescRight">Begin of a single value range. <br /></td></tr>
<tr class="separator:a0a935b9e5f4e88a484402627e6c8da36"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab4fca9109feff56d9fa4b5567013655c"><td class="memTemplParams" colspan="2"><a class="anchor" id="ab4fca9109feff56d9fa4b5567013655c"></a>
template&lt;typename T , typename Size , typename std::enable_if&lt; std::is_integral&lt; T &gt;::value &gt;::type *  = nullptr&gt; </td></tr>
<tr class="memitem:ab4fca9109feff56d9fa4b5567013655c"><td class="memTemplItemLeft" align="right" valign="top">Size&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00042.html#ab4fca9109feff56d9fa4b5567013655c">range_size</a> (T, Size)</td></tr>
<tr class="memdesc:ab4fca9109feff56d9fa4b5567013655c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Size of a single value range. <br /></td></tr>
<tr class="separator:ab4fca9109feff56d9fa4b5567013655c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3a71f914e941d12e6f70963f736fca4a"><td class="memTemplParams" colspan="2"><a class="anchor" id="a3a71f914e941d12e6f70963f736fca4a"></a>
template&lt;typename T , typename Size &gt; </td></tr>
<tr class="memitem:a3a71f914e941d12e6f70963f736fca4a"><td class="memTemplItemLeft" align="right" valign="top">Size&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00042.html#a3a71f914e941d12e6f70963f736fca4a">range_begin</a> (const range_proxy&lt; T &gt; &amp;rng, Size)</td></tr>
<tr class="memdesc:a3a71f914e941d12e6f70963f736fca4a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Begin of a regular index range. <br /></td></tr>
<tr class="separator:a3a71f914e941d12e6f70963f736fca4a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a014cff4079ea58c93598c1a06c3dd402"><td class="memTemplParams" colspan="2"><a class="anchor" id="a014cff4079ea58c93598c1a06c3dd402"></a>
template&lt;typename T , typename Size &gt; </td></tr>
<tr class="memitem:a014cff4079ea58c93598c1a06c3dd402"><td class="memTemplItemLeft" align="right" valign="top">Size&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00042.html#a014cff4079ea58c93598c1a06c3dd402">range_end</a> (const range_proxy&lt; T &gt; &amp;rng, Size)</td></tr>
<tr class="memdesc:a014cff4079ea58c93598c1a06c3dd402"><td class="mdescLeft">&#160;</td><td class="mdescRight">End of a regular index range. <br /></td></tr>
<tr class="separator:a014cff4079ea58c93598c1a06c3dd402"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afc1a7108d8445c9c10e345baa1c57dd2"><td class="memTemplParams" colspan="2"><a class="anchor" id="afc1a7108d8445c9c10e345baa1c57dd2"></a>
template&lt;typename T , typename Size &gt; </td></tr>
<tr class="memitem:afc1a7108d8445c9c10e345baa1c57dd2"><td class="memTemplItemLeft" align="right" valign="top">Size&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00042.html#afc1a7108d8445c9c10e345baa1c57dd2">range_size</a> (const range_proxy&lt; T &gt; &amp;rng, Size)</td></tr>
<tr class="memdesc:afc1a7108d8445c9c10e345baa1c57dd2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Size of a regular index range. <br /></td></tr>
<tr class="separator:afc1a7108d8445c9c10e345baa1c57dd2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3093afe9b956797b3ce3fb1191b21409"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00023.html">IteratorProxy</a>&lt; std::sregex_iterator &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00042.html#a3093afe9b956797b3ce3fb1191b21409">scan_matches</a> (const std::string &amp;str, const std::regex &amp;re)</td></tr>
<tr class="memdesc:a3093afe9b956797b3ce3fb1191b21409"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns an iterator proxy over all matches within a string.  <a href="#a3093afe9b956797b3ce3fb1191b21409">More...</a><br /></td></tr>
<tr class="separator:a3093afe9b956797b3ce3fb1191b21409"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a965fae864f05b845194b24177ffd3a81"><td class="memTemplParams" colspan="2">template&lt;typename... Args&gt; </td></tr>
<tr class="memitem:a965fae864f05b845194b24177ffd3a81"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="a00023.html">IteratorProxy</a>&lt; <a class="el" href="a00025.html">ScanIterator</a>&lt; Args...&gt; &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00042.html#a965fae864f05b845194b24177ffd3a81">scan</a> (const std::string &amp;str, const std::regex &amp;re)</td></tr>
<tr class="memdesc:a965fae864f05b845194b24177ffd3a81"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns an iterator proxy over all matches within a string.  <a href="#a965fae864f05b845194b24177ffd3a81">More...</a><br /></td></tr>
<tr class="separator:a965fae864f05b845194b24177ffd3a81"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a22abdf2c6d5581264dc1d7933e06319b"><td class="memTemplParams" colspan="2"><a class="anchor" id="a22abdf2c6d5581264dc1d7933e06319b"></a>
template&lt;typename C , typename Keys , typename std::remove_reference&lt; decltype(std::declval&lt; C &gt;()[0])&gt;::type *  = nullptr, typename std::remove_reference&lt; decltype(std::declval&lt; C &gt;().size())&gt;::type *  = nullptr, typename std::remove_reference&lt; decltype(std::declval&lt; Keys &gt;()[0])&gt;::type *  = nullptr, typename std::remove_reference&lt; decltype(std::declval&lt; Keys &gt;().size())&gt;::type *  = nullptr&gt; </td></tr>
<tr class="memitem:a22abdf2c6d5581264dc1d7933e06319b"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00042.html#a22abdf2c6d5581264dc1d7933e06319b">sort_by</a> (C &amp;container, const Keys &amp;keys)</td></tr>
<tr class="memdesc:a22abdf2c6d5581264dc1d7933e06319b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sort container of values by some given container of keys. <br /></td></tr>
<tr class="separator:a22abdf2c6d5581264dc1d7933e06319b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a87337d5276c5ab23b339b19fd1cb952e"><td class="memTemplParams" colspan="2"><a class="anchor" id="a87337d5276c5ab23b339b19fd1cb952e"></a>
template&lt;typename C , typename Fun , typename std::remove_reference&lt; decltype(std::declval&lt; C &gt;()[0])&gt;::type *  = nullptr, typename std::remove_reference&lt; decltype(std::declval&lt; C &gt;().size())&gt;::type *  = nullptr, typename std::remove_reference&lt; decltype(std::declval&lt; Fun &gt;()(std::declval&lt; C &gt;()[0]))&gt;::type *  = nullptr&gt; </td></tr>
<tr class="memitem:a87337d5276c5ab23b339b19fd1cb952e"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00042.html#a87337d5276c5ab23b339b19fd1cb952e">sort_by</a> (C &amp;container, Fun fun)</td></tr>
<tr class="memdesc:a87337d5276c5ab23b339b19fd1cb952e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sort container of values by some given function of keys. <br /></td></tr>
<tr class="separator:a87337d5276c5ab23b339b19fd1cb952e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1c074a76b80bda682fed3eb223e5169d"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1c074a76b80bda682fed3eb223e5169d"></a>
<a class="el" href="a00027.html">SplitIterator</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00042.html#a1c074a76b80bda682fed3eb223e5169d">split_begin</a> (const std::string &amp;str, const std::regex &amp;re=<a class="el" href="a00042.html#ac4bdb5919b69453de8a723476cb21157">default_split</a>)</td></tr>
<tr class="memdesc:a1c074a76b80bda682fed3eb223e5169d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return an iterator over parts of a split string. <br /></td></tr>
<tr class="separator:a1c074a76b80bda682fed3eb223e5169d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4554785c6f64cc545562fbb6af04e480"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4554785c6f64cc545562fbb6af04e480"></a>
<a class="el" href="a00027.html">SplitIterator</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00042.html#a4554785c6f64cc545562fbb6af04e480">split_end</a> ()</td></tr>
<tr class="memdesc:a4554785c6f64cc545562fbb6af04e480"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return an end iterator over parts of a split string. <br /></td></tr>
<tr class="separator:a4554785c6f64cc545562fbb6af04e480"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9442425143b6d80f976c80b9c1680bc0"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00023.html">IteratorProxy</a>&lt; <a class="el" href="a00027.html">SplitIterator</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00042.html#a9442425143b6d80f976c80b9c1680bc0">split</a> (const std::string &amp;str, const std::regex &amp;re=<a class="el" href="a00042.html#ac4bdb5919b69453de8a723476cb21157">default_split</a>)</td></tr>
<tr class="memdesc:a9442425143b6d80f976c80b9c1680bc0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return an iterator proxy of parts of a split string.  <a href="#a9442425143b6d80f976c80b9c1680bc0">More...</a><br /></td></tr>
<tr class="separator:a9442425143b6d80f976c80b9c1680bc0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5080ec6002a4cb7180a8f758a10a9797"><td class="memItemLeft" align="right" valign="top">std::vector&lt; std::string &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00042.html#a5080ec6002a4cb7180a8f758a10a9797">splitv</a> (const std::string &amp;str, const std::regex &amp;re=<a class="el" href="a00042.html#ac4bdb5919b69453de8a723476cb21157">default_split</a>)</td></tr>
<tr class="memdesc:a5080ec6002a4cb7180a8f758a10a9797"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return a split string as a vector.  <a href="#a5080ec6002a4cb7180a8f758a10a9797">More...</a><br /></td></tr>
<tr class="separator:a5080ec6002a4cb7180a8f758a10a9797"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a468385ee0419414435a78bd019a2937c"><td class="memTemplParams" colspan="2">template&lt;typename... Args&gt; </td></tr>
<tr class="memitem:a468385ee0419414435a78bd019a2937c"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00042.html#a468385ee0419414435a78bd019a2937c">split</a> (const std::string &amp;str, const std::regex &amp;re, Args &amp;...args)</td></tr>
<tr class="memdesc:a468385ee0419414435a78bd019a2937c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Split a string and cast results to appropriate types.  <a href="#a468385ee0419414435a78bd019a2937c">More...</a><br /></td></tr>
<tr class="separator:a468385ee0419414435a78bd019a2937c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a97fd698781599ba97906caeafe4a9f4c"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a97fd698781599ba97906caeafe4a9f4c"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00042.html#a97fd698781599ba97906caeafe4a9f4c">starts_with</a> (const std::string &amp;str, const std::string &amp;end)</td></tr>
<tr class="memdesc:a97fd698781599ba97906caeafe4a9f4c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns true if a string starts with a certain substring. <br /></td></tr>
<tr class="separator:a97fd698781599ba97906caeafe4a9f4c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a73347c8e85b0cc1de47f81646d08f67f"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a73347c8e85b0cc1de47f81646d08f67f"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00042.html#a73347c8e85b0cc1de47f81646d08f67f">ends_with</a> (const std::string &amp;str, const std::string &amp;end)</td></tr>
<tr class="memdesc:a73347c8e85b0cc1de47f81646d08f67f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns true if a string ends with a certain substring. <br /></td></tr>
<tr class="separator:a73347c8e85b0cc1de47f81646d08f67f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a768ab27dcecf1b581afb1816220dfd53"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00042.html#a768ab27dcecf1b581afb1816220dfd53">escape_shell_argument</a> (const std::string &amp;arg)</td></tr>
<tr class="memdesc:a768ab27dcecf1b581afb1816220dfd53"><td class="mdescLeft">&#160;</td><td class="mdescRight">Quote a string for being passed as a shell argument.  <a href="#a768ab27dcecf1b581afb1816220dfd53">More...</a><br /></td></tr>
<tr class="separator:a768ab27dcecf1b581afb1816220dfd53"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1a4130e2791da8127252286ca2029345"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00042.html#a1a4130e2791da8127252286ca2029345">zopen</a> (const std::string &amp;filename, std::ios_base::openmode openmode, std::function&lt; void(std::iostream &amp;)&gt; f)</td></tr>
<tr class="memdesc:a1a4130e2791da8127252286ca2029345"><td class="mdescLeft">&#160;</td><td class="mdescRight">Open an io-stream, possibly decompressing files.  <a href="#a1a4130e2791da8127252286ca2029345">More...</a><br /></td></tr>
<tr class="separator:a1a4130e2791da8127252286ca2029345"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
Variables</h2></td></tr>
<tr class="memitem:ada8cb24898e6c81020f494dbdc438ec9"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ada8cb24898e6c81020f494dbdc438ec9"></a>
constexpr <a class="el" href="a00001.html">all_range</a>&#160;</td><td class="memItemRight" valign="bottom"><b>all</b> {}</td></tr>
<tr class="separator:ada8cb24898e6c81020f494dbdc438ec9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac4bdb5919b69453de8a723476cb21157"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac4bdb5919b69453de8a723476cb21157"></a>
const std::regex&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00042.html#ac4bdb5919b69453de8a723476cb21157">default_split</a> = std::regex(&quot;[[:space:]]+&quot;)</td></tr>
<tr class="memdesc:ac4bdb5919b69453de8a723476cb21157"><td class="mdescLeft">&#160;</td><td class="mdescRight">Split on white spaces by default. <br /></td></tr>
<tr class="separator:ac4bdb5919b69453de8a723476cb21157"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Utility functions for c++. </p>
</div><h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="a768ab27dcecf1b581afb1816220dfd53"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string fifr::util::escape_shell_argument </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>arg</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Quote a string for being passed as a shell argument. </p>
<p>Replace all single quotes by '\'' and enclose the whole string within single quotes. </p>

</div>
</div>
<a class="anchor" id="ab85f8d0d402de83302c77b45a93d2d2d"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename C , typename  = typename std::enable_if&lt;traits::has_size&lt;C&gt;::value&gt;&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">auto fifr::util::indices </td>
          <td>(</td>
          <td class="paramtype">C const &amp;&#160;</td>
          <td class="paramname"><em>cont</em></td><td>)</td>
          <td> -&gt; range_proxy&lt;decltype(cont.size())&gt; </td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Return range over the valid indices of a container. </p>
<p>This requires the container to implement a <code>size()</code> method. </p>

</div>
</div>
<a class="anchor" id="abf6490f9cac627dae1ae7ea60e1cefd3"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename... Args&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">std::string fifr::util::join </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>separator</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Args &amp;&amp;...&#160;</td>
          <td class="paramname"><em>args</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><a class="el" href="a00024.html" title="Join operator. ">Join</a> a fixed number of objects. </p>
<p>All objects are converted to <code>std::string</code> using <code><a class="el" href="a00042.html#a2571be8e8b55e880f6c251f93bbf1d97" title="Generic conversion function. ">fifr::util::convert</a></code> before being joined.</p>
<dl class="section warning"><dt>Warning</dt><dd>In contrast to other <code>join</code> functions, the separator is the <em>first</em> argument. </dd></dl>

</div>
</div>
<a class="anchor" id="a67fa88821d4e4a16934fb966a14199bf"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename... Args&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00002.html">AutoTuple</a>&lt;Args...&gt;::type fifr::util::make_auto_tuple </td>
          <td>(</td>
          <td class="paramtype">Args &amp;&amp;...&#160;</td>
          <td class="paramname"><em>args</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Return the arguments as value, pair or tuple. </p>
<p>The type of the return value depends on the number of type arguments:</p>
<ul>
<li>if one return the plain argument</li>
<li>if two return a std::pair</li>
<li>otherwise return a std::tuple </li>
</ul>

</div>
</div>
<a class="anchor" id="a965fae864f05b845194b24177ffd3a81"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename... Args&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00023.html">IteratorProxy</a>&lt;<a class="el" href="a00025.html">ScanIterator</a>&lt;Args...&gt; &gt; fifr::util::scan </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>str</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::regex &amp;&#160;</td>
          <td class="paramname"><em>re</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns an iterator proxy over all matches within a string. </p>
<p>The type of the returned iterator values depends on the number of type arguments:</p>
<ul>
<li>if the number of type arguments is 0, the returned values are strings consisting of the whole matches</li>
<li>if the number of type arguments is 1, the returned values are the first submatches converted to that type</li>
<li>if the number of type arguments is 2, the returned values are std::pair of of the first two submatches converted to those two types</li>
<li>if the number of type arguments is greater than two, the returned values are std::tuple if the submatches converted to the given types.</li>
</ul>
<p>Note that this function may fail if there are not enough submatches or a conversion fails. So you have to make sure that successful matches can always be converted to the given types.</p>
<div class="fragment"><div class="line">std::string str = <span class="stringliteral">&quot;a: 1,2\nb: 3,4\nc: 5,6\n&quot;</span>;</div>
<div class="line">std::regex re(<span class="stringliteral">&quot;(\\S+):\\s*(\\d+)\\s*,\\s*(\\d+)&quot;</span>);</div>
<div class="line"></div>
<div class="line"><span class="keyword">auto</span> r1 = <a class="code" href="a00042.html#a965fae864f05b845194b24177ffd3a81">scan</a>(str, re).collect();</div>
<div class="line">assert(r1[0] == <span class="stringliteral">&quot;a: 1,2&quot;</span>);</div>
<div class="line">assert(r1[1] == <span class="stringliteral">&quot;b: 3,4&quot;</span>);</div>
<div class="line">assert(r1[2] == <span class="stringliteral">&quot;c: 5,6&quot;</span>);</div>
<div class="line"></div>
<div class="line"><span class="keyword">auto</span> r2 = scan&lt;std::string&gt;(str, re).collect();</div>
<div class="line">assert(r2[0] == <span class="stringliteral">&quot;a&quot;</span>);</div>
<div class="line">assert(r2[1] == <span class="stringliteral">&quot;b&quot;</span>);</div>
<div class="line">assert(r2[2] == <span class="stringliteral">&quot;c&quot;</span>);</div>
<div class="line"></div>
<div class="line"><span class="keyword">auto</span> r3 = scan&lt;std::string,int&gt;(str, re).collect();</div>
<div class="line">assert(r3[0].first == <span class="stringliteral">&quot;a&quot;</span>);</div>
<div class="line">assert(r3[0].second == 1);</div>
<div class="line">assert(r3[1].first == <span class="stringliteral">&quot;b&quot;</span>);</div>
<div class="line">assert(r3[1].second == 3);</div>
<div class="line">assert(r3[2].first == <span class="stringliteral">&quot;c&quot;</span>);</div>
<div class="line">assert(r3[2].second == 5);</div>
<div class="line"></div>
<div class="line"><span class="keyword">auto</span> r4 = scan&lt;std::string,int,int&gt;(str, re).collect();</div>
<div class="line">assert(r4[0] == std::make_tuple(<span class="stringliteral">&quot;a&quot;</span>, 1, 2));</div>
<div class="line">assert(r4[1] == std::make_tuple(<span class="stringliteral">&quot;b&quot;</span>, 3, 4));</div>
<div class="line">assert(r4[2] == std::make_tuple(<span class="stringliteral">&quot;c&quot;</span>, 5, 6));</div>
</div><!-- fragment --> 
</div>
</div>
<a class="anchor" id="a3093afe9b956797b3ce3fb1191b21409"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00023.html">IteratorProxy</a>&lt; std::sregex_iterator &gt; fifr::util::scan_matches </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>str</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::regex &amp;&#160;</td>
          <td class="paramname"><em>re</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns an iterator proxy over all matches within a string. </p>
<p>This function should be used within a for loop. </p>

</div>
</div>
<a class="anchor" id="a9442425143b6d80f976c80b9c1680bc0"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::tuple&lt; Args...&gt; fifr::util::split </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>str</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::regex &amp;&#160;</td>
          <td class="paramname"><em>re</em> = <code><a class="el" href="a00042.html#ac4bdb5919b69453de8a723476cb21157">default_split</a></code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Return an iterator proxy of parts of a split string. </p>
<p>Split a string and return casted results as tuple.</p>
<p>Split a string into N parts.</p>
<p>The string is split in exactly N parts. The last part contains the rest of the string. If there are too few parts, the remaining parts are empty strings.</p>
<p>The result types must implement a <code><a class="el" href="a00003.html" title="Trait for converting two types. ">Convert</a>&lt;std::string, T&gt;</code> trait. </p>

</div>
</div>
<a class="anchor" id="a468385ee0419414435a78bd019a2937c"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename... Args&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void fifr::util::split </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>str</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::regex &amp;&#160;</td>
          <td class="paramname"><em>re</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Args &amp;...&#160;</td>
          <td class="paramname"><em>args</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Split a string and cast results to appropriate types. </p>
<p>The result variables must implement a <code><a class="el" href="a00003.html" title="Trait for converting two types. ">Convert</a>&lt;std::string, T&gt;</code> trait. </p>

</div>
</div>
<a class="anchor" id="a5080ec6002a4cb7180a8f758a10a9797"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::vector&lt; T &gt; fifr::util::splitv </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>str</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::regex &amp;&#160;</td>
          <td class="paramname"><em>re</em> = <code><a class="el" href="a00042.html#ac4bdb5919b69453de8a723476cb21157">default_split</a></code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Return a split string as a vector. </p>
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p>

</div>
</div>
<a class="anchor" id="a1a4130e2791da8127252286ca2029345"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool fifr::util::zopen </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>filename</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::ios_base::openmode&#160;</td>
          <td class="paramname"><em>openmode</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::function&lt; void(std::iostream &amp;)&gt;&#160;</td>
          <td class="paramname"><em>f</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Open an io-stream, possibly decompressing files. </p>
<p>Depending on the file extension, the file is filtered through a compression tool.</p>
<ul>
<li>.gz uses gzip</li>
<li>.bz2 uses bzip2</li>
<li>.xz uses xz</li>
<li>everything else uncompressed</li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">filename</td><td>the name of the file to be opened </td></tr>
    <tr><td class="paramname">openmode</td><td>mode to open the file </td></tr>
    <tr><td class="paramname">func</td><td>the callback called with the opened stream </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>false if something goes wrong </dd></dl>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Feb 21 2017 22:46:02 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00044_source.html.







































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>fifr::util: src/fifr/util/Logger.hxx Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_410dc4a63588d435a0c08a3db8b9f0cd.html">fifr</a></li><li class="navelem"><a class="el" href="dir_2a722471f978b7073f859d2d7c3aa2b4.html">util</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">Logger.hxx</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Copyright (c) 2017 Frank Fischer &lt;frank-fischer@shadow-soft.de&gt;</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * This program is free software: you can redistribute it and/or</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * modify it under the terms of the GNU General Public License as</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * published by the Free Software Foundation, either version 3 of the</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * License, or (at your option) any later version.</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> * This program is distributed in the hope that it will be useful, but</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> * WITHOUT ANY WARRANTY; without even the implied warranty of</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> * General Public License for more details.</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> * You should have received a copy of the GNU General Public License</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> * along with this program.  If not, see  &lt;http://www.gnu.org/licenses/&gt;</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;</div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="preprocessor">#include &lt;ostream&gt;</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;</div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="keyword">namespace </span><a class="code" href="a00078.html">fifr</a></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;{</div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="keyword">namespace </span>util</div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;{</div><div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="a00807.html">   25</a></span>&#160;<span class="keyword">class </span><a class="code" href="a00807.html">Logger</a></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;{</div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;    <span class="keyword">class </span>LogStream</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;    {</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;        LogStream(<span class="keyword">const</span> <span class="keywordtype">char</span>* name, std::ostream* s) : stream_(s)</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;        {</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;            <span class="keywordflow">if</span> (s) {</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;                *s &lt;&lt; name &lt;&lt; <span class="stringliteral">&quot; &quot;</span>;</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;            }</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;        }</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;        ~LogStream()</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;        {</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;            <span class="keywordflow">if</span> (stream_) *stream_ &lt;&lt; std::endl;</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;        }</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;        std::ostream* stream() { <span class="keywordflow">return</span> stream_; }</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;    <span class="keyword">private</span>:</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;        std::ostream* stream_;</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    };</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="a00807.html#a9555e8f1c7ca07556a63f116bd218834">   50</a></span>&#160;    <span class="keyword">enum class</span> <a class="code" href="a00807.html#a9555e8f1c7ca07556a63f116bd218834">Level</a> {</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;        <a class="code" href="a00807.html#a9555e8f1c7ca07556a63f116bd218834aa603905470e2a5b8c13e96b579ef0dba">Debug</a>,  </div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;        <a class="code" href="a00807.html#a9555e8f1c7ca07556a63f116bd218834a4059b0251f66a18cb56f544728796875">Info</a>,   </div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;        <a class="code" href="a00807.html#a9555e8f1c7ca07556a63f116bd218834a56525ae64d370c0b448ac0d60710ef17">Warn</a>,   </div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;        <a class="code" href="a00807.html#a9555e8f1c7ca07556a63f116bd218834a902b0d55fddef6f8d651fe1035b7d4bd">Error</a>,  </div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;        <a class="code" href="a00807.html#a9555e8f1c7ca07556a63f116bd218834a6adf97f83acf6453d4a6a4b1070f3754">None</a>,   </div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;    };</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;    <a class="code" href="a00807.html">Logger</a>(std::ostream&amp; out) : out_(out), level_(<a class="code" href="a00807.html#a9555e8f1c7ca07556a63f116bd218834">Level</a>::Info) {}</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;</div><div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="a00807.html#a8a58644fa2cfc3f62a0e18bab9024de7">   62</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="a00807.html#a8a58644fa2cfc3f62a0e18bab9024de7">set_level</a>(<a class="code" href="a00807.html#a9555e8f1c7ca07556a63f116bd218834">Level</a> <a class="code" href="a00807.html#a892a53699376fb17b4a4ab2a2cad7f30">level</a>) { level_ = <a class="code" href="a00807.html#a892a53699376fb17b4a4ab2a2cad7f30">level</a>; }</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;</div><div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="a00807.html#a892a53699376fb17b4a4ab2a2cad7f30">   65</a></span>&#160;    <a class="code" href="a00807.html#a9555e8f1c7ca07556a63f116bd218834">Level</a> <a class="code" href="a00807.html#a892a53699376fb17b4a4ab2a2cad7f30">level</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> level_; }</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;</div><div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="a00807.html#a33a9b7d3fe7f3e297418e7fcdcab7897">   68</a></span>&#160;    LogStream <a class="code" href="a00807.html#a33a9b7d3fe7f3e297418e7fcdcab7897">info</a>() { <span class="keywordflow">return</span> {<span class="stringliteral">&quot;I  &quot;</span>, level_ &lt;= <a class="code" href="a00807.html#a9555e8f1c7ca07556a63f116bd218834a4059b0251f66a18cb56f544728796875">Level::Info</a> ? &amp;out_ : <span class="keyword">nullptr</span>}; }</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;</div><div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="a00807.html#a37b1e9b994f7a2bdf6643d8039b5a7ad">   71</a></span>&#160;    LogStream <a class="code" href="a00807.html#a37b1e9b994f7a2bdf6643d8039b5a7ad">warn</a>() { <span class="keywordflow">return</span> {<span class="stringliteral">&quot;W  &quot;</span>, level_ &lt;= <a class="code" href="a00807.html#a9555e8f1c7ca07556a63f116bd218834a56525ae64d370c0b448ac0d60710ef17">Level::Warn</a> ? &amp;out_ : <span class="keyword">nullptr</span>}; }</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;</div><div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="a00807.html#a5f8579e7b396077c71633b95fd6cf380">   74</a></span>&#160;    LogStream <a class="code" href="a00807.html#a5f8579e7b396077c71633b95fd6cf380">error</a>() { <span class="keywordflow">return</span> {<span class="stringliteral">&quot;E  &quot;</span>, level_ &lt;= <a class="code" href="a00807.html#a9555e8f1c7ca07556a63f116bd218834a902b0d55fddef6f8d651fe1035b7d4bd">Level::Error</a> ? &amp;out_ : <span class="keyword">nullptr</span>}; }</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;</div><div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="a00807.html#a5ac53bb43fb6bfdadeb637e86b15e31e">   77</a></span>&#160;    LogStream <a class="code" href="a00807.html#a5ac53bb43fb6bfdadeb637e86b15e31e">debug</a>() { <span class="keywordflow">return</span> {<span class="stringliteral">&quot;D  &quot;</span>, level_ &lt;= <a class="code" href="a00807.html#a9555e8f1c7ca07556a63f116bd218834aa603905470e2a5b8c13e96b579ef0dba">Level::Debug</a> ? &amp;out_ : <span class="keyword">nullptr</span>}; }</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    std::ostream&amp; out_;</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;    <a class="code" href="a00807.html#a9555e8f1c7ca07556a63f116bd218834">Level</a> level_;</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="a00807.html#aca74256e77b99d8c22681a03a9b19832">   85</a></span>&#160;    <span class="keyword">static</span> <a class="code" href="a00807.html">Logger</a> <a class="code" href="a00807.html#aca74256e77b99d8c22681a03a9b19832">default_logger</a>;</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;};</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;</div><div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="a00079.html#a0f8dd9522b8575d81cebf04780b034d9">   89</a></span>&#160;<span class="keyword">inline</span> Logger::LogStream <a class="code" href="a00079.html#a0f8dd9522b8575d81cebf04780b034d9">info</a>()</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;{</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="a00807.html#aca74256e77b99d8c22681a03a9b19832">Logger::default_logger</a>.<a class="code" href="a00807.html#a33a9b7d3fe7f3e297418e7fcdcab7897">info</a>();</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;}</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;</div><div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="a00079.html#add7683b10f66d150b12b57bc9518caee">   95</a></span>&#160;<span class="keyword">inline</span> Logger::LogStream <a class="code" href="a00079.html#add7683b10f66d150b12b57bc9518caee">warn</a>()</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;{</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="a00807.html#aca74256e77b99d8c22681a03a9b19832">Logger::default_logger</a>.<a class="code" href="a00807.html#a37b1e9b994f7a2bdf6643d8039b5a7ad">warn</a>();</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;}</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;</div><div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="a00079.html#a4cad7e59800f367105c4125b612ccd76">  101</a></span>&#160;<span class="keyword">inline</span> Logger::LogStream <a class="code" href="a00079.html#a4cad7e59800f367105c4125b612ccd76">error</a>()</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;{</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="a00807.html#aca74256e77b99d8c22681a03a9b19832">Logger::default_logger</a>.<a class="code" href="a00807.html#a5f8579e7b396077c71633b95fd6cf380">error</a>();</div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;}</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;</div><div class="line"><a name="l00107"></a><span class="lineno"><a class="line" href="a00079.html#a530005db874eb698dc4f690df47488cb">  107</a></span>&#160;<span class="keyword">inline</span> Logger::LogStream <a class="code" href="a00079.html#a530005db874eb698dc4f690df47488cb">debug</a>()</div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;{</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="a00807.html#aca74256e77b99d8c22681a03a9b19832">Logger::default_logger</a>.<a class="code" href="a00807.html#a5ac53bb43fb6bfdadeb637e86b15e31e">debug</a>();</div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;}</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;</div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;</div><div class="line"><a name="l00114"></a><span class="lineno"><a class="line" href="a00079.html#ab45677b30a64b1ee06ab6a448725c51a">  114</a></span>&#160;Logger::LogStream&amp; operator&lt;&lt;(Logger::LogStream&amp; log, <span class="keyword">const</span> T&amp; x)</div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;{</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;    <span class="keyword">auto</span> s = log.stream();</div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;    <span class="keywordflow">if</span> (s) *s &lt;&lt; x;</div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;    <span class="keywordflow">return</span> log;</div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;}</div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;</div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;</div><div class="line"><a name="l00123"></a><span class="lineno"><a class="line" href="a00079.html#ae98e55ea66db06b79188fa9464ab34ea">  123</a></span>&#160;Logger::LogStream&amp; operator&lt;&lt;(Logger::LogStream&amp;&amp; log, <span class="keyword">const</span> T&amp; x)</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;{</div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;    <span class="keyword">auto</span> s = log.stream();</div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;    <span class="keywordflow">if</span> (s) *s &lt;&lt; x;</div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;    <span class="keywordflow">return</span> log;</div><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;}</div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;}  <span class="comment">// namespace util</span></div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;}  <span class="comment">// namespace fifr</span></div><div class="ttc" id="a00807_html"><div class="ttname"><a href="a00807.html">fifr::util::Logger</a></div><div class="ttdoc">A simple Logger. </div><div class="ttdef"><b>Definition:</b> Logger.hxx:25</div></div>
<div class="ttc" id="a00079_html_a0f8dd9522b8575d81cebf04780b034d9"><div class="ttname"><a href="a00079.html#a0f8dd9522b8575d81cebf04780b034d9">fifr::util::info</a></div><div class="ttdeci">Logger::LogStream info()</div><div class="ttdoc">Return info stream for the default logger. </div><div class="ttdef"><b>Definition:</b> Logger.hxx:89</div></div>
<div class="ttc" id="a00079_html_a4cad7e59800f367105c4125b612ccd76"><div class="ttname"><a href="a00079.html#a4cad7e59800f367105c4125b612ccd76">fifr::util::error</a></div><div class="ttdeci">Logger::LogStream error()</div><div class="ttdoc">Return error stream for the default logger. </div><div class="ttdef"><b>Definition:</b> Logger.hxx:101</div></div>
<div class="ttc" id="a00807_html_a9555e8f1c7ca07556a63f116bd218834a4059b0251f66a18cb56f544728796875"><div class="ttname"><a href="a00807.html#a9555e8f1c7ca07556a63f116bd218834a4059b0251f66a18cb56f544728796875">fifr::util::Logger::Level::Info</a></div><div class="ttdoc">Show info, warning and error messages. </div></div>
<div class="ttc" id="a00807_html_a5ac53bb43fb6bfdadeb637e86b15e31e"><div class="ttname"><a href="a00807.html#a5ac53bb43fb6bfdadeb637e86b15e31e">fifr::util::Logger::debug</a></div><div class="ttdeci">LogStream debug()</div><div class="ttdoc">Return debug log stream. </div><div class="ttdef"><b>Definition:</b> Logger.hxx:77</div></div>
<div class="ttc" id="a00807_html_a37b1e9b994f7a2bdf6643d8039b5a7ad"><div class="ttname"><a href="a00807.html#a37b1e9b994f7a2bdf6643d8039b5a7ad">fifr::util::Logger::warn</a></div><div class="ttdeci">LogStream warn()</div><div class="ttdoc">Return warning log stream. </div><div class="ttdef"><b>Definition:</b> Logger.hxx:71</div></div>
<div class="ttc" id="a00079_html_add7683b10f66d150b12b57bc9518caee"><div class="ttname"><a href="a00079.html#add7683b10f66d150b12b57bc9518caee">fifr::util::warn</a></div><div class="ttdeci">Logger::LogStream warn()</div><div class="ttdoc">Return warning stream for the default logger. </div><div class="ttdef"><b>Definition:</b> Logger.hxx:95</div></div>
<div class="ttc" id="a00807_html_a9555e8f1c7ca07556a63f116bd218834"><div class="ttname"><a href="a00807.html#a9555e8f1c7ca07556a63f116bd218834">fifr::util::Logger::Level</a></div><div class="ttdeci">Level</div><div class="ttdef"><b>Definition:</b> Logger.hxx:50</div></div>
<div class="ttc" id="a00079_html_a530005db874eb698dc4f690df47488cb"><div class="ttname"><a href="a00079.html#a530005db874eb698dc4f690df47488cb">fifr::util::debug</a></div><div class="ttdeci">Logger::LogStream debug()</div><div class="ttdoc">Return debug stream for the default logger. </div><div class="ttdef"><b>Definition:</b> Logger.hxx:107</div></div>
<div class="ttc" id="a00807_html_a892a53699376fb17b4a4ab2a2cad7f30"><div class="ttname"><a href="a00807.html#a892a53699376fb17b4a4ab2a2cad7f30">fifr::util::Logger::level</a></div><div class="ttdeci">Level level() const</div><div class="ttdoc">Return current log level. </div><div class="ttdef"><b>Definition:</b> Logger.hxx:65</div></div>
<div class="ttc" id="a00807_html_a5f8579e7b396077c71633b95fd6cf380"><div class="ttname"><a href="a00807.html#a5f8579e7b396077c71633b95fd6cf380">fifr::util::Logger::error</a></div><div class="ttdeci">LogStream error()</div><div class="ttdoc">Return error log stream. </div><div class="ttdef"><b>Definition:</b> Logger.hxx:74</div></div>
<div class="ttc" id="a00807_html_a33a9b7d3fe7f3e297418e7fcdcab7897"><div class="ttname"><a href="a00807.html#a33a9b7d3fe7f3e297418e7fcdcab7897">fifr::util::Logger::info</a></div><div class="ttdeci">LogStream info()</div><div class="ttdoc">Return info log stream. </div><div class="ttdef"><b>Definition:</b> Logger.hxx:68</div></div>
<div class="ttc" id="a00078_html"><div class="ttname"><a href="a00078.html">fifr</a></div><div class="ttdef"><b>Definition:</b> AutoTuple.hxx:23</div></div>
<div class="ttc" id="a00807_html_aca74256e77b99d8c22681a03a9b19832"><div class="ttname"><a href="a00807.html#aca74256e77b99d8c22681a03a9b19832">fifr::util::Logger::default_logger</a></div><div class="ttdeci">static Logger default_logger</div><div class="ttdoc">The global default logger. </div><div class="ttdef"><b>Definition:</b> Logger.hxx:85</div></div>
<div class="ttc" id="a00807_html_a9555e8f1c7ca07556a63f116bd218834a6adf97f83acf6453d4a6a4b1070f3754"><div class="ttname"><a href="a00807.html#a9555e8f1c7ca07556a63f116bd218834a6adf97f83acf6453d4a6a4b1070f3754">fifr::util::Logger::Level::None</a></div><div class="ttdoc">Show nothing. </div></div>
<div class="ttc" id="a00807_html_a8a58644fa2cfc3f62a0e18bab9024de7"><div class="ttname"><a href="a00807.html#a8a58644fa2cfc3f62a0e18bab9024de7">fifr::util::Logger::set_level</a></div><div class="ttdeci">void set_level(Level level)</div><div class="ttdoc">Set the log level. </div><div class="ttdef"><b>Definition:</b> Logger.hxx:62</div></div>
<div class="ttc" id="a00807_html_a9555e8f1c7ca07556a63f116bd218834aa603905470e2a5b8c13e96b579ef0dba"><div class="ttname"><a href="a00807.html#a9555e8f1c7ca07556a63f116bd218834aa603905470e2a5b8c13e96b579ef0dba">fifr::util::Logger::Level::Debug</a></div><div class="ttdoc">Show debug messages and everything else. </div></div>
<div class="ttc" id="a00807_html_a9555e8f1c7ca07556a63f116bd218834a56525ae64d370c0b448ac0d60710ef17"><div class="ttname"><a href="a00807.html#a9555e8f1c7ca07556a63f116bd218834a56525ae64d370c0b448ac0d60710ef17">fifr::util::Logger::Level::Warn</a></div><div class="ttdoc">Show warning and error messages. </div></div>
<div class="ttc" id="a00807_html_a9555e8f1c7ca07556a63f116bd218834a902b0d55fddef6f8d651fe1035b7d4bd"><div class="ttname"><a href="a00807.html#a9555e8f1c7ca07556a63f116bd218834a902b0d55fddef6f8d651fe1035b7d4bd">fifr::util::Logger::Level::Error</a></div><div class="ttdoc">Show error messages. </div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Aug 6 2018 13:22:44 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00047_source.html.

cannot compute difference between binary files

Added 3rdparty/util/doc/html/a00053_source.html.

















































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>fifr::util: src/fifr/util/Scan.hxx Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_410dc4a63588d435a0c08a3db8b9f0cd.html">fifr</a></li><li class="navelem"><a class="el" href="dir_2a722471f978b7073f859d2d7c3aa2b4.html">util</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">Scan.hxx</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Copyright (c) 2017 Frank Fischer &lt;frank-fischer@shadow-soft.de&gt;</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * This program is free software: you can redistribute it and/or</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * modify it under the terms of the GNU General Public License as</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * published by the Free Software Foundation, either version 3 of the</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * License, or (at your option) any later version.</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> * This program is distributed in the hope that it will be useful, but</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> * WITHOUT ANY WARRANTY; without even the implied warranty of</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> * General Public License for more details.</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> * You should have received a copy of the GNU General Public License</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> * along with this program.  If not, see  &lt;http://www.gnu.org/licenses/&gt;</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;</div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="preprocessor">#ifndef __FIFR_UTIL_SCAN_HXX__</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor">#define __FIFR_UTIL_SCAN_HXX__</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;</div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor">#include &quot;AutoTuple.hxx&quot;</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="a00029.html">Convert.hxx</a>&quot;</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#include &quot;Range.hxx&quot;</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;</div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor">#include &lt;regex&gt;</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;</div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="keyword">namespace </span><a class="code" href="a00078.html">fifr</a></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;{</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="keyword">namespace </span>util</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;{</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span>... Args&gt;</div><div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="a00847.html">   36</a></span>&#160;<span class="keyword">class </span><a class="code" href="a00847.html">ScanIterator</a></div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;{</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;    <span class="keyword">typedef</span> <span class="keyword">typename</span> std::sregex_iterator::difference_type difference_type;</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;    <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="a00631.html">AutoTuple</a>&lt;Args...&gt;::type value_type;</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;    <span class="keyword">typedef</span> <span class="keyword">const</span> value_type* pointer;</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;    <span class="keyword">typedef</span> <span class="keyword">const</span> value_type&amp; reference;</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    <span class="keyword">typedef</span> std::forward_iterator_tag iterator_category;</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;    <a class="code" href="a00847.html">ScanIterator</a>(std::sregex_iterator&amp;&amp; it) : it_(std::move(it)) {}</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;    value_type operator*()<span class="keyword"> const</span></div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;<span class="keyword">    </span>{</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;        <span class="keyword">static</span> constexpr <span class="keyword">auto</span> size = std::tuple_size&lt;std::tuple&lt;Args...&gt;&gt;::value;</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;        <span class="keywordflow">return</span> get_matches(*it_, std::make_index_sequence&lt;size&gt;{});</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;    }</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    <a class="code" href="a00847.html">ScanIterator</a>&amp; operator++()</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    {</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;        ++it_;</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;        <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    }</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    <a class="code" href="a00847.html">ScanIterator</a> operator++(<span class="keywordtype">int</span>)</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    {</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;        <span class="keyword">auto</span> copy = *<span class="keyword">this</span>;</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;        ++*<span class="keyword">this</span>;</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;        <span class="keywordflow">return</span> copy;</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;    }</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;    <span class="keywordtype">bool</span> operator==(<span class="keyword">const</span> <a class="code" href="a00847.html">ScanIterator</a>&amp; other)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> it_ == other.it_; }</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;    <span class="keywordtype">bool</span> operator!=(<span class="keyword">const</span> <a class="code" href="a00847.html">ScanIterator</a>&amp; other)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> it_ != other.it_; }</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    <span class="keyword">template</span> &lt;<span class="keywordtype">size_t</span>... I&gt;</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;    <span class="keyword">static</span> value_type get_matches(<span class="keyword">const</span> std::sregex_iterator::value_type&amp; m,</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;                                  std::index_sequence&lt;I...&gt;)</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;    {</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="a00079.html#a2bdff2715e924516df9cc786e65d248e">make_auto_tuple</a>(convert&lt;Args&gt;(m.str(I + 1))...);</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;    }</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    std::sregex_iterator it_;</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;};</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;<span class="keyword">template</span> &lt;&gt;</div><div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="a00851.html">   87</a></span>&#160;<span class="keyword">class </span><a class="code" href="a00847.html">ScanIterator</a>&lt;&gt;</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;{</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;    <span class="keyword">typedef</span> <span class="keyword">typename</span> std::sregex_iterator::difference_type difference_type;</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;    <span class="keyword">typedef</span> std::string value_type;</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;    <span class="keyword">typedef</span> <span class="keyword">const</span> std::string* pointer;</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;    <span class="keyword">typedef</span> <span class="keyword">const</span> std::string&amp; reference;</div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;    <span class="keyword">typedef</span> std::forward_iterator_tag iterator_category;</div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;    <a class="code" href="a00847.html">ScanIterator</a>(std::sregex_iterator&amp;&amp; it) : it_(std::move(it)) {}</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;    value_type operator*()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> it_-&gt;str(); }</div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;    <a class="code" href="a00847.html">ScanIterator</a>&amp; operator++()</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;    {</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;        ++it_;</div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;        <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;    }</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;    <a class="code" href="a00847.html">ScanIterator</a> operator++(<span class="keywordtype">int</span>)</div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;    {</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;        <span class="keyword">auto</span> copy = *<span class="keyword">this</span>;</div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;        ++*<span class="keyword">this</span>;</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;        <span class="keywordflow">return</span> copy;</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;    }</div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;</div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;    <span class="keywordtype">bool</span> operator==(<span class="keyword">const</span> <a class="code" href="a00847.html">ScanIterator</a>&amp; other)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> it_ == other.it_; }</div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;    <span class="keywordtype">bool</span> operator!=(<span class="keyword">const</span> <a class="code" href="a00847.html">ScanIterator</a>&amp; other)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> it_ != other.it_; }</div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;</div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;    std::sregex_iterator it_;</div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;};</div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;</div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;<a class="code" href="a00843.html">IteratorProxy&lt;std::sregex_iterator&gt;</a> <a class="code" href="a00079.html#a3093afe9b956797b3ce3fb1191b21409">scan_matches</a>(<span class="keyword">const</span> std::string&amp; str, <span class="keyword">const</span> std::regex&amp; re);</div><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;</div><div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span>... Args&gt;</div><div class="line"><a name="l00179"></a><span class="lineno"><a class="line" href="a00079.html#a965fae864f05b845194b24177ffd3a81">  179</a></span>&#160;<a class="code" href="a00843.html">IteratorProxy</a>&lt;<a class="code" href="a00847.html">ScanIterator</a>&lt;Args...&gt;&gt; <a class="code" href="a00079.html#a965fae864f05b845194b24177ffd3a81">scan</a>(<span class="keyword">const</span> std::string&amp; str, <span class="keyword">const</span> std::regex&amp; re)</div><div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;{</div><div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;    <span class="keywordflow">return</span> {std::sregex_iterator(str.begin(), str.end(), re), std::sregex_iterator()};</div><div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;}</div><div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;}  <span class="comment">// namespace util</span></div><div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;}  <span class="comment">// namespace fifr</span></div><div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;</div><div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;<span class="preprocessor">#endif</span></div><div class="ttc" id="a00079_html_a2bdff2715e924516df9cc786e65d248e"><div class="ttname"><a href="a00079.html#a2bdff2715e924516df9cc786e65d248e">fifr::util::make_auto_tuple</a></div><div class="ttdeci">AutoTuple&lt; Args... &gt;::type make_auto_tuple(Args &amp;&amp;... args)</div><div class="ttdoc">Return the arguments as value, pair or tuple. </div><div class="ttdef"><b>Definition:</b> AutoTuple.hxx:56</div></div>
<div class="ttc" id="a00847_html"><div class="ttname"><a href="a00847.html">fifr::util::ScanIterator</a></div><div class="ttdoc">Iterator for matches of a scan operation. </div><div class="ttdef"><b>Definition:</b> Scan.hxx:36</div></div>
<div class="ttc" id="a00843_html"><div class="ttname"><a href="a00843.html">fifr::util::IteratorProxy</a></div><div class="ttdoc">Proxy providing access to some iterators. </div><div class="ttdef"><b>Definition:</b> Range.hxx:347</div></div>
<div class="ttc" id="a00079_html_a965fae864f05b845194b24177ffd3a81"><div class="ttname"><a href="a00079.html#a965fae864f05b845194b24177ffd3a81">fifr::util::scan</a></div><div class="ttdeci">IteratorProxy&lt; ScanIterator&lt; Args... &gt; &gt; scan(const std::string &amp;str, const std::regex &amp;re)</div><div class="ttdoc">Returns an iterator proxy over all matches within a string. </div><div class="ttdef"><b>Definition:</b> Scan.hxx:179</div></div>
<div class="ttc" id="a00029_html"><div class="ttname"><a href="a00029.html">Convert.hxx</a></div><div class="ttdoc">Implement a Rust inspired conversion trait Convert. </div></div>
<div class="ttc" id="a00079_html_a3093afe9b956797b3ce3fb1191b21409"><div class="ttname"><a href="a00079.html#a3093afe9b956797b3ce3fb1191b21409">fifr::util::scan_matches</a></div><div class="ttdeci">IteratorProxy&lt; std::sregex_iterator &gt; scan_matches(const std::string &amp;str, const std::regex &amp;re)</div><div class="ttdoc">Returns an iterator proxy over all matches within a string. </div><div class="ttdef"><b>Definition:</b> Scan.cxx:24</div></div>
<div class="ttc" id="a00078_html"><div class="ttname"><a href="a00078.html">fifr</a></div><div class="ttdef"><b>Definition:</b> AutoTuple.hxx:23</div></div>
<div class="ttc" id="a00631_html"><div class="ttname"><a href="a00631.html">fifr::util::AutoTuple</a></div><div class="ttdoc">Trait for returning tuple, pair or value depending on the number of type arguments. </div><div class="ttdef"><b>Definition:</b> AutoTuple.hxx:34</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Aug 6 2018 13:22:44 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00056.html.





































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>fifr::util: src/fifr/util/SortBy.hxx File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_410dc4a63588d435a0c08a3db8b9f0cd.html">fifr</a></li><li class="navelem"><a class="el" href="dir_2a722471f978b7073f859d2d7c3aa2b4.html">util</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#namespaces">Namespaces</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">SortBy.hxx File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Sort function to sort elements by a key.  
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &lt;algorithm&gt;</code><br />
<code>#include &lt;cassert&gt;</code><br />
<code>#include &lt;functional&gt;</code><br />
<code>#include &lt;vector&gt;</code><br />
</div>
<p><a href="a00056_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
Namespaces</h2></td></tr>
<tr class="memitem:a00079"><td class="memItemLeft" align="right" valign="top"> &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00079.html">fifr::util</a></td></tr>
<tr class="memdesc:a00079"><td class="mdescLeft">&#160;</td><td class="mdescRight">Utility functions for c++. <br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a22abdf2c6d5581264dc1d7933e06319b"><td class="memTemplParams" colspan="2"><a id="a22abdf2c6d5581264dc1d7933e06319b"></a>
template&lt;typename C , typename Keys , typename std::remove_reference&lt; decltype(std::declval&lt; C &gt;()[0])&gt;::type *  = nullptr, typename std::remove_reference&lt; decltype(std::declval&lt; C &gt;().size())&gt;::type *  = nullptr, typename std::remove_reference&lt; decltype(std::declval&lt; Keys &gt;()[0])&gt;::type *  = nullptr, typename std::remove_reference&lt; decltype(std::declval&lt; Keys &gt;().size())&gt;::type *  = nullptr&gt; </td></tr>
<tr class="memitem:a22abdf2c6d5581264dc1d7933e06319b"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00079.html#a22abdf2c6d5581264dc1d7933e06319b">fifr::util::sort_by</a> (C &amp;container, const Keys &amp;keys)</td></tr>
<tr class="memdesc:a22abdf2c6d5581264dc1d7933e06319b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sort container of values by some given container of keys. <br /></td></tr>
<tr class="separator:a22abdf2c6d5581264dc1d7933e06319b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a87337d5276c5ab23b339b19fd1cb952e"><td class="memTemplParams" colspan="2"><a id="a87337d5276c5ab23b339b19fd1cb952e"></a>
template&lt;typename C , typename Fun , typename std::remove_reference&lt; decltype(std::declval&lt; C &gt;()[0])&gt;::type *  = nullptr, typename std::remove_reference&lt; decltype(std::declval&lt; C &gt;().size())&gt;::type *  = nullptr, typename std::remove_reference&lt; decltype(std::declval&lt; Fun &gt;()(std::declval&lt; C &gt;()[0]))&gt;::type *  = nullptr&gt; </td></tr>
<tr class="memitem:a87337d5276c5ab23b339b19fd1cb952e"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00079.html#a87337d5276c5ab23b339b19fd1cb952e">fifr::util::sort_by</a> (C &amp;container, Fun fun)</td></tr>
<tr class="memdesc:a87337d5276c5ab23b339b19fd1cb952e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sort container of values by some given function of keys. <br /></td></tr>
<tr class="separator:a87337d5276c5ab23b339b19fd1cb952e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Sort function to sort elements by a key. </p>
</div></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Aug 6 2018 13:22:44 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00056_source.html.







































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>fifr::util: src/fifr/util/SortBy.hxx Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_410dc4a63588d435a0c08a3db8b9f0cd.html">fifr</a></li><li class="navelem"><a class="el" href="dir_2a722471f978b7073f859d2d7c3aa2b4.html">util</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">SortBy.hxx</div>  </div>
</div><!--header-->
<div class="contents">
<a href="a00056.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Copyright (c) 2016 Frank Fischer &lt;frank-fischer@shadow-soft.de&gt;</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * This program is free software: you can redistribute it and/or</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * modify it under the terms of the GNU General Public License as</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * published by the Free Software Foundation, either version 3 of the</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * License, or (at your option) any later version.</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> * This program is distributed in the hope that it will be useful, but</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> * WITHOUT ANY WARRANTY; without even the implied warranty of</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> * General Public License for more details.</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> * You should have received a copy of the GNU General Public License</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> * along with this program.  If not, see  &lt;http://www.gnu.org/licenses/&gt;</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;</div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="preprocessor">#ifndef __FIFR_UTIL_SORTBY_HXX__</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor">#define __FIFR_UTIL_SORTBY_HXX__</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;</div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor">#include &lt;algorithm&gt;</span></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="preprocessor">#include &lt;cassert&gt;</span></div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="preprocessor">#include &lt;functional&gt;</span></div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="keyword">namespace </span><a class="code" href="a00078.html">fifr</a></div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;{</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="keyword">namespace </span>util</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;{</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> C,</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;          <span class="keyword">typename</span> Keys,</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;          <span class="keyword">typename</span> std::remove_reference&lt;decltype(std::declval&lt;C&gt;()[0])&gt;::type* = <span class="keyword">nullptr</span>,</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;          <span class="keyword">typename</span> std::remove_reference&lt;decltype(std::declval&lt;C&gt;().size())&gt;::type* = <span class="keyword">nullptr</span>,</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;          <span class="keyword">typename</span> std::remove_reference&lt;decltype(std::declval&lt;Keys&gt;()[0])&gt;::type* = <span class="keyword">nullptr</span>,</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;          <span class="keyword">typename</span> std::remove_reference&lt;decltype(std::declval&lt;Keys&gt;().size())&gt;::type* = <span class="keyword">nullptr</span>&gt;</div><div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="a00079.html#a22abdf2c6d5581264dc1d7933e06319b">   43</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="a00079.html#a22abdf2c6d5581264dc1d7933e06319b">sort_by</a>(C&amp; container, <span class="keyword">const</span> Keys&amp; keys)</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;{</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;    assert(container.size() == keys.size());</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    <span class="keyword">typedef</span> <span class="keyword">typename</span> C::size_type size_type;</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;    std::vector&lt;size_type&gt; <a class="code" href="a00079.html#ab85f8d0d402de83302c77b45a93d2d2d">indices</a>;</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    <a class="code" href="a00079.html#ab85f8d0d402de83302c77b45a93d2d2d">indices</a>.reserve(container.size());</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;    <span class="keywordflow">for</span> (size_type i = 0; i &lt; container.size(); i++) {</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;        <a class="code" href="a00079.html#ab85f8d0d402de83302c77b45a93d2d2d">indices</a>.push_back(i);</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    }</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    std::sort(<a class="code" href="a00079.html#ab85f8d0d402de83302c77b45a93d2d2d">indices</a>.begin(), <a class="code" href="a00079.html#ab85f8d0d402de83302c77b45a93d2d2d">indices</a>.end(), [&amp;](size_type i, size_type j) {</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;        <span class="keywordflow">return</span> keys[i] &lt; keys[j];</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;    });</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;    <span class="keywordflow">for</span> (size_type i = 0; i &lt; <a class="code" href="a00079.html#ab85f8d0d402de83302c77b45a93d2d2d">indices</a>.size(); i++) {</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;        <span class="keywordflow">if</span> (<a class="code" href="a00079.html#ab85f8d0d402de83302c77b45a93d2d2d">indices</a>[i] != i) {</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;            <span class="keyword">auto</span> x = std::move(container[i]);</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;            <span class="keyword">auto</span> j = i;</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;            <span class="keywordflow">while</span> (<span class="keyword">true</span>) {</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;                <span class="keyword">auto</span> k = <a class="code" href="a00079.html#ab85f8d0d402de83302c77b45a93d2d2d">indices</a>[j];</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;                <a class="code" href="a00079.html#ab85f8d0d402de83302c77b45a93d2d2d">indices</a>[j] = j;</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;                <span class="keywordflow">if</span> (k != i) {</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;                    container[j] = std::move(container[k]);</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;                    j = k;</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;                } <span class="keywordflow">else</span> {</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;                    container[j] = std::move(x);</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;                    <span class="keywordflow">break</span>;</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;                }</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;            }</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;        }</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;    }</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;}</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> C,</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;          <span class="keyword">typename</span> Fun,</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;          <span class="keyword">typename</span> std::remove_reference&lt;decltype(std::declval&lt;C&gt;()[0])&gt;::type* = <span class="keyword">nullptr</span>,</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;          <span class="keyword">typename</span> std::remove_reference&lt;decltype(std::declval&lt;C&gt;().size())&gt;::type* = <span class="keyword">nullptr</span>,</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;          <span class="keyword">typename</span> std::remove_reference&lt;</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;              decltype(std::declval&lt;Fun&gt;()(std::declval&lt;C&gt;()[0]))&gt;::type* = <span class="keyword">nullptr</span>&gt;</div><div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="a00079.html#a87337d5276c5ab23b339b19fd1cb952e">   85</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="a00079.html#a22abdf2c6d5581264dc1d7933e06319b">sort_by</a>(C&amp; container, Fun fun)</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;{</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;    std::vector&lt;decltype(fun(container[0]))&gt; keys;</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;    keys.reserve(container.size());</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;    <span class="keywordflow">for</span> (<span class="keyword">auto</span>&amp; x : container) {</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;        keys.push_back(fun(x));</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;    }</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;    <a class="code" href="a00079.html#a22abdf2c6d5581264dc1d7933e06319b">sort_by</a>(container, keys);</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;}</div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;}  <span class="comment">// namespace util</span></div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;}  <span class="comment">// namespace fifr</span></div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;<span class="preprocessor">#endif</span></div><div class="ttc" id="a00078_html"><div class="ttname"><a href="a00078.html">fifr</a></div><div class="ttdef"><b>Definition:</b> AutoTuple.hxx:23</div></div>
<div class="ttc" id="a00079_html_ab85f8d0d402de83302c77b45a93d2d2d"><div class="ttname"><a href="a00079.html#ab85f8d0d402de83302c77b45a93d2d2d">fifr::util::indices</a></div><div class="ttdeci">auto indices(C const &amp;cont) -&gt; range_proxy&lt; decltype(cont.size())&gt;</div><div class="ttdoc">Return range over the valid indices of a container. </div><div class="ttdef"><b>Definition:</b> Range.hxx:247</div></div>
<div class="ttc" id="a00079_html_a22abdf2c6d5581264dc1d7933e06319b"><div class="ttname"><a href="a00079.html#a22abdf2c6d5581264dc1d7933e06319b">fifr::util::sort_by</a></div><div class="ttdeci">void sort_by(C &amp;container, const Keys &amp;keys)</div><div class="ttdoc">Sort container of values by some given container of keys. </div><div class="ttdef"><b>Definition:</b> SortBy.hxx:43</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Aug 6 2018 13:22:44 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00059_source.html.





















































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>fifr::util: src/fifr/util/Split.hxx Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_410dc4a63588d435a0c08a3db8b9f0cd.html">fifr</a></li><li class="navelem"><a class="el" href="dir_2a722471f978b7073f859d2d7c3aa2b4.html">util</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">Split.hxx</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Copyright (c) 2016, 2017 Frank Fischer &lt;frank-fischer@shadow-soft.de&gt;</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * This program is free software: you can redistribute it and/or</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * modify it under the terms of the GNU General Public License as</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * published by the Free Software Foundation, either version 3 of the</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * License, or (at your option) any later version.</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> * This program is distributed in the hope that it will be useful, but</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> * WITHOUT ANY WARRANTY; without even the implied warranty of</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> * General Public License for more details.</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> * You should have received a copy of the GNU General Public License</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> * along with this program.  If not, see  &lt;http://www.gnu.org/licenses/&gt;</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;</div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="preprocessor">#ifndef __FIFR_UTIL_SPLIT_HXX__</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor">#define __FIFR_UTIL_SPLIT_HXX__</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;</div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="a00029.html">Convert.hxx</a>&quot;</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor">#include &quot;Range.hxx&quot;</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;</div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="preprocessor">#include &lt;array&gt;</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor">#include &lt;iterator&gt;</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor">#include &lt;regex&gt;</span></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="preprocessor">#include &lt;utility&gt;</span></div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="keyword">namespace </span><a class="code" href="a00078.html">fifr</a></div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;{</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="keyword">namespace </span>util</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;{</div><div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="a00079.html#ac4bdb5919b69453de8a723476cb21157">   35</a></span>&#160;<span class="keyword">const</span> std::regex <a class="code" href="a00079.html#ac4bdb5919b69453de8a723476cb21157">default_split</a> = std::regex(<span class="stringliteral">&quot;[[:space:]]+&quot;</span>);</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;</div><div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="a00855.html">   38</a></span>&#160;<span class="keyword">class </span><a class="code" href="a00855.html">SplitIterator</a> : <span class="keyword">public</span> std::iterator&lt;std::forward_iterator_tag, std::string&gt;</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;{</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;    <span class="keyword">typedef</span> std::iterator&lt;std::forward_iterator_tag, std::string&gt; Super;</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    <span class="keyword">using</span> <span class="keyword">typename</span> Super::difference_type;</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;    <span class="keyword">using</span> <span class="keyword">typename</span> Super::pointer;</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;    <span class="keyword">using</span> <span class="keyword">typename</span> Super::reference;</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;    <span class="keyword">using</span> <span class="keyword">typename</span> Super::value_type;</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;    <a class="code" href="a00855.html">SplitIterator</a>() : beg_(std::string::npos), end_(std::string::npos) {}</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    <a class="code" href="a00855.html">SplitIterator</a>(<span class="keyword">const</span> std::string&amp; str, std::sregex_iterator&amp;&amp; it)</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;        : str_(&amp;str), it_(std::move(it)), beg_(0)</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;    {</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;        end_ = it_ != std::sregex_iterator() ? (std::string::size_type)it_-&gt;position(0)</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;                                             : std::string::npos;</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    }</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;    std::string operator*()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> str_-&gt;substr(beg_, end_ - beg_); }</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;    <a class="code" href="a00855.html">SplitIterator</a>&amp; operator++()</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    {</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;        <span class="keywordflow">if</span> (it_ != std::sregex_iterator()) {</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;            beg_ = end_ + (std::string::size_type)it_-&gt;length(0);</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;            ++it_;</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;            end_ = it_ != std::sregex_iterator() ? (std::string::size_type)it_-&gt;position(0)</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;                                                 : std::string::npos;</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;        } <span class="keywordflow">else</span> {</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;            beg_ = std::string::npos;</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;            end_ = std::string::npos;</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;        }</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;        <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;    }</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;    <a class="code" href="a00855.html">SplitIterator</a> operator++(<span class="keywordtype">int</span>)</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;    {</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;        <span class="keyword">auto</span> copy = *<span class="keyword">this</span>;</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;        ++*<span class="keyword">this</span>;</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;        <span class="keywordflow">return</span> copy;</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;    }</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    <span class="keywordtype">bool</span> operator==(<span class="keyword">const</span> <a class="code" href="a00855.html">SplitIterator</a>&amp; it)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> beg_ == it.beg_; }</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;    <span class="keywordtype">bool</span> operator!=(<span class="keyword">const</span> <a class="code" href="a00855.html">SplitIterator</a>&amp; it)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> !(*<span class="keyword">this</span> == it); }</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;</div><div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="a00855.html#aee9f6188e5f13f8fb78d502ee9f1132b">   85</a></span>&#160;    std::string <a class="code" href="a00855.html#aee9f6188e5f13f8fb78d502ee9f1132b">rest</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> str_-&gt;substr(beg_); }</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;    <span class="keyword">const</span> std::string* str_;</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;    std::sregex_iterator it_;</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;    std::string::size_type beg_;</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;    std::string::size_type end_;</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;};</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;</div><div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="a00079.html#a1c074a76b80bda682fed3eb223e5169d">   95</a></span>&#160;<span class="keyword">inline</span> <a class="code" href="a00855.html">SplitIterator</a> <a class="code" href="a00079.html#a1c074a76b80bda682fed3eb223e5169d">split_begin</a>(<span class="keyword">const</span> std::string&amp; str, <span class="keyword">const</span> std::regex&amp; re = <a class="code" href="a00079.html#ac4bdb5919b69453de8a723476cb21157">default_split</a>)</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;{</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;    <span class="keywordflow">return</span> {str, std::sregex_iterator(str.begin(), str.end(), re)};</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;}</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;</div><div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="a00079.html#a4554785c6f64cc545562fbb6af04e480">  101</a></span>&#160;<span class="keyword">inline</span> <a class="code" href="a00855.html">SplitIterator</a> <a class="code" href="a00079.html#a4554785c6f64cc545562fbb6af04e480">split_end</a>()</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;{</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;    <span class="keywordflow">return</span> {};</div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;}</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;</div><div class="line"><a name="l00107"></a><span class="lineno"><a class="line" href="a00079.html#a39ff18b164b8ad8bea4f1844059fdcae">  107</a></span>&#160;<span class="keyword">inline</span> <a class="code" href="a00843.html">IteratorProxy&lt;SplitIterator&gt;</a> <a class="code" href="a00079.html#a39ff18b164b8ad8bea4f1844059fdcae">split</a>(<span class="keyword">const</span> std::string&amp; str,</div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;                                          <span class="keyword">const</span> std::regex&amp; re = <a class="code" href="a00079.html#ac4bdb5919b69453de8a723476cb21157">default_split</a>)</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;{</div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;    <span class="keywordflow">return</span> {<a class="code" href="a00079.html#a1c074a76b80bda682fed3eb223e5169d">split_begin</a>(str, re), <a class="code" href="a00079.html#a4554785c6f64cc545562fbb6af04e480">split_end</a>()};</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;}</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;</div><div class="line"><a name="l00114"></a><span class="lineno"><a class="line" href="a00079.html#a5080ec6002a4cb7180a8f758a10a9797">  114</a></span>&#160;<span class="keyword">inline</span> std::vector&lt;std::string&gt; <a class="code" href="a00079.html#a5080ec6002a4cb7180a8f758a10a9797">splitv</a>(<span class="keyword">const</span> std::string&amp; str, <span class="keyword">const</span> std::regex&amp; re = <a class="code" href="a00079.html#ac4bdb5919b69453de8a723476cb21157">default_split</a>)</div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;{</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;    <span class="keywordflow">return</span> {<a class="code" href="a00079.html#a1c074a76b80bda682fed3eb223e5169d">split_begin</a>(str, re), <a class="code" href="a00079.html#a4554785c6f64cc545562fbb6af04e480">split_end</a>()};</div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;}</div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;</div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;std::vector&lt;T&gt; <a class="code" href="a00079.html#a5080ec6002a4cb7180a8f758a10a9797">splitv</a>(<span class="keyword">const</span> std::string&amp; str, <span class="keyword">const</span> std::regex&amp; re = <a class="code" href="a00079.html#ac4bdb5919b69453de8a723476cb21157">default_split</a>)</div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;{</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;    std::vector&lt;T&gt; result;</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;    <span class="keywordflow">for</span> (<span class="keyword">auto</span> x : <a class="code" href="a00079.html#a39ff18b164b8ad8bea4f1844059fdcae">split</a>(str, re)) {</div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;        result.push_back(convert&lt;T&gt;(x));</div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;    }</div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;    <span class="keywordflow">return</span> result;</div><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;}</div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;</div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;<span class="keyword">template</span> &lt;std::<span class="keywordtype">size_t</span> N, <span class="keyword">typename</span> T = std::<span class="keywordtype">string</span>&gt;</div><div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;std::array&lt;T, N&gt; <a class="code" href="a00079.html#a39ff18b164b8ad8bea4f1844059fdcae">split</a>(<span class="keyword">const</span> std::string&amp; str, <span class="keyword">const</span> std::regex&amp; re = <a class="code" href="a00079.html#ac4bdb5919b69453de8a723476cb21157">default_split</a>)</div><div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;{</div><div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;    std::size_t i = 0;</div><div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;    std::array&lt;T, N&gt; result;</div><div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;    <span class="keyword">auto</span> it = <a class="code" href="a00079.html#a1c074a76b80bda682fed3eb223e5169d">split_begin</a>(str, re);</div><div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;    <span class="keyword">auto</span> it_end = <a class="code" href="a00079.html#a4554785c6f64cc545562fbb6af04e480">split_end</a>();</div><div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;    <span class="keywordflow">while</span> (i &lt; N &amp;&amp; it != it_end) {</div><div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;        result[i] = convert&lt;T&gt;(*it);</div><div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;        ++it;</div><div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;        ++i;</div><div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;    }</div><div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;</div><div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;    <span class="keywordflow">return</span> std::move(result);</div><div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;}</div><div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;</div><div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;<span class="keyword">namespace </span>detail</div><div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;{</div><div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> It&gt;</div><div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;<span class="keywordtype">void</span> split_args(It&amp;, It&amp;)</div><div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;{</div><div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;}</div><div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;</div><div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> It, <span class="keyword">typename</span> Arg0, <span class="keyword">typename</span>... Args&gt;</div><div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;<span class="keywordtype">void</span> split_args(It&amp; it, It&amp; it_end, Arg0&amp; arg0, Args&amp;... args)</div><div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;{</div><div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;    <span class="keywordflow">if</span> (it != it_end) {</div><div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;        arg0 = convert&lt;Arg0&gt;(*it);</div><div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;        split_args(++it, it_end, args...);</div><div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;    }</div><div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;}</div><div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;}  <span class="comment">// namespace detail</span></div><div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;</div><div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span>... Args&gt;</div><div class="line"><a name="l00177"></a><span class="lineno"><a class="line" href="a00079.html#a4fb84c855978698dbdb2d7d834c5935e">  177</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="a00079.html#a39ff18b164b8ad8bea4f1844059fdcae">split</a>(<span class="keyword">const</span> std::string&amp; str, <span class="keyword">const</span> std::regex&amp; re, Args&amp;... args)</div><div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;{</div><div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;    <span class="keyword">auto</span> it = <a class="code" href="a00079.html#a1c074a76b80bda682fed3eb223e5169d">split_begin</a>(str, re);</div><div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;    <span class="keyword">auto</span> it_end = <a class="code" href="a00079.html#a4554785c6f64cc545562fbb6af04e480">split_end</a>();</div><div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;    detail::split_args(it, it_end, args...);</div><div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;}</div><div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;</div><div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;<span class="keyword">namespace </span>detail</div><div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;{</div><div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> Tuple, <span class="keywordtype">size_t</span>... I&gt;</div><div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;<span class="keywordtype">void</span> split_tuple(<span class="keyword">const</span> std::string&amp; str, <span class="keyword">const</span> std::regex&amp; re, Tuple&amp; t, std::index_sequence&lt;I...&gt;)</div><div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;{</div><div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;    <a class="code" href="a00079.html#a39ff18b164b8ad8bea4f1844059fdcae">split</a>(str, re, std::get&lt;I&gt;(t)...);</div><div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;}</div><div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;}  <span class="comment">// namespace detail</span></div><div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;</div><div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span>... Args&gt;</div><div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;std::tuple&lt;Args...&gt; <a class="code" href="a00079.html#a39ff18b164b8ad8bea4f1844059fdcae">split</a>(<span class="keyword">const</span> std::string&amp; str, <span class="keyword">const</span> std::regex&amp; re = <a class="code" href="a00079.html#ac4bdb5919b69453de8a723476cb21157">default_split</a>)</div><div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;{</div><div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;    <span class="keyword">static</span> constexpr <span class="keyword">auto</span> size = std::tuple_size&lt;std::tuple&lt;Args...&gt;&gt;::value;</div><div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;    std::tuple&lt;Args...&gt; result;</div><div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;    detail::split_tuple(str, re, result, std::make_index_sequence&lt;size&gt;{});</div><div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;    <span class="keywordflow">return</span> result;</div><div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;}</div><div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;}  <span class="comment">// namespace util</span></div><div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;}  <span class="comment">// namespace fifr</span></div><div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;</div><div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;<span class="preprocessor">#endif</span></div><div class="ttc" id="a00855_html_aee9f6188e5f13f8fb78d502ee9f1132b"><div class="ttname"><a href="a00855.html#aee9f6188e5f13f8fb78d502ee9f1132b">fifr::util::SplitIterator::rest</a></div><div class="ttdeci">std::string rest() const</div><div class="ttdoc">Return the rest of the string starting at the current part. </div><div class="ttdef"><b>Definition:</b> Split.hxx:85</div></div>
<div class="ttc" id="a00079_html_ac4bdb5919b69453de8a723476cb21157"><div class="ttname"><a href="a00079.html#ac4bdb5919b69453de8a723476cb21157">fifr::util::default_split</a></div><div class="ttdeci">const std::regex default_split</div><div class="ttdoc">Split on white spaces by default. </div><div class="ttdef"><b>Definition:</b> Split.hxx:35</div></div>
<div class="ttc" id="a00855_html"><div class="ttname"><a href="a00855.html">fifr::util::SplitIterator</a></div><div class="ttdoc">Iterator over the parts of a split string. </div><div class="ttdef"><b>Definition:</b> Split.hxx:38</div></div>
<div class="ttc" id="a00843_html"><div class="ttname"><a href="a00843.html">fifr::util::IteratorProxy</a></div><div class="ttdoc">Proxy providing access to some iterators. </div><div class="ttdef"><b>Definition:</b> Range.hxx:347</div></div>
<div class="ttc" id="a00079_html_a4554785c6f64cc545562fbb6af04e480"><div class="ttname"><a href="a00079.html#a4554785c6f64cc545562fbb6af04e480">fifr::util::split_end</a></div><div class="ttdeci">SplitIterator split_end()</div><div class="ttdoc">Return an end iterator over parts of a split string. </div><div class="ttdef"><b>Definition:</b> Split.hxx:101</div></div>
<div class="ttc" id="a00029_html"><div class="ttname"><a href="a00029.html">Convert.hxx</a></div><div class="ttdoc">Implement a Rust inspired conversion trait Convert. </div></div>
<div class="ttc" id="a00079_html_a39ff18b164b8ad8bea4f1844059fdcae"><div class="ttname"><a href="a00079.html#a39ff18b164b8ad8bea4f1844059fdcae">fifr::util::split</a></div><div class="ttdeci">IteratorProxy&lt; SplitIterator &gt; split(const std::string &amp;str, const std::regex &amp;re=default_split)</div><div class="ttdoc">Return an iterator proxy of parts of a split string. </div><div class="ttdef"><b>Definition:</b> Split.hxx:107</div></div>
<div class="ttc" id="a00078_html"><div class="ttname"><a href="a00078.html">fifr</a></div><div class="ttdef"><b>Definition:</b> AutoTuple.hxx:23</div></div>
<div class="ttc" id="a00079_html_a5080ec6002a4cb7180a8f758a10a9797"><div class="ttname"><a href="a00079.html#a5080ec6002a4cb7180a8f758a10a9797">fifr::util::splitv</a></div><div class="ttdeci">std::vector&lt; std::string &gt; splitv(const std::string &amp;str, const std::regex &amp;re=default_split)</div><div class="ttdoc">Return a split string as a vector. </div><div class="ttdef"><b>Definition:</b> Split.hxx:114</div></div>
<div class="ttc" id="a00079_html_a1c074a76b80bda682fed3eb223e5169d"><div class="ttname"><a href="a00079.html#a1c074a76b80bda682fed3eb223e5169d">fifr::util::split_begin</a></div><div class="ttdeci">SplitIterator split_begin(const std::string &amp;str, const std::regex &amp;re=default_split)</div><div class="ttdoc">Return an iterator over parts of a split string. </div><div class="ttdef"><b>Definition:</b> Split.hxx:95</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Aug 6 2018 13:22:44 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00065_source.html.









































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>fifr::util: src/fifr/util/String.hxx Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_410dc4a63588d435a0c08a3db8b9f0cd.html">fifr</a></li><li class="navelem"><a class="el" href="dir_2a722471f978b7073f859d2d7c3aa2b4.html">util</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">String.hxx</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Copyright (c) 2016, 2017 Frank Fischer &lt;frank-fischer@shadow-soft.de&gt;</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * This program is free software: you can redistribute it and/or</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * modify it under the terms of the GNU General Public License as</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * published by the Free Software Foundation, either version 3 of the</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * License, or (at your option) any later version.</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> * This program is distributed in the hope that it will be useful, but</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> * WITHOUT ANY WARRANTY; without even the implied warranty of</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> * General Public License for more details.</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> * You should have received a copy of the GNU General Public License</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> * along with this program.  If not, see  &lt;http://www.gnu.org/licenses/&gt;</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;</div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="preprocessor">#ifndef __FIFR_UTIL_STRING_HXX__</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor">#define __FIFR_UTIL_STRING_HXX__</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;</div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor">#include &quot;Join.hxx&quot;</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor">#include &quot;Range.hxx&quot;</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#include &quot;Scan.hxx&quot;</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="preprocessor">#include &quot;Split.hxx&quot;</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;</div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor">#include &lt;sstream&gt;</span></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="keyword">namespace </span><a class="code" href="a00078.html">fifr</a></div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;{</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="keyword">namespace </span>util</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;{</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="keywordtype">bool</span> <a class="code" href="a00079.html#a97fd698781599ba97906caeafe4a9f4c">starts_with</a>(<span class="keyword">const</span> std::string&amp; str, <span class="keyword">const</span> std::string&amp; end);</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="keywordtype">bool</span> <a class="code" href="a00079.html#a73347c8e85b0cc1de47f81646d08f67f">ends_with</a>(<span class="keyword">const</span> std::string&amp; str, <span class="keyword">const</span> std::string&amp; end);</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;std::string <a class="code" href="a00079.html#a768ab27dcecf1b581afb1816220dfd53">escape_shell_argument</a>(<span class="keyword">const</span> std::string&amp; arg);</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;}  <span class="comment">// namespace util</span></div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;}  <span class="comment">// namespace fifr</span></div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;<span class="preprocessor">#endif</span></div><div class="ttc" id="a00079_html_a73347c8e85b0cc1de47f81646d08f67f"><div class="ttname"><a href="a00079.html#a73347c8e85b0cc1de47f81646d08f67f">fifr::util::ends_with</a></div><div class="ttdeci">bool ends_with(const std::string &amp;str, const std::string &amp;end)</div><div class="ttdoc">Returns true if a string ends with a certain substring. </div><div class="ttdef"><b>Definition:</b> String.cxx:29</div></div>
<div class="ttc" id="a00078_html"><div class="ttname"><a href="a00078.html">fifr</a></div><div class="ttdef"><b>Definition:</b> AutoTuple.hxx:23</div></div>
<div class="ttc" id="a00079_html_a768ab27dcecf1b581afb1816220dfd53"><div class="ttname"><a href="a00079.html#a768ab27dcecf1b581afb1816220dfd53">fifr::util::escape_shell_argument</a></div><div class="ttdeci">std::string escape_shell_argument(const std::string &amp;arg)</div><div class="ttdoc">Quote a string for being passed as a shell argument. </div><div class="ttdef"><b>Definition:</b> String.cxx:34</div></div>
<div class="ttc" id="a00079_html_a97fd698781599ba97906caeafe4a9f4c"><div class="ttname"><a href="a00079.html#a97fd698781599ba97906caeafe4a9f4c">fifr::util::starts_with</a></div><div class="ttdeci">bool starts_with(const std::string &amp;str, const std::string &amp;start)</div><div class="ttdoc">Returns true if a string starts with a certain substring. </div><div class="ttdef"><b>Definition:</b> String.cxx:24</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Aug 6 2018 13:22:44 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00071_source.html.

















































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>fifr::util: src/fifr/util/WordWrapStream.hxx Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_410dc4a63588d435a0c08a3db8b9f0cd.html">fifr</a></li><li class="navelem"><a class="el" href="dir_2a722471f978b7073f859d2d7c3aa2b4.html">util</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">WordWrapStream.hxx</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Copyright (c) 2017 Frank Fischer &lt;frank-fischer@shadow-soft.de&gt;</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * This program is free software: you can redistribute it and/or</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * modify it under the terms of the GNU General Public License as</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * published by the Free Software Foundation, either version 3 of the</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * License, or (at your option) any later version.</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> * This program is distributed in the hope that it will be useful, but</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> * WITHOUT ANY WARRANTY; without even the implied warranty of</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> * General Public License for more details.</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> * You should have received a copy of the GNU General Public License</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> * along with this program.  If not, see  &lt;http://www.gnu.org/licenses/&gt;</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;</div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="preprocessor">#ifndef __FIFR_UTIL_WORDWRAPSTREAM_HXX__</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor">#define __FIFR_UTIL_WORDWRAPSTREAM_HXX__</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;</div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor">#include &lt;memory&gt;</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor">#include &lt;ostream&gt;</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;</div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="keyword">namespace </span><a class="code" href="a00078.html">fifr</a></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;{</div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="keyword">namespace </span>util</div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;{</div><div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="a00863.html">   38</a></span>&#160;<span class="keyword">struct </span><a class="code" href="a00863.html">WordWrapStream</a> {</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;    <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;    <span class="keyword">friend</span> <a class="code" href="a00863.html">WordWrapStream</a>&amp; <a class="code" href="a00863.html#a58b7842ed39181d0e3f42606344daec0">operator&lt;&lt;</a>(<a class="code" href="a00863.html">WordWrapStream</a>&amp; out, <span class="keyword">const</span> T&amp; value);</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    <span class="keyword">static</span> <span class="keyword">const</span> std::size_t DEFAULT_WIDTH = 80;</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;    <a class="code" href="a00863.html">WordWrapStream</a>(std::ostream&amp; out);</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;    ~<a class="code" href="a00863.html">WordWrapStream</a>();</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="a00863.html#a4ffe84082bea5cf71390a5b75d216fa7">flush</a>();</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="a00863.html#adeba1399ba5a180181cc3496af213fb3">set_width</a>(std::size_t width);</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="a00863.html#a0bd9407d389b19a7a318a9374904dcf8">set_indent</a>(std::size_t indent);</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="a00863.html#ac2a003bb87e8fc5e379f8555216c055d">set_indent_first</a>(std::size_t indent);</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="a00863.html#ab3d311cb8b6dac1471340415c00408f9">shift_to</a>(std::size_t pos);</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;    std::ostream&amp; stream();</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;    <span class="keyword">struct </span>Data;</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    std::unique_ptr&lt;Data&gt; d;</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;};</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div><div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="a00079.html#ad9e4fac96708af6a49603edd795d8611">   77</a></span>&#160;<a class="code" href="a00863.html">WordWrapStream</a>&amp; operator&lt;&lt;(<a class="code" href="a00863.html">WordWrapStream</a>&amp; out, <span class="keyword">const</span> T&amp; value)</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;{</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;    out.stream() &lt;&lt; value;</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    <span class="keywordflow">return</span> out;</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;}</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;}  <span class="comment">// namespace util</span></div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;}  <span class="comment">// namespace fifr</span></div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;<span class="preprocessor">#endif</span></div><div class="ttc" id="a00863_html_a0bd9407d389b19a7a318a9374904dcf8"><div class="ttname"><a href="a00863.html#a0bd9407d389b19a7a318a9374904dcf8">fifr::util::WordWrapStream::set_indent</a></div><div class="ttdeci">void set_indent(std::size_t indent)</div><div class="ttdoc">Set the indentation of the lines. </div><div class="ttdef"><b>Definition:</b> WordWrapStream.cxx:59</div></div>
<div class="ttc" id="a00863_html_ac2a003bb87e8fc5e379f8555216c055d"><div class="ttname"><a href="a00863.html#ac2a003bb87e8fc5e379f8555216c055d">fifr::util::WordWrapStream::set_indent_first</a></div><div class="ttdeci">void set_indent_first(std::size_t indent)</div><div class="ttdoc">Set the indentation of the first line. </div><div class="ttdef"><b>Definition:</b> WordWrapStream.cxx:64</div></div>
<div class="ttc" id="a00863_html_a4ffe84082bea5cf71390a5b75d216fa7"><div class="ttname"><a href="a00863.html#a4ffe84082bea5cf71390a5b75d216fa7">fifr::util::WordWrapStream::flush</a></div><div class="ttdeci">void flush()</div><div class="ttdoc">Write current buffer to output stream. </div><div class="ttdef"><b>Definition:</b> WordWrapStream.cxx:69</div></div>
<div class="ttc" id="a00863_html"><div class="ttname"><a href="a00863.html">fifr::util::WordWrapStream</a></div><div class="ttdoc">Write to an output stream with word wrapping. </div><div class="ttdef"><b>Definition:</b> WordWrapStream.hxx:38</div></div>
<div class="ttc" id="a00863_html_a58b7842ed39181d0e3f42606344daec0"><div class="ttname"><a href="a00863.html#a58b7842ed39181d0e3f42606344daec0">fifr::util::WordWrapStream::operator&lt;&lt;</a></div><div class="ttdeci">friend WordWrapStream &amp; operator&lt;&lt;(WordWrapStream &amp;out, const T &amp;value)</div><div class="ttdoc">Write value to a word wrapping stream. </div><div class="ttdef"><b>Definition:</b> WordWrapStream.hxx:77</div></div>
<div class="ttc" id="a00078_html"><div class="ttname"><a href="a00078.html">fifr</a></div><div class="ttdef"><b>Definition:</b> AutoTuple.hxx:23</div></div>
<div class="ttc" id="a00863_html_adeba1399ba5a180181cc3496af213fb3"><div class="ttname"><a href="a00863.html#adeba1399ba5a180181cc3496af213fb3">fifr::util::WordWrapStream::set_width</a></div><div class="ttdeci">void set_width(std::size_t width)</div><div class="ttdoc">Set the width at which lines should be wrapped. </div><div class="ttdef"><b>Definition:</b> WordWrapStream.cxx:53</div></div>
<div class="ttc" id="a00863_html_ab3d311cb8b6dac1471340415c00408f9"><div class="ttname"><a href="a00863.html#ab3d311cb8b6dac1471340415c00408f9">fifr::util::WordWrapStream::shift_to</a></div><div class="ttdeci">void shift_to(std::size_t pos)</div><div class="ttdoc">Insert spaces until the given column. </div><div class="ttdef"><b>Definition:</b> WordWrapStream.cxx:116</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Aug 6 2018 13:22:44 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00074_source.html.





































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>fifr::util: src/fifr/util/ZipStreamBase.hxx Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_410dc4a63588d435a0c08a3db8b9f0cd.html">fifr</a></li><li class="navelem"><a class="el" href="dir_2a722471f978b7073f859d2d7c3aa2b4.html">util</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">ZipStreamBase.hxx</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Copyright (c) 2017 Frank Fischer &lt;frank-fischer@shadow-soft.de&gt;</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * This program is free software: you can redistribute it and/or</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * modify it under the terms of the GNU General Public License as</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * published by the Free Software Foundation, either version 3 of the</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * License, or (at your option) any later version.</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> * This program is distributed in the hope that it will be useful, but</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> * WITHOUT ANY WARRANTY; without even the implied warranty of</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> * General Public License for more details.</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> * You should have received a copy of the GNU General Public License</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> * along with this program.  If not, see  &lt;http://www.gnu.org/licenses/&gt;</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;</div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="preprocessor">#ifndef __FIFR_UTIL_ZIPSTREAMBASE_HXX__</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor">#define __FIFR_UTIL_ZIPSTREAMBASE_HXX__</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;</div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor">#include &lt;istream&gt;</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor">#include &lt;ostream&gt;</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;</div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="keyword">namespace </span><a class="code" href="a00078.html">fifr</a></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;{</div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="keyword">namespace </span>util</div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;{</div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> S&gt;</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="keyword">class </span>InputZipStreamBase : <span class="keyword">public</span> std::istream</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;{</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;    InputZipStreamBase() : <a class="code" href="a00077.html">std</a>::istream(&amp;buf_) {}</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;    InputZipStreamBase(<span class="keyword">const</span> std::string&amp; name, std::ios::openmode op_mode = std::ios::in)</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;        : InputZipStreamBase()</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;    {</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;        open(name, op_mode);</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;    }</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    <span class="keywordtype">void</span> open(<span class="keyword">const</span> std::string&amp; name, std::ios::openmode op_mode = std::ios::in)</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;    {</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;        <span class="keywordflow">if</span> (!buf_.open(name, op_mode)) {</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;            clear(rdstate() | std::ios::badbit);</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;        }</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    }</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;    <span class="keywordtype">void</span> close()</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;    {</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;        <span class="keywordflow">if</span> (buf_.is_open() &amp;&amp; buf_.close() == <span class="keyword">nullptr</span>) {</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;            clear(rdstate() | std::ios::badbit);</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;        }</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;    }</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;    S buf_;</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;};</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> S&gt;</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;<span class="keyword">class </span>OutputZipStreamBase : <span class="keyword">public</span> std::ostream</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;{</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;    OutputZipStreamBase() : <a class="code" href="a00077.html">std</a>::ostream(&amp;buf_) {}</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;    OutputZipStreamBase(<span class="keyword">const</span> std::string&amp; name, std::ios::openmode op_mode = std::ios::out)</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;        : OutputZipStreamBase()</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;    {</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;        open(name, op_mode);</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;    }</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;    <span class="keywordtype">void</span> open(<span class="keyword">const</span> std::string&amp; name, std::ios::openmode op_mode = std::ios::out)</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;    {</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;        <span class="keywordflow">if</span> (!buf_.open(name, op_mode)) {</div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;            clear(rdstate() | std::ios::badbit);</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;        }</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;    }</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;    <span class="keywordtype">void</span> close()</div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;    {</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;        <span class="keywordflow">if</span> (buf_.is_open() &amp;&amp; buf_.close() == <span class="keyword">nullptr</span>) {</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;            clear(rdstate() | std::ios::badbit);</div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;        }</div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;    }</div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;    S buf_;</div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;};</div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;}  <span class="comment">// namespace util</span></div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;}  <span class="comment">// namespace fifr</span></div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;</div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;<span class="preprocessor">#endif</span></div><div class="ttc" id="a00078_html"><div class="ttname"><a href="a00078.html">fifr</a></div><div class="ttdef"><b>Definition:</b> AutoTuple.hxx:23</div></div>
<div class="ttc" id="a00077_html"><div class="ttname"><a href="a00077.html">std</a></div><div class="ttdoc">STL namespace. </div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Aug 6 2018 13:22:44 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00079.html.

























































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>fifr::util: fifr::util Namespace Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>fifr</b></li><li class="navelem"><a class="el" href="a00079.html">util</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#enum-members">Enumerations</a> &#124;
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle">
<div class="title">fifr::util Namespace Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Utility functions for c++.  
<a href="#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00839.html">all_range</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Range covering all elements.  <a href="a00839.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00631.html">AutoTuple</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Trait for returning tuple, pair or value depending on the number of type arguments.  <a href="a00631.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00663.html">BZip2StreamBuf</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Stream buffer for bzip2ed files.  <a href="a00663.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00707.html">Convert</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Trait for converting two types.  <a href="a00707.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00767.html">Convert&lt; double, char * &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> <code>char*</code> to <code>double</code>.  <a href="a00767.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00763.html">Convert&lt; float, char * &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> <code>char*</code> to <code>float</code>.  <a href="a00763.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00739.html">Convert&lt; int, char * &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> <code>char*</code> to <code>int</code>.  <a href="a00739.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00771.html">Convert&lt; long double, char * &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> <code>char*</code> to <code>long double</code>.  <a href="a00771.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00747.html">Convert&lt; long long, char * &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> <code>char*</code> to <code>long long</code>.  <a href="a00747.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00743.html">Convert&lt; long, char * &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> <code>char*</code> to <code>long</code>.  <a href="a00743.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00787.html">Convert&lt; std::array&lt; To, N &gt;, std::array&lt; From, N &gt; &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> array to another array.  <a href="a00787.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00779.html">Convert&lt; std::pair&lt; To1, To2 &gt;, std::pair&lt; From1, From2 &gt; &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> pair to another pair.  <a href="a00779.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00735.html">Convert&lt; std::string, char * &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> <code>char*</code> to `std::string.  <a href="a00735.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00715.html">Convert&lt; std::string, std::string &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Special self conversions to remove ambiguity.  <a href="a00715.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00723.html">Convert&lt; std::string, T, decltype((void) std::declval&lt; const T &amp; &gt;().to_string())&gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> to <code>std::string</code> using <code>this.to_string()</code>.  <a href="a00723.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00719.html">Convert&lt; std::string, T, decltype((void) std::to_string(std::declval&lt; T &gt;()))&gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> to <code>std::string</code> using <code>std::to_string</code>.  <a href="a00719.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00783.html">Convert&lt; std::tuple&lt; To... &gt;, std::tuple&lt; From... &gt; &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> tuple to another tuple.  <a href="a00783.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00791.html">Convert&lt; std::vector&lt; To &gt;, std::vector&lt; From &gt; &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> vector to another vector.  <a href="a00791.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00711.html">Convert&lt; T, T &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Conversion from some type to itself.  <a href="a00711.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00731.html">Convert&lt; To, char[N]&gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> <code>char[N]</code> to something else converting through <code>const char*</code>.  <a href="a00731.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00727.html">Convert&lt; To, std::string &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> <code>std::string</code> to something else converting through <code>const char*</code>.  <a href="a00727.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00751.html">Convert&lt; unsigned int, char * &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> <code>char*</code> to <code>unsigned int</code>.  <a href="a00751.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00759.html">Convert&lt; unsigned long long, char * &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> <code>char*</code> to <code>unsigned long long</code>.  <a href="a00759.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00755.html">Convert&lt; unsigned long, char * &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> <code>char*</code> to <code>unsigned long</code>.  <a href="a00755.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00799.html">GZipStreamBuf</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Stream buffer for gzipped files.  <a href="a00799.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00651.html">InputAutoZipStream</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">A file stream that automatically decompresses files.  <a href="a00651.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00843.html">IteratorProxy</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Proxy providing access to some iterators.  <a href="a00843.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00803.html">Join</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="a00803.html" title="Join operator. ">Join</a> operator.  <a href="a00803.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00807.html">Logger</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">A simple <a class="el" href="a00807.html" title="A simple Logger. ">Logger</a>.  <a href="a00807.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00655.html">OutputAutoZipStream</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">A file stream that automatically compresses files.  <a href="a00655.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00847.html">ScanIterator</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Iterator for matches of a scan operation.  <a href="a00847.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00851.html">ScanIterator&lt;&gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Full match scan iterator.  <a href="a00851.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00855.html">SplitIterator</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Iterator over the parts of a split string.  <a href="a00855.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00863.html">WordWrapStream</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write to an output stream with word wrapping.  <a href="a00863.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:ab35030b49111e5496edbd06a4b568435"><td class="memItemLeft" align="right" valign="top"><a id="ab35030b49111e5496edbd06a4b568435"></a>
typedef std::function&lt; std::unique_ptr&lt; std::streambuf &gt;const std::string &amp;, std::ios::openmode, <a class="el" href="a00079.html#af2481a377dd3823a98547966b7ce7f70">ZipMode</a>)&gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00079.html#ab35030b49111e5496edbd06a4b568435">open_streambuf</a></td></tr>
<tr class="memdesc:ab35030b49111e5496edbd06a4b568435"><td class="mdescLeft">&#160;</td><td class="mdescRight">A function to open a streambuf depending on filename, openmode and zipmode. <br /></td></tr>
<tr class="separator:ab35030b49111e5496edbd06a4b568435"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa3ce942732f59f3b83c44ab1ecc7b709"><td class="memItemLeft" align="right" valign="top"><a id="aa3ce942732f59f3b83c44ab1ecc7b709"></a>
typedef <a class="el" href="a00651.html">InputAutoZipStream</a>&#160;</td><td class="memItemRight" valign="bottom"><b>izipstream</b></td></tr>
<tr class="separator:aa3ce942732f59f3b83c44ab1ecc7b709"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a32d23866b93b74729e12a202649fe556"><td class="memItemLeft" align="right" valign="top"><a id="a32d23866b93b74729e12a202649fe556"></a>
typedef <a class="el" href="a00655.html">OutputAutoZipStream</a>&#160;</td><td class="memItemRight" valign="bottom"><b>ozipstream</b></td></tr>
<tr class="separator:a32d23866b93b74729e12a202649fe556"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2b86b4a5d4f04006ae3bbf0222ac65c0"><td class="memItemLeft" align="right" valign="top"><a id="a2b86b4a5d4f04006ae3bbf0222ac65c0"></a>
typedef InputZipStreamBase&lt; <a class="el" href="a00663.html">BZip2StreamBuf</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>InputBZip2Stream</b></td></tr>
<tr class="separator:a2b86b4a5d4f04006ae3bbf0222ac65c0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad1bac9d1b8b28555646d87fdc4b7d686"><td class="memItemLeft" align="right" valign="top"><a id="ad1bac9d1b8b28555646d87fdc4b7d686"></a>
typedef OutputZipStreamBase&lt; <a class="el" href="a00663.html">BZip2StreamBuf</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>OutputBZip2Stream</b></td></tr>
<tr class="separator:ad1bac9d1b8b28555646d87fdc4b7d686"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5bca594a2926273219128a3215c0ada1"><td class="memItemLeft" align="right" valign="top"><a id="a5bca594a2926273219128a3215c0ada1"></a>
typedef InputBZip2Stream&#160;</td><td class="memItemRight" valign="bottom"><b>ibz2stream</b></td></tr>
<tr class="separator:a5bca594a2926273219128a3215c0ada1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab3e7862b23e685885898849a71d622f6"><td class="memItemLeft" align="right" valign="top"><a id="ab3e7862b23e685885898849a71d622f6"></a>
typedef OutputBZip2Stream&#160;</td><td class="memItemRight" valign="bottom"><b>obz2stream</b></td></tr>
<tr class="separator:ab3e7862b23e685885898849a71d622f6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a77c0461b3bfe2f5c6b92ff5ed922b0b5"><td class="memItemLeft" align="right" valign="top"><a id="a77c0461b3bfe2f5c6b92ff5ed922b0b5"></a>
typedef InputZipStreamBase&lt; <a class="el" href="a00799.html">GZipStreamBuf</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>InputGZipStream</b></td></tr>
<tr class="separator:a77c0461b3bfe2f5c6b92ff5ed922b0b5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a283bdedbe57307974e0f5592391563ef"><td class="memItemLeft" align="right" valign="top"><a id="a283bdedbe57307974e0f5592391563ef"></a>
typedef OutputZipStreamBase&lt; <a class="el" href="a00799.html">GZipStreamBuf</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>OutputGZipStream</b></td></tr>
<tr class="separator:a283bdedbe57307974e0f5592391563ef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1beba0d8168f8be97b8819b75dd690c2"><td class="memItemLeft" align="right" valign="top"><a id="a1beba0d8168f8be97b8819b75dd690c2"></a>
typedef InputGZipStream&#160;</td><td class="memItemRight" valign="bottom"><b>igzstream</b></td></tr>
<tr class="separator:a1beba0d8168f8be97b8819b75dd690c2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aab930a2244d387db48df99855dded940"><td class="memItemLeft" align="right" valign="top"><a id="aab930a2244d387db48df99855dded940"></a>
typedef OutputGZipStream&#160;</td><td class="memItemRight" valign="bottom"><b>ogzstream</b></td></tr>
<tr class="separator:aab930a2244d387db48df99855dded940"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:af2481a377dd3823a98547966b7ce7f70"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00079.html#af2481a377dd3823a98547966b7ce7f70">ZipMode</a> { <a class="el" href="a00079.html#af2481a377dd3823a98547966b7ce7f70a06b9281e396db002010bde1de57262eb">ZipMode::Auto</a>, 
<a class="el" href="a00079.html#af2481a377dd3823a98547966b7ce7f70aafbf0897a5a83fdd873dfb032ec695d3">ZipMode::Internal</a>, 
<a class="el" href="a00079.html#af2481a377dd3823a98547966b7ce7f70ab206a1b4ea1097761f78e8876f6da779">ZipMode::External</a>
 }</td></tr>
<tr class="memdesc:af2481a377dd3823a98547966b7ce7f70"><td class="mdescLeft">&#160;</td><td class="mdescRight">Selection of an internal or external compressor.  <a href="a00079.html#af2481a377dd3823a98547966b7ce7f70">More...</a><br /></td></tr>
<tr class="separator:af2481a377dd3823a98547966b7ce7f70"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a2bdff2715e924516df9cc786e65d248e"><td class="memTemplParams" colspan="2">template&lt;typename... Args&gt; </td></tr>
<tr class="memitem:a2bdff2715e924516df9cc786e65d248e"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="a00631.html">AutoTuple</a>&lt; Args... &gt;::type&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00079.html#a2bdff2715e924516df9cc786e65d248e">make_auto_tuple</a> (Args &amp;&amp;... args)</td></tr>
<tr class="memdesc:a2bdff2715e924516df9cc786e65d248e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the arguments as value, pair or tuple.  <a href="#a2bdff2715e924516df9cc786e65d248e">More...</a><br /></td></tr>
<tr class="separator:a2bdff2715e924516df9cc786e65d248e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a28a41e2b56c30668238b0015371f3d72"><td class="memItemLeft" align="right" valign="top">std::unique_ptr&lt; std::streambuf &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00079.html#a28a41e2b56c30668238b0015371f3d72">open_by_extension</a> (const std::string &amp;name, std::ios::openmode, <a class="el" href="a00079.html#af2481a377dd3823a98547966b7ce7f70">ZipMode</a> zipmode)</td></tr>
<tr class="memdesc:a28a41e2b56c30668238b0015371f3d72"><td class="mdescLeft">&#160;</td><td class="mdescRight">Open a streambuf depending on the file extension.  <a href="#a28a41e2b56c30668238b0015371f3d72">More...</a><br /></td></tr>
<tr class="separator:a28a41e2b56c30668238b0015371f3d72"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4a4fe6fe71aefecbb094f1d7a9e48769"><td class="memItemLeft" align="right" valign="top"><a id="a4a4fe6fe71aefecbb094f1d7a9e48769"></a>
std::ostream &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator&lt;&lt;</b> (std::ostream &amp;out, const CmdArgs &amp;args)</td></tr>
<tr class="separator:a4a4fe6fe71aefecbb094f1d7a9e48769"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0022c564e7c94ecc7c85bd1320aeeb10"><td class="memTemplParams" colspan="2"><a id="a0022c564e7c94ecc7c85bd1320aeeb10"></a>
template&lt;class T &gt; </td></tr>
<tr class="memitem:a0022c564e7c94ecc7c85bd1320aeeb10"><td class="memTemplItemLeft" align="right" valign="top">std::ostream &amp;&#160;</td><td class="memTemplItemRight" valign="bottom"><b>operator&lt;&lt;</b> (std::ostream &amp;out, const CmdArgs::Opt&lt; T &gt; &amp;arg)</td></tr>
<tr class="separator:a0022c564e7c94ecc7c85bd1320aeeb10"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2571be8e8b55e880f6c251f93bbf1d97"><td class="memTemplParams" colspan="2"><a id="a2571be8e8b55e880f6c251f93bbf1d97"></a>
template&lt;typename To , typename From &gt; </td></tr>
<tr class="memitem:a2571be8e8b55e880f6c251f93bbf1d97"><td class="memTemplItemLeft" align="right" valign="top">To&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00079.html#a2571be8e8b55e880f6c251f93bbf1d97">convert</a> (From &amp;&amp;x)</td></tr>
<tr class="memdesc:a2571be8e8b55e880f6c251f93bbf1d97"><td class="mdescLeft">&#160;</td><td class="mdescRight">Generic conversion function. <br /></td></tr>
<tr class="separator:a2571be8e8b55e880f6c251f93bbf1d97"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a763fb6df77ab87aaa34abbff74100af7"><td class="memTemplParams" colspan="2"><a id="a763fb6df77ab87aaa34abbff74100af7"></a>
template&lt;class C &gt; </td></tr>
<tr class="memitem:a763fb6df77ab87aaa34abbff74100af7"><td class="memTemplItemLeft" align="right" valign="top">std::ostream &amp;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00079.html#a763fb6df77ab87aaa34abbff74100af7">operator&lt;&lt;</a> (std::ostream &amp;out, const <a class="el" href="a00803.html">Join</a>&lt; C &gt; &amp;<a class="el" href="a00079.html#a4549a4c462e3314bd2dae501eae9d9c9">join</a>)</td></tr>
<tr class="memdesc:a763fb6df77ab87aaa34abbff74100af7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write a joined vector to an output stream. <br /></td></tr>
<tr class="separator:a763fb6df77ab87aaa34abbff74100af7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4549a4c462e3314bd2dae501eae9d9c9"><td class="memTemplParams" colspan="2"><a id="a4549a4c462e3314bd2dae501eae9d9c9"></a>
template&lt;typename C &gt; </td></tr>
<tr class="memitem:a4549a4c462e3314bd2dae501eae9d9c9"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="a00803.html">Join</a>&lt; C &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00079.html#a4549a4c462e3314bd2dae501eae9d9c9">join</a> (const C &amp;container, std::string sep=&quot;&quot;)</td></tr>
<tr class="memdesc:a4549a4c462e3314bd2dae501eae9d9c9"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="a00803.html" title="Join operator. ">Join</a> a container to a string. <br /></td></tr>
<tr class="separator:a4549a4c462e3314bd2dae501eae9d9c9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a47864c335721f56fe75f007a9c52d004"><td class="memTemplParams" colspan="2"><a id="a47864c335721f56fe75f007a9c52d004"></a>
template&lt;typename C &gt; </td></tr>
<tr class="memitem:a47864c335721f56fe75f007a9c52d004"><td class="memTemplItemLeft" align="right" valign="top">std::string&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00079.html#a47864c335721f56fe75f007a9c52d004">operator+</a> (const std::string &amp;str, const <a class="el" href="a00803.html">Join</a>&lt; C &gt; &amp;<a class="el" href="a00079.html#a4549a4c462e3314bd2dae501eae9d9c9">join</a>)</td></tr>
<tr class="memdesc:a47864c335721f56fe75f007a9c52d004"><td class="mdescLeft">&#160;</td><td class="mdescRight">Add string and joined string. <br /></td></tr>
<tr class="separator:a47864c335721f56fe75f007a9c52d004"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae914a11121ac9980ffdbe1b224cdb18e"><td class="memTemplParams" colspan="2"><a id="ae914a11121ac9980ffdbe1b224cdb18e"></a>
template&lt;typename C &gt; </td></tr>
<tr class="memitem:ae914a11121ac9980ffdbe1b224cdb18e"><td class="memTemplItemLeft" align="right" valign="top">std::string&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00079.html#ae914a11121ac9980ffdbe1b224cdb18e">operator+</a> (const <a class="el" href="a00803.html">Join</a>&lt; C &gt; &amp;<a class="el" href="a00079.html#a4549a4c462e3314bd2dae501eae9d9c9">join</a>, const std::string &amp;str)</td></tr>
<tr class="memdesc:ae914a11121ac9980ffdbe1b224cdb18e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Add joined string and string. <br /></td></tr>
<tr class="separator:ae914a11121ac9980ffdbe1b224cdb18e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2b58dac747e9b7727aac01660043d13f"><td class="memTemplParams" colspan="2"><a id="a2b58dac747e9b7727aac01660043d13f"></a>
template&lt;typename C &gt; </td></tr>
<tr class="memitem:a2b58dac747e9b7727aac01660043d13f"><td class="memTemplItemLeft" align="right" valign="top">std::string&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00079.html#a2b58dac747e9b7727aac01660043d13f">operator+</a> (const char *str, const <a class="el" href="a00803.html">Join</a>&lt; C &gt; &amp;<a class="el" href="a00079.html#a4549a4c462e3314bd2dae501eae9d9c9">join</a>)</td></tr>
<tr class="memdesc:a2b58dac747e9b7727aac01660043d13f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Add string and joined string. <br /></td></tr>
<tr class="separator:a2b58dac747e9b7727aac01660043d13f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a76148b1bd88947607632d38ade173609"><td class="memTemplParams" colspan="2"><a id="a76148b1bd88947607632d38ade173609"></a>
template&lt;typename C &gt; </td></tr>
<tr class="memitem:a76148b1bd88947607632d38ade173609"><td class="memTemplItemLeft" align="right" valign="top">std::string&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00079.html#a76148b1bd88947607632d38ade173609">operator+</a> (const <a class="el" href="a00803.html">Join</a>&lt; C &gt; &amp;<a class="el" href="a00079.html#a4549a4c462e3314bd2dae501eae9d9c9">join</a>, const char *str)</td></tr>
<tr class="memdesc:a76148b1bd88947607632d38ade173609"><td class="mdescLeft">&#160;</td><td class="mdescRight">Add joined string and string. <br /></td></tr>
<tr class="separator:a76148b1bd88947607632d38ade173609"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a70b39361cae719a25356d0565c23582f"><td class="memTemplParams" colspan="2">template&lt;typename... Args&gt; </td></tr>
<tr class="memitem:a70b39361cae719a25356d0565c23582f"><td class="memTemplItemLeft" align="right" valign="top">std::string&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00079.html#a70b39361cae719a25356d0565c23582f">join</a> (const std::string &amp;separator, Args &amp;&amp;... args)</td></tr>
<tr class="memdesc:a70b39361cae719a25356d0565c23582f"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="a00803.html" title="Join operator. ">Join</a> a fixed number of objects.  <a href="#a70b39361cae719a25356d0565c23582f">More...</a><br /></td></tr>
<tr class="separator:a70b39361cae719a25356d0565c23582f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0f8dd9522b8575d81cebf04780b034d9"><td class="memItemLeft" align="right" valign="top"><a id="a0f8dd9522b8575d81cebf04780b034d9"></a>
Logger::LogStream&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00079.html#a0f8dd9522b8575d81cebf04780b034d9">info</a> ()</td></tr>
<tr class="memdesc:a0f8dd9522b8575d81cebf04780b034d9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return info stream for the default logger. <br /></td></tr>
<tr class="separator:a0f8dd9522b8575d81cebf04780b034d9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:add7683b10f66d150b12b57bc9518caee"><td class="memItemLeft" align="right" valign="top"><a id="add7683b10f66d150b12b57bc9518caee"></a>
Logger::LogStream&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00079.html#add7683b10f66d150b12b57bc9518caee">warn</a> ()</td></tr>
<tr class="memdesc:add7683b10f66d150b12b57bc9518caee"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return warning stream for the default logger. <br /></td></tr>
<tr class="separator:add7683b10f66d150b12b57bc9518caee"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4cad7e59800f367105c4125b612ccd76"><td class="memItemLeft" align="right" valign="top"><a id="a4cad7e59800f367105c4125b612ccd76"></a>
Logger::LogStream&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00079.html#a4cad7e59800f367105c4125b612ccd76">error</a> ()</td></tr>
<tr class="memdesc:a4cad7e59800f367105c4125b612ccd76"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return error stream for the default logger. <br /></td></tr>
<tr class="separator:a4cad7e59800f367105c4125b612ccd76"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a530005db874eb698dc4f690df47488cb"><td class="memItemLeft" align="right" valign="top"><a id="a530005db874eb698dc4f690df47488cb"></a>
Logger::LogStream&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00079.html#a530005db874eb698dc4f690df47488cb">debug</a> ()</td></tr>
<tr class="memdesc:a530005db874eb698dc4f690df47488cb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return debug stream for the default logger. <br /></td></tr>
<tr class="separator:a530005db874eb698dc4f690df47488cb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab45677b30a64b1ee06ab6a448725c51a"><td class="memTemplParams" colspan="2"><a id="ab45677b30a64b1ee06ab6a448725c51a"></a>
template&lt;class T &gt; </td></tr>
<tr class="memitem:ab45677b30a64b1ee06ab6a448725c51a"><td class="memTemplItemLeft" align="right" valign="top">Logger::LogStream &amp;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00079.html#ab45677b30a64b1ee06ab6a448725c51a">operator&lt;&lt;</a> (Logger::LogStream &amp;log, const T &amp;x)</td></tr>
<tr class="memdesc:ab45677b30a64b1ee06ab6a448725c51a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write some value to a log stream. <br /></td></tr>
<tr class="separator:ab45677b30a64b1ee06ab6a448725c51a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae98e55ea66db06b79188fa9464ab34ea"><td class="memTemplParams" colspan="2"><a id="ae98e55ea66db06b79188fa9464ab34ea"></a>
template&lt;class T &gt; </td></tr>
<tr class="memitem:ae98e55ea66db06b79188fa9464ab34ea"><td class="memTemplItemLeft" align="right" valign="top">Logger::LogStream &amp;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00079.html#ae98e55ea66db06b79188fa9464ab34ea">operator&lt;&lt;</a> (Logger::LogStream &amp;&amp;log, const T &amp;x)</td></tr>
<tr class="memdesc:ae98e55ea66db06b79188fa9464ab34ea"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write some value to a log stream. <br /></td></tr>
<tr class="separator:ae98e55ea66db06b79188fa9464ab34ea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a635542a3a6fb35d5a7d726c472a8262e"><td class="memTemplParams" colspan="2"><a id="a635542a3a6fb35d5a7d726c472a8262e"></a>
template&lt;typename T &gt; </td></tr>
<tr class="memitem:a635542a3a6fb35d5a7d726c472a8262e"><td class="memTemplItemLeft" align="right" valign="top">range_proxy&lt; T &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00079.html#a635542a3a6fb35d5a7d726c472a8262e">range</a> (T begin, T end)</td></tr>
<tr class="memdesc:a635542a3a6fb35d5a7d726c472a8262e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return range over [begin,end). <br /></td></tr>
<tr class="separator:a635542a3a6fb35d5a7d726c472a8262e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae5344551ba7335029de1d5208dc4533b"><td class="memTemplParams" colspan="2"><a id="ae5344551ba7335029de1d5208dc4533b"></a>
template&lt;typename T &gt; </td></tr>
<tr class="memitem:ae5344551ba7335029de1d5208dc4533b"><td class="memTemplItemLeft" align="right" valign="top">range_proxy&lt; T &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00079.html#ae5344551ba7335029de1d5208dc4533b">range</a> (T end)</td></tr>
<tr class="memdesc:ae5344551ba7335029de1d5208dc4533b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return range over [0,end) <br /></td></tr>
<tr class="separator:ae5344551ba7335029de1d5208dc4533b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac11ef6009b232d7214fb7fe1697fd954"><td class="memTemplParams" colspan="2"><a id="ac11ef6009b232d7214fb7fe1697fd954"></a>
template&lt;typename T &gt; </td></tr>
<tr class="memitem:ac11ef6009b232d7214fb7fe1697fd954"><td class="memTemplItemLeft" align="right" valign="top">range_proxy&lt; T &gt;::step_range_proxy&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00079.html#ac11ef6009b232d7214fb7fe1697fd954">range</a> (T begin, T end, T step)</td></tr>
<tr class="memdesc:ac11ef6009b232d7214fb7fe1697fd954"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return range over [begin, begin+step, ..., end). <br /></td></tr>
<tr class="separator:ac11ef6009b232d7214fb7fe1697fd954"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab85f8d0d402de83302c77b45a93d2d2d"><td class="memTemplParams" colspan="2">template&lt;typename C , typename  = typename std::enable_if&lt;traits::has_size&lt;C&gt;::value&gt;&gt; </td></tr>
<tr class="memitem:ab85f8d0d402de83302c77b45a93d2d2d"><td class="memTemplItemLeft" align="right" valign="top">auto&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00079.html#ab85f8d0d402de83302c77b45a93d2d2d">indices</a> (C const &amp;cont) -&gt; range_proxy&lt; decltype(cont.size())&gt;</td></tr>
<tr class="memdesc:ab85f8d0d402de83302c77b45a93d2d2d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return range over the valid indices of a container.  <a href="#ab85f8d0d402de83302c77b45a93d2d2d">More...</a><br /></td></tr>
<tr class="separator:ab85f8d0d402de83302c77b45a93d2d2d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac0e7de37628b9706c441b240544c2be4"><td class="memTemplParams" colspan="2"><a id="ac0e7de37628b9706c441b240544c2be4"></a>
template&lt;typename T , std::size_t N&gt; </td></tr>
<tr class="memitem:ac0e7de37628b9706c441b240544c2be4"><td class="memTemplItemLeft" align="right" valign="top">range_proxy&lt; std::size_t &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00079.html#ac0e7de37628b9706c441b240544c2be4">indices</a> (T(&amp;)[N])</td></tr>
<tr class="memdesc:ac0e7de37628b9706c441b240544c2be4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return range over the valid indices of a fixed size array. <br /></td></tr>
<tr class="separator:ac0e7de37628b9706c441b240544c2be4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6c93a762ec4867221e61e00124616fa6"><td class="memTemplParams" colspan="2"><a id="a6c93a762ec4867221e61e00124616fa6"></a>
template&lt;typename T &gt; </td></tr>
<tr class="memitem:a6c93a762ec4867221e61e00124616fa6"><td class="memTemplItemLeft" align="right" valign="top">range_proxy&lt; typename std::initializer_list&lt; T &gt;::size_type &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00079.html#a6c93a762ec4867221e61e00124616fa6">indices</a> (std::initializer_list&lt; T &gt; &amp;&amp;cont)</td></tr>
<tr class="memdesc:a6c93a762ec4867221e61e00124616fa6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return range over the valid indices of an initializer list. <br /></td></tr>
<tr class="separator:a6c93a762ec4867221e61e00124616fa6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a40d02e79f662d3f9b8720198615f8ad4"><td class="memTemplParams" colspan="2"><a id="a40d02e79f662d3f9b8720198615f8ad4"></a>
template&lt;typename Size &gt; </td></tr>
<tr class="memitem:a40d02e79f662d3f9b8720198615f8ad4"><td class="memTemplItemLeft" align="right" valign="top">Size&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00079.html#a40d02e79f662d3f9b8720198615f8ad4">range_begin</a> (<a class="el" href="a00839.html">all_range</a>, Size)</td></tr>
<tr class="memdesc:a40d02e79f662d3f9b8720198615f8ad4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Beginning of an all-range. <br /></td></tr>
<tr class="separator:a40d02e79f662d3f9b8720198615f8ad4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a072c669eeb901b9f5ff50e22cbe9ba52"><td class="memTemplParams" colspan="2"><a id="a072c669eeb901b9f5ff50e22cbe9ba52"></a>
template&lt;typename Size &gt; </td></tr>
<tr class="memitem:a072c669eeb901b9f5ff50e22cbe9ba52"><td class="memTemplItemLeft" align="right" valign="top">Size&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00079.html#a072c669eeb901b9f5ff50e22cbe9ba52">range_end</a> (<a class="el" href="a00839.html">all_range</a>, Size n)</td></tr>
<tr class="memdesc:a072c669eeb901b9f5ff50e22cbe9ba52"><td class="mdescLeft">&#160;</td><td class="mdescRight">End of an all-range. <br /></td></tr>
<tr class="separator:a072c669eeb901b9f5ff50e22cbe9ba52"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a794f0c94f474118782db17f128e628a3"><td class="memTemplParams" colspan="2"><a id="a794f0c94f474118782db17f128e628a3"></a>
template&lt;typename Size &gt; </td></tr>
<tr class="memitem:a794f0c94f474118782db17f128e628a3"><td class="memTemplItemLeft" align="right" valign="top">Size&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00079.html#a794f0c94f474118782db17f128e628a3">range_size</a> (<a class="el" href="a00839.html">all_range</a>, Size n)</td></tr>
<tr class="memdesc:a794f0c94f474118782db17f128e628a3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Size of an all-range. <br /></td></tr>
<tr class="separator:a794f0c94f474118782db17f128e628a3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a91fd04eecd118d6037d0d55f53ef2799"><td class="memTemplParams" colspan="2"><a id="a91fd04eecd118d6037d0d55f53ef2799"></a>
template&lt;typename T , typename Size , typename std::enable_if&lt; std::is_integral&lt; T &gt;::value &gt;::type *  = nullptr&gt; </td></tr>
<tr class="memitem:a91fd04eecd118d6037d0d55f53ef2799"><td class="memTemplItemLeft" align="right" valign="top">Size&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00079.html#a91fd04eecd118d6037d0d55f53ef2799">range_begin</a> (T i, Size)</td></tr>
<tr class="memdesc:a91fd04eecd118d6037d0d55f53ef2799"><td class="mdescLeft">&#160;</td><td class="mdescRight">Begin of a single value range. <br /></td></tr>
<tr class="separator:a91fd04eecd118d6037d0d55f53ef2799"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0a935b9e5f4e88a484402627e6c8da36"><td class="memTemplParams" colspan="2"><a id="a0a935b9e5f4e88a484402627e6c8da36"></a>
template&lt;typename T , typename Size , typename std::enable_if&lt; std::is_integral&lt; T &gt;::value &gt;::type *  = nullptr&gt; </td></tr>
<tr class="memitem:a0a935b9e5f4e88a484402627e6c8da36"><td class="memTemplItemLeft" align="right" valign="top">Size&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00079.html#a0a935b9e5f4e88a484402627e6c8da36">range_end</a> (T i, Size)</td></tr>
<tr class="memdesc:a0a935b9e5f4e88a484402627e6c8da36"><td class="mdescLeft">&#160;</td><td class="mdescRight">Begin of a single value range. <br /></td></tr>
<tr class="separator:a0a935b9e5f4e88a484402627e6c8da36"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab4fca9109feff56d9fa4b5567013655c"><td class="memTemplParams" colspan="2"><a id="ab4fca9109feff56d9fa4b5567013655c"></a>
template&lt;typename T , typename Size , typename std::enable_if&lt; std::is_integral&lt; T &gt;::value &gt;::type *  = nullptr&gt; </td></tr>
<tr class="memitem:ab4fca9109feff56d9fa4b5567013655c"><td class="memTemplItemLeft" align="right" valign="top">Size&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00079.html#ab4fca9109feff56d9fa4b5567013655c">range_size</a> (T, Size)</td></tr>
<tr class="memdesc:ab4fca9109feff56d9fa4b5567013655c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Size of a single value range. <br /></td></tr>
<tr class="separator:ab4fca9109feff56d9fa4b5567013655c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3a71f914e941d12e6f70963f736fca4a"><td class="memTemplParams" colspan="2"><a id="a3a71f914e941d12e6f70963f736fca4a"></a>
template&lt;typename T , typename Size &gt; </td></tr>
<tr class="memitem:a3a71f914e941d12e6f70963f736fca4a"><td class="memTemplItemLeft" align="right" valign="top">Size&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00079.html#a3a71f914e941d12e6f70963f736fca4a">range_begin</a> (const range_proxy&lt; T &gt; &amp;rng, Size)</td></tr>
<tr class="memdesc:a3a71f914e941d12e6f70963f736fca4a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Begin of a regular index range. <br /></td></tr>
<tr class="separator:a3a71f914e941d12e6f70963f736fca4a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a014cff4079ea58c93598c1a06c3dd402"><td class="memTemplParams" colspan="2"><a id="a014cff4079ea58c93598c1a06c3dd402"></a>
template&lt;typename T , typename Size &gt; </td></tr>
<tr class="memitem:a014cff4079ea58c93598c1a06c3dd402"><td class="memTemplItemLeft" align="right" valign="top">Size&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00079.html#a014cff4079ea58c93598c1a06c3dd402">range_end</a> (const range_proxy&lt; T &gt; &amp;rng, Size)</td></tr>
<tr class="memdesc:a014cff4079ea58c93598c1a06c3dd402"><td class="mdescLeft">&#160;</td><td class="mdescRight">End of a regular index range. <br /></td></tr>
<tr class="separator:a014cff4079ea58c93598c1a06c3dd402"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afc1a7108d8445c9c10e345baa1c57dd2"><td class="memTemplParams" colspan="2"><a id="afc1a7108d8445c9c10e345baa1c57dd2"></a>
template&lt;typename T , typename Size &gt; </td></tr>
<tr class="memitem:afc1a7108d8445c9c10e345baa1c57dd2"><td class="memTemplItemLeft" align="right" valign="top">Size&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00079.html#afc1a7108d8445c9c10e345baa1c57dd2">range_size</a> (const range_proxy&lt; T &gt; &amp;rng, Size)</td></tr>
<tr class="memdesc:afc1a7108d8445c9c10e345baa1c57dd2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Size of a regular index range. <br /></td></tr>
<tr class="separator:afc1a7108d8445c9c10e345baa1c57dd2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3093afe9b956797b3ce3fb1191b21409"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00843.html">IteratorProxy</a>&lt; std::sregex_iterator &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00079.html#a3093afe9b956797b3ce3fb1191b21409">scan_matches</a> (const std::string &amp;str, const std::regex &amp;re)</td></tr>
<tr class="memdesc:a3093afe9b956797b3ce3fb1191b21409"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns an iterator proxy over all matches within a string.  <a href="#a3093afe9b956797b3ce3fb1191b21409">More...</a><br /></td></tr>
<tr class="separator:a3093afe9b956797b3ce3fb1191b21409"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a965fae864f05b845194b24177ffd3a81"><td class="memTemplParams" colspan="2">template&lt;typename... Args&gt; </td></tr>
<tr class="memitem:a965fae864f05b845194b24177ffd3a81"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="a00843.html">IteratorProxy</a>&lt; <a class="el" href="a00847.html">ScanIterator</a>&lt; Args... &gt; &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00079.html#a965fae864f05b845194b24177ffd3a81">scan</a> (const std::string &amp;str, const std::regex &amp;re)</td></tr>
<tr class="memdesc:a965fae864f05b845194b24177ffd3a81"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns an iterator proxy over all matches within a string.  <a href="#a965fae864f05b845194b24177ffd3a81">More...</a><br /></td></tr>
<tr class="separator:a965fae864f05b845194b24177ffd3a81"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a22abdf2c6d5581264dc1d7933e06319b"><td class="memTemplParams" colspan="2"><a id="a22abdf2c6d5581264dc1d7933e06319b"></a>
template&lt;typename C , typename Keys , typename std::remove_reference&lt; decltype(std::declval&lt; C &gt;()[0])&gt;::type *  = nullptr, typename std::remove_reference&lt; decltype(std::declval&lt; C &gt;().size())&gt;::type *  = nullptr, typename std::remove_reference&lt; decltype(std::declval&lt; Keys &gt;()[0])&gt;::type *  = nullptr, typename std::remove_reference&lt; decltype(std::declval&lt; Keys &gt;().size())&gt;::type *  = nullptr&gt; </td></tr>
<tr class="memitem:a22abdf2c6d5581264dc1d7933e06319b"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00079.html#a22abdf2c6d5581264dc1d7933e06319b">sort_by</a> (C &amp;container, const Keys &amp;keys)</td></tr>
<tr class="memdesc:a22abdf2c6d5581264dc1d7933e06319b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sort container of values by some given container of keys. <br /></td></tr>
<tr class="separator:a22abdf2c6d5581264dc1d7933e06319b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a87337d5276c5ab23b339b19fd1cb952e"><td class="memTemplParams" colspan="2"><a id="a87337d5276c5ab23b339b19fd1cb952e"></a>
template&lt;typename C , typename Fun , typename std::remove_reference&lt; decltype(std::declval&lt; C &gt;()[0])&gt;::type *  = nullptr, typename std::remove_reference&lt; decltype(std::declval&lt; C &gt;().size())&gt;::type *  = nullptr, typename std::remove_reference&lt; decltype(std::declval&lt; Fun &gt;()(std::declval&lt; C &gt;()[0]))&gt;::type *  = nullptr&gt; </td></tr>
<tr class="memitem:a87337d5276c5ab23b339b19fd1cb952e"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00079.html#a87337d5276c5ab23b339b19fd1cb952e">sort_by</a> (C &amp;container, Fun fun)</td></tr>
<tr class="memdesc:a87337d5276c5ab23b339b19fd1cb952e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sort container of values by some given function of keys. <br /></td></tr>
<tr class="separator:a87337d5276c5ab23b339b19fd1cb952e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1c074a76b80bda682fed3eb223e5169d"><td class="memItemLeft" align="right" valign="top"><a id="a1c074a76b80bda682fed3eb223e5169d"></a>
<a class="el" href="a00855.html">SplitIterator</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00079.html#a1c074a76b80bda682fed3eb223e5169d">split_begin</a> (const std::string &amp;str, const std::regex &amp;re=<a class="el" href="a00079.html#ac4bdb5919b69453de8a723476cb21157">default_split</a>)</td></tr>
<tr class="memdesc:a1c074a76b80bda682fed3eb223e5169d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return an iterator over parts of a split string. <br /></td></tr>
<tr class="separator:a1c074a76b80bda682fed3eb223e5169d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4554785c6f64cc545562fbb6af04e480"><td class="memItemLeft" align="right" valign="top"><a id="a4554785c6f64cc545562fbb6af04e480"></a>
<a class="el" href="a00855.html">SplitIterator</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00079.html#a4554785c6f64cc545562fbb6af04e480">split_end</a> ()</td></tr>
<tr class="memdesc:a4554785c6f64cc545562fbb6af04e480"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return an end iterator over parts of a split string. <br /></td></tr>
<tr class="separator:a4554785c6f64cc545562fbb6af04e480"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a39ff18b164b8ad8bea4f1844059fdcae"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00843.html">IteratorProxy</a>&lt; <a class="el" href="a00855.html">SplitIterator</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00079.html#a39ff18b164b8ad8bea4f1844059fdcae">split</a> (const std::string &amp;str, const std::regex &amp;re=<a class="el" href="a00079.html#ac4bdb5919b69453de8a723476cb21157">default_split</a>)</td></tr>
<tr class="memdesc:a39ff18b164b8ad8bea4f1844059fdcae"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return an iterator proxy of parts of a split string.  <a href="#a39ff18b164b8ad8bea4f1844059fdcae">More...</a><br /></td></tr>
<tr class="separator:a39ff18b164b8ad8bea4f1844059fdcae"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5080ec6002a4cb7180a8f758a10a9797"><td class="memItemLeft" align="right" valign="top">std::vector&lt; std::string &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00079.html#a5080ec6002a4cb7180a8f758a10a9797">splitv</a> (const std::string &amp;str, const std::regex &amp;re=<a class="el" href="a00079.html#ac4bdb5919b69453de8a723476cb21157">default_split</a>)</td></tr>
<tr class="memdesc:a5080ec6002a4cb7180a8f758a10a9797"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return a split string as a vector.  <a href="#a5080ec6002a4cb7180a8f758a10a9797">More...</a><br /></td></tr>
<tr class="separator:a5080ec6002a4cb7180a8f758a10a9797"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4fb84c855978698dbdb2d7d834c5935e"><td class="memTemplParams" colspan="2">template&lt;typename... Args&gt; </td></tr>
<tr class="memitem:a4fb84c855978698dbdb2d7d834c5935e"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00079.html#a4fb84c855978698dbdb2d7d834c5935e">split</a> (const std::string &amp;str, const std::regex &amp;re, Args &amp;... args)</td></tr>
<tr class="memdesc:a4fb84c855978698dbdb2d7d834c5935e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Split a string and cast results to appropriate types.  <a href="#a4fb84c855978698dbdb2d7d834c5935e">More...</a><br /></td></tr>
<tr class="separator:a4fb84c855978698dbdb2d7d834c5935e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a97fd698781599ba97906caeafe4a9f4c"><td class="memItemLeft" align="right" valign="top"><a id="a97fd698781599ba97906caeafe4a9f4c"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00079.html#a97fd698781599ba97906caeafe4a9f4c">starts_with</a> (const std::string &amp;str, const std::string &amp;end)</td></tr>
<tr class="memdesc:a97fd698781599ba97906caeafe4a9f4c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns true if a string starts with a certain substring. <br /></td></tr>
<tr class="separator:a97fd698781599ba97906caeafe4a9f4c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a73347c8e85b0cc1de47f81646d08f67f"><td class="memItemLeft" align="right" valign="top"><a id="a73347c8e85b0cc1de47f81646d08f67f"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00079.html#a73347c8e85b0cc1de47f81646d08f67f">ends_with</a> (const std::string &amp;str, const std::string &amp;end)</td></tr>
<tr class="memdesc:a73347c8e85b0cc1de47f81646d08f67f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns true if a string ends with a certain substring. <br /></td></tr>
<tr class="separator:a73347c8e85b0cc1de47f81646d08f67f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a768ab27dcecf1b581afb1816220dfd53"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00079.html#a768ab27dcecf1b581afb1816220dfd53">escape_shell_argument</a> (const std::string &amp;arg)</td></tr>
<tr class="memdesc:a768ab27dcecf1b581afb1816220dfd53"><td class="mdescLeft">&#160;</td><td class="mdescRight">Quote a string for being passed as a shell argument.  <a href="#a768ab27dcecf1b581afb1816220dfd53">More...</a><br /></td></tr>
<tr class="separator:a768ab27dcecf1b581afb1816220dfd53"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad9e4fac96708af6a49603edd795d8611"><td class="memTemplParams" colspan="2"><a id="ad9e4fac96708af6a49603edd795d8611"></a>
template&lt;typename T &gt; </td></tr>
<tr class="memitem:ad9e4fac96708af6a49603edd795d8611"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="a00863.html">WordWrapStream</a> &amp;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00079.html#ad9e4fac96708af6a49603edd795d8611">operator&lt;&lt;</a> (<a class="el" href="a00863.html">WordWrapStream</a> &amp;out, const T &amp;value)</td></tr>
<tr class="memdesc:ad9e4fac96708af6a49603edd795d8611"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write <code>value</code> to a word wrapping stream. <br /></td></tr>
<tr class="separator:ad9e4fac96708af6a49603edd795d8611"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
Variables</h2></td></tr>
<tr class="memitem:aaba981327e880390aeb45f944469be71"><td class="memItemLeft" align="right" valign="top"><a id="aaba981327e880390aeb45f944469be71"></a>
static const unsigned&#160;</td><td class="memItemRight" valign="bottom"><b>BufferSize</b> = 47 + 256</td></tr>
<tr class="separator:aaba981327e880390aeb45f944469be71"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1a7e8fb6a4048b2793d272b383111309"><td class="memItemLeft" align="right" valign="top"><a id="a1a7e8fb6a4048b2793d272b383111309"></a>
static const int&#160;</td><td class="memItemRight" valign="bottom"><b>BlockSize100k</b> = 9</td></tr>
<tr class="separator:a1a7e8fb6a4048b2793d272b383111309"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaba981327e880390aeb45f944469be71"><td class="memItemLeft" align="right" valign="top"><a id="aaba981327e880390aeb45f944469be71"></a>
static const unsigned&#160;</td><td class="memItemRight" valign="bottom"><b>BufferSize</b> = 47 + 256</td></tr>
<tr class="separator:aaba981327e880390aeb45f944469be71"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ada8cb24898e6c81020f494dbdc438ec9"><td class="memItemLeft" align="right" valign="top"><a id="ada8cb24898e6c81020f494dbdc438ec9"></a>
constexpr <a class="el" href="a00839.html">all_range</a>&#160;</td><td class="memItemRight" valign="bottom"><b>all</b> {}</td></tr>
<tr class="separator:ada8cb24898e6c81020f494dbdc438ec9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac4bdb5919b69453de8a723476cb21157"><td class="memItemLeft" align="right" valign="top"><a id="ac4bdb5919b69453de8a723476cb21157"></a>
const std::regex&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00079.html#ac4bdb5919b69453de8a723476cb21157">default_split</a> = std::regex(&quot;+&quot;)</td></tr>
<tr class="memdesc:ac4bdb5919b69453de8a723476cb21157"><td class="mdescLeft">&#160;</td><td class="mdescRight">Split on white spaces by default. <br /></td></tr>
<tr class="separator:ac4bdb5919b69453de8a723476cb21157"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Utility functions for c++. </p>
</div><h2 class="groupheader">Enumeration Type Documentation</h2>
<a id="af2481a377dd3823a98547966b7ce7f70"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af2481a377dd3823a98547966b7ce7f70">&#9670;&nbsp;</a></span>ZipMode</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="a00079.html#af2481a377dd3823a98547966b7ce7f70">fifr::util::ZipMode</a></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">strong</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Selection of an internal or external compressor. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="af2481a377dd3823a98547966b7ce7f70a06b9281e396db002010bde1de57262eb"></a>Auto&#160;</td><td class="fielddoc"><p>Automatically select the compressor. </p>
<p>If the correct compression library is available, choose that library. Otherwise choose an external compression tool </p>
</td></tr>
<tr><td class="fieldname"><a id="af2481a377dd3823a98547966b7ce7f70aafbf0897a5a83fdd873dfb032ec695d3"></a>Internal&#160;</td><td class="fielddoc"><p>Always use the linked compression library (if available). </p>
</td></tr>
<tr><td class="fieldname"><a id="af2481a377dd3823a98547966b7ce7f70ab206a1b4ea1097761f78e8876f6da779"></a>External&#160;</td><td class="fielddoc"><p>Always use the external compression tool. </p>
</td></tr>
</table>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="a768ab27dcecf1b581afb1816220dfd53"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a768ab27dcecf1b581afb1816220dfd53">&#9670;&nbsp;</a></span>escape_shell_argument()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string fifr::util::escape_shell_argument </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>arg</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Quote a string for being passed as a shell argument. </p>
<p>Replace all single quotes by '\'' and enclose the whole string within single quotes. </p>

</div>
</div>
<a id="ab85f8d0d402de83302c77b45a93d2d2d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab85f8d0d402de83302c77b45a93d2d2d">&#9670;&nbsp;</a></span>indices()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename C , typename  = typename std::enable_if&lt;traits::has_size&lt;C&gt;::value&gt;&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">auto fifr::util::indices </td>
          <td>(</td>
          <td class="paramtype">C const &amp;&#160;</td>
          <td class="paramname"><em>cont</em></td><td>)</td>
          <td> -&gt; range_proxy&lt;decltype(cont.size())&gt;
</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Return range over the valid indices of a container. </p>
<p>This requires the container to implement a <code>size()</code> method. </p>

</div>
</div>
<a id="a70b39361cae719a25356d0565c23582f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a70b39361cae719a25356d0565c23582f">&#9670;&nbsp;</a></span>join()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename... Args&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">std::string fifr::util::join </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>separator</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Args &amp;&amp;...&#160;</td>
          <td class="paramname"><em>args</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><a class="el" href="a00803.html" title="Join operator. ">Join</a> a fixed number of objects. </p>
<p>All objects are converted to <code>std::string</code> using <code><a class="el" href="a00079.html#a2571be8e8b55e880f6c251f93bbf1d97" title="Generic conversion function. ">fifr::util::convert</a></code> before being joined.</p>
<dl class="section warning"><dt>Warning</dt><dd>In contrast to other <code>join</code> functions, the separator is the <em>first</em> argument. </dd></dl>

</div>
</div>
<a id="a2bdff2715e924516df9cc786e65d248e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2bdff2715e924516df9cc786e65d248e">&#9670;&nbsp;</a></span>make_auto_tuple()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename... Args&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00631.html">AutoTuple</a>&lt;Args...&gt;::type fifr::util::make_auto_tuple </td>
          <td>(</td>
          <td class="paramtype">Args &amp;&amp;...&#160;</td>
          <td class="paramname"><em>args</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Return the arguments as value, pair or tuple. </p>
<p>The type of the return value depends on the number of type arguments:</p>
<ul>
<li>if one return the plain argument</li>
<li>if two return a std::pair</li>
<li>otherwise return a std::tuple </li>
</ul>

</div>
</div>
<a id="a28a41e2b56c30668238b0015371f3d72"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a28a41e2b56c30668238b0015371f3d72">&#9670;&nbsp;</a></span>open_by_extension()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::unique_ptr&lt; std::streambuf &gt; fifr::util::open_by_extension </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::ios::openmode&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00079.html#af2481a377dd3823a98547966b7ce7f70">ZipMode</a>&#160;</td>
          <td class="paramname"><em>zipmode</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Open a streambuf depending on the file extension. </p>
<p>This function detects the compression type of a file automatically and chooses the appropriate compressor.</p>
<ul>
<li><code>.gz</code> zlib (gzip/zcat)</li>
<li><code>.bz2</code> bzip2 (bzip2/bzcat)</li>
<li><code>.xz</code> xz (xz/xzcat) </li>
</ul>

</div>
</div>
<a id="a965fae864f05b845194b24177ffd3a81"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a965fae864f05b845194b24177ffd3a81">&#9670;&nbsp;</a></span>scan()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename... Args&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00843.html">IteratorProxy</a>&lt;<a class="el" href="a00847.html">ScanIterator</a>&lt;Args...&gt; &gt; fifr::util::scan </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>str</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::regex &amp;&#160;</td>
          <td class="paramname"><em>re</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns an iterator proxy over all matches within a string. </p>
<p>The type of the returned iterator values depends on the number of type arguments:</p>
<ul>
<li>if the number of type arguments is 0, the returned values are strings consisting of the whole matches</li>
<li>if the number of type arguments is 1, the returned values are the first submatches converted to that type</li>
<li>if the number of type arguments is 2, the returned values are std::pair of of the first two submatches converted to those two types</li>
<li>if the number of type arguments is greater than two, the returned values are std::tuple if the submatches converted to the given types.</li>
</ul>
<p>Note that this function may fail if there are not enough submatches or a conversion fails. So you have to make sure that successful matches can always be converted to the given types.</p>
<div class="fragment"><div class="line">std::string str = <span class="stringliteral">&quot;a: 1,2\nb: 3,4\nc: 5,6\n&quot;</span>;</div><div class="line">std::regex re(<span class="stringliteral">&quot;(\\S+):\\s*(\\d+)\\s*,\\s*(\\d+)&quot;</span>);</div><div class="line"></div><div class="line"><span class="keyword">auto</span> r1 = <a class="code" href="a00079.html#a965fae864f05b845194b24177ffd3a81">scan</a>(str, re).collect();</div><div class="line">assert(r1[0] == <span class="stringliteral">&quot;a: 1,2&quot;</span>);</div><div class="line">assert(r1[1] == <span class="stringliteral">&quot;b: 3,4&quot;</span>);</div><div class="line">assert(r1[2] == <span class="stringliteral">&quot;c: 5,6&quot;</span>);</div><div class="line"></div><div class="line"><span class="keyword">auto</span> r2 = scan&lt;std::string&gt;(str, re).collect();</div><div class="line">assert(r2[0] == <span class="stringliteral">&quot;a&quot;</span>);</div><div class="line">assert(r2[1] == <span class="stringliteral">&quot;b&quot;</span>);</div><div class="line">assert(r2[2] == <span class="stringliteral">&quot;c&quot;</span>);</div><div class="line"></div><div class="line"><span class="keyword">auto</span> r3 = scan&lt;std::string,int&gt;(str, re).collect();</div><div class="line">assert(r3[0].first == <span class="stringliteral">&quot;a&quot;</span>);</div><div class="line">assert(r3[0].second == 1);</div><div class="line">assert(r3[1].first == <span class="stringliteral">&quot;b&quot;</span>);</div><div class="line">assert(r3[1].second == 3);</div><div class="line">assert(r3[2].first == <span class="stringliteral">&quot;c&quot;</span>);</div><div class="line">assert(r3[2].second == 5);</div><div class="line"></div><div class="line"><span class="keyword">auto</span> r4 = scan&lt;std::string,int,int&gt;(str, re).collect();</div><div class="line">assert(r4[0] == std::make_tuple(<span class="stringliteral">&quot;a&quot;</span>, 1, 2));</div><div class="line">assert(r4[1] == std::make_tuple(<span class="stringliteral">&quot;b&quot;</span>, 3, 4));</div><div class="line">assert(r4[2] == std::make_tuple(<span class="stringliteral">&quot;c&quot;</span>, 5, 6));</div></div><!-- fragment --> 
</div>
</div>
<a id="a3093afe9b956797b3ce3fb1191b21409"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3093afe9b956797b3ce3fb1191b21409">&#9670;&nbsp;</a></span>scan_matches()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00843.html">IteratorProxy</a>&lt; std::sregex_iterator &gt; fifr::util::scan_matches </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>str</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::regex &amp;&#160;</td>
          <td class="paramname"><em>re</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns an iterator proxy over all matches within a string. </p>
<p>This function should be used within a for loop. </p>

</div>
</div>
<a id="a39ff18b164b8ad8bea4f1844059fdcae"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a39ff18b164b8ad8bea4f1844059fdcae">&#9670;&nbsp;</a></span>split() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::tuple&lt; Args... &gt; fifr::util::split </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>str</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::regex &amp;&#160;</td>
          <td class="paramname"><em>re</em> = <code><a class="el" href="a00079.html#ac4bdb5919b69453de8a723476cb21157">default_split</a></code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Return an iterator proxy of parts of a split string. </p>
<p>Split a string and return casted results as tuple.</p>
<p>Split a string into N parts.</p>
<p>The string is split in exactly N parts. The last part contains the rest of the string. If there are too few parts, the remaining parts are empty strings.</p>
<p>The result types must implement a <code><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a>&lt;std::string, T&gt;</code> trait. </p>

</div>
</div>
<a id="a4fb84c855978698dbdb2d7d834c5935e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4fb84c855978698dbdb2d7d834c5935e">&#9670;&nbsp;</a></span>split() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename... Args&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void fifr::util::split </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>str</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::regex &amp;&#160;</td>
          <td class="paramname"><em>re</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Args &amp;...&#160;</td>
          <td class="paramname"><em>args</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Split a string and cast results to appropriate types. </p>
<p>The result variables must implement a <code><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a>&lt;std::string, T&gt;</code> trait. </p>

</div>
</div>
<a id="a5080ec6002a4cb7180a8f758a10a9797"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5080ec6002a4cb7180a8f758a10a9797">&#9670;&nbsp;</a></span>splitv()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::vector&lt; T &gt; fifr::util::splitv </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>str</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::regex &amp;&#160;</td>
          <td class="paramname"><em>re</em> = <code><a class="el" href="a00079.html#ac4bdb5919b69453de8a723476cb21157">default_split</a></code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Return a split string as a vector. </p>
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Aug 6 2018 13:22:44 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00631.html.















































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>fifr::util: fifr::util::AutoTuple&lt; Args &gt; Struct Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>fifr</b></li><li class="navelem"><a class="el" href="a00079.html">util</a></li><li class="navelem"><a class="el" href="a00631.html">AutoTuple</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a>  </div>
  <div class="headertitle">
<div class="title">fifr::util::AutoTuple&lt; Args &gt; Struct Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Trait for returning tuple, pair or value depending on the number of type arguments.  
 <a href="a00631.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00008_source.html">AutoTuple.hxx</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a128ec7c89c8a49b8c20634781cad1843"><td class="memItemLeft" align="right" valign="top"><a id="a128ec7c89c8a49b8c20634781cad1843"></a>
typedef std::tuple&lt; Args... &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>type</b></td></tr>
<tr class="separator:a128ec7c89c8a49b8c20634781cad1843"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;typename... Args&gt;<br />
struct fifr::util::AutoTuple&lt; Args &gt;</h3>

<p>Trait for returning tuple, pair or value depending on the number of type arguments. </p>
<p>If the number of type arguments is 1, the returned type is the type itself. If the number of type arguments is 2, the returned type is a pair of these types. Otherwise the returned type is a tuple of these types. </p>
</div><hr/>The documentation for this struct was generated from the following file:<ul>
<li>src/fifr/util/<a class="el" href="a00008_source.html">AutoTuple.hxx</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Aug 6 2018 13:22:44 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00651.html.































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>fifr::util: fifr::util::InputAutoZipStream Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>fifr</b></li><li class="navelem"><a class="el" href="a00079.html">util</a></li><li class="navelem"><a class="el" href="a00651.html">InputAutoZipStream</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">fifr::util::InputAutoZipStream Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>A file stream that automatically decompresses files.  
 <a href="a00651.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00014_source.html">AutoZipStream.hxx</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for fifr::util::InputAutoZipStream:</div>
<div class="dyncontent">
 <div class="center">
  <img src="a00651.png" usemap="#fifr::util::InputAutoZipStream_map" alt=""/>
  <map id="fifr::util::InputAutoZipStream_map" name="fifr::util::InputAutoZipStream_map">
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a22b2b1643ed61f964016b270cbd945dd"><td class="memItemLeft" align="right" valign="top"><a id="a22b2b1643ed61f964016b270cbd945dd"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>InputAutoZipStream</b> (<a class="el" href="a00079.html#af2481a377dd3823a98547966b7ce7f70">ZipMode</a> zipmode=<a class="el" href="a00079.html#af2481a377dd3823a98547966b7ce7f70a06b9281e396db002010bde1de57262eb">ZipMode::Auto</a>, const <a class="el" href="a00079.html#ab35030b49111e5496edbd06a4b568435">open_streambuf</a> &amp;open=<a class="el" href="a00079.html#a28a41e2b56c30668238b0015371f3d72">open_by_extension</a>)</td></tr>
<tr class="separator:a22b2b1643ed61f964016b270cbd945dd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a89d61c589674c1a85dec6f746745f230"><td class="memItemLeft" align="right" valign="top"><a id="a89d61c589674c1a85dec6f746745f230"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>InputAutoZipStream</b> (const std::string &amp;name, std::ios::openmode op_mode=std::ios::in, <a class="el" href="a00079.html#af2481a377dd3823a98547966b7ce7f70">ZipMode</a> zipmode=<a class="el" href="a00079.html#af2481a377dd3823a98547966b7ce7f70a06b9281e396db002010bde1de57262eb">ZipMode::Auto</a>, const <a class="el" href="a00079.html#ab35030b49111e5496edbd06a4b568435">open_streambuf</a> &amp;open=<a class="el" href="a00079.html#a28a41e2b56c30668238b0015371f3d72">open_by_extension</a>)</td></tr>
<tr class="separator:a89d61c589674c1a85dec6f746745f230"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acdea92340998ee760e3eb9d6304ef0c9"><td class="memItemLeft" align="right" valign="top"><a id="acdea92340998ee760e3eb9d6304ef0c9"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>InputAutoZipStream</b> (<a class="el" href="a00651.html">InputAutoZipStream</a> &amp;&amp;s)</td></tr>
<tr class="separator:acdea92340998ee760e3eb9d6304ef0c9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8fd7d4543f493b38bc7481ce95570325"><td class="memItemLeft" align="right" valign="top"><a id="a8fd7d4543f493b38bc7481ce95570325"></a>
<a class="el" href="a00651.html">InputAutoZipStream</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator=</b> (<a class="el" href="a00651.html">InputAutoZipStream</a> &amp;&amp;s)</td></tr>
<tr class="separator:a8fd7d4543f493b38bc7481ce95570325"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2ca97054a607c2331fc8816f507f9036"><td class="memItemLeft" align="right" valign="top"><a id="a2ca97054a607c2331fc8816f507f9036"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>open</b> (const std::string &amp;name, std::ios_base::openmode op_mode=std::ios::in)</td></tr>
<tr class="separator:a2ca97054a607c2331fc8816f507f9036"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>A file stream that automatically decompresses files. </p>
<p>This stream detects the compression type of a file automatically and chooses the appropriate compressor.</p>
<p>The default implementation chooses the compressor based on the file extension:</p>
<ul>
<li><code>.gz</code> zlib (gzip/zcat)</li>
<li><code>.bz2</code> bzip2 (bzip2/bzcat)</li>
<li><code>.xz</code> xz (xz/xzcat) </li>
</ul>
</div><hr/>The documentation for this class was generated from the following files:<ul>
<li>src/fifr/util/<a class="el" href="a00014_source.html">AutoZipStream.hxx</a></li>
<li>src/fifr/util/AutoZipStream.cxx</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Aug 6 2018 13:22:44 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00651.png.

cannot compute difference between binary files

Added 3rdparty/util/doc/html/a00655.html.































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>fifr::util: fifr::util::OutputAutoZipStream Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>fifr</b></li><li class="navelem"><a class="el" href="a00079.html">util</a></li><li class="navelem"><a class="el" href="a00655.html">OutputAutoZipStream</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">fifr::util::OutputAutoZipStream Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>A file stream that automatically compresses files.  
 <a href="a00655.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00014_source.html">AutoZipStream.hxx</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for fifr::util::OutputAutoZipStream:</div>
<div class="dyncontent">
 <div class="center">
  <img src="a00655.png" usemap="#fifr::util::OutputAutoZipStream_map" alt=""/>
  <map id="fifr::util::OutputAutoZipStream_map" name="fifr::util::OutputAutoZipStream_map">
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a57021df22054248b7d8bf392036abc45"><td class="memItemLeft" align="right" valign="top"><a id="a57021df22054248b7d8bf392036abc45"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>OutputAutoZipStream</b> (<a class="el" href="a00079.html#af2481a377dd3823a98547966b7ce7f70">ZipMode</a> zipmode=<a class="el" href="a00079.html#af2481a377dd3823a98547966b7ce7f70a06b9281e396db002010bde1de57262eb">ZipMode::Auto</a>, const <a class="el" href="a00079.html#ab35030b49111e5496edbd06a4b568435">open_streambuf</a> &amp;open=<a class="el" href="a00079.html#a28a41e2b56c30668238b0015371f3d72">open_by_extension</a>)</td></tr>
<tr class="separator:a57021df22054248b7d8bf392036abc45"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a533d52cb7e40d5a3626797c5c1431ecf"><td class="memItemLeft" align="right" valign="top"><a id="a533d52cb7e40d5a3626797c5c1431ecf"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>OutputAutoZipStream</b> (const std::string &amp;name, std::ios::openmode op_mode=std::ios::out, <a class="el" href="a00079.html#af2481a377dd3823a98547966b7ce7f70">ZipMode</a> zipmode=<a class="el" href="a00079.html#af2481a377dd3823a98547966b7ce7f70a06b9281e396db002010bde1de57262eb">ZipMode::Auto</a>, const <a class="el" href="a00079.html#ab35030b49111e5496edbd06a4b568435">open_streambuf</a> &amp;open=<a class="el" href="a00079.html#a28a41e2b56c30668238b0015371f3d72">open_by_extension</a>)</td></tr>
<tr class="separator:a533d52cb7e40d5a3626797c5c1431ecf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a00ea10338a89170be2c8c08ccefd3b97"><td class="memItemLeft" align="right" valign="top"><a id="a00ea10338a89170be2c8c08ccefd3b97"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>OutputAutoZipStream</b> (<a class="el" href="a00655.html">OutputAutoZipStream</a> &amp;&amp;s)</td></tr>
<tr class="separator:a00ea10338a89170be2c8c08ccefd3b97"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2884ba57405aac3780525acfe1da358a"><td class="memItemLeft" align="right" valign="top"><a id="a2884ba57405aac3780525acfe1da358a"></a>
<a class="el" href="a00655.html">OutputAutoZipStream</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator=</b> (<a class="el" href="a00655.html">OutputAutoZipStream</a> &amp;&amp;s)</td></tr>
<tr class="separator:a2884ba57405aac3780525acfe1da358a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8f3cf7b82a751c958b9625a05ac79751"><td class="memItemLeft" align="right" valign="top"><a id="a8f3cf7b82a751c958b9625a05ac79751"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>open</b> (const std::string &amp;name, std::ios_base::openmode op_mode=std::ios::out)</td></tr>
<tr class="separator:a8f3cf7b82a751c958b9625a05ac79751"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>A file stream that automatically compresses files. </p>
<p>This stream detects the compression type of a file automatically and chooses the appropriate compressor.</p>
<p>The default implementation chooses the compressor based on the file extension:</p>
<ul>
<li><code>.gz</code> zlib (gzip/zcat)</li>
<li><code>.bz2</code> bzip2 (bzip2/bzcat)</li>
<li><code>.xz</code> xz (xz/xzcat) </li>
</ul>
</div><hr/>The documentation for this class was generated from the following files:<ul>
<li>src/fifr/util/<a class="el" href="a00014_source.html">AutoZipStream.hxx</a></li>
<li>src/fifr/util/AutoZipStream.cxx</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Aug 6 2018 13:22:44 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00655.png.

cannot compute difference between binary files

Added 3rdparty/util/doc/html/a00663.html.























































































































































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>fifr::util: fifr::util::BZip2StreamBuf Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>fifr</b></li><li class="navelem"><a class="el" href="a00079.html">util</a></li><li class="navelem"><a class="el" href="a00663.html">BZip2StreamBuf</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">fifr::util::BZip2StreamBuf Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Stream buffer for bzip2ed files.  
 <a href="a00663.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00020_source.html">BZip2Stream.hxx</a>&gt;</code></p>

<p>Inherits streambuf.</p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a1e3446e302e276c7c366cd5f30dbce1b"><td class="memItemLeft" align="right" valign="top"><a id="a1e3446e302e276c7c366cd5f30dbce1b"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00663.html#a1e3446e302e276c7c366cd5f30dbce1b">BZip2StreamBuf</a> ()</td></tr>
<tr class="memdesc:a1e3446e302e276c7c366cd5f30dbce1b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor. <br /></td></tr>
<tr class="separator:a1e3446e302e276c7c366cd5f30dbce1b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9ff9e4ac10619304d9762e82a472347d"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00663.html#a9ff9e4ac10619304d9762e82a472347d">~BZip2StreamBuf</a> ()</td></tr>
<tr class="memdesc:a9ff9e4ac10619304d9762e82a472347d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor.  <a href="#a9ff9e4ac10619304d9762e82a472347d">More...</a><br /></td></tr>
<tr class="separator:a9ff9e4ac10619304d9762e82a472347d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9ebe88a8f0e41f3d7b797e673820b262"><td class="memItemLeft" align="right" valign="top"><a id="a9ebe88a8f0e41f3d7b797e673820b262"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00663.html#a9ebe88a8f0e41f3d7b797e673820b262">is_open</a> () const</td></tr>
<tr class="memdesc:a9ebe88a8f0e41f3d7b797e673820b262"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns true if the associated file is opened. <br /></td></tr>
<tr class="separator:a9ebe88a8f0e41f3d7b797e673820b262"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aafdc74695793e2884eca22d6a5cc8493"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00663.html">BZip2StreamBuf</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00663.html#aafdc74695793e2884eca22d6a5cc8493">open</a> (const std::string &amp;fname, std::ios_base::openmode op_mode)</td></tr>
<tr class="memdesc:aafdc74695793e2884eca22d6a5cc8493"><td class="mdescLeft">&#160;</td><td class="mdescRight">Opens a file.  <a href="#aafdc74695793e2884eca22d6a5cc8493">More...</a><br /></td></tr>
<tr class="separator:aafdc74695793e2884eca22d6a5cc8493"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad43c71a8d5642691ef77c890950a9cd8"><td class="memItemLeft" align="right" valign="top"><a id="ad43c71a8d5642691ef77c890950a9cd8"></a>
<a class="el" href="a00663.html">BZip2StreamBuf</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00663.html#ad43c71a8d5642691ef77c890950a9cd8">close</a> ()</td></tr>
<tr class="memdesc:ad43c71a8d5642691ef77c890950a9cd8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Closes the associated file. <br /></td></tr>
<tr class="separator:ad43c71a8d5642691ef77c890950a9cd8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aab28117dbe63e0e924147246042ed33f"><td class="memItemLeft" align="right" valign="top"><a id="aab28117dbe63e0e924147246042ed33f"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>overflow</b> (int c=EOF)</td></tr>
<tr class="separator:aab28117dbe63e0e924147246042ed33f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a56f99e8efb1ffb177570369ec4fa3ff7"><td class="memItemLeft" align="right" valign="top"><a id="a56f99e8efb1ffb177570369ec4fa3ff7"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>underflow</b> ()</td></tr>
<tr class="separator:a56f99e8efb1ffb177570369ec4fa3ff7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac1a9813adb9dbb1edef7afaed23de0fb"><td class="memItemLeft" align="right" valign="top"><a id="ac1a9813adb9dbb1edef7afaed23de0fb"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>sync</b> ()</td></tr>
<tr class="separator:ac1a9813adb9dbb1edef7afaed23de0fb"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Stream buffer for bzip2ed files. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a9ff9e4ac10619304d9762e82a472347d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9ff9e4ac10619304d9762e82a472347d">&#9670;&nbsp;</a></span>~BZip2StreamBuf()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">fifr::util::BZip2StreamBuf::~BZip2StreamBuf </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Destructor. </p>
<p>Closes the stream. </p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="aafdc74695793e2884eca22d6a5cc8493"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aafdc74695793e2884eca22d6a5cc8493">&#9670;&nbsp;</a></span>open()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00663.html">BZip2StreamBuf</a> * fifr::util::BZip2StreamBuf::open </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>fname</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::ios_base::openmode&#160;</td>
          <td class="paramname"><em>op_mode</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Opens a file. </p>
<p>A gzipped file may neither be opened read-write (at the same time) nor in append-mode.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">fname</td><td>The name of the file to open. </td></tr>
    <tr><td class="paramname">op_mode</td><td>The mode in which the file should be opened.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><b>this</b> on success, <code>nullptr</code> otherwise. </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>src/fifr/util/<a class="el" href="a00020_source.html">BZip2Stream.hxx</a></li>
<li>src/fifr/util/BZip2Stream.cxx</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Aug 6 2018 13:22:44 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00707.html.



























































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>fifr::util: fifr::util::Convert&lt; To, From, Enable &gt; Struct Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>fifr</b></li><li class="navelem"><a class="el" href="a00079.html">util</a></li><li class="navelem"><a class="el" href="a00707.html">Convert</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">fifr::util::Convert&lt; To, From, Enable &gt; Struct Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Trait for converting two types.  
 <a href="a00707.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00029_source.html">Convert.hxx</a>&gt;</code></p>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;typename To, typename From, typename Enable = void&gt;<br />
struct fifr::util::Convert&lt; To, From, Enable &gt;</h3>

<p>Trait for converting two types. </p>
<p>A specialization is expected to implement a single static function <code>convert</code> </p><pre class="fragment">static To convert(From x);</pre> </div><hr/>The documentation for this struct was generated from the following file:<ul>
<li>src/fifr/util/<a class="el" href="a00029_source.html">Convert.hxx</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Aug 6 2018 13:22:44 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00711.html.













































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>fifr::util: fifr::util::Convert&lt; T, T &gt; Struct Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>fifr</b></li><li class="navelem"><a class="el" href="a00079.html">util</a></li><li class="navelem"><a class="el" href="a00711.html">Convert&lt; T, T &gt;</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-static-methods">Static Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">fifr::util::Convert&lt; T, T &gt; Struct Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Conversion from some type to itself.  
 <a href="a00711.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00029_source.html">Convert.hxx</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a9b8832db4a12d02bd861713113008790"><td class="memItemLeft" align="right" valign="top"><a id="a9b8832db4a12d02bd861713113008790"></a>
static T&#160;</td><td class="memItemRight" valign="bottom"><b>convert</b> (T &amp;&amp;x)</td></tr>
<tr class="separator:a9b8832db4a12d02bd861713113008790"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;typename T&gt;<br />
struct fifr::util::Convert&lt; T, T &gt;</h3>

<p>Conversion from some type to itself. </p>
</div><hr/>The documentation for this struct was generated from the following file:<ul>
<li>src/fifr/util/<a class="el" href="a00029_source.html">Convert.hxx</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Aug 6 2018 13:22:44 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00715.html.



















































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>fifr::util: fifr::util::Convert&lt; std::string, std::string &gt; Struct Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>fifr</b></li><li class="navelem"><a class="el" href="a00079.html">util</a></li><li class="navelem"><a class="el" href="a00715.html">Convert&lt; std::string, std::string &gt;</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-static-methods">Static Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">fifr::util::Convert&lt; std::string, std::string &gt; Struct Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Special self conversions to remove ambiguity.  
 <a href="a00715.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00029_source.html">Convert.hxx</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:ab5f5d62ed4f1d523fa7493ae2da4a384"><td class="memItemLeft" align="right" valign="top"><a id="ab5f5d62ed4f1d523fa7493ae2da4a384"></a>
static std::string&#160;</td><td class="memItemRight" valign="bottom"><b>convert</b> (const std::string &amp;x)</td></tr>
<tr class="separator:ab5f5d62ed4f1d523fa7493ae2da4a384"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1d15d61bf06ed8bacfdbc8d30450452c"><td class="memItemLeft" align="right" valign="top"><a id="a1d15d61bf06ed8bacfdbc8d30450452c"></a>
static std::string&#160;</td><td class="memItemRight" valign="bottom"><b>convert</b> (std::string &amp;&amp;x)</td></tr>
<tr class="separator:a1d15d61bf06ed8bacfdbc8d30450452c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;&gt;<br />
struct fifr::util::Convert&lt; std::string, std::string &gt;</h3>

<p>Special self conversions to remove ambiguity. </p>
</div><hr/>The documentation for this struct was generated from the following file:<ul>
<li>src/fifr/util/<a class="el" href="a00029_source.html">Convert.hxx</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Aug 6 2018 13:22:44 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00719.html.













































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>fifr::util: fifr::util::Convert&lt; std::string, T, decltype((void) std::to_string(std::declval&lt; T &gt;()))&gt; Struct Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>fifr</b></li><li class="navelem"><a class="el" href="a00079.html">util</a></li><li class="navelem"><a class="el" href="a00719.html">Convert&lt; std::string, T, decltype((void) std::to_string(std::declval&lt; T &gt;()))&gt;</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-static-methods">Static Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">fifr::util::Convert&lt; std::string, T, decltype((void) std::to_string(std::declval&lt; T &gt;()))&gt; Struct Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> to <code>std::string</code> using <code>std::to_string</code>.  
 <a href="a00719.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00029_source.html">Convert.hxx</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a7d07c09879e86e8c2495781a1e902838"><td class="memItemLeft" align="right" valign="top"><a id="a7d07c09879e86e8c2495781a1e902838"></a>
static std::string&#160;</td><td class="memItemRight" valign="bottom"><b>convert</b> (const T &amp;x)</td></tr>
<tr class="separator:a7d07c09879e86e8c2495781a1e902838"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;typename T&gt;<br />
struct fifr::util::Convert&lt; std::string, T, decltype((void) std::to_string(std::declval&lt; T &gt;()))&gt;</h3>

<p><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> to <code>std::string</code> using <code>std::to_string</code>. </p>
</div><hr/>The documentation for this struct was generated from the following file:<ul>
<li>src/fifr/util/<a class="el" href="a00029_source.html">Convert.hxx</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Aug 6 2018 13:22:44 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00723.html.













































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>fifr::util: fifr::util::Convert&lt; std::string, T, decltype((void) std::declval&lt; const T &amp; &gt;().to_string())&gt; Struct Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>fifr</b></li><li class="navelem"><a class="el" href="a00079.html">util</a></li><li class="navelem"><a class="el" href="a00723.html">Convert&lt; std::string, T, decltype((void) std::declval&lt; const T &amp; &gt;().to_string())&gt;</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-static-methods">Static Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">fifr::util::Convert&lt; std::string, T, decltype((void) std::declval&lt; const T &amp; &gt;().to_string())&gt; Struct Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> to <code>std::string</code> using <code>this.to_string()</code>.  
 <a href="a00723.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00029_source.html">Convert.hxx</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a92767b7d9bd133f1ab2526f68c287eb6"><td class="memItemLeft" align="right" valign="top"><a id="a92767b7d9bd133f1ab2526f68c287eb6"></a>
static std::string&#160;</td><td class="memItemRight" valign="bottom"><b>convert</b> (const T &amp;x)</td></tr>
<tr class="separator:a92767b7d9bd133f1ab2526f68c287eb6"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;typename T&gt;<br />
struct fifr::util::Convert&lt; std::string, T, decltype((void) std::declval&lt; const T &amp; &gt;().to_string())&gt;</h3>

<p><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> to <code>std::string</code> using <code>this.to_string()</code>. </p>
</div><hr/>The documentation for this struct was generated from the following file:<ul>
<li>src/fifr/util/<a class="el" href="a00029_source.html">Convert.hxx</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Aug 6 2018 13:22:44 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00727.html.













































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>fifr::util: fifr::util::Convert&lt; To, std::string &gt; Struct Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>fifr</b></li><li class="navelem"><a class="el" href="a00079.html">util</a></li><li class="navelem"><a class="el" href="a00727.html">Convert&lt; To, std::string &gt;</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-static-methods">Static Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">fifr::util::Convert&lt; To, std::string &gt; Struct Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> <code>std::string</code> to something else converting through <code>const char*</code>.  
 <a href="a00727.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00029_source.html">Convert.hxx</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a11a687322d75bf03f584de31301f37d1"><td class="memItemLeft" align="right" valign="top"><a id="a11a687322d75bf03f584de31301f37d1"></a>
static To&#160;</td><td class="memItemRight" valign="bottom"><b>convert</b> (const std::string &amp;str)</td></tr>
<tr class="separator:a11a687322d75bf03f584de31301f37d1"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;typename To&gt;<br />
struct fifr::util::Convert&lt; To, std::string &gt;</h3>

<p><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> <code>std::string</code> to something else converting through <code>const char*</code>. </p>
</div><hr/>The documentation for this struct was generated from the following file:<ul>
<li>src/fifr/util/<a class="el" href="a00029_source.html">Convert.hxx</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Aug 6 2018 13:22:44 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00731.html.













































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>fifr::util: fifr::util::Convert&lt; To, char[N]&gt; Struct Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>fifr</b></li><li class="navelem"><a class="el" href="a00079.html">util</a></li><li class="navelem"><a class="el" href="a00731.html">Convert&lt; To, char[N]&gt;</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-static-methods">Static Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">fifr::util::Convert&lt; To, char[N]&gt; Struct Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> <code>char[N]</code> to something else converting through <code>const char*</code>.  
 <a href="a00731.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00029_source.html">Convert.hxx</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a74164ff7253f0f3e2ca3f468660fdca7"><td class="memItemLeft" align="right" valign="top"><a id="a74164ff7253f0f3e2ca3f468660fdca7"></a>
static To&#160;</td><td class="memItemRight" valign="bottom"><b>convert</b> (const char *str)</td></tr>
<tr class="separator:a74164ff7253f0f3e2ca3f468660fdca7"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;typename To, std::size_t N&gt;<br />
struct fifr::util::Convert&lt; To, char[N]&gt;</h3>

<p><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> <code>char[N]</code> to something else converting through <code>const char*</code>. </p>
</div><hr/>The documentation for this struct was generated from the following file:<ul>
<li>src/fifr/util/<a class="el" href="a00029_source.html">Convert.hxx</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Aug 6 2018 13:22:44 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00735.html.













































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>fifr::util: fifr::util::Convert&lt; std::string, char * &gt; Struct Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>fifr</b></li><li class="navelem"><a class="el" href="a00079.html">util</a></li><li class="navelem"><a class="el" href="a00735.html">Convert&lt; std::string, char * &gt;</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-static-methods">Static Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">fifr::util::Convert&lt; std::string, char * &gt; Struct Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> <code>char*</code> to `std::string.  
 <a href="a00735.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00029_source.html">Convert.hxx</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a360acf78ec836d3f602c420a69dca337"><td class="memItemLeft" align="right" valign="top"><a id="a360acf78ec836d3f602c420a69dca337"></a>
static std::string&#160;</td><td class="memItemRight" valign="bottom"><b>convert</b> (const char *str)</td></tr>
<tr class="separator:a360acf78ec836d3f602c420a69dca337"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;&gt;<br />
struct fifr::util::Convert&lt; std::string, char * &gt;</h3>

<p><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> <code>char*</code> to `std::string. </p>
</div><hr/>The documentation for this struct was generated from the following file:<ul>
<li>src/fifr/util/<a class="el" href="a00029_source.html">Convert.hxx</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Aug 6 2018 13:22:44 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00739.html.













































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>fifr::util: fifr::util::Convert&lt; int, char * &gt; Struct Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>fifr</b></li><li class="navelem"><a class="el" href="a00079.html">util</a></li><li class="navelem"><a class="el" href="a00739.html">Convert&lt; int, char * &gt;</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-static-methods">Static Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">fifr::util::Convert&lt; int, char * &gt; Struct Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> <code>char*</code> to <code>int</code>.  
 <a href="a00739.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00029_source.html">Convert.hxx</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:aa86addcccccc0525f4cf0a84348293b9"><td class="memItemLeft" align="right" valign="top"><a id="aa86addcccccc0525f4cf0a84348293b9"></a>
static int&#160;</td><td class="memItemRight" valign="bottom"><b>convert</b> (const char *str)</td></tr>
<tr class="separator:aa86addcccccc0525f4cf0a84348293b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;&gt;<br />
struct fifr::util::Convert&lt; int, char * &gt;</h3>

<p><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> <code>char*</code> to <code>int</code>. </p>
</div><hr/>The documentation for this struct was generated from the following file:<ul>
<li>src/fifr/util/<a class="el" href="a00029_source.html">Convert.hxx</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Aug 6 2018 13:22:44 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00743.html.













































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>fifr::util: fifr::util::Convert&lt; long, char * &gt; Struct Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>fifr</b></li><li class="navelem"><a class="el" href="a00079.html">util</a></li><li class="navelem"><a class="el" href="a00743.html">Convert&lt; long, char * &gt;</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-static-methods">Static Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">fifr::util::Convert&lt; long, char * &gt; Struct Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> <code>char*</code> to <code>long</code>.  
 <a href="a00743.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00029_source.html">Convert.hxx</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a35ff4581a1bbeec29b77da50a0d53263"><td class="memItemLeft" align="right" valign="top"><a id="a35ff4581a1bbeec29b77da50a0d53263"></a>
static long&#160;</td><td class="memItemRight" valign="bottom"><b>convert</b> (const char *str)</td></tr>
<tr class="separator:a35ff4581a1bbeec29b77da50a0d53263"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;&gt;<br />
struct fifr::util::Convert&lt; long, char * &gt;</h3>

<p><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> <code>char*</code> to <code>long</code>. </p>
</div><hr/>The documentation for this struct was generated from the following file:<ul>
<li>src/fifr/util/<a class="el" href="a00029_source.html">Convert.hxx</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Aug 6 2018 13:22:44 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00747.html.













































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>fifr::util: fifr::util::Convert&lt; long long, char * &gt; Struct Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>fifr</b></li><li class="navelem"><a class="el" href="a00079.html">util</a></li><li class="navelem"><a class="el" href="a00747.html">Convert&lt; long long, char * &gt;</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-static-methods">Static Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">fifr::util::Convert&lt; long long, char * &gt; Struct Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> <code>char*</code> to <code>long long</code>.  
 <a href="a00747.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00029_source.html">Convert.hxx</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:abeeac9d373239831dc304e3bfde3113e"><td class="memItemLeft" align="right" valign="top"><a id="abeeac9d373239831dc304e3bfde3113e"></a>
static long long&#160;</td><td class="memItemRight" valign="bottom"><b>convert</b> (const char *str)</td></tr>
<tr class="separator:abeeac9d373239831dc304e3bfde3113e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;&gt;<br />
struct fifr::util::Convert&lt; long long, char * &gt;</h3>

<p><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> <code>char*</code> to <code>long long</code>. </p>
</div><hr/>The documentation for this struct was generated from the following file:<ul>
<li>src/fifr/util/<a class="el" href="a00029_source.html">Convert.hxx</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Aug 6 2018 13:22:44 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00751.html.













































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>fifr::util: fifr::util::Convert&lt; unsigned int, char * &gt; Struct Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>fifr</b></li><li class="navelem"><a class="el" href="a00079.html">util</a></li><li class="navelem"><a class="el" href="a00751.html">Convert&lt; unsigned int, char * &gt;</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-static-methods">Static Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">fifr::util::Convert&lt; unsigned int, char * &gt; Struct Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> <code>char*</code> to <code>unsigned int</code>.  
 <a href="a00751.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00029_source.html">Convert.hxx</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a0052fe33d28c1ec778abe937261e7225"><td class="memItemLeft" align="right" valign="top"><a id="a0052fe33d28c1ec778abe937261e7225"></a>
static unsigned int&#160;</td><td class="memItemRight" valign="bottom"><b>convert</b> (const char *str)</td></tr>
<tr class="separator:a0052fe33d28c1ec778abe937261e7225"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;&gt;<br />
struct fifr::util::Convert&lt; unsigned int, char * &gt;</h3>

<p><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> <code>char*</code> to <code>unsigned int</code>. </p>
</div><hr/>The documentation for this struct was generated from the following file:<ul>
<li>src/fifr/util/<a class="el" href="a00029_source.html">Convert.hxx</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Aug 6 2018 13:22:44 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00755.html.













































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>fifr::util: fifr::util::Convert&lt; unsigned long, char * &gt; Struct Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>fifr</b></li><li class="navelem"><a class="el" href="a00079.html">util</a></li><li class="navelem"><a class="el" href="a00755.html">Convert&lt; unsigned long, char * &gt;</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-static-methods">Static Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">fifr::util::Convert&lt; unsigned long, char * &gt; Struct Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> <code>char*</code> to <code>unsigned long</code>.  
 <a href="a00755.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00029_source.html">Convert.hxx</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a75a5069e514ae32b0d816e0300447789"><td class="memItemLeft" align="right" valign="top"><a id="a75a5069e514ae32b0d816e0300447789"></a>
static unsigned long&#160;</td><td class="memItemRight" valign="bottom"><b>convert</b> (const char *str)</td></tr>
<tr class="separator:a75a5069e514ae32b0d816e0300447789"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;&gt;<br />
struct fifr::util::Convert&lt; unsigned long, char * &gt;</h3>

<p><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> <code>char*</code> to <code>unsigned long</code>. </p>
</div><hr/>The documentation for this struct was generated from the following file:<ul>
<li>src/fifr/util/<a class="el" href="a00029_source.html">Convert.hxx</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Aug 6 2018 13:22:44 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00759.html.













































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>fifr::util: fifr::util::Convert&lt; unsigned long long, char * &gt; Struct Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>fifr</b></li><li class="navelem"><a class="el" href="a00079.html">util</a></li><li class="navelem"><a class="el" href="a00759.html">Convert&lt; unsigned long long, char * &gt;</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-static-methods">Static Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">fifr::util::Convert&lt; unsigned long long, char * &gt; Struct Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> <code>char*</code> to <code>unsigned long long</code>.  
 <a href="a00759.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00029_source.html">Convert.hxx</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a66479c53e5bd32c503f8e76df26e3ffb"><td class="memItemLeft" align="right" valign="top"><a id="a66479c53e5bd32c503f8e76df26e3ffb"></a>
static unsigned long long&#160;</td><td class="memItemRight" valign="bottom"><b>convert</b> (const char *str)</td></tr>
<tr class="separator:a66479c53e5bd32c503f8e76df26e3ffb"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;&gt;<br />
struct fifr::util::Convert&lt; unsigned long long, char * &gt;</h3>

<p><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> <code>char*</code> to <code>unsigned long long</code>. </p>
</div><hr/>The documentation for this struct was generated from the following file:<ul>
<li>src/fifr/util/<a class="el" href="a00029_source.html">Convert.hxx</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Aug 6 2018 13:22:44 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00763.html.













































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>fifr::util: fifr::util::Convert&lt; float, char * &gt; Struct Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>fifr</b></li><li class="navelem"><a class="el" href="a00079.html">util</a></li><li class="navelem"><a class="el" href="a00763.html">Convert&lt; float, char * &gt;</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-static-methods">Static Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">fifr::util::Convert&lt; float, char * &gt; Struct Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> <code>char*</code> to <code>float</code>.  
 <a href="a00763.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00029_source.html">Convert.hxx</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a7137e8a3a923d72ccacb22958db5d7c4"><td class="memItemLeft" align="right" valign="top"><a id="a7137e8a3a923d72ccacb22958db5d7c4"></a>
static float&#160;</td><td class="memItemRight" valign="bottom"><b>convert</b> (const char *str)</td></tr>
<tr class="separator:a7137e8a3a923d72ccacb22958db5d7c4"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;&gt;<br />
struct fifr::util::Convert&lt; float, char * &gt;</h3>

<p><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> <code>char*</code> to <code>float</code>. </p>
</div><hr/>The documentation for this struct was generated from the following file:<ul>
<li>src/fifr/util/<a class="el" href="a00029_source.html">Convert.hxx</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Aug 6 2018 13:22:44 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00767.html.













































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>fifr::util: fifr::util::Convert&lt; double, char * &gt; Struct Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>fifr</b></li><li class="navelem"><a class="el" href="a00079.html">util</a></li><li class="navelem"><a class="el" href="a00767.html">Convert&lt; double, char * &gt;</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-static-methods">Static Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">fifr::util::Convert&lt; double, char * &gt; Struct Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> <code>char*</code> to <code>double</code>.  
 <a href="a00767.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00029_source.html">Convert.hxx</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a1d03437cae855816fcb2cde35caddc6d"><td class="memItemLeft" align="right" valign="top"><a id="a1d03437cae855816fcb2cde35caddc6d"></a>
static double&#160;</td><td class="memItemRight" valign="bottom"><b>convert</b> (const char *str)</td></tr>
<tr class="separator:a1d03437cae855816fcb2cde35caddc6d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;&gt;<br />
struct fifr::util::Convert&lt; double, char * &gt;</h3>

<p><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> <code>char*</code> to <code>double</code>. </p>
</div><hr/>The documentation for this struct was generated from the following file:<ul>
<li>src/fifr/util/<a class="el" href="a00029_source.html">Convert.hxx</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Aug 6 2018 13:22:44 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00771.html.













































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>fifr::util: fifr::util::Convert&lt; long double, char * &gt; Struct Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>fifr</b></li><li class="navelem"><a class="el" href="a00079.html">util</a></li><li class="navelem"><a class="el" href="a00771.html">Convert&lt; long double, char * &gt;</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-static-methods">Static Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">fifr::util::Convert&lt; long double, char * &gt; Struct Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> <code>char*</code> to <code>long double</code>.  
 <a href="a00771.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00029_source.html">Convert.hxx</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:abaa5ca9f6eb0290eb4018b67ff33240c"><td class="memItemLeft" align="right" valign="top"><a id="abaa5ca9f6eb0290eb4018b67ff33240c"></a>
static long double&#160;</td><td class="memItemRight" valign="bottom"><b>convert</b> (const char *str)</td></tr>
<tr class="separator:abaa5ca9f6eb0290eb4018b67ff33240c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;&gt;<br />
struct fifr::util::Convert&lt; long double, char * &gt;</h3>

<p><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> <code>char*</code> to <code>long double</code>. </p>
</div><hr/>The documentation for this struct was generated from the following file:<ul>
<li>src/fifr/util/<a class="el" href="a00029_source.html">Convert.hxx</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Aug 6 2018 13:22:44 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00779.html.















































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>fifr::util: fifr::util::Convert&lt; std::pair&lt; To1, To2 &gt;, std::pair&lt; From1, From2 &gt; &gt; Struct Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>fifr</b></li><li class="navelem"><a class="el" href="a00079.html">util</a></li><li class="navelem"><a class="el" href="a00779.html">Convert&lt; std::pair&lt; To1, To2 &gt;, std::pair&lt; From1, From2 &gt; &gt;</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-static-methods">Static Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">fifr::util::Convert&lt; std::pair&lt; To1, To2 &gt;, std::pair&lt; From1, From2 &gt; &gt; Struct Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> pair to another pair.  
 <a href="a00779.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00029_source.html">Convert.hxx</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a69fcec37c3251dec8945a1ed6a98b85a"><td class="memItemLeft" align="right" valign="top"><a id="a69fcec37c3251dec8945a1ed6a98b85a"></a>
static std::pair&lt; To1, To2 &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>convert</b> (const std::pair&lt; From1, From2 &gt; &amp;from)</td></tr>
<tr class="separator:a69fcec37c3251dec8945a1ed6a98b85a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;typename To1, typename To2, typename From1, typename From2&gt;<br />
struct fifr::util::Convert&lt; std::pair&lt; To1, To2 &gt;, std::pair&lt; From1, From2 &gt; &gt;</h3>

<p><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> pair to another pair. </p>
<p>This is done by converting each element. </p>
</div><hr/>The documentation for this struct was generated from the following file:<ul>
<li>src/fifr/util/<a class="el" href="a00029_source.html">Convert.hxx</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Aug 6 2018 13:22:44 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00783.html.















































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>fifr::util: fifr::util::Convert&lt; std::tuple&lt; To... &gt;, std::tuple&lt; From... &gt; &gt; Struct Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>fifr</b></li><li class="navelem"><a class="el" href="a00079.html">util</a></li><li class="navelem"><a class="el" href="a00783.html">Convert&lt; std::tuple&lt; To... &gt;, std::tuple&lt; From... &gt; &gt;</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-static-methods">Static Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">fifr::util::Convert&lt; std::tuple&lt; To... &gt;, std::tuple&lt; From... &gt; &gt; Struct Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> tuple to another tuple.  
 <a href="a00783.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00029_source.html">Convert.hxx</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a97d1487fb5bb7b1dbe4a02cde9494b79"><td class="memItemLeft" align="right" valign="top"><a id="a97d1487fb5bb7b1dbe4a02cde9494b79"></a>
static std::tuple&lt; To... &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>convert</b> (const std::tuple&lt; From... &gt; &amp;args)</td></tr>
<tr class="separator:a97d1487fb5bb7b1dbe4a02cde9494b79"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;typename... To, typename... From&gt;<br />
struct fifr::util::Convert&lt; std::tuple&lt; To... &gt;, std::tuple&lt; From... &gt; &gt;</h3>

<p><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> tuple to another tuple. </p>
<p>This is done by converting each element. </p>
</div><hr/>The documentation for this struct was generated from the following file:<ul>
<li>src/fifr/util/<a class="el" href="a00029_source.html">Convert.hxx</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Aug 6 2018 13:22:44 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00787.html.















































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>fifr::util: fifr::util::Convert&lt; std::array&lt; To, N &gt;, std::array&lt; From, N &gt; &gt; Struct Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>fifr</b></li><li class="navelem"><a class="el" href="a00079.html">util</a></li><li class="navelem"><a class="el" href="a00787.html">Convert&lt; std::array&lt; To, N &gt;, std::array&lt; From, N &gt; &gt;</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-static-methods">Static Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">fifr::util::Convert&lt; std::array&lt; To, N &gt;, std::array&lt; From, N &gt; &gt; Struct Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> array to another array.  
 <a href="a00787.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00029_source.html">Convert.hxx</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a4065ad957f9feba1629e4d6f51272dc4"><td class="memItemLeft" align="right" valign="top"><a id="a4065ad957f9feba1629e4d6f51272dc4"></a>
static std::array&lt; To, N &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>convert</b> (const std::array&lt; From, N &gt; &amp;args)</td></tr>
<tr class="separator:a4065ad957f9feba1629e4d6f51272dc4"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;typename To, typename From, std::size_t N&gt;<br />
struct fifr::util::Convert&lt; std::array&lt; To, N &gt;, std::array&lt; From, N &gt; &gt;</h3>

<p><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> array to another array. </p>
<p>This is done by converting each element. </p>
</div><hr/>The documentation for this struct was generated from the following file:<ul>
<li>src/fifr/util/<a class="el" href="a00029_source.html">Convert.hxx</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Aug 6 2018 13:22:44 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00791.html.















































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>fifr::util: fifr::util::Convert&lt; std::vector&lt; To &gt;, std::vector&lt; From &gt; &gt; Struct Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>fifr</b></li><li class="navelem"><a class="el" href="a00079.html">util</a></li><li class="navelem"><a class="el" href="a00791.html">Convert&lt; std::vector&lt; To &gt;, std::vector&lt; From &gt; &gt;</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-static-methods">Static Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">fifr::util::Convert&lt; std::vector&lt; To &gt;, std::vector&lt; From &gt; &gt; Struct Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> vector to another vector.  
 <a href="a00791.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00029_source.html">Convert.hxx</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a95c01380ef9969feb4812ff8fdd24e17"><td class="memItemLeft" align="right" valign="top"><a id="a95c01380ef9969feb4812ff8fdd24e17"></a>
static std::vector&lt; To &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>convert</b> (const std::vector&lt; From &gt; &amp;args)</td></tr>
<tr class="separator:a95c01380ef9969feb4812ff8fdd24e17"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;typename To, typename From&gt;<br />
struct fifr::util::Convert&lt; std::vector&lt; To &gt;, std::vector&lt; From &gt; &gt;</h3>

<p><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> vector to another vector. </p>
<p>This is done by converting each element. </p>
</div><hr/>The documentation for this struct was generated from the following file:<ul>
<li>src/fifr/util/<a class="el" href="a00029_source.html">Convert.hxx</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Aug 6 2018 13:22:44 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00799.html.

























































































































































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>fifr::util: fifr::util::GZipStreamBuf Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>fifr</b></li><li class="navelem"><a class="el" href="a00079.html">util</a></li><li class="navelem"><a class="el" href="a00799.html">GZipStreamBuf</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">fifr::util::GZipStreamBuf Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Stream buffer for gzipped files.  
 <a href="a00799.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00035_source.html">GZipStream.hxx</a>&gt;</code></p>

<p>Inherits streambuf.</p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ae59f9cd9bcf226c4654cc58f6aeda2fb"><td class="memItemLeft" align="right" valign="top"><a id="ae59f9cd9bcf226c4654cc58f6aeda2fb"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00799.html#ae59f9cd9bcf226c4654cc58f6aeda2fb">GZipStreamBuf</a> ()</td></tr>
<tr class="memdesc:ae59f9cd9bcf226c4654cc58f6aeda2fb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor. <br /></td></tr>
<tr class="separator:ae59f9cd9bcf226c4654cc58f6aeda2fb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3d3601c783a0b972293fa1a36db9e39b"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00799.html#a3d3601c783a0b972293fa1a36db9e39b">~GZipStreamBuf</a> ()</td></tr>
<tr class="memdesc:a3d3601c783a0b972293fa1a36db9e39b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor.  <a href="#a3d3601c783a0b972293fa1a36db9e39b">More...</a><br /></td></tr>
<tr class="separator:a3d3601c783a0b972293fa1a36db9e39b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9087cf9a619e738806251df7d7d57f05"><td class="memItemLeft" align="right" valign="top"><a id="a9087cf9a619e738806251df7d7d57f05"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00799.html#a9087cf9a619e738806251df7d7d57f05">is_open</a> () const</td></tr>
<tr class="memdesc:a9087cf9a619e738806251df7d7d57f05"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns true if the associated file is opened. <br /></td></tr>
<tr class="separator:a9087cf9a619e738806251df7d7d57f05"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a01e310fee815cbcb6994af835155cd6b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00799.html">GZipStreamBuf</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00799.html#a01e310fee815cbcb6994af835155cd6b">open</a> (const std::string &amp;fname, std::ios_base::openmode op_mode)</td></tr>
<tr class="memdesc:a01e310fee815cbcb6994af835155cd6b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Opens a file.  <a href="#a01e310fee815cbcb6994af835155cd6b">More...</a><br /></td></tr>
<tr class="separator:a01e310fee815cbcb6994af835155cd6b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ada54dcff985e2b6ac280b52a4d237f30"><td class="memItemLeft" align="right" valign="top"><a id="ada54dcff985e2b6ac280b52a4d237f30"></a>
<a class="el" href="a00799.html">GZipStreamBuf</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00799.html#ada54dcff985e2b6ac280b52a4d237f30">close</a> ()</td></tr>
<tr class="memdesc:ada54dcff985e2b6ac280b52a4d237f30"><td class="mdescLeft">&#160;</td><td class="mdescRight">Closes the associated file. <br /></td></tr>
<tr class="separator:ada54dcff985e2b6ac280b52a4d237f30"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aadc9c93aa47f83413cfefa97eb8c09da"><td class="memItemLeft" align="right" valign="top"><a id="aadc9c93aa47f83413cfefa97eb8c09da"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>overflow</b> (int c=EOF)</td></tr>
<tr class="separator:aadc9c93aa47f83413cfefa97eb8c09da"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a73da681094eefeaaa2e71e04fd7b50c3"><td class="memItemLeft" align="right" valign="top"><a id="a73da681094eefeaaa2e71e04fd7b50c3"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>underflow</b> ()</td></tr>
<tr class="separator:a73da681094eefeaaa2e71e04fd7b50c3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a14348167c6e16e1b851f212d379ef0ce"><td class="memItemLeft" align="right" valign="top"><a id="a14348167c6e16e1b851f212d379ef0ce"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>sync</b> ()</td></tr>
<tr class="separator:a14348167c6e16e1b851f212d379ef0ce"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Stream buffer for gzipped files. </p>
<p>This class is based on <em>gzstream</em>. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a3d3601c783a0b972293fa1a36db9e39b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3d3601c783a0b972293fa1a36db9e39b">&#9670;&nbsp;</a></span>~GZipStreamBuf()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">fifr::util::GZipStreamBuf::~GZipStreamBuf </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Destructor. </p>
<p>Closes the stream. </p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a01e310fee815cbcb6994af835155cd6b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a01e310fee815cbcb6994af835155cd6b">&#9670;&nbsp;</a></span>open()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00799.html">GZipStreamBuf</a> * fifr::util::GZipStreamBuf::open </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>fname</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::ios_base::openmode&#160;</td>
          <td class="paramname"><em>op_mode</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Opens a file. </p>
<p>A gzipped file may neither be opened read-write (at the same time) nor in append-mode.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">fname</td><td>The name of the file to open. </td></tr>
    <tr><td class="paramname">op_mode</td><td>The mode in which the file should be opened.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><b>this</b> on success, <code>nullptr</code> otherwise. </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>src/fifr/util/<a class="el" href="a00035_source.html">GZipStream.hxx</a></li>
<li>src/fifr/util/GZipStream.cxx</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Aug 6 2018 13:22:44 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00803.html.





































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>fifr::util: fifr::util::Join&lt; C &gt; Class Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>fifr</b></li><li class="navelem"><a class="el" href="a00079.html">util</a></li><li class="navelem"><a class="el" href="a00803.html">Join</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#friends">Friends</a>  </div>
  <div class="headertitle">
<div class="title">fifr::util::Join&lt; C &gt; Class Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="a00803.html" title="Join operator. ">Join</a> operator.  
 <a href="a00803.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00038_source.html">Join.hxx</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ad00065b035eb0075d14b2ffdafae4af0"><td class="memItemLeft" align="right" valign="top"><a id="ad00065b035eb0075d14b2ffdafae4af0"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>Join</b> (const C &amp;container, const std::string &amp;sep)</td></tr>
<tr class="separator:ad00065b035eb0075d14b2ffdafae4af0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abf006a658165863097ae0d90305aea8f"><td class="memItemLeft" align="right" valign="top"><a id="abf006a658165863097ae0d90305aea8f"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>Join</b> (<a class="el" href="a00803.html">Join</a> &amp;&amp;)=delete</td></tr>
<tr class="separator:abf006a658165863097ae0d90305aea8f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a880b4e67a063e99c25c90b6e762b1412"><td class="memItemLeft" align="right" valign="top"><a id="a880b4e67a063e99c25c90b6e762b1412"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>Join</b> (const <a class="el" href="a00803.html">Join</a> &amp;)=delete</td></tr>
<tr class="separator:a880b4e67a063e99c25c90b6e762b1412"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ade5d141100a32bce37fe34d2bb57eaa3"><td class="memItemLeft" align="right" valign="top"><a id="ade5d141100a32bce37fe34d2bb57eaa3"></a>
<a class="el" href="a00803.html">Join</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator=</b> (<a class="el" href="a00803.html">Join</a> &amp;&amp;)=delete</td></tr>
<tr class="separator:ade5d141100a32bce37fe34d2bb57eaa3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a10de59a40cabbf48eb148cd809d92a6e"><td class="memItemLeft" align="right" valign="top"><a id="a10de59a40cabbf48eb148cd809d92a6e"></a>
<a class="el" href="a00803.html">Join</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator=</b> (const <a class="el" href="a00803.html">Join</a> &amp;)=delete</td></tr>
<tr class="separator:a10de59a40cabbf48eb148cd809d92a6e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7464b23617dfcfef5e1fa85b9eae8116"><td class="memItemLeft" align="right" valign="top"><a id="a7464b23617dfcfef5e1fa85b9eae8116"></a>
std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00803.html#a7464b23617dfcfef5e1fa85b9eae8116">str</a> () const</td></tr>
<tr class="memdesc:a7464b23617dfcfef5e1fa85b9eae8116"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the joined string. <br /></td></tr>
<tr class="separator:a7464b23617dfcfef5e1fa85b9eae8116"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4f01c74fed30efd239a266586d297b57"><td class="memItemLeft" align="right" valign="top"><a id="a4f01c74fed30efd239a266586d297b57"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>operator std::string</b> () const</td></tr>
<tr class="separator:a4f01c74fed30efd239a266586d297b57"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a>
Friends</h2></td></tr>
<tr class="memitem:a183002cf4728b5e69ec86ee4ec183b15"><td class="memTemplParams" colspan="2"><a id="a183002cf4728b5e69ec86ee4ec183b15"></a>
template&lt;class C_ &gt; </td></tr>
<tr class="memitem:a183002cf4728b5e69ec86ee4ec183b15"><td class="memTemplItemLeft" align="right" valign="top">std::ostream &amp;&#160;</td><td class="memTemplItemRight" valign="bottom"><b>operator&lt;&lt;</b> (std::ostream &amp;out, const <a class="el" href="a00803.html">Join</a>&lt; C_ &gt; &amp;<a class="el" href="a00079.html#a4549a4c462e3314bd2dae501eae9d9c9">join</a>)</td></tr>
<tr class="separator:a183002cf4728b5e69ec86ee4ec183b15"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;class C&gt;<br />
class fifr::util::Join&lt; C &gt;</h3>

<p><a class="el" href="a00803.html" title="Join operator. ">Join</a> operator. </p>
<p>This object can be converted to a string, a C-string or written to an output stream. </p>
</div><hr/>The documentation for this class was generated from the following file:<ul>
<li>src/fifr/util/<a class="el" href="a00038_source.html">Join.hxx</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Aug 6 2018 13:22:44 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00807.html.











































































































































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>fifr::util: fifr::util::Logger Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>fifr</b></li><li class="navelem"><a class="el" href="a00079.html">util</a></li><li class="navelem"><a class="el" href="a00807.html">Logger</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-attribs">Static Public Attributes</a>  </div>
  <div class="headertitle">
<div class="title">fifr::util::Logger Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>A simple <a class="el" href="a00807.html" title="A simple Logger. ">Logger</a>.  
 <a href="a00807.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00044_source.html">Logger.hxx</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a9555e8f1c7ca07556a63f116bd218834"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00807.html#a9555e8f1c7ca07556a63f116bd218834">Level</a> { <br />
&#160;&#160;<a class="el" href="a00807.html#a9555e8f1c7ca07556a63f116bd218834aa603905470e2a5b8c13e96b579ef0dba">Level::Debug</a>, 
<a class="el" href="a00807.html#a9555e8f1c7ca07556a63f116bd218834a4059b0251f66a18cb56f544728796875">Level::Info</a>, 
<a class="el" href="a00807.html#a9555e8f1c7ca07556a63f116bd218834a56525ae64d370c0b448ac0d60710ef17">Level::Warn</a>, 
<a class="el" href="a00807.html#a9555e8f1c7ca07556a63f116bd218834a902b0d55fddef6f8d651fe1035b7d4bd">Level::Error</a>, 
<br />
&#160;&#160;<a class="el" href="a00807.html#a9555e8f1c7ca07556a63f116bd218834a6adf97f83acf6453d4a6a4b1070f3754">Level::None</a>
<br />
 }</td></tr>
<tr class="separator:a9555e8f1c7ca07556a63f116bd218834"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:aef0c29ee85018832f80d1ad4773bc947"><td class="memItemLeft" align="right" valign="top"><a id="aef0c29ee85018832f80d1ad4773bc947"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>Logger</b> (std::ostream &amp;out)</td></tr>
<tr class="separator:aef0c29ee85018832f80d1ad4773bc947"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8a58644fa2cfc3f62a0e18bab9024de7"><td class="memItemLeft" align="right" valign="top"><a id="a8a58644fa2cfc3f62a0e18bab9024de7"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00807.html#a8a58644fa2cfc3f62a0e18bab9024de7">set_level</a> (<a class="el" href="a00807.html#a9555e8f1c7ca07556a63f116bd218834">Level</a> <a class="el" href="a00807.html#a892a53699376fb17b4a4ab2a2cad7f30">level</a>)</td></tr>
<tr class="memdesc:a8a58644fa2cfc3f62a0e18bab9024de7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the log level. <br /></td></tr>
<tr class="separator:a8a58644fa2cfc3f62a0e18bab9024de7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a892a53699376fb17b4a4ab2a2cad7f30"><td class="memItemLeft" align="right" valign="top"><a id="a892a53699376fb17b4a4ab2a2cad7f30"></a>
<a class="el" href="a00807.html#a9555e8f1c7ca07556a63f116bd218834">Level</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00807.html#a892a53699376fb17b4a4ab2a2cad7f30">level</a> () const</td></tr>
<tr class="memdesc:a892a53699376fb17b4a4ab2a2cad7f30"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return current log level. <br /></td></tr>
<tr class="separator:a892a53699376fb17b4a4ab2a2cad7f30"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a33a9b7d3fe7f3e297418e7fcdcab7897"><td class="memItemLeft" align="right" valign="top"><a id="a33a9b7d3fe7f3e297418e7fcdcab7897"></a>
LogStream&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00807.html#a33a9b7d3fe7f3e297418e7fcdcab7897">info</a> ()</td></tr>
<tr class="memdesc:a33a9b7d3fe7f3e297418e7fcdcab7897"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return info log stream. <br /></td></tr>
<tr class="separator:a33a9b7d3fe7f3e297418e7fcdcab7897"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a37b1e9b994f7a2bdf6643d8039b5a7ad"><td class="memItemLeft" align="right" valign="top"><a id="a37b1e9b994f7a2bdf6643d8039b5a7ad"></a>
LogStream&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00807.html#a37b1e9b994f7a2bdf6643d8039b5a7ad">warn</a> ()</td></tr>
<tr class="memdesc:a37b1e9b994f7a2bdf6643d8039b5a7ad"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return warning log stream. <br /></td></tr>
<tr class="separator:a37b1e9b994f7a2bdf6643d8039b5a7ad"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5f8579e7b396077c71633b95fd6cf380"><td class="memItemLeft" align="right" valign="top"><a id="a5f8579e7b396077c71633b95fd6cf380"></a>
LogStream&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00807.html#a5f8579e7b396077c71633b95fd6cf380">error</a> ()</td></tr>
<tr class="memdesc:a5f8579e7b396077c71633b95fd6cf380"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return error log stream. <br /></td></tr>
<tr class="separator:a5f8579e7b396077c71633b95fd6cf380"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5ac53bb43fb6bfdadeb637e86b15e31e"><td class="memItemLeft" align="right" valign="top"><a id="a5ac53bb43fb6bfdadeb637e86b15e31e"></a>
LogStream&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00807.html#a5ac53bb43fb6bfdadeb637e86b15e31e">debug</a> ()</td></tr>
<tr class="memdesc:a5ac53bb43fb6bfdadeb637e86b15e31e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return debug log stream. <br /></td></tr>
<tr class="separator:a5ac53bb43fb6bfdadeb637e86b15e31e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-attribs"></a>
Static Public Attributes</h2></td></tr>
<tr class="memitem:aca74256e77b99d8c22681a03a9b19832"><td class="memItemLeft" align="right" valign="top"><a id="aca74256e77b99d8c22681a03a9b19832"></a>
static <a class="el" href="a00807.html">Logger</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00807.html#aca74256e77b99d8c22681a03a9b19832">default_logger</a></td></tr>
<tr class="memdesc:aca74256e77b99d8c22681a03a9b19832"><td class="mdescLeft">&#160;</td><td class="mdescRight">The global default logger. <br /></td></tr>
<tr class="separator:aca74256e77b99d8c22681a03a9b19832"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>A simple <a class="el" href="a00807.html" title="A simple Logger. ">Logger</a>. </p>
</div><h2 class="groupheader">Member Enumeration Documentation</h2>
<a id="a9555e8f1c7ca07556a63f116bd218834"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9555e8f1c7ca07556a63f116bd218834">&#9670;&nbsp;</a></span>Level</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="a00807.html#a9555e8f1c7ca07556a63f116bd218834">fifr::util::Logger::Level</a></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">strong</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a9555e8f1c7ca07556a63f116bd218834aa603905470e2a5b8c13e96b579ef0dba"></a>Debug&#160;</td><td class="fielddoc"><p>Show debug messages and everything else. </p>
</td></tr>
<tr><td class="fieldname"><a id="a9555e8f1c7ca07556a63f116bd218834a4059b0251f66a18cb56f544728796875"></a>Info&#160;</td><td class="fielddoc"><p>Show info, warning and error messages. </p>
</td></tr>
<tr><td class="fieldname"><a id="a9555e8f1c7ca07556a63f116bd218834a56525ae64d370c0b448ac0d60710ef17"></a>Warn&#160;</td><td class="fielddoc"><p>Show warning and error messages. </p>
</td></tr>
<tr><td class="fieldname"><a id="a9555e8f1c7ca07556a63f116bd218834a902b0d55fddef6f8d651fe1035b7d4bd"></a>Error&#160;</td><td class="fielddoc"><p>Show error messages. </p>
</td></tr>
<tr><td class="fieldname"><a id="a9555e8f1c7ca07556a63f116bd218834a6adf97f83acf6453d4a6a4b1070f3754"></a>None&#160;</td><td class="fielddoc"><p>Show nothing. </p>
</td></tr>
</table>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>src/fifr/util/<a class="el" href="a00044_source.html">Logger.hxx</a></li>
<li>src/fifr/util/Logger.cxx</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Aug 6 2018 13:22:44 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00839.html.





















































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>fifr::util: fifr::util::all_range Struct Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>fifr</b></li><li class="navelem"><a class="el" href="a00079.html">util</a></li><li class="navelem"><a class="el" href="a00839.html">all_range</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">fifr::util::all_range Struct Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Range covering all elements.  
 <a href="a00839.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00047_source.html">Range.hxx</a>&gt;</code></p>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Range covering all elements. </p>
</div><hr/>The documentation for this struct was generated from the following file:<ul>
<li>src/fifr/util/<a class="el" href="a00047_source.html">Range.hxx</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Aug 6 2018 13:22:44 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00843.html.

































































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>fifr::util: fifr::util::IteratorProxy&lt; It_ &gt; Class Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>fifr</b></li><li class="navelem"><a class="el" href="a00079.html">util</a></li><li class="navelem"><a class="el" href="a00843.html">IteratorProxy</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">fifr::util::IteratorProxy&lt; It_ &gt; Class Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Proxy providing access to some iterators.  
 <a href="a00843.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00047_source.html">Range.hxx</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:adbc399dd923cf29e482cc9cd4ede5561"><td class="memItemLeft" align="right" valign="top"><a id="adbc399dd923cf29e482cc9cd4ede5561"></a>
typedef It_&#160;</td><td class="memItemRight" valign="bottom"><b>iterator</b></td></tr>
<tr class="separator:adbc399dd923cf29e482cc9cd4ede5561"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a97988d9e557a0e693a2b07d51ae3f9f6"><td class="memItemLeft" align="right" valign="top"><a id="a97988d9e557a0e693a2b07d51ae3f9f6"></a>
typedef iterator::value_type&#160;</td><td class="memItemRight" valign="bottom"><b>value_type</b></td></tr>
<tr class="separator:a97988d9e557a0e693a2b07d51ae3f9f6"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a384032b881a35d1db3c6b2e4b25e3364"><td class="memItemLeft" align="right" valign="top"><a id="a384032b881a35d1db3c6b2e4b25e3364"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>IteratorProxy</b> (iterator &amp;&amp;start, iterator &amp;&amp;end)</td></tr>
<tr class="separator:a384032b881a35d1db3c6b2e4b25e3364"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2790ee8fefc5128da493aef026bd8033"><td class="memItemLeft" align="right" valign="top"><a id="a2790ee8fefc5128da493aef026bd8033"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>IteratorProxy</b> (const <a class="el" href="a00843.html">IteratorProxy</a> &amp;)=delete</td></tr>
<tr class="separator:a2790ee8fefc5128da493aef026bd8033"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a766f7b75d29544608397ba0e6f22748f"><td class="memItemLeft" align="right" valign="top"><a id="a766f7b75d29544608397ba0e6f22748f"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>IteratorProxy</b> (<a class="el" href="a00843.html">IteratorProxy</a> &amp;&amp;)=delete</td></tr>
<tr class="separator:a766f7b75d29544608397ba0e6f22748f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9f1a5eae05dd9bcadaec5960b29702fb"><td class="memItemLeft" align="right" valign="top"><a id="a9f1a5eae05dd9bcadaec5960b29702fb"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>operator=</b> (const <a class="el" href="a00843.html">IteratorProxy</a> &amp;)=delete</td></tr>
<tr class="separator:a9f1a5eae05dd9bcadaec5960b29702fb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a211dc418a9d1478ad6f6238c14c7ab97"><td class="memItemLeft" align="right" valign="top"><a id="a211dc418a9d1478ad6f6238c14c7ab97"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>operator=</b> (<a class="el" href="a00843.html">IteratorProxy</a> &amp;&amp;)=delete</td></tr>
<tr class="separator:a211dc418a9d1478ad6f6238c14c7ab97"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a23a68e4c9f47469a096ec2cc8361fa4a"><td class="memItemLeft" align="right" valign="top"><a id="a23a68e4c9f47469a096ec2cc8361fa4a"></a>
iterator&#160;</td><td class="memItemRight" valign="bottom"><b>begin</b> () const</td></tr>
<tr class="separator:a23a68e4c9f47469a096ec2cc8361fa4a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a55ad1a7d9a43372c9156d364e9b55317"><td class="memItemLeft" align="right" valign="top"><a id="a55ad1a7d9a43372c9156d364e9b55317"></a>
iterator&#160;</td><td class="memItemRight" valign="bottom"><b>end</b> () const</td></tr>
<tr class="separator:a55ad1a7d9a43372c9156d364e9b55317"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1256f4f9987956a07dab9575212e3008"><td class="memTemplParams" colspan="2"><a id="a1256f4f9987956a07dab9575212e3008"></a>
template&lt;typename T &gt; </td></tr>
<tr class="memitem:a1256f4f9987956a07dab9575212e3008"><td class="memTemplItemLeft" align="right" valign="top">&#160;</td><td class="memTemplItemRight" valign="bottom"><b>operator std::vector&lt; T &gt;</b> () const &amp;</td></tr>
<tr class="separator:a1256f4f9987956a07dab9575212e3008"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7ea0821bba158f381781853d5661f58a"><td class="memTemplParams" colspan="2"><a id="a7ea0821bba158f381781853d5661f58a"></a>
template&lt;typename T &gt; </td></tr>
<tr class="memitem:a7ea0821bba158f381781853d5661f58a"><td class="memTemplItemLeft" align="right" valign="top">&#160;</td><td class="memTemplItemRight" valign="bottom"><b>operator std::vector&lt; T &gt;</b> () &amp;&amp;</td></tr>
<tr class="separator:a7ea0821bba158f381781853d5661f58a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a651810d68c74a1e4f541901e20205e80"><td class="memItemLeft" align="right" valign="top"><a id="a651810d68c74a1e4f541901e20205e80"></a>
std::vector&lt; value_type &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>collect</b> () const &amp;</td></tr>
<tr class="separator:a651810d68c74a1e4f541901e20205e80"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aebff5f778adb60dc7604f63f1a12a76b"><td class="memItemLeft" align="right" valign="top"><a id="aebff5f778adb60dc7604f63f1a12a76b"></a>
std::vector&lt; value_type &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>collect</b> () &amp;&amp;</td></tr>
<tr class="separator:aebff5f778adb60dc7604f63f1a12a76b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;typename It_&gt;<br />
class fifr::util::IteratorProxy&lt; It_ &gt;</h3>

<p>Proxy providing access to some iterators. </p>
</div><hr/>The documentation for this class was generated from the following file:<ul>
<li>src/fifr/util/<a class="el" href="a00047_source.html">Range.hxx</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Aug 6 2018 13:22:44 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00847.html.



















































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>fifr::util: fifr::util::ScanIterator&lt; Args &gt; Class Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>fifr</b></li><li class="navelem"><a class="el" href="a00079.html">util</a></li><li class="navelem"><a class="el" href="a00847.html">ScanIterator</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">fifr::util::ScanIterator&lt; Args &gt; Class Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Iterator for matches of a scan operation.  
 <a href="a00847.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00053_source.html">Scan.hxx</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a00155e6cba315d2418f8dfaf1c6775d1"><td class="memItemLeft" align="right" valign="top"><a id="a00155e6cba315d2418f8dfaf1c6775d1"></a>
typedef std::sregex_iterator::difference_type&#160;</td><td class="memItemRight" valign="bottom"><b>difference_type</b></td></tr>
<tr class="separator:a00155e6cba315d2418f8dfaf1c6775d1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7b6fb3c9b847a2c3382f6225f27f0df8"><td class="memItemLeft" align="right" valign="top"><a id="a7b6fb3c9b847a2c3382f6225f27f0df8"></a>
typedef <a class="el" href="a00631.html">AutoTuple</a>&lt; Args... &gt;::type&#160;</td><td class="memItemRight" valign="bottom"><b>value_type</b></td></tr>
<tr class="separator:a7b6fb3c9b847a2c3382f6225f27f0df8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9df569c1bc0d41c18951a2691e76ef30"><td class="memItemLeft" align="right" valign="top"><a id="a9df569c1bc0d41c18951a2691e76ef30"></a>
typedef const value_type *&#160;</td><td class="memItemRight" valign="bottom"><b>pointer</b></td></tr>
<tr class="separator:a9df569c1bc0d41c18951a2691e76ef30"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac4a114a0177b3b6483d17ea34c7b486e"><td class="memItemLeft" align="right" valign="top"><a id="ac4a114a0177b3b6483d17ea34c7b486e"></a>
typedef const value_type &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>reference</b></td></tr>
<tr class="separator:ac4a114a0177b3b6483d17ea34c7b486e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9a4f8a8d63e39dfd5d4114785c90edcb"><td class="memItemLeft" align="right" valign="top"><a id="a9a4f8a8d63e39dfd5d4114785c90edcb"></a>
typedef std::forward_iterator_tag&#160;</td><td class="memItemRight" valign="bottom"><b>iterator_category</b></td></tr>
<tr class="separator:a9a4f8a8d63e39dfd5d4114785c90edcb"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a6e5a05bc67cfa15e4a3b511892d59f1a"><td class="memItemLeft" align="right" valign="top"><a id="a6e5a05bc67cfa15e4a3b511892d59f1a"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>ScanIterator</b> (std::sregex_iterator &amp;&amp;it)</td></tr>
<tr class="separator:a6e5a05bc67cfa15e4a3b511892d59f1a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aac3308fb493b34afdf79f5cad8a1ef88"><td class="memItemLeft" align="right" valign="top"><a id="aac3308fb493b34afdf79f5cad8a1ef88"></a>
value_type&#160;</td><td class="memItemRight" valign="bottom"><b>operator*</b> () const</td></tr>
<tr class="separator:aac3308fb493b34afdf79f5cad8a1ef88"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a061cdee706a68905064c98c8e2fc910c"><td class="memItemLeft" align="right" valign="top"><a id="a061cdee706a68905064c98c8e2fc910c"></a>
<a class="el" href="a00847.html">ScanIterator</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator++</b> ()</td></tr>
<tr class="separator:a061cdee706a68905064c98c8e2fc910c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3ad78d721feb0a48d87e734d731bac74"><td class="memItemLeft" align="right" valign="top"><a id="a3ad78d721feb0a48d87e734d731bac74"></a>
<a class="el" href="a00847.html">ScanIterator</a>&#160;</td><td class="memItemRight" valign="bottom"><b>operator++</b> (int)</td></tr>
<tr class="separator:a3ad78d721feb0a48d87e734d731bac74"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad4fc2b46323f3cf726899c9eb5c2e717"><td class="memItemLeft" align="right" valign="top"><a id="ad4fc2b46323f3cf726899c9eb5c2e717"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>operator==</b> (const <a class="el" href="a00847.html">ScanIterator</a> &amp;other) const</td></tr>
<tr class="separator:ad4fc2b46323f3cf726899c9eb5c2e717"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a489f94aa8f1fe25af5eed65019830948"><td class="memItemLeft" align="right" valign="top"><a id="a489f94aa8f1fe25af5eed65019830948"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>operator!=</b> (const <a class="el" href="a00847.html">ScanIterator</a> &amp;other) const</td></tr>
<tr class="separator:a489f94aa8f1fe25af5eed65019830948"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;typename... Args&gt;<br />
class fifr::util::ScanIterator&lt; Args &gt;</h3>

<p>Iterator for matches of a scan operation. </p>
<p>Elements of this operator are the submatches converted to types Args and returned as a tuple. </p>
</div><hr/>The documentation for this class was generated from the following file:<ul>
<li>src/fifr/util/<a class="el" href="a00053_source.html">Scan.hxx</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Aug 6 2018 13:22:44 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00851.html.



















































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>fifr::util: fifr::util::ScanIterator&lt;&gt; Class Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>fifr</b></li><li class="navelem"><a class="el" href="a00079.html">util</a></li><li class="navelem"><a class="el" href="a00851.html">ScanIterator&lt;&gt;</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">fifr::util::ScanIterator&lt;&gt; Class Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Full match scan iterator.  
 <a href="a00851.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00053_source.html">Scan.hxx</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:aad5dd00318ab27326b3ac08d69bfd661"><td class="memItemLeft" align="right" valign="top"><a id="aad5dd00318ab27326b3ac08d69bfd661"></a>
typedef std::sregex_iterator::difference_type&#160;</td><td class="memItemRight" valign="bottom"><b>difference_type</b></td></tr>
<tr class="separator:aad5dd00318ab27326b3ac08d69bfd661"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a10be5dcef0741fb5618a744c95068136"><td class="memItemLeft" align="right" valign="top"><a id="a10be5dcef0741fb5618a744c95068136"></a>
typedef std::string&#160;</td><td class="memItemRight" valign="bottom"><b>value_type</b></td></tr>
<tr class="separator:a10be5dcef0741fb5618a744c95068136"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aafd7aeb3ed51d750229a3f8d23dde2d5"><td class="memItemLeft" align="right" valign="top"><a id="aafd7aeb3ed51d750229a3f8d23dde2d5"></a>
typedef const std::string *&#160;</td><td class="memItemRight" valign="bottom"><b>pointer</b></td></tr>
<tr class="separator:aafd7aeb3ed51d750229a3f8d23dde2d5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1f151cc322a0db880e6b6bd0dbcdb396"><td class="memItemLeft" align="right" valign="top"><a id="a1f151cc322a0db880e6b6bd0dbcdb396"></a>
typedef const std::string &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>reference</b></td></tr>
<tr class="separator:a1f151cc322a0db880e6b6bd0dbcdb396"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afe5d2e2b2d3fb97cbccefab60c6a07c9"><td class="memItemLeft" align="right" valign="top"><a id="afe5d2e2b2d3fb97cbccefab60c6a07c9"></a>
typedef std::forward_iterator_tag&#160;</td><td class="memItemRight" valign="bottom"><b>iterator_category</b></td></tr>
<tr class="separator:afe5d2e2b2d3fb97cbccefab60c6a07c9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a6937359c201712c828cf51b742eaacba"><td class="memItemLeft" align="right" valign="top"><a id="a6937359c201712c828cf51b742eaacba"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>ScanIterator</b> (std::sregex_iterator &amp;&amp;it)</td></tr>
<tr class="separator:a6937359c201712c828cf51b742eaacba"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3a30ffaccbfa405abf6c0edb4d10a0c0"><td class="memItemLeft" align="right" valign="top"><a id="a3a30ffaccbfa405abf6c0edb4d10a0c0"></a>
value_type&#160;</td><td class="memItemRight" valign="bottom"><b>operator*</b> () const</td></tr>
<tr class="separator:a3a30ffaccbfa405abf6c0edb4d10a0c0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a37a8751222aa14425dea6372b2cc1670"><td class="memItemLeft" align="right" valign="top"><a id="a37a8751222aa14425dea6372b2cc1670"></a>
<a class="el" href="a00847.html">ScanIterator</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator++</b> ()</td></tr>
<tr class="separator:a37a8751222aa14425dea6372b2cc1670"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a92d9d8b388748bd200580287317e32b4"><td class="memItemLeft" align="right" valign="top"><a id="a92d9d8b388748bd200580287317e32b4"></a>
<a class="el" href="a00847.html">ScanIterator</a>&#160;</td><td class="memItemRight" valign="bottom"><b>operator++</b> (int)</td></tr>
<tr class="separator:a92d9d8b388748bd200580287317e32b4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae425d4090f3a0a60e582d4fa1b0c453c"><td class="memItemLeft" align="right" valign="top"><a id="ae425d4090f3a0a60e582d4fa1b0c453c"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>operator==</b> (const <a class="el" href="a00847.html">ScanIterator</a> &amp;other) const</td></tr>
<tr class="separator:ae425d4090f3a0a60e582d4fa1b0c453c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acad85dfc84f410dbbd66eea364b16206"><td class="memItemLeft" align="right" valign="top"><a id="acad85dfc84f410dbbd66eea364b16206"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>operator!=</b> (const <a class="el" href="a00847.html">ScanIterator</a> &amp;other) const</td></tr>
<tr class="separator:acad85dfc84f410dbbd66eea364b16206"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;&gt;<br />
class fifr::util::ScanIterator&lt;&gt;</h3>

<p>Full match scan iterator. </p>
<p>The elements of this iterator are the full scan matches as a string. </p>
</div><hr/>The documentation for this class was generated from the following file:<ul>
<li>src/fifr/util/<a class="el" href="a00053_source.html">Scan.hxx</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Aug 6 2018 13:22:44 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00855.html.

















































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>fifr::util: fifr::util::SplitIterator Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>fifr</b></li><li class="navelem"><a class="el" href="a00079.html">util</a></li><li class="navelem"><a class="el" href="a00855.html">SplitIterator</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">fifr::util::SplitIterator Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Iterator over the parts of a split string.  
 <a href="a00855.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00059_source.html">Split.hxx</a>&gt;</code></p>

<p>Inherits iterator&lt; std::forward_iterator_tag, std::string &gt;.</p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ab70940b4245b4f71190af2a83b478b95"><td class="memItemLeft" align="right" valign="top"><a id="ab70940b4245b4f71190af2a83b478b95"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>SplitIterator</b> (const std::string &amp;str, std::sregex_iterator &amp;&amp;it)</td></tr>
<tr class="separator:ab70940b4245b4f71190af2a83b478b95"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a39c2bd95462341c4454af171bf6e8b93"><td class="memItemLeft" align="right" valign="top"><a id="a39c2bd95462341c4454af171bf6e8b93"></a>
std::string&#160;</td><td class="memItemRight" valign="bottom"><b>operator*</b> () const</td></tr>
<tr class="separator:a39c2bd95462341c4454af171bf6e8b93"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7b8ed3eec30921145e025c509efa84db"><td class="memItemLeft" align="right" valign="top"><a id="a7b8ed3eec30921145e025c509efa84db"></a>
<a class="el" href="a00855.html">SplitIterator</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator++</b> ()</td></tr>
<tr class="separator:a7b8ed3eec30921145e025c509efa84db"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adab0fb40eb960092d959121e4db69fcc"><td class="memItemLeft" align="right" valign="top"><a id="adab0fb40eb960092d959121e4db69fcc"></a>
<a class="el" href="a00855.html">SplitIterator</a>&#160;</td><td class="memItemRight" valign="bottom"><b>operator++</b> (int)</td></tr>
<tr class="separator:adab0fb40eb960092d959121e4db69fcc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3060538931bd3ad275e61e8f3188c6f5"><td class="memItemLeft" align="right" valign="top"><a id="a3060538931bd3ad275e61e8f3188c6f5"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>operator==</b> (const <a class="el" href="a00855.html">SplitIterator</a> &amp;it) const</td></tr>
<tr class="separator:a3060538931bd3ad275e61e8f3188c6f5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abd02365fd7d4ad0358005acdfdea75be"><td class="memItemLeft" align="right" valign="top"><a id="abd02365fd7d4ad0358005acdfdea75be"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>operator!=</b> (const <a class="el" href="a00855.html">SplitIterator</a> &amp;it) const</td></tr>
<tr class="separator:abd02365fd7d4ad0358005acdfdea75be"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aee9f6188e5f13f8fb78d502ee9f1132b"><td class="memItemLeft" align="right" valign="top"><a id="aee9f6188e5f13f8fb78d502ee9f1132b"></a>
std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00855.html#aee9f6188e5f13f8fb78d502ee9f1132b">rest</a> () const</td></tr>
<tr class="memdesc:aee9f6188e5f13f8fb78d502ee9f1132b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the rest of the string starting at the current part. <br /></td></tr>
<tr class="separator:aee9f6188e5f13f8fb78d502ee9f1132b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Iterator over the parts of a split string. </p>
</div><hr/>The documentation for this class was generated from the following file:<ul>
<li>src/fifr/util/<a class="el" href="a00059_source.html">Split.hxx</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Aug 6 2018 13:22:44 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/a00863.html.









































































































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>fifr::util: fifr::util::WordWrapStream Struct Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>fifr</b></li><li class="navelem"><a class="el" href="a00079.html">util</a></li><li class="navelem"><a class="el" href="a00863.html">WordWrapStream</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-attribs">Static Public Attributes</a> &#124;
<a href="#friends">Friends</a>  </div>
  <div class="headertitle">
<div class="title">fifr::util::WordWrapStream Struct Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Write to an output stream with word wrapping.  
 <a href="a00863.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00071_source.html">WordWrapStream.hxx</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a33addd8a2ed82bbfc2b57a91081d4e47"><td class="memItemLeft" align="right" valign="top"><a id="a33addd8a2ed82bbfc2b57a91081d4e47"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>WordWrapStream</b> (std::ostream &amp;out)</td></tr>
<tr class="separator:a33addd8a2ed82bbfc2b57a91081d4e47"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4ffe84082bea5cf71390a5b75d216fa7"><td class="memItemLeft" align="right" valign="top"><a id="a4ffe84082bea5cf71390a5b75d216fa7"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00863.html#a4ffe84082bea5cf71390a5b75d216fa7">flush</a> ()</td></tr>
<tr class="memdesc:a4ffe84082bea5cf71390a5b75d216fa7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write current buffer to output stream. <br /></td></tr>
<tr class="separator:a4ffe84082bea5cf71390a5b75d216fa7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adeba1399ba5a180181cc3496af213fb3"><td class="memItemLeft" align="right" valign="top"><a id="adeba1399ba5a180181cc3496af213fb3"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00863.html#adeba1399ba5a180181cc3496af213fb3">set_width</a> (std::size_t width)</td></tr>
<tr class="memdesc:adeba1399ba5a180181cc3496af213fb3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the width at which lines should be wrapped. <br /></td></tr>
<tr class="separator:adeba1399ba5a180181cc3496af213fb3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0bd9407d389b19a7a318a9374904dcf8"><td class="memItemLeft" align="right" valign="top"><a id="a0bd9407d389b19a7a318a9374904dcf8"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00863.html#a0bd9407d389b19a7a318a9374904dcf8">set_indent</a> (std::size_t indent)</td></tr>
<tr class="memdesc:a0bd9407d389b19a7a318a9374904dcf8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the indentation of the lines. <br /></td></tr>
<tr class="separator:a0bd9407d389b19a7a318a9374904dcf8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac2a003bb87e8fc5e379f8555216c055d"><td class="memItemLeft" align="right" valign="top"><a id="ac2a003bb87e8fc5e379f8555216c055d"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00863.html#ac2a003bb87e8fc5e379f8555216c055d">set_indent_first</a> (std::size_t indent)</td></tr>
<tr class="memdesc:ac2a003bb87e8fc5e379f8555216c055d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the indentation of the first line. <br /></td></tr>
<tr class="separator:ac2a003bb87e8fc5e379f8555216c055d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab3d311cb8b6dac1471340415c00408f9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00863.html#ab3d311cb8b6dac1471340415c00408f9">shift_to</a> (std::size_t pos)</td></tr>
<tr class="memdesc:ab3d311cb8b6dac1471340415c00408f9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Insert spaces until the given column.  <a href="#ab3d311cb8b6dac1471340415c00408f9">More...</a><br /></td></tr>
<tr class="separator:ab3d311cb8b6dac1471340415c00408f9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-attribs"></a>
Static Public Attributes</h2></td></tr>
<tr class="memitem:aa7687c5a556ecaf2c4c5648b599aea96"><td class="memItemLeft" align="right" valign="top"><a id="aa7687c5a556ecaf2c4c5648b599aea96"></a>
static const std::size_t&#160;</td><td class="memItemRight" valign="bottom"><b>DEFAULT_WIDTH</b> = 80</td></tr>
<tr class="separator:aa7687c5a556ecaf2c4c5648b599aea96"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a>
Friends</h2></td></tr>
<tr class="memitem:a58b7842ed39181d0e3f42606344daec0"><td class="memTemplParams" colspan="2"><a id="a58b7842ed39181d0e3f42606344daec0"></a>
template&lt;typename T &gt; </td></tr>
<tr class="memitem:a58b7842ed39181d0e3f42606344daec0"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="a00863.html">WordWrapStream</a> &amp;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00863.html#a58b7842ed39181d0e3f42606344daec0">operator&lt;&lt;</a> (<a class="el" href="a00863.html">WordWrapStream</a> &amp;out, const T &amp;value)</td></tr>
<tr class="memdesc:a58b7842ed39181d0e3f42606344daec0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write <code>value</code> to a word wrapping stream. <br /></td></tr>
<tr class="separator:a58b7842ed39181d0e3f42606344daec0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Write to an output stream with word wrapping. </p>
<p>This is a simple wrapper around <code>std::ostream</code>. Data written to this stream is buffered and written with word wrap.</p>
<p>Word wrap can be customized by the following parameters:</p>
<ul>
<li>width ... the maximal width of a line</li>
<li>indent ... the indentation of of all lines</li>
<li>indent_first ... if set the indentation of the first line. </li>
</ul>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="ab3d311cb8b6dac1471340415c00408f9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab3d311cb8b6dac1471340415c00408f9">&#9670;&nbsp;</a></span>shift_to()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void fifr::util::WordWrapStream::shift_to </td>
          <td>(</td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>pos</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Insert spaces until the given column. </p>
<p>If the current position is beyond that column, nothing is written. </p>

</div>
</div>
<hr/>The documentation for this struct was generated from the following files:<ul>
<li>src/fifr/util/<a class="el" href="a00071_source.html">WordWrapStream.hxx</a></li>
<li>src/fifr/util/WordWrapStream.cxx</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Aug 6 2018 13:22:44 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/annotated.html.









































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>fifr::util: Data Structures</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">Data Structures</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock">Here are the data structures with brief descriptions:</div><div class="directory">
<div class="levels">[detail level <span onclick="javascript:toggleLevel(1);">1</span><span onclick="javascript:toggleLevel(2);">2</span><span onclick="javascript:toggleLevel(3);">3</span>]</div><table class="directory">
<tr id="row_0_" class="even"><td class="entry"><span style="width:0px;display:inline-block;">&#160;</span><span id="arr_0_" class="arrow" onclick="toggleFolder('0_')">&#9660;</span><span class="icona"><span class="icon">N</span></span><b>fifr</b></td><td class="desc"></td></tr>
<tr id="row_0_0_"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span id="arr_0_0_" class="arrow" onclick="toggleFolder('0_0_')">&#9660;</span><span class="icona"><span class="icon">N</span></span><a class="el" href="a00079.html" target="_self">util</a></td><td class="desc">Utility functions for c++ </td></tr>
<tr id="row_0_0_0_" class="even"><td class="entry"><span style="width:48px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="a00839.html" target="_self">all_range</a></td><td class="desc">Range covering all elements </td></tr>
<tr id="row_0_0_1_"><td class="entry"><span style="width:48px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="a00631.html" target="_self">AutoTuple</a></td><td class="desc">Trait for returning tuple, pair or value depending on the number of type arguments </td></tr>
<tr id="row_0_0_2_" class="even"><td class="entry"><span style="width:48px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="a00663.html" target="_self">BZip2StreamBuf</a></td><td class="desc">Stream buffer for bzip2ed files </td></tr>
<tr id="row_0_0_3_"><td class="entry"><span style="width:48px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="a00707.html" target="_self">Convert</a></td><td class="desc">Trait for converting two types </td></tr>
<tr id="row_0_0_4_" class="even"><td class="entry"><span style="width:48px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="a00767.html" target="_self">Convert&lt; double, char * &gt;</a></td><td class="desc"><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> <code>char*</code> to <code>double</code> </td></tr>
<tr id="row_0_0_5_"><td class="entry"><span style="width:48px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="a00763.html" target="_self">Convert&lt; float, char * &gt;</a></td><td class="desc"><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> <code>char*</code> to <code>float</code> </td></tr>
<tr id="row_0_0_6_" class="even"><td class="entry"><span style="width:48px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="a00739.html" target="_self">Convert&lt; int, char * &gt;</a></td><td class="desc"><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> <code>char*</code> to <code>int</code> </td></tr>
<tr id="row_0_0_7_"><td class="entry"><span style="width:48px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="a00771.html" target="_self">Convert&lt; long double, char * &gt;</a></td><td class="desc"><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> <code>char*</code> to <code>long double</code> </td></tr>
<tr id="row_0_0_8_" class="even"><td class="entry"><span style="width:48px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="a00747.html" target="_self">Convert&lt; long long, char * &gt;</a></td><td class="desc"><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> <code>char*</code> to <code>long long</code> </td></tr>
<tr id="row_0_0_9_"><td class="entry"><span style="width:48px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="a00743.html" target="_self">Convert&lt; long, char * &gt;</a></td><td class="desc"><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> <code>char*</code> to <code>long</code> </td></tr>
<tr id="row_0_0_10_" class="even"><td class="entry"><span style="width:48px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="a00787.html" target="_self">Convert&lt; std::array&lt; To, N &gt;, std::array&lt; From, N &gt; &gt;</a></td><td class="desc"><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> array to another array </td></tr>
<tr id="row_0_0_11_"><td class="entry"><span style="width:48px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="a00779.html" target="_self">Convert&lt; std::pair&lt; To1, To2 &gt;, std::pair&lt; From1, From2 &gt; &gt;</a></td><td class="desc"><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> pair to another pair </td></tr>
<tr id="row_0_0_12_" class="even"><td class="entry"><span style="width:48px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="a00735.html" target="_self">Convert&lt; std::string, char * &gt;</a></td><td class="desc"><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> <code>char*</code> to `std::string </td></tr>
<tr id="row_0_0_13_"><td class="entry"><span style="width:48px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="a00715.html" target="_self">Convert&lt; std::string, std::string &gt;</a></td><td class="desc">Special self conversions to remove ambiguity </td></tr>
<tr id="row_0_0_14_" class="even"><td class="entry"><span style="width:48px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="a00723.html" target="_self">Convert&lt; std::string, T, decltype((void) std::declval&lt; const T &amp; &gt;().to_string())&gt;</a></td><td class="desc"><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> to <code>std::string</code> using <code>this.to_string()</code> </td></tr>
<tr id="row_0_0_15_"><td class="entry"><span style="width:48px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="a00719.html" target="_self">Convert&lt; std::string, T, decltype((void) std::to_string(std::declval&lt; T &gt;()))&gt;</a></td><td class="desc"><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> to <code>std::string</code> using <code>std::to_string</code> </td></tr>
<tr id="row_0_0_16_" class="even"><td class="entry"><span style="width:48px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="a00783.html" target="_self">Convert&lt; std::tuple&lt; To... &gt;, std::tuple&lt; From... &gt; &gt;</a></td><td class="desc"><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> tuple to another tuple </td></tr>
<tr id="row_0_0_17_"><td class="entry"><span style="width:48px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="a00791.html" target="_self">Convert&lt; std::vector&lt; To &gt;, std::vector&lt; From &gt; &gt;</a></td><td class="desc"><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> vector to another vector </td></tr>
<tr id="row_0_0_18_" class="even"><td class="entry"><span style="width:48px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="a00711.html" target="_self">Convert&lt; T, T &gt;</a></td><td class="desc">Conversion from some type to itself </td></tr>
<tr id="row_0_0_19_"><td class="entry"><span style="width:48px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="a00731.html" target="_self">Convert&lt; To, char[N]&gt;</a></td><td class="desc"><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> <code>char[N]</code> to something else converting through <code>const char*</code> </td></tr>
<tr id="row_0_0_20_" class="even"><td class="entry"><span style="width:48px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="a00727.html" target="_self">Convert&lt; To, std::string &gt;</a></td><td class="desc"><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> <code>std::string</code> to something else converting through <code>const char*</code> </td></tr>
<tr id="row_0_0_21_"><td class="entry"><span style="width:48px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="a00751.html" target="_self">Convert&lt; unsigned int, char * &gt;</a></td><td class="desc"><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> <code>char*</code> to <code>unsigned int</code> </td></tr>
<tr id="row_0_0_22_" class="even"><td class="entry"><span style="width:48px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="a00759.html" target="_self">Convert&lt; unsigned long long, char * &gt;</a></td><td class="desc"><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> <code>char*</code> to <code>unsigned long long</code> </td></tr>
<tr id="row_0_0_23_"><td class="entry"><span style="width:48px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="a00755.html" target="_self">Convert&lt; unsigned long, char * &gt;</a></td><td class="desc"><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> <code>char*</code> to <code>unsigned long</code> </td></tr>
<tr id="row_0_0_24_" class="even"><td class="entry"><span style="width:48px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="a00799.html" target="_self">GZipStreamBuf</a></td><td class="desc">Stream buffer for gzipped files </td></tr>
<tr id="row_0_0_25_"><td class="entry"><span style="width:48px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="a00651.html" target="_self">InputAutoZipStream</a></td><td class="desc">A file stream that automatically decompresses files </td></tr>
<tr id="row_0_0_26_" class="even"><td class="entry"><span style="width:48px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="a00843.html" target="_self">IteratorProxy</a></td><td class="desc">Proxy providing access to some iterators </td></tr>
<tr id="row_0_0_27_"><td class="entry"><span style="width:48px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="a00803.html" target="_self">Join</a></td><td class="desc"><a class="el" href="a00803.html" title="Join operator. ">Join</a> operator </td></tr>
<tr id="row_0_0_28_" class="even"><td class="entry"><span style="width:48px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="a00807.html" target="_self">Logger</a></td><td class="desc">A simple <a class="el" href="a00807.html" title="A simple Logger. ">Logger</a> </td></tr>
<tr id="row_0_0_29_"><td class="entry"><span style="width:48px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="a00655.html" target="_self">OutputAutoZipStream</a></td><td class="desc">A file stream that automatically compresses files </td></tr>
<tr id="row_0_0_30_" class="even"><td class="entry"><span style="width:48px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="a00847.html" target="_self">ScanIterator</a></td><td class="desc">Iterator for matches of a scan operation </td></tr>
<tr id="row_0_0_31_"><td class="entry"><span style="width:48px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="a00851.html" target="_self">ScanIterator&lt;&gt;</a></td><td class="desc">Full match scan iterator </td></tr>
<tr id="row_0_0_32_" class="even"><td class="entry"><span style="width:48px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="a00855.html" target="_self">SplitIterator</a></td><td class="desc">Iterator over the parts of a split string </td></tr>
<tr id="row_0_0_33_"><td class="entry"><span style="width:48px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="a00863.html" target="_self">WordWrapStream</a></td><td class="desc">Write to an output stream with word wrapping </td></tr>
</table>
</div><!-- directory -->
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Aug 6 2018 13:22:44 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/arrowdown.png.

cannot compute difference between binary files

Added 3rdparty/util/doc/html/arrowright.png.

cannot compute difference between binary files

Added 3rdparty/util/doc/html/bc_s.png.

cannot compute difference between binary files

Added 3rdparty/util/doc/html/bdwn.png.

cannot compute difference between binary files

Added 3rdparty/util/doc/html/classes.html.

















































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>fifr::util: Data Structure Index</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">Data Structure Index</div>  </div>
</div><!--header-->
<div class="contents">
<div class="qindex"><a class="qindex" href="#letter_a">a</a>&#160;|&#160;<a class="qindex" href="#letter_b">b</a>&#160;|&#160;<a class="qindex" href="#letter_c">c</a>&#160;|&#160;<a class="qindex" href="#letter_g">g</a>&#160;|&#160;<a class="qindex" href="#letter_i">i</a>&#160;|&#160;<a class="qindex" href="#letter_j">j</a>&#160;|&#160;<a class="qindex" href="#letter_l">l</a>&#160;|&#160;<a class="qindex" href="#letter_o">o</a>&#160;|&#160;<a class="qindex" href="#letter_s">s</a>&#160;|&#160;<a class="qindex" href="#letter_w">w</a></div>
<table class="classindex">
<tr><td rowspan="2" valign="bottom"><a name="letter_a"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&#160;&#160;a&#160;&#160;</div></td></tr></table>
</td><td valign="top"><a class="el" href="a00763.html">Convert&lt; float, char * &gt;</a> (<a class="el" href="a00079.html">fifr::util</a>)&#160;&#160;&#160;</td><td valign="top"><a class="el" href="a00783.html">Convert&lt; std::tuple&lt; To... &gt;, std::tuple&lt; From... &gt; &gt;</a> (<a class="el" href="a00079.html">fifr::util</a>)&#160;&#160;&#160;</td><td rowspan="2" valign="bottom"><a name="letter_i"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&#160;&#160;i&#160;&#160;</div></td></tr></table>
</td><td rowspan="2" valign="bottom"><a name="letter_s"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&#160;&#160;s&#160;&#160;</div></td></tr></table>
</td></tr>
<tr><td valign="top"><a class="el" href="a00739.html">Convert&lt; int, char * &gt;</a> (<a class="el" href="a00079.html">fifr::util</a>)&#160;&#160;&#160;</td><td valign="top"><a class="el" href="a00791.html">Convert&lt; std::vector&lt; To &gt;, std::vector&lt; From &gt; &gt;</a> (<a class="el" href="a00079.html">fifr::util</a>)&#160;&#160;&#160;</td></tr>
<tr><td valign="top"><a class="el" href="a00839.html">all_range</a> (<a class="el" href="a00079.html">fifr::util</a>)&#160;&#160;&#160;</td><td valign="top"><a class="el" href="a00771.html">Convert&lt; long double, char * &gt;</a> (<a class="el" href="a00079.html">fifr::util</a>)&#160;&#160;&#160;</td><td valign="top"><a class="el" href="a00711.html">Convert&lt; T, T &gt;</a> (<a class="el" href="a00079.html">fifr::util</a>)&#160;&#160;&#160;</td><td valign="top"><a class="el" href="a00651.html">InputAutoZipStream</a> (<a class="el" href="a00079.html">fifr::util</a>)&#160;&#160;&#160;</td><td valign="top"><a class="el" href="a00847.html">ScanIterator</a> (<a class="el" href="a00079.html">fifr::util</a>)&#160;&#160;&#160;</td></tr>
<tr><td valign="top"><a class="el" href="a00631.html">AutoTuple</a> (<a class="el" href="a00079.html">fifr::util</a>)&#160;&#160;&#160;</td><td valign="top"><a class="el" href="a00747.html">Convert&lt; long long, char * &gt;</a> (<a class="el" href="a00079.html">fifr::util</a>)&#160;&#160;&#160;</td><td valign="top"><a class="el" href="a00731.html">Convert&lt; To, char[N]&gt;</a> (<a class="el" href="a00079.html">fifr::util</a>)&#160;&#160;&#160;</td><td valign="top"><a class="el" href="a00843.html">IteratorProxy</a> (<a class="el" href="a00079.html">fifr::util</a>)&#160;&#160;&#160;</td><td valign="top"><a class="el" href="a00851.html">ScanIterator&lt;&gt;</a> (<a class="el" href="a00079.html">fifr::util</a>)&#160;&#160;&#160;</td></tr>
<tr><td rowspan="2" valign="bottom"><a name="letter_b"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&#160;&#160;b&#160;&#160;</div></td></tr></table>
</td><td valign="top"><a class="el" href="a00743.html">Convert&lt; long, char * &gt;</a> (<a class="el" href="a00079.html">fifr::util</a>)&#160;&#160;&#160;</td><td valign="top"><a class="el" href="a00727.html">Convert&lt; To, std::string &gt;</a> (<a class="el" href="a00079.html">fifr::util</a>)&#160;&#160;&#160;</td><td rowspan="2" valign="bottom"><a name="letter_j"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&#160;&#160;j&#160;&#160;</div></td></tr></table>
</td><td valign="top"><a class="el" href="a00855.html">SplitIterator</a> (<a class="el" href="a00079.html">fifr::util</a>)&#160;&#160;&#160;</td></tr>
<tr><td valign="top"><a class="el" href="a00787.html">Convert&lt; std::array&lt; To, N &gt;, std::array&lt; From, N &gt; &gt;</a> (<a class="el" href="a00079.html">fifr::util</a>)&#160;&#160;&#160;</td><td valign="top"><a class="el" href="a00751.html">Convert&lt; unsigned int, char * &gt;</a> (<a class="el" href="a00079.html">fifr::util</a>)&#160;&#160;&#160;</td><td rowspan="2" valign="bottom"><a name="letter_w"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&#160;&#160;w&#160;&#160;</div></td></tr></table>
</td></tr>
<tr><td valign="top"><a class="el" href="a00663.html">BZip2StreamBuf</a> (<a class="el" href="a00079.html">fifr::util</a>)&#160;&#160;&#160;</td><td valign="top"><a class="el" href="a00779.html">Convert&lt; std::pair&lt; To1, To2 &gt;, std::pair&lt; From1, From2 &gt; &gt;</a> (<a class="el" href="a00079.html">fifr::util</a>)&#160;&#160;&#160;</td><td valign="top"><a class="el" href="a00759.html">Convert&lt; unsigned long long, char * &gt;</a> (<a class="el" href="a00079.html">fifr::util</a>)&#160;&#160;&#160;</td><td valign="top"><a class="el" href="a00803.html">Join</a> (<a class="el" href="a00079.html">fifr::util</a>)&#160;&#160;&#160;</td></tr>
<tr><td rowspan="2" valign="bottom"><a name="letter_c"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&#160;&#160;c&#160;&#160;</div></td></tr></table>
</td><td valign="top"><a class="el" href="a00735.html">Convert&lt; std::string, char * &gt;</a> (<a class="el" href="a00079.html">fifr::util</a>)&#160;&#160;&#160;</td><td valign="top"><a class="el" href="a00755.html">Convert&lt; unsigned long, char * &gt;</a> (<a class="el" href="a00079.html">fifr::util</a>)&#160;&#160;&#160;</td><td rowspan="2" valign="bottom"><a name="letter_l"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&#160;&#160;l&#160;&#160;</div></td></tr></table>
</td><td valign="top"><a class="el" href="a00863.html">WordWrapStream</a> (<a class="el" href="a00079.html">fifr::util</a>)&#160;&#160;&#160;</td></tr>
<tr><td valign="top"><a class="el" href="a00715.html">Convert&lt; std::string, std::string &gt;</a> (<a class="el" href="a00079.html">fifr::util</a>)&#160;&#160;&#160;</td><td rowspan="2" valign="bottom"><a name="letter_g"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&#160;&#160;g&#160;&#160;</div></td></tr></table>
</td><td></td></tr>
<tr><td valign="top"><a class="el" href="a00707.html">Convert</a> (<a class="el" href="a00079.html">fifr::util</a>)&#160;&#160;&#160;</td><td valign="top"><a class="el" href="a00723.html">Convert&lt; std::string, T, decltype((void) std::declval&lt; const T &amp; &gt;().to_string())&gt;</a> (<a class="el" href="a00079.html">fifr::util</a>)&#160;&#160;&#160;</td><td valign="top"><a class="el" href="a00807.html">Logger</a> (<a class="el" href="a00079.html">fifr::util</a>)&#160;&#160;&#160;</td><td></td></tr>
<tr><td valign="top"><a class="el" href="a00767.html">Convert&lt; double, char * &gt;</a> (<a class="el" href="a00079.html">fifr::util</a>)&#160;&#160;&#160;</td><td valign="top"><a class="el" href="a00719.html">Convert&lt; std::string, T, decltype((void) std::to_string(std::declval&lt; T &gt;()))&gt;</a> (<a class="el" href="a00079.html">fifr::util</a>)&#160;&#160;&#160;</td><td valign="top"><a class="el" href="a00799.html">GZipStreamBuf</a> (<a class="el" href="a00079.html">fifr::util</a>)&#160;&#160;&#160;</td><td rowspan="2" valign="bottom"><a name="letter_o"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&#160;&#160;o&#160;&#160;</div></td></tr></table>
</td><td></td></tr>
<tr><td></td><td></td><td></td><td></td></tr>
<tr><td></td><td></td><td></td><td valign="top"><a class="el" href="a00655.html">OutputAutoZipStream</a> (<a class="el" href="a00079.html">fifr::util</a>)&#160;&#160;&#160;</td><td></td></tr>
<tr><td></td><td></td><td></td><td></td><td></td></tr>
</table>
<div class="qindex"><a class="qindex" href="#letter_a">a</a>&#160;|&#160;<a class="qindex" href="#letter_b">b</a>&#160;|&#160;<a class="qindex" href="#letter_c">c</a>&#160;|&#160;<a class="qindex" href="#letter_g">g</a>&#160;|&#160;<a class="qindex" href="#letter_i">i</a>&#160;|&#160;<a class="qindex" href="#letter_j">j</a>&#160;|&#160;<a class="qindex" href="#letter_l">l</a>&#160;|&#160;<a class="qindex" href="#letter_o">o</a>&#160;|&#160;<a class="qindex" href="#letter_s">s</a>&#160;|&#160;<a class="qindex" href="#letter_w">w</a></div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Aug 6 2018 13:22:44 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/closed.png.

cannot compute difference between binary files

Added 3rdparty/util/doc/html/dir_2a722471f978b7073f859d2d7c3aa2b4.html.





















































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>fifr::util: src/fifr/util Directory Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_410dc4a63588d435a0c08a3db8b9f0cd.html">fifr</a></li><li class="navelem"><a class="el" href="dir_2a722471f978b7073f859d2d7c3aa2b4.html">util</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">util Directory Reference</div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="files"></a>
Files</h2></td></tr>
<tr class="memitem:a00029"><td class="memItemLeft" align="right" valign="top">file &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00029.html">Convert.hxx</a> <a href="a00029_source.html">[code]</a></td></tr>
<tr class="memdesc:a00029"><td class="mdescLeft">&#160;</td><td class="mdescRight">Implement a Rust inspired conversion trait <code>Convert</code>. <br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a00056"><td class="memItemLeft" align="right" valign="top">file &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00056.html">SortBy.hxx</a> <a href="a00056_source.html">[code]</a></td></tr>
<tr class="memdesc:a00056"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sort function to sort elements by a key. <br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Aug 6 2018 13:22:44 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/dir_410dc4a63588d435a0c08a3db8b9f0cd.html.









































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>fifr::util: src/fifr Directory Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_410dc4a63588d435a0c08a3db8b9f0cd.html">fifr</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">fifr Directory Reference</div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="subdirs"></a>
Directories</h2></td></tr>
</table>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Aug 6 2018 13:22:44 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/dir_68267d1309a1af8e8297ef4c3efbcdba.html.

































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>fifr::util: src Directory Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">src Directory Reference</div>  </div>
</div><!--header-->
<div class="contents">
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Aug 6 2018 13:22:44 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/doc.png.

cannot compute difference between binary files

Added 3rdparty/util/doc/html/doxygen.css.

























































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
/* The standard CSS for doxygen 1.8.14 */

body, table, div, p, dl {
	font: 400 14px/22px Roboto,sans-serif;
}

p.reference, p.definition {
	font: 400 14px/22px Roboto,sans-serif;
}

/* @group Heading Levels */

h1.groupheader {
	font-size: 150%;
}

.title {
	font: 400 14px/28px Roboto,sans-serif;
	font-size: 150%;
	font-weight: bold;
	margin: 10px 2px;
}

h2.groupheader {
	border-bottom: 1px solid #879ECB;
	color: #354C7B;
	font-size: 150%;
	font-weight: normal;
	margin-top: 1.75em;
	padding-top: 8px;
	padding-bottom: 4px;
	width: 100%;
}

h3.groupheader {
	font-size: 100%;
}

h1, h2, h3, h4, h5, h6 {
	-webkit-transition: text-shadow 0.5s linear;
	-moz-transition: text-shadow 0.5s linear;
	-ms-transition: text-shadow 0.5s linear;
	-o-transition: text-shadow 0.5s linear;
	transition: text-shadow 0.5s linear;
	margin-right: 15px;
}

h1.glow, h2.glow, h3.glow, h4.glow, h5.glow, h6.glow {
	text-shadow: 0 0 15px cyan;
}

dt {
	font-weight: bold;
}

div.multicol {
	-moz-column-gap: 1em;
	-webkit-column-gap: 1em;
	-moz-column-count: 3;
	-webkit-column-count: 3;
}

p.startli, p.startdd {
	margin-top: 2px;
}

p.starttd {
	margin-top: 0px;
}

p.endli {
	margin-bottom: 0px;
}

p.enddd {
	margin-bottom: 4px;
}

p.endtd {
	margin-bottom: 2px;
}

/* @end */

caption {
	font-weight: bold;
}

span.legend {
        font-size: 70%;
        text-align: center;
}

h3.version {
        font-size: 90%;
        text-align: center;
}

div.qindex, div.navtab{
	background-color: #EBEFF6;
	border: 1px solid #A3B4D7;
	text-align: center;
}

div.qindex, div.navpath {
	width: 100%;
	line-height: 140%;
}

div.navtab {
	margin-right: 15px;
}

/* @group Link Styling */

a {
	color: #3D578C;
	font-weight: normal;
	text-decoration: none;
}

.contents a:visited {
	color: #4665A2;
}

a:hover {
	text-decoration: underline;
}

a.qindex {
	font-weight: bold;
}

a.qindexHL {
	font-weight: bold;
	background-color: #9CAFD4;
	color: #ffffff;
	border: 1px double #869DCA;
}

.contents a.qindexHL:visited {
        color: #ffffff;
}

a.el {
	font-weight: bold;
}

a.elRef {
}

a.code, a.code:visited, a.line, a.line:visited {
	color: #4665A2; 
}

a.codeRef, a.codeRef:visited, a.lineRef, a.lineRef:visited {
	color: #4665A2; 
}

/* @end */

dl.el {
	margin-left: -1cm;
}

pre.fragment {
        border: 1px solid #C4CFE5;
        background-color: #FBFCFD;
        padding: 4px 6px;
        margin: 4px 8px 4px 2px;
        overflow: auto;
        word-wrap: break-word;
        font-size:  9pt;
        line-height: 125%;
        font-family: monospace, fixed;
        font-size: 105%;
}

div.fragment {
        padding: 0px;
        margin: 4px 8px 4px 2px;
	background-color: #FBFCFD;
	border: 1px solid #C4CFE5;
}

div.line {
	font-family: monospace, fixed;
        font-size: 13px;
	min-height: 13px;
	line-height: 1.0;
	text-wrap: unrestricted;
	white-space: -moz-pre-wrap; /* Moz */
	white-space: -pre-wrap;     /* Opera 4-6 */
	white-space: -o-pre-wrap;   /* Opera 7 */
	white-space: pre-wrap;      /* CSS3  */
	word-wrap: break-word;      /* IE 5.5+ */
	text-indent: -53px;
	padding-left: 53px;
	padding-bottom: 0px;
	margin: 0px;
	-webkit-transition-property: background-color, box-shadow;
	-webkit-transition-duration: 0.5s;
	-moz-transition-property: background-color, box-shadow;
	-moz-transition-duration: 0.5s;
	-ms-transition-property: background-color, box-shadow;
	-ms-transition-duration: 0.5s;
	-o-transition-property: background-color, box-shadow;
	-o-transition-duration: 0.5s;
	transition-property: background-color, box-shadow;
	transition-duration: 0.5s;
}

div.line:after {
    content:"\000A";
    white-space: pre;
}

div.line.glow {
	background-color: cyan;
	box-shadow: 0 0 10px cyan;
}


span.lineno {
	padding-right: 4px;
	text-align: right;
	border-right: 2px solid #0F0;
	background-color: #E8E8E8;
        white-space: pre;
}
span.lineno a {
	background-color: #D8D8D8;
}

span.lineno a:hover {
	background-color: #C8C8C8;
}

.lineno {
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

div.ah, span.ah {
	background-color: black;
	font-weight: bold;
	color: #ffffff;
	margin-bottom: 3px;
	margin-top: 3px;
	padding: 0.2em;
	border: solid thin #333;
	border-radius: 0.5em;
	-webkit-border-radius: .5em;
	-moz-border-radius: .5em;
	box-shadow: 2px 2px 3px #999;
	-webkit-box-shadow: 2px 2px 3px #999;
	-moz-box-shadow: rgba(0, 0, 0, 0.15) 2px 2px 2px;
	background-image: -webkit-gradient(linear, left top, left bottom, from(#eee), to(#000),color-stop(0.3, #444));
	background-image: -moz-linear-gradient(center top, #eee 0%, #444 40%, #000 110%);
}

div.classindex ul {
        list-style: none;
        padding-left: 0;
}

div.classindex span.ai {
        display: inline-block;
}

div.groupHeader {
	margin-left: 16px;
	margin-top: 12px;
	font-weight: bold;
}

div.groupText {
	margin-left: 16px;
	font-style: italic;
}

body {
	background-color: white;
	color: black;
        margin: 0;
}

div.contents {
	margin-top: 10px;
	margin-left: 12px;
	margin-right: 8px;
}

td.indexkey {
	background-color: #EBEFF6;
	font-weight: bold;
	border: 1px solid #C4CFE5;
	margin: 2px 0px 2px 0;
	padding: 2px 10px;
        white-space: nowrap;
        vertical-align: top;
}

td.indexvalue {
	background-color: #EBEFF6;
	border: 1px solid #C4CFE5;
	padding: 2px 10px;
	margin: 2px 0px;
}

tr.memlist {
	background-color: #EEF1F7;
}

p.formulaDsp {
	text-align: center;
}

img.formulaDsp {
	
}

img.formulaInl {
	vertical-align: middle;
}

div.center {
	text-align: center;
        margin-top: 0px;
        margin-bottom: 0px;
        padding: 0px;
}

div.center img {
	border: 0px;
}

address.footer {
	text-align: right;
	padding-right: 12px;
}

img.footer {
	border: 0px;
	vertical-align: middle;
}

/* @group Code Colorization */

span.keyword {
	color: #008000
}

span.keywordtype {
	color: #604020
}

span.keywordflow {
	color: #e08000
}

span.comment {
	color: #800000
}

span.preprocessor {
	color: #806020
}

span.stringliteral {
	color: #002080
}

span.charliteral {
	color: #008080
}

span.vhdldigit { 
	color: #ff00ff 
}

span.vhdlchar { 
	color: #000000 
}

span.vhdlkeyword { 
	color: #700070 
}

span.vhdllogic { 
	color: #ff0000 
}

blockquote {
        background-color: #F7F8FB;
        border-left: 2px solid #9CAFD4;
        margin: 0 24px 0 4px;
        padding: 0 12px 0 16px;
}

/* @end */

/*
.search {
	color: #003399;
	font-weight: bold;
}

form.search {
	margin-bottom: 0px;
	margin-top: 0px;
}

input.search {
	font-size: 75%;
	color: #000080;
	font-weight: normal;
	background-color: #e8eef2;
}
*/

td.tiny {
	font-size: 75%;
}

.dirtab {
	padding: 4px;
	border-collapse: collapse;
	border: 1px solid #A3B4D7;
}

th.dirtab {
	background: #EBEFF6;
	font-weight: bold;
}

hr {
	height: 0px;
	border: none;
	border-top: 1px solid #4A6AAA;
}

hr.footer {
	height: 1px;
}

/* @group Member Descriptions */

table.memberdecls {
	border-spacing: 0px;
	padding: 0px;
}

.memberdecls td, .fieldtable tr {
	-webkit-transition-property: background-color, box-shadow;
	-webkit-transition-duration: 0.5s;
	-moz-transition-property: background-color, box-shadow;
	-moz-transition-duration: 0.5s;
	-ms-transition-property: background-color, box-shadow;
	-ms-transition-duration: 0.5s;
	-o-transition-property: background-color, box-shadow;
	-o-transition-duration: 0.5s;
	transition-property: background-color, box-shadow;
	transition-duration: 0.5s;
}

.memberdecls td.glow, .fieldtable tr.glow {
	background-color: cyan;
	box-shadow: 0 0 15px cyan;
}

.mdescLeft, .mdescRight,
.memItemLeft, .memItemRight,
.memTemplItemLeft, .memTemplItemRight, .memTemplParams {
	background-color: #F9FAFC;
	border: none;
	margin: 4px;
	padding: 1px 0 0 8px;
}

.mdescLeft, .mdescRight {
	padding: 0px 8px 4px 8px;
	color: #555;
}

.memSeparator {
        border-bottom: 1px solid #DEE4F0;
        line-height: 1px;
        margin: 0px;
        padding: 0px;
}

.memItemLeft, .memTemplItemLeft {
        white-space: nowrap;
}

.memItemRight {
	width: 100%;
}

.memTemplParams {
	color: #4665A2;
        white-space: nowrap;
	font-size: 80%;
}

/* @end */

/* @group Member Details */

/* Styles for detailed member documentation */

.memtitle {
	padding: 8px;
	border-top: 1px solid #A8B8D9;
	border-left: 1px solid #A8B8D9;
	border-right: 1px solid #A8B8D9;
	border-top-right-radius: 4px;
	border-top-left-radius: 4px;
	margin-bottom: -1px;
	background-image: url('nav_f.png');
	background-repeat: repeat-x;
	background-color: #E2E8F2;
	line-height: 1.25;
	font-weight: 300;
	float:left;
}

.permalink
{
        font-size: 65%;
        display: inline-block;
        vertical-align: middle;
}

.memtemplate {
	font-size: 80%;
	color: #4665A2;
	font-weight: normal;
	margin-left: 9px;
}

.memnav {
	background-color: #EBEFF6;
	border: 1px solid #A3B4D7;
	text-align: center;
	margin: 2px;
	margin-right: 15px;
	padding: 2px;
}

.mempage {
	width: 100%;
}

.memitem {
	padding: 0;
	margin-bottom: 10px;
	margin-right: 5px;
        -webkit-transition: box-shadow 0.5s linear;
        -moz-transition: box-shadow 0.5s linear;
        -ms-transition: box-shadow 0.5s linear;
        -o-transition: box-shadow 0.5s linear;
        transition: box-shadow 0.5s linear;
        display: table !important;
        width: 100%;
}

.memitem.glow {
         box-shadow: 0 0 15px cyan;
}

.memname {
        font-weight: 400;
        margin-left: 6px;
}

.memname td {
	vertical-align: bottom;
}

.memproto, dl.reflist dt {
        border-top: 1px solid #A8B8D9;
        border-left: 1px solid #A8B8D9;
        border-right: 1px solid #A8B8D9;
        padding: 6px 0px 6px 0px;
        color: #253555;
        font-weight: bold;
        text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.9);
        background-color: #DFE5F1;
        /* opera specific markup */
        box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15);
        border-top-right-radius: 4px;
        /* firefox specific markup */
        -moz-box-shadow: rgba(0, 0, 0, 0.15) 5px 5px 5px;
        -moz-border-radius-topright: 4px;
        /* webkit specific markup */
        -webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15);
        -webkit-border-top-right-radius: 4px;

}

.overload {
        font-family: "courier new",courier,monospace;
	font-size: 65%;
}

.memdoc, dl.reflist dd {
        border-bottom: 1px solid #A8B8D9;      
        border-left: 1px solid #A8B8D9;      
        border-right: 1px solid #A8B8D9; 
        padding: 6px 10px 2px 10px;
        background-color: #FBFCFD;
        border-top-width: 0;
        background-image:url('nav_g.png');
        background-repeat:repeat-x;
        background-color: #FFFFFF;
        /* opera specific markup */
        border-bottom-left-radius: 4px;
        border-bottom-right-radius: 4px;
        box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15);
        /* firefox specific markup */
        -moz-border-radius-bottomleft: 4px;
        -moz-border-radius-bottomright: 4px;
        -moz-box-shadow: rgba(0, 0, 0, 0.15) 5px 5px 5px;
        /* webkit specific markup */
        -webkit-border-bottom-left-radius: 4px;
        -webkit-border-bottom-right-radius: 4px;
        -webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15);
}

dl.reflist dt {
        padding: 5px;
}

dl.reflist dd {
        margin: 0px 0px 10px 0px;
        padding: 5px;
}

.paramkey {
	text-align: right;
}

.paramtype {
	white-space: nowrap;
}

.paramname {
	color: #602020;
	white-space: nowrap;
}
.paramname em {
	font-style: normal;
}
.paramname code {
        line-height: 14px;
}

.params, .retval, .exception, .tparams {
        margin-left: 0px;
        padding-left: 0px;
}       

.params .paramname, .retval .paramname {
        font-weight: bold;
        vertical-align: top;
}
        
.params .paramtype {
        font-style: italic;
        vertical-align: top;
}       
        
.params .paramdir {
        font-family: "courier new",courier,monospace;
        vertical-align: top;
}

table.mlabels {
	border-spacing: 0px;
}

td.mlabels-left {
	width: 100%;
	padding: 0px;
}

td.mlabels-right {
	vertical-align: bottom;
	padding: 0px;
	white-space: nowrap;
}

span.mlabels {
        margin-left: 8px;
}

span.mlabel {
        background-color: #728DC1;
        border-top:1px solid #5373B4;
        border-left:1px solid #5373B4;
        border-right:1px solid #C4CFE5;
        border-bottom:1px solid #C4CFE5;
	text-shadow: none;
	color: white;
	margin-right: 4px;
	padding: 2px 3px;
	border-radius: 3px;
	font-size: 7pt;
	white-space: nowrap;
	vertical-align: middle;
}



/* @end */

/* these are for tree view inside a (index) page */

div.directory {
        margin: 10px 0px;
        border-top: 1px solid #9CAFD4;
        border-bottom: 1px solid #9CAFD4;
        width: 100%;
}

.directory table {
        border-collapse:collapse;
}

.directory td {
        margin: 0px;
        padding: 0px;
	vertical-align: top;
}

.directory td.entry {
        white-space: nowrap;
        padding-right: 6px;
	padding-top: 3px;
}

.directory td.entry a {
        outline:none;
}

.directory td.entry a img {
        border: none;
}

.directory td.desc {
        width: 100%;
        padding-left: 6px;
	padding-right: 6px;
	padding-top: 3px;
	border-left: 1px solid rgba(0,0,0,0.05);
}

.directory tr.even {
	padding-left: 6px;
	background-color: #F7F8FB;
}

.directory img {
	vertical-align: -30%;
}

.directory .levels {
        white-space: nowrap;
        width: 100%;
        text-align: right;
        font-size: 9pt;
}

.directory .levels span {
        cursor: pointer;
        padding-left: 2px;
        padding-right: 2px;
	color: #3D578C;
}

.arrow {
    color: #9CAFD4;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: pointer;
    font-size: 80%;
    display: inline-block;
    width: 16px;
    height: 22px;
}

.icon {
    font-family: Arial, Helvetica;
    font-weight: bold;
    font-size: 12px;
    height: 14px;
    width: 16px;
    display: inline-block;
    background-color: #728DC1;
    color: white;
    text-align: center;
    border-radius: 4px;
    margin-left: 2px;
    margin-right: 2px;
}

.icona {
    width: 24px;
    height: 22px;
    display: inline-block;
}

.iconfopen {
    width: 24px;
    height: 18px;
    margin-bottom: 4px;
    background-image:url('folderopen.png');
    background-position: 0px -4px;
    background-repeat: repeat-y;
    vertical-align:top;
    display: inline-block;
}

.iconfclosed {
    width: 24px;
    height: 18px;
    margin-bottom: 4px;
    background-image:url('folderclosed.png');
    background-position: 0px -4px;
    background-repeat: repeat-y;
    vertical-align:top;
    display: inline-block;
}

.icondoc {
    width: 24px;
    height: 18px;
    margin-bottom: 4px;
    background-image:url('doc.png');
    background-position: 0px -4px;
    background-repeat: repeat-y;
    vertical-align:top;
    display: inline-block;
}

table.directory {
    font: 400 14px Roboto,sans-serif;
}

/* @end */

div.dynheader {
        margin-top: 8px;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

address {
	font-style: normal;
	color: #2A3D61;
}

table.doxtable caption {
	caption-side: top;
}

table.doxtable {
	border-collapse:collapse;
        margin-top: 4px;
        margin-bottom: 4px;
}

table.doxtable td, table.doxtable th {
	border: 1px solid #2D4068;
	padding: 3px 7px 2px;
}

table.doxtable th {
	background-color: #374F7F;
	color: #FFFFFF;
	font-size: 110%;
	padding-bottom: 4px;
	padding-top: 5px;
}

table.fieldtable {
        /*width: 100%;*/
        margin-bottom: 10px;
        border: 1px solid #A8B8D9;
        border-spacing: 0px;
        -moz-border-radius: 4px;
        -webkit-border-radius: 4px;
        border-radius: 4px;
        -moz-box-shadow: rgba(0, 0, 0, 0.15) 2px 2px 2px;
        -webkit-box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.15);
        box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.15);
}

.fieldtable td, .fieldtable th {
        padding: 3px 7px 2px;
}

.fieldtable td.fieldtype, .fieldtable td.fieldname {
        white-space: nowrap;
        border-right: 1px solid #A8B8D9;
        border-bottom: 1px solid #A8B8D9;
        vertical-align: top;
}

.fieldtable td.fieldname {
        padding-top: 3px;
}

.fieldtable td.fielddoc {
        border-bottom: 1px solid #A8B8D9;
        /*width: 100%;*/
}

.fieldtable td.fielddoc p:first-child {
        margin-top: 0px;
}       
        
.fieldtable td.fielddoc p:last-child {
        margin-bottom: 2px;
}

.fieldtable tr:last-child td {
        border-bottom: none;
}

.fieldtable th {
        background-image:url('nav_f.png');
        background-repeat:repeat-x;
        background-color: #E2E8F2;
        font-size: 90%;
        color: #253555;
        padding-bottom: 4px;
        padding-top: 5px;
        text-align:left;
        font-weight: 400;
        -moz-border-radius-topleft: 4px;
        -moz-border-radius-topright: 4px;
        -webkit-border-top-left-radius: 4px;
        -webkit-border-top-right-radius: 4px;
        border-top-left-radius: 4px;
        border-top-right-radius: 4px;
        border-bottom: 1px solid #A8B8D9;
}


.tabsearch {
	top: 0px;
	left: 10px;
	height: 36px;
	background-image: url('tab_b.png');
	z-index: 101;
	overflow: hidden;
	font-size: 13px;
}

.navpath ul
{
	font-size: 11px;
	background-image:url('tab_b.png');
	background-repeat:repeat-x;
	background-position: 0 -5px;
	height:30px;
	line-height:30px;
	color:#8AA0CC;
	border:solid 1px #C2CDE4;
	overflow:hidden;
	margin:0px;
	padding:0px;
}

.navpath li
{
	list-style-type:none;
	float:left;
	padding-left:10px;
	padding-right:15px;
	background-image:url('bc_s.png');
	background-repeat:no-repeat;
	background-position:right;
	color:#364D7C;
}

.navpath li.navelem a
{
	height:32px;
	display:block;
	text-decoration: none;
	outline: none;
	color: #283A5D;
	font-family: 'Lucida Grande',Geneva,Helvetica,Arial,sans-serif;
	text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.9);
	text-decoration: none;        
}

.navpath li.navelem a:hover
{
	color:#6884BD;
}

.navpath li.footer
{
        list-style-type:none;
        float:right;
        padding-left:10px;
        padding-right:15px;
        background-image:none;
        background-repeat:no-repeat;
        background-position:right;
        color:#364D7C;
        font-size: 8pt;
}


div.summary
{
	float: right;
	font-size: 8pt;
	padding-right: 5px;
	width: 50%;
	text-align: right;
}       

div.summary a
{
	white-space: nowrap;
}

table.classindex
{
        margin: 10px;
        white-space: nowrap;
        margin-left: 3%;
        margin-right: 3%;
        width: 94%;
        border: 0;
        border-spacing: 0; 
        padding: 0;
}

div.ingroups
{
	font-size: 8pt;
	width: 50%;
	text-align: left;
}

div.ingroups a
{
	white-space: nowrap;
}

div.header
{
        background-image:url('nav_h.png');
        background-repeat:repeat-x;
	background-color: #F9FAFC;
	margin:  0px;
	border-bottom: 1px solid #C4CFE5;
}

div.headertitle
{
	padding: 5px 5px 5px 10px;
}

dl
{
        padding: 0 0 0 10px;
}

/* dl.note, dl.warning, dl.attention, dl.pre, dl.post, dl.invariant, dl.deprecated, dl.todo, dl.test, dl.bug */
dl.section
{
	margin-left: 0px;
	padding-left: 0px;
}

dl.note
{
        margin-left:-7px;
        padding-left: 3px;
        border-left:4px solid;
        border-color: #D0C000;
}

dl.warning, dl.attention
{
        margin-left:-7px;
        padding-left: 3px;
        border-left:4px solid;
        border-color: #FF0000;
}

dl.pre, dl.post, dl.invariant
{
        margin-left:-7px;
        padding-left: 3px;
        border-left:4px solid;
        border-color: #00D000;
}

dl.deprecated
{
        margin-left:-7px;
        padding-left: 3px;
        border-left:4px solid;
        border-color: #505050;
}

dl.todo
{
        margin-left:-7px;
        padding-left: 3px;
        border-left:4px solid;
        border-color: #00C0E0;
}

dl.test
{
        margin-left:-7px;
        padding-left: 3px;
        border-left:4px solid;
        border-color: #3030E0;
}

dl.bug
{
        margin-left:-7px;
        padding-left: 3px;
        border-left:4px solid;
        border-color: #C08050;
}

dl.section dd {
	margin-bottom: 6px;
}


#projectlogo
{
	text-align: center;
	vertical-align: bottom;
	border-collapse: separate;
}
 
#projectlogo img
{ 
	border: 0px none;
}
 
#projectalign
{
        vertical-align: middle;
}

#projectname
{
	font: 300% Tahoma, Arial,sans-serif;
	margin: 0px;
	padding: 2px 0px;
}
    
#projectbrief
{
	font: 120% Tahoma, Arial,sans-serif;
	margin: 0px;
	padding: 0px;
}

#projectnumber
{
	font: 50% Tahoma, Arial,sans-serif;
	margin: 0px;
	padding: 0px;
}

#titlearea
{
	padding: 0px;
	margin: 0px;
	width: 100%;
	border-bottom: 1px solid #5373B4;
}

.image
{
        text-align: center;
}

.dotgraph
{
        text-align: center;
}

.mscgraph
{
        text-align: center;
}

.plantumlgraph
{
        text-align: center;
}

.diagraph
{
        text-align: center;
}

.caption
{
	font-weight: bold;
}

div.zoom
{
	border: 1px solid #90A5CE;
}

dl.citelist {
        margin-bottom:50px;
}

dl.citelist dt {
        color:#334975;
        float:left;
        font-weight:bold;
        margin-right:10px;
        padding:5px;
}

dl.citelist dd {
        margin:2px 0;
        padding:5px 0;
}

div.toc {
        padding: 14px 25px;
        background-color: #F4F6FA;
        border: 1px solid #D8DFEE;
        border-radius: 7px 7px 7px 7px;
        float: right;
        height: auto;
        margin: 0 8px 10px 10px;
        width: 200px;
}

div.toc li {
        background: url("bdwn.png") no-repeat scroll 0 5px transparent;
        font: 10px/1.2 Verdana,DejaVu Sans,Geneva,sans-serif;
        margin-top: 5px;
        padding-left: 10px;
        padding-top: 2px;
}

div.toc h3 {
        font: bold 12px/1.2 Arial,FreeSans,sans-serif;
	color: #4665A2;
        border-bottom: 0 none;
        margin: 0;
}

div.toc ul {
        list-style: none outside none;
        border: medium none;
        padding: 0px;
}       

div.toc li.level1 {
        margin-left: 0px;
}

div.toc li.level2 {
        margin-left: 15px;
}

div.toc li.level3 {
        margin-left: 30px;
}

div.toc li.level4 {
        margin-left: 45px;
}

.inherit_header {
        font-weight: bold;
        color: gray;
        cursor: pointer;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.inherit_header td {
        padding: 6px 0px 2px 5px;
}

.inherit {
        display: none;
}

tr.heading h2 {
        margin-top: 12px;
        margin-bottom: 4px;
}

/* tooltip related style info */

.ttc {
        position: absolute;
        display: none;
}

#powerTip {
	cursor: default;
	white-space: nowrap;
	background-color: white;
	border: 1px solid gray;
	border-radius: 4px 4px 4px 4px;
	box-shadow: 1px 1px 7px gray;
	display: none;
	font-size: smaller;
	max-width: 80%;
	opacity: 0.9;
	padding: 1ex 1em 1em;
	position: absolute;
	z-index: 2147483647;
}

#powerTip div.ttdoc {
        color: grey;
	font-style: italic;
}

#powerTip div.ttname a {
        font-weight: bold;
}

#powerTip div.ttname {
        font-weight: bold;
}

#powerTip div.ttdeci {
        color: #006318;
}

#powerTip div {
        margin: 0px;
        padding: 0px;
        font: 12px/16px Roboto,sans-serif;
}

#powerTip:before, #powerTip:after {
	content: "";
	position: absolute;
	margin: 0px;
}

#powerTip.n:after,  #powerTip.n:before,
#powerTip.s:after,  #powerTip.s:before,
#powerTip.w:after,  #powerTip.w:before,
#powerTip.e:after,  #powerTip.e:before,
#powerTip.ne:after, #powerTip.ne:before,
#powerTip.se:after, #powerTip.se:before,
#powerTip.nw:after, #powerTip.nw:before,
#powerTip.sw:after, #powerTip.sw:before {
	border: solid transparent;
	content: " ";
	height: 0;
	width: 0;
	position: absolute;
}

#powerTip.n:after,  #powerTip.s:after,
#powerTip.w:after,  #powerTip.e:after,
#powerTip.nw:after, #powerTip.ne:after,
#powerTip.sw:after, #powerTip.se:after {
	border-color: rgba(255, 255, 255, 0);
}

#powerTip.n:before,  #powerTip.s:before,
#powerTip.w:before,  #powerTip.e:before,
#powerTip.nw:before, #powerTip.ne:before,
#powerTip.sw:before, #powerTip.se:before {
	border-color: rgba(128, 128, 128, 0);
}

#powerTip.n:after,  #powerTip.n:before,
#powerTip.ne:after, #powerTip.ne:before,
#powerTip.nw:after, #powerTip.nw:before {
	top: 100%;
}

#powerTip.n:after, #powerTip.ne:after, #powerTip.nw:after {
	border-top-color: #ffffff;
	border-width: 10px;
	margin: 0px -10px;
}
#powerTip.n:before {
	border-top-color: #808080;
	border-width: 11px;
	margin: 0px -11px;
}
#powerTip.n:after, #powerTip.n:before {
	left: 50%;
}

#powerTip.nw:after, #powerTip.nw:before {
	right: 14px;
}

#powerTip.ne:after, #powerTip.ne:before {
	left: 14px;
}

#powerTip.s:after,  #powerTip.s:before,
#powerTip.se:after, #powerTip.se:before,
#powerTip.sw:after, #powerTip.sw:before {
	bottom: 100%;
}

#powerTip.s:after, #powerTip.se:after, #powerTip.sw:after {
	border-bottom-color: #ffffff;
	border-width: 10px;
	margin: 0px -10px;
}

#powerTip.s:before, #powerTip.se:before, #powerTip.sw:before {
	border-bottom-color: #808080;
	border-width: 11px;
	margin: 0px -11px;
}

#powerTip.s:after, #powerTip.s:before {
	left: 50%;
}

#powerTip.sw:after, #powerTip.sw:before {
	right: 14px;
}

#powerTip.se:after, #powerTip.se:before {
	left: 14px;
}

#powerTip.e:after, #powerTip.e:before {
	left: 100%;
}
#powerTip.e:after {
	border-left-color: #ffffff;
	border-width: 10px;
	top: 50%;
	margin-top: -10px;
}
#powerTip.e:before {
	border-left-color: #808080;
	border-width: 11px;
	top: 50%;
	margin-top: -11px;
}

#powerTip.w:after, #powerTip.w:before {
	right: 100%;
}
#powerTip.w:after {
	border-right-color: #ffffff;
	border-width: 10px;
	top: 50%;
	margin-top: -10px;
}
#powerTip.w:before {
	border-right-color: #808080;
	border-width: 11px;
	top: 50%;
	margin-top: -11px;
}

@media print
{
  #top { display: none; }
  #side-nav { display: none; }
  #nav-path { display: none; }
  body { overflow:visible; }
  h1, h2, h3, h4, h5, h6 { page-break-after: avoid; }
  .summary { display: none; }
  .memitem { page-break-inside: avoid; }
  #doc-content
  {
    margin-left:0 !important;
    height:auto !important;
    width:auto !important;
    overflow:inherit;
    display:inline;
  }
}

/* @group Markdown */

/*
table.markdownTable {
	border-collapse:collapse;
        margin-top: 4px;
        margin-bottom: 4px;
}

table.markdownTable td, table.markdownTable th {
	border: 1px solid #2D4068;
	padding: 3px 7px 2px;
}

table.markdownTableHead tr {
}

table.markdownTableBodyLeft td, table.markdownTable th {
	border: 1px solid #2D4068;
	padding: 3px 7px 2px;
}

th.markdownTableHeadLeft th.markdownTableHeadRight th.markdownTableHeadCenter th.markdownTableHeadNone {
	background-color: #374F7F;
	color: #FFFFFF;
	font-size: 110%;
	padding-bottom: 4px;
	padding-top: 5px;
}

th.markdownTableHeadLeft {
	text-align: left
}

th.markdownTableHeadRight {
	text-align: right
}

th.markdownTableHeadCenter {
	text-align: center
}
*/

table.markdownTable {
	border-collapse:collapse;
        margin-top: 4px;
        margin-bottom: 4px;
}

table.markdownTable td, table.markdownTable th {
	border: 1px solid #2D4068;
	padding: 3px 7px 2px;
}

table.markdownTable tr {
}

th.markdownTableHeadLeft, th.markdownTableHeadRight, th.markdownTableHeadCenter, th.markdownTableHeadNone {
	background-color: #374F7F;
	color: #FFFFFF;
	font-size: 110%;
	padding-bottom: 4px;
	padding-top: 5px;
}

th.markdownTableHeadLeft, td.markdownTableBodyLeft {
	text-align: left
}

th.markdownTableHeadRight, td.markdownTableBodyRight {
	text-align: right
}

th.markdownTableHeadCenter, td.markdownTableBodyCenter {
	text-align: center
}


/* @end */

Added 3rdparty/util/doc/html/doxygen.png.

cannot compute difference between binary files

Added 3rdparty/util/doc/html/dynsections.js.

















































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
/*
 @licstart  The following is the entire license notice for the
 JavaScript code in this file.

 Copyright (C) 1997-2017 by Dimitri van Heesch

 This program is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation; either version 2 of the License, or
 (at your option) any later version.

 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.

 You should have received a copy of the GNU General Public License along
 with this program; if not, write to the Free Software Foundation, Inc.,
 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

 @licend  The above is the entire license notice
 for the JavaScript code in this file
 */
function toggleVisibility(linkObj)
{
 var base = $(linkObj).attr('id');
 var summary = $('#'+base+'-summary');
 var content = $('#'+base+'-content');
 var trigger = $('#'+base+'-trigger');
 var src=$(trigger).attr('src');
 if (content.is(':visible')===true) {
   content.hide();
   summary.show();
   $(linkObj).addClass('closed').removeClass('opened');
   $(trigger).attr('src',src.substring(0,src.length-8)+'closed.png');
 } else {
   content.show();
   summary.hide();
   $(linkObj).removeClass('closed').addClass('opened');
   $(trigger).attr('src',src.substring(0,src.length-10)+'open.png');
 }
 return false;
}

function updateStripes()
{
  $('table.directory tr').
       removeClass('even').filter(':visible:even').addClass('even');
}

function toggleLevel(level)
{
  $('table.directory tr').each(function() {
    var l = this.id.split('_').length-1;
    var i = $('#img'+this.id.substring(3));
    var a = $('#arr'+this.id.substring(3));
    if (l<level+1) {
      i.removeClass('iconfopen iconfclosed').addClass('iconfopen');
      a.html('&#9660;');
      $(this).show();
    } else if (l==level+1) {
      i.removeClass('iconfclosed iconfopen').addClass('iconfclosed');
      a.html('&#9654;');
      $(this).show();
    } else {
      $(this).hide();
    }
  });
  updateStripes();
}

function toggleFolder(id)
{
  // the clicked row
  var currentRow = $('#row_'+id);

  // all rows after the clicked row
  var rows = currentRow.nextAll("tr");

  var re = new RegExp('^row_'+id+'\\d+_$', "i"); //only one sub

  // only match elements AFTER this one (can't hide elements before)
  var childRows = rows.filter(function() { return this.id.match(re); });

  // first row is visible we are HIDING
  if (childRows.filter(':first').is(':visible')===true) {
    // replace down arrow by right arrow for current row
    var currentRowSpans = currentRow.find("span");
    currentRowSpans.filter(".iconfopen").removeClass("iconfopen").addClass("iconfclosed");
    currentRowSpans.filter(".arrow").html('&#9654;');
    rows.filter("[id^=row_"+id+"]").hide(); // hide all children
  } else { // we are SHOWING
    // replace right arrow by down arrow for current row
    var currentRowSpans = currentRow.find("span");
    currentRowSpans.filter(".iconfclosed").removeClass("iconfclosed").addClass("iconfopen");
    currentRowSpans.filter(".arrow").html('&#9660;');
    // replace down arrows by right arrows for child rows
    var childRowsSpans = childRows.find("span");
    childRowsSpans.filter(".iconfopen").removeClass("iconfopen").addClass("iconfclosed");
    childRowsSpans.filter(".arrow").html('&#9654;');
    childRows.show(); //show all children
  }
  updateStripes();
}


function toggleInherit(id)
{
  var rows = $('tr.inherit.'+id);
  var img = $('tr.inherit_header.'+id+' img');
  var src = $(img).attr('src');
  if (rows.filter(':first').is(':visible')===true) {
    rows.css('display','none');
    $(img).attr('src',src.substring(0,src.length-8)+'closed.png');
  } else {
    rows.css('display','table-row'); // using show() causes jump in firefox
    $(img).attr('src',src.substring(0,src.length-10)+'open.png');
  }
}
/* @license-end */

Added 3rdparty/util/doc/html/files.html.





































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>fifr::util: File List</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">File List</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock">Here is a list of all documented files with brief descriptions:</div><div class="directory">
<div class="levels">[detail level <span onclick="javascript:toggleLevel(1);">1</span><span onclick="javascript:toggleLevel(2);">2</span><span onclick="javascript:toggleLevel(3);">3</span><span onclick="javascript:toggleLevel(4);">4</span>]</div><table class="directory">
<tr id="row_0_" class="even"><td class="entry"><span style="width:0px;display:inline-block;">&#160;</span><span id="arr_0_" class="arrow" onclick="toggleFolder('0_')">&#9660;</span><span id="img_0_" class="iconfopen" onclick="toggleFolder('0_')">&#160;</span><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html" target="_self">src</a></td><td class="desc"></td></tr>
<tr id="row_0_0_"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span id="arr_0_0_" class="arrow" onclick="toggleFolder('0_0_')">&#9660;</span><span id="img_0_0_" class="iconfopen" onclick="toggleFolder('0_0_')">&#160;</span><a class="el" href="dir_410dc4a63588d435a0c08a3db8b9f0cd.html" target="_self">fifr</a></td><td class="desc"></td></tr>
<tr id="row_0_0_0_" class="even"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><span id="arr_0_0_0_" class="arrow" onclick="toggleFolder('0_0_0_')">&#9660;</span><span id="img_0_0_0_" class="iconfopen" onclick="toggleFolder('0_0_0_')">&#160;</span><a class="el" href="dir_2a722471f978b7073f859d2d7c3aa2b4.html" target="_self">util</a></td><td class="desc"></td></tr>
<tr id="row_0_0_0_0_"><td class="entry"><span style="width:64px;display:inline-block;">&#160;</span><a href="a00008_source.html"><span class="icondoc"></span></a><b>AutoTuple.hxx</b></td><td class="desc"></td></tr>
<tr id="row_0_0_0_1_" class="even"><td class="entry"><span style="width:64px;display:inline-block;">&#160;</span><a href="a00014_source.html"><span class="icondoc"></span></a><b>AutoZipStream.hxx</b></td><td class="desc"></td></tr>
<tr id="row_0_0_0_2_"><td class="entry"><span style="width:64px;display:inline-block;">&#160;</span><a href="a00020_source.html"><span class="icondoc"></span></a><b>BZip2Stream.hxx</b></td><td class="desc"></td></tr>
<tr id="row_0_0_0_3_" class="even"><td class="entry"><span style="width:64px;display:inline-block;">&#160;</span><a href="a00026_source.html"><span class="icondoc"></span></a><b>CmdArgs.hxx</b></td><td class="desc"></td></tr>
<tr id="row_0_0_0_4_"><td class="entry"><span style="width:64px;display:inline-block;">&#160;</span><a href="a00029_source.html"><span class="icondoc"></span></a><a class="el" href="a00029.html" target="_self">Convert.hxx</a></td><td class="desc">Implement a Rust inspired conversion trait <code>Convert</code> </td></tr>
<tr id="row_0_0_0_5_" class="even"><td class="entry"><span style="width:64px;display:inline-block;">&#160;</span><a href="a00035_source.html"><span class="icondoc"></span></a><b>GZipStream.hxx</b></td><td class="desc"></td></tr>
<tr id="row_0_0_0_6_"><td class="entry"><span style="width:64px;display:inline-block;">&#160;</span><a href="a00038_source.html"><span class="icondoc"></span></a><b>Join.hxx</b></td><td class="desc"></td></tr>
<tr id="row_0_0_0_7_" class="even"><td class="entry"><span style="width:64px;display:inline-block;">&#160;</span><a href="a00044_source.html"><span class="icondoc"></span></a><b>Logger.hxx</b></td><td class="desc"></td></tr>
<tr id="row_0_0_0_8_"><td class="entry"><span style="width:64px;display:inline-block;">&#160;</span><a href="a00047_source.html"><span class="icondoc"></span></a><b>Range.hxx</b></td><td class="desc"></td></tr>
<tr id="row_0_0_0_9_" class="even"><td class="entry"><span style="width:64px;display:inline-block;">&#160;</span><a href="a00053_source.html"><span class="icondoc"></span></a><b>Scan.hxx</b></td><td class="desc"></td></tr>
<tr id="row_0_0_0_10_"><td class="entry"><span style="width:64px;display:inline-block;">&#160;</span><a href="a00056_source.html"><span class="icondoc"></span></a><a class="el" href="a00056.html" target="_self">SortBy.hxx</a></td><td class="desc">Sort function to sort elements by a key </td></tr>
<tr id="row_0_0_0_11_" class="even"><td class="entry"><span style="width:64px;display:inline-block;">&#160;</span><a href="a00059_source.html"><span class="icondoc"></span></a><b>Split.hxx</b></td><td class="desc"></td></tr>
<tr id="row_0_0_0_12_"><td class="entry"><span style="width:64px;display:inline-block;">&#160;</span><a href="a00065_source.html"><span class="icondoc"></span></a><b>String.hxx</b></td><td class="desc"></td></tr>
<tr id="row_0_0_0_13_" class="even"><td class="entry"><span style="width:64px;display:inline-block;">&#160;</span><a href="a00071_source.html"><span class="icondoc"></span></a><b>WordWrapStream.hxx</b></td><td class="desc"></td></tr>
<tr id="row_0_0_0_14_"><td class="entry"><span style="width:64px;display:inline-block;">&#160;</span><a href="a00074_source.html"><span class="icondoc"></span></a><b>ZipStreamBase.hxx</b></td><td class="desc"></td></tr>
</table>
</div><!-- directory -->
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Aug 6 2018 13:22:44 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/folderclosed.png.

cannot compute difference between binary files

Added 3rdparty/util/doc/html/folderopen.png.

cannot compute difference between binary files

Added 3rdparty/util/doc/html/functions.html.





































































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>fifr::util: Data Fields</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="contents">
<div class="textblock">Here is a list of all documented struct and union fields with links to the struct/union documentation for each field:</div><ul>
<li>BZip2StreamBuf()
: <a class="el" href="a00663.html#a1e3446e302e276c7c366cd5f30dbce1b">fifr::util::BZip2StreamBuf</a>
</li>
<li>close()
: <a class="el" href="a00663.html#ad43c71a8d5642691ef77c890950a9cd8">fifr::util::BZip2StreamBuf</a>
, <a class="el" href="a00799.html#ada54dcff985e2b6ac280b52a4d237f30">fifr::util::GZipStreamBuf</a>
</li>
<li>debug()
: <a class="el" href="a00807.html#a5ac53bb43fb6bfdadeb637e86b15e31e">fifr::util::Logger</a>
</li>
<li>default_logger
: <a class="el" href="a00807.html#aca74256e77b99d8c22681a03a9b19832">fifr::util::Logger</a>
</li>
<li>error()
: <a class="el" href="a00807.html#a5f8579e7b396077c71633b95fd6cf380">fifr::util::Logger</a>
</li>
<li>flush()
: <a class="el" href="a00863.html#a4ffe84082bea5cf71390a5b75d216fa7">fifr::util::WordWrapStream</a>
</li>
<li>GZipStreamBuf()
: <a class="el" href="a00799.html#ae59f9cd9bcf226c4654cc58f6aeda2fb">fifr::util::GZipStreamBuf</a>
</li>
<li>info()
: <a class="el" href="a00807.html#a33a9b7d3fe7f3e297418e7fcdcab7897">fifr::util::Logger</a>
</li>
<li>is_open()
: <a class="el" href="a00663.html#a9ebe88a8f0e41f3d7b797e673820b262">fifr::util::BZip2StreamBuf</a>
, <a class="el" href="a00799.html#a9087cf9a619e738806251df7d7d57f05">fifr::util::GZipStreamBuf</a>
</li>
<li>Level
: <a class="el" href="a00807.html#a9555e8f1c7ca07556a63f116bd218834">fifr::util::Logger</a>
</li>
<li>level()
: <a class="el" href="a00807.html#a892a53699376fb17b4a4ab2a2cad7f30">fifr::util::Logger</a>
</li>
<li>open()
: <a class="el" href="a00663.html#aafdc74695793e2884eca22d6a5cc8493">fifr::util::BZip2StreamBuf</a>
, <a class="el" href="a00799.html#a01e310fee815cbcb6994af835155cd6b">fifr::util::GZipStreamBuf</a>
</li>
<li>operator&lt;&lt;
: <a class="el" href="a00863.html#a58b7842ed39181d0e3f42606344daec0">fifr::util::WordWrapStream</a>
</li>
<li>rest()
: <a class="el" href="a00855.html#aee9f6188e5f13f8fb78d502ee9f1132b">fifr::util::SplitIterator</a>
</li>
<li>set_indent()
: <a class="el" href="a00863.html#a0bd9407d389b19a7a318a9374904dcf8">fifr::util::WordWrapStream</a>
</li>
<li>set_indent_first()
: <a class="el" href="a00863.html#ac2a003bb87e8fc5e379f8555216c055d">fifr::util::WordWrapStream</a>
</li>
<li>set_level()
: <a class="el" href="a00807.html#a8a58644fa2cfc3f62a0e18bab9024de7">fifr::util::Logger</a>
</li>
<li>set_width()
: <a class="el" href="a00863.html#adeba1399ba5a180181cc3496af213fb3">fifr::util::WordWrapStream</a>
</li>
<li>shift_to()
: <a class="el" href="a00863.html#ab3d311cb8b6dac1471340415c00408f9">fifr::util::WordWrapStream</a>
</li>
<li>str()
: <a class="el" href="a00803.html#a7464b23617dfcfef5e1fa85b9eae8116">fifr::util::Join&lt; C &gt;</a>
</li>
<li>warn()
: <a class="el" href="a00807.html#a37b1e9b994f7a2bdf6643d8039b5a7ad">fifr::util::Logger</a>
</li>
<li>~BZip2StreamBuf()
: <a class="el" href="a00663.html#a9ff9e4ac10619304d9762e82a472347d">fifr::util::BZip2StreamBuf</a>
</li>
<li>~GZipStreamBuf()
: <a class="el" href="a00799.html#a3d3601c783a0b972293fa1a36db9e39b">fifr::util::GZipStreamBuf</a>
</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Aug 6 2018 13:22:44 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/functions_enum.html.



























































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>fifr::util: Data Fields - Enumerations</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="contents">
&#160;<ul>
<li>Level
: <a class="el" href="a00807.html#a9555e8f1c7ca07556a63f116bd218834">fifr::util::Logger</a>
</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Aug 6 2018 13:22:44 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/functions_func.html.



















































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>fifr::util: Data Fields - Functions</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="contents">
&#160;<ul>
<li>BZip2StreamBuf()
: <a class="el" href="a00663.html#a1e3446e302e276c7c366cd5f30dbce1b">fifr::util::BZip2StreamBuf</a>
</li>
<li>close()
: <a class="el" href="a00663.html#ad43c71a8d5642691ef77c890950a9cd8">fifr::util::BZip2StreamBuf</a>
, <a class="el" href="a00799.html#ada54dcff985e2b6ac280b52a4d237f30">fifr::util::GZipStreamBuf</a>
</li>
<li>debug()
: <a class="el" href="a00807.html#a5ac53bb43fb6bfdadeb637e86b15e31e">fifr::util::Logger</a>
</li>
<li>error()
: <a class="el" href="a00807.html#a5f8579e7b396077c71633b95fd6cf380">fifr::util::Logger</a>
</li>
<li>flush()
: <a class="el" href="a00863.html#a4ffe84082bea5cf71390a5b75d216fa7">fifr::util::WordWrapStream</a>
</li>
<li>GZipStreamBuf()
: <a class="el" href="a00799.html#ae59f9cd9bcf226c4654cc58f6aeda2fb">fifr::util::GZipStreamBuf</a>
</li>
<li>info()
: <a class="el" href="a00807.html#a33a9b7d3fe7f3e297418e7fcdcab7897">fifr::util::Logger</a>
</li>
<li>is_open()
: <a class="el" href="a00663.html#a9ebe88a8f0e41f3d7b797e673820b262">fifr::util::BZip2StreamBuf</a>
, <a class="el" href="a00799.html#a9087cf9a619e738806251df7d7d57f05">fifr::util::GZipStreamBuf</a>
</li>
<li>level()
: <a class="el" href="a00807.html#a892a53699376fb17b4a4ab2a2cad7f30">fifr::util::Logger</a>
</li>
<li>open()
: <a class="el" href="a00663.html#aafdc74695793e2884eca22d6a5cc8493">fifr::util::BZip2StreamBuf</a>
, <a class="el" href="a00799.html#a01e310fee815cbcb6994af835155cd6b">fifr::util::GZipStreamBuf</a>
</li>
<li>rest()
: <a class="el" href="a00855.html#aee9f6188e5f13f8fb78d502ee9f1132b">fifr::util::SplitIterator</a>
</li>
<li>set_indent()
: <a class="el" href="a00863.html#a0bd9407d389b19a7a318a9374904dcf8">fifr::util::WordWrapStream</a>
</li>
<li>set_indent_first()
: <a class="el" href="a00863.html#ac2a003bb87e8fc5e379f8555216c055d">fifr::util::WordWrapStream</a>
</li>
<li>set_level()
: <a class="el" href="a00807.html#a8a58644fa2cfc3f62a0e18bab9024de7">fifr::util::Logger</a>
</li>
<li>set_width()
: <a class="el" href="a00863.html#adeba1399ba5a180181cc3496af213fb3">fifr::util::WordWrapStream</a>
</li>
<li>shift_to()
: <a class="el" href="a00863.html#ab3d311cb8b6dac1471340415c00408f9">fifr::util::WordWrapStream</a>
</li>
<li>str()
: <a class="el" href="a00803.html#a7464b23617dfcfef5e1fa85b9eae8116">fifr::util::Join&lt; C &gt;</a>
</li>
<li>warn()
: <a class="el" href="a00807.html#a37b1e9b994f7a2bdf6643d8039b5a7ad">fifr::util::Logger</a>
</li>
<li>~BZip2StreamBuf()
: <a class="el" href="a00663.html#a9ff9e4ac10619304d9762e82a472347d">fifr::util::BZip2StreamBuf</a>
</li>
<li>~GZipStreamBuf()
: <a class="el" href="a00799.html#a3d3601c783a0b972293fa1a36db9e39b">fifr::util::GZipStreamBuf</a>
</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Aug 6 2018 13:22:44 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/functions_rela.html.



























































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>fifr::util: Data Fields - Related Functions</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="contents">
&#160;<ul>
<li>operator&lt;&lt;
: <a class="el" href="a00863.html#a58b7842ed39181d0e3f42606344daec0">fifr::util::WordWrapStream</a>
</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Aug 6 2018 13:22:44 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/functions_vars.html.



























































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>fifr::util: Data Fields - Variables</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="contents">
&#160;<ul>
<li>default_logger
: <a class="el" href="a00807.html#aca74256e77b99d8c22681a03a9b19832">fifr::util::Logger</a>
</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Aug 6 2018 13:22:44 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/hierarchy.html.

















































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>fifr::util: Class Hierarchy</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">Class Hierarchy</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock">This inheritance list is sorted roughly, but not completely, alphabetically:</div><div class="directory">
<div class="levels">[detail level <span onclick="javascript:toggleLevel(1);">1</span><span onclick="javascript:toggleLevel(2);">2</span><span onclick="javascript:toggleLevel(3);">3</span><span onclick="javascript:toggleLevel(4);">4</span><span onclick="javascript:toggleLevel(5);">5</span>]</div><table class="directory">
<tr id="row_0_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="a00839.html" target="_self">fifr::util::all_range</a></td><td class="desc">Range covering all elements </td></tr>
<tr id="row_1_"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="a00631.html" target="_self">fifr::util::AutoTuple&lt; Args &gt;</a></td><td class="desc">Trait for returning tuple, pair or value depending on the number of type arguments </td></tr>
<tr id="row_2_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="a00663.html" target="_self">fifr::util::BZip2StreamBuf</a></td><td class="desc">Stream buffer for bzip2ed files </td></tr>
<tr id="row_3_"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="a00707.html" target="_self">fifr::util::Convert&lt; To, From, Enable &gt;</a></td><td class="desc">Trait for converting two types </td></tr>
<tr id="row_4_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="a00767.html" target="_self">fifr::util::Convert&lt; double, char * &gt;</a></td><td class="desc"><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> <code>char*</code> to <code>double</code> </td></tr>
<tr id="row_5_"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="a00763.html" target="_self">fifr::util::Convert&lt; float, char * &gt;</a></td><td class="desc"><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> <code>char*</code> to <code>float</code> </td></tr>
<tr id="row_6_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="a00739.html" target="_self">fifr::util::Convert&lt; int, char * &gt;</a></td><td class="desc"><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> <code>char*</code> to <code>int</code> </td></tr>
<tr id="row_7_"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="a00771.html" target="_self">fifr::util::Convert&lt; long double, char * &gt;</a></td><td class="desc"><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> <code>char*</code> to <code>long double</code> </td></tr>
<tr id="row_8_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="a00747.html" target="_self">fifr::util::Convert&lt; long long, char * &gt;</a></td><td class="desc"><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> <code>char*</code> to <code>long long</code> </td></tr>
<tr id="row_9_"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="a00743.html" target="_self">fifr::util::Convert&lt; long, char * &gt;</a></td><td class="desc"><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> <code>char*</code> to <code>long</code> </td></tr>
<tr id="row_10_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="a00787.html" target="_self">fifr::util::Convert&lt; std::array&lt; To, N &gt;, std::array&lt; From, N &gt; &gt;</a></td><td class="desc"><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> array to another array </td></tr>
<tr id="row_11_"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="a00779.html" target="_self">fifr::util::Convert&lt; std::pair&lt; To1, To2 &gt;, std::pair&lt; From1, From2 &gt; &gt;</a></td><td class="desc"><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> pair to another pair </td></tr>
<tr id="row_12_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="a00735.html" target="_self">fifr::util::Convert&lt; std::string, char * &gt;</a></td><td class="desc"><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> <code>char*</code> to `std::string </td></tr>
<tr id="row_13_"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="a00715.html" target="_self">fifr::util::Convert&lt; std::string, std::string &gt;</a></td><td class="desc">Special self conversions to remove ambiguity </td></tr>
<tr id="row_14_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="a00723.html" target="_self">fifr::util::Convert&lt; std::string, T, decltype((void) std::declval&lt; const T &amp; &gt;().to_string())&gt;</a></td><td class="desc"><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> to <code>std::string</code> using <code>this.to_string()</code> </td></tr>
<tr id="row_15_"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="a00719.html" target="_self">fifr::util::Convert&lt; std::string, T, decltype((void) std::to_string(std::declval&lt; T &gt;()))&gt;</a></td><td class="desc"><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> to <code>std::string</code> using <code>std::to_string</code> </td></tr>
<tr id="row_16_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="a00783.html" target="_self">fifr::util::Convert&lt; std::tuple&lt; To... &gt;, std::tuple&lt; From... &gt; &gt;</a></td><td class="desc"><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> tuple to another tuple </td></tr>
<tr id="row_17_"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="a00791.html" target="_self">fifr::util::Convert&lt; std::vector&lt; To &gt;, std::vector&lt; From &gt; &gt;</a></td><td class="desc"><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> vector to another vector </td></tr>
<tr id="row_18_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="a00711.html" target="_self">fifr::util::Convert&lt; T, T &gt;</a></td><td class="desc">Conversion from some type to itself </td></tr>
<tr id="row_19_"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="a00731.html" target="_self">fifr::util::Convert&lt; To, char[N]&gt;</a></td><td class="desc"><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> <code>char[N]</code> to something else converting through <code>const char*</code> </td></tr>
<tr id="row_20_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="a00727.html" target="_self">fifr::util::Convert&lt; To, std::string &gt;</a></td><td class="desc"><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> <code>std::string</code> to something else converting through <code>const char*</code> </td></tr>
<tr id="row_21_"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="a00751.html" target="_self">fifr::util::Convert&lt; unsigned int, char * &gt;</a></td><td class="desc"><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> <code>char*</code> to <code>unsigned int</code> </td></tr>
<tr id="row_22_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="a00759.html" target="_self">fifr::util::Convert&lt; unsigned long long, char * &gt;</a></td><td class="desc"><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> <code>char*</code> to <code>unsigned long long</code> </td></tr>
<tr id="row_23_"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="a00755.html" target="_self">fifr::util::Convert&lt; unsigned long, char * &gt;</a></td><td class="desc"><a class="el" href="a00707.html" title="Trait for converting two types. ">Convert</a> <code>char*</code> to <code>unsigned long</code> </td></tr>
<tr id="row_24_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="a00799.html" target="_self">fifr::util::GZipStreamBuf</a></td><td class="desc">Stream buffer for gzipped files </td></tr>
<tr id="row_25_"><td class="entry"><span style="width:0px;display:inline-block;">&#160;</span><span id="arr_25_" class="arrow" onclick="toggleFolder('25_')">&#9660;</span><span class="icona"><span class="icon">C</span></span><b>std::ios_base</b></td><td class="desc">STL class </td></tr>
<tr id="row_25_0_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span id="arr_25_0_" class="arrow" onclick="toggleFolder('25_0_')">&#9660;</span><span class="icona"><span class="icon">C</span></span><b>std::basic_ios&lt; Char &gt;</b></td><td class="desc">STL class </td></tr>
<tr id="row_25_0_0_"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><span id="arr_25_0_0_" class="arrow" onclick="toggleFolder('25_0_0_')">&#9660;</span><span class="icona"><span class="icon">C</span></span><b>std::basic_istream&lt; Char &gt;</b></td><td class="desc">STL class </td></tr>
<tr id="row_25_0_0_0_" class="even"><td class="entry"><span style="width:48px;display:inline-block;">&#160;</span><span id="arr_25_0_0_0_" class="arrow" onclick="toggleFolder('25_0_0_0_')">&#9660;</span><span class="icona"><span class="icon">C</span></span><b>std::istream</b></td><td class="desc">STL class </td></tr>
<tr id="row_25_0_0_0_0_"><td class="entry"><span style="width:80px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="a00651.html" target="_self">fifr::util::InputAutoZipStream</a></td><td class="desc">A file stream that automatically decompresses files </td></tr>
<tr id="row_25_0_1_" class="even"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><span id="arr_25_0_1_" class="arrow" onclick="toggleFolder('25_0_1_')">&#9660;</span><span class="icona"><span class="icon">C</span></span><b>std::basic_ostream&lt; Char &gt;</b></td><td class="desc">STL class </td></tr>
<tr id="row_25_0_1_0_"><td class="entry"><span style="width:48px;display:inline-block;">&#160;</span><span id="arr_25_0_1_0_" class="arrow" onclick="toggleFolder('25_0_1_0_')">&#9660;</span><span class="icona"><span class="icon">C</span></span><b>std::ostream</b></td><td class="desc">STL class </td></tr>
<tr id="row_25_0_1_0_0_" class="even"><td class="entry"><span style="width:80px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="a00655.html" target="_self">fifr::util::OutputAutoZipStream</a></td><td class="desc">A file stream that automatically compresses files </td></tr>
<tr id="row_26_"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="a00843.html" target="_self">fifr::util::IteratorProxy&lt; It_ &gt;</a></td><td class="desc">Proxy providing access to some iterators </td></tr>
<tr id="row_27_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="a00803.html" target="_self">fifr::util::Join&lt; C &gt;</a></td><td class="desc"><a class="el" href="a00803.html" title="Join operator. ">Join</a> operator </td></tr>
<tr id="row_28_"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="a00807.html" target="_self">fifr::util::Logger</a></td><td class="desc">A simple <a class="el" href="a00807.html" title="A simple Logger. ">Logger</a> </td></tr>
<tr id="row_29_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="a00847.html" target="_self">fifr::util::ScanIterator&lt; Args &gt;</a></td><td class="desc">Iterator for matches of a scan operation </td></tr>
<tr id="row_30_"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="a00851.html" target="_self">fifr::util::ScanIterator&lt;&gt;</a></td><td class="desc">Full match scan iterator </td></tr>
<tr id="row_31_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="a00855.html" target="_self">fifr::util::SplitIterator</a></td><td class="desc">Iterator over the parts of a split string </td></tr>
<tr id="row_32_"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="a00863.html" target="_self">fifr::util::WordWrapStream</a></td><td class="desc">Write to an output stream with word wrapping </td></tr>
</table>
</div><!-- directory -->
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Aug 6 2018 13:22:44 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/index.html.

















































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>fifr::util: fifr::util C++ utility library</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title"><a class="el" href="a00079.html" title="Utility functions for c++. ">fifr::util</a> C++ utility library </div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><h2>Introduction </h2>
<p>This is small library of useful C++ functions.</p>
<h2>Documentation </h2>
<p>The (very sparse) API documentation can found <a href="doc/html/index.html">here</a>.</p>
<h2>Download </h2>
<p>Latest development version: <a href="http://fifr.spdns.de/fossils/cpp-util/tarball/util-trunk.tar.gz?name=util">util-trunk.tar.gz</a></p>
<p>The project lives in a <a href="http://fossil-scm.org">fossil</a> repository. In order to clone the repository, execute the following commands: </p><pre class="fragment">fossil clone http://fifr.spdns.de/cpp-util path/to/cpp-util.fossil
mkdir path/to/util-sources
cd path/to/util-sources
fossil open path/to/cpp-util.fossil
</pre><h2>Installation </h2>
<p><b><a class="el" href="a00079.html" title="Utility functions for c++. ">fifr::util</a></b> is designed to be copied into your project. Just copy all files from the <code>src/</code> directory to your project. Note that <b><a class="el" href="a00079.html" title="Utility functions for c++. ">fifr::util</a></b> requires C++14. </p>
</div></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Aug 6 2018 13:22:44 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/jquery.js.

cannot compute difference between binary files

Added 3rdparty/util/doc/html/menu.js.





































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*
 @licstart  The following is the entire license notice for the
 JavaScript code in this file.

 Copyright (C) 1997-2017 by Dimitri van Heesch

 This program is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation; either version 2 of the License, or
 (at your option) any later version.

 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.

 You should have received a copy of the GNU General Public License along
 with this program; if not, write to the Free Software Foundation, Inc.,
 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

 @licend  The above is the entire license notice
 for the JavaScript code in this file
 */
function initMenu(relPath,searchEnabled,serverSide,searchPage,search) {
  function makeTree(data,relPath) {
    var result='';
    if ('children' in data) {
      result+='<ul>';
      for (var i in data.children) {
        result+='<li><a href="'+relPath+data.children[i].url+'">'+
                                data.children[i].text+'</a>'+
                                makeTree(data.children[i],relPath)+'</li>';
      }
      result+='</ul>';
    }
    return result;
  }

  $('#main-nav').append(makeTree(menudata,relPath));
  $('#main-nav').children(':first').addClass('sm sm-dox').attr('id','main-menu');
  if (searchEnabled) {
    if (serverSide) {
      $('#main-menu').append('<li style="float:right"><div id="MSearchBox" class="MSearchBoxInactive"><div class="left"><form id="FSearchBox" action="'+searchPage+'" method="get"><img id="MSearchSelect" src="'+relPath+'search/mag.png" alt=""/><input type="text" id="MSearchField" name="query" value="'+search+'" size="20" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)"></form></div><div class="right"></div></div></li>');
    } else {
      $('#main-menu').append('<li style="float:right"><div id="MSearchBox" class="MSearchBoxInactive"><span class="left"><img id="MSearchSelect" src="'+relPath+'search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/><input type="text" id="MSearchField" value="'+search+'" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/></span><span class="right"><a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="'+relPath+'search/close.png" alt=""/></a></span></div></li>');
    }
  }
  $('#main-menu').smartmenus();
}
/* @license-end */

Added 3rdparty/util/doc/html/menudata.js.





































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/*
@ @licstart  The following is the entire license notice for the
JavaScript code in this file.

Copyright (C) 1997-2017 by Dimitri van Heesch

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.

You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

@licend  The above is the entire license notice
for the JavaScript code in this file
*/
var menudata={children:[
{text:"Main Page",url:"index.html"},
{text:"Namespaces",url:"namespaces.html",children:[
{text:"Namespace List",url:"namespaces.html"},
{text:"Namespace Members",url:"namespacemembers.html",children:[
{text:"All",url:"namespacemembers.html",children:[
{text:"c",url:"namespacemembers.html#index_c"},
{text:"d",url:"namespacemembers.html#index_d"},
{text:"e",url:"namespacemembers.html#index_e"},
{text:"i",url:"namespacemembers.html#index_i"},
{text:"j",url:"namespacemembers.html#index_j"},
{text:"m",url:"namespacemembers.html#index_m"},
{text:"o",url:"namespacemembers.html#index_o"},
{text:"r",url:"namespacemembers.html#index_r"},
{text:"s",url:"namespacemembers.html#index_s"},
{text:"w",url:"namespacemembers.html#index_w"},
{text:"z",url:"namespacemembers.html#index_z"}]},
{text:"Functions",url:"namespacemembers_func.html",children:[
{text:"c",url:"namespacemembers_func.html#index_c"},
{text:"d",url:"namespacemembers_func.html#index_d"},
{text:"e",url:"namespacemembers_func.html#index_e"},
{text:"i",url:"namespacemembers_func.html#index_i"},
{text:"j",url:"namespacemembers_func.html#index_j"},
{text:"m",url:"namespacemembers_func.html#index_m"},
{text:"o",url:"namespacemembers_func.html#index_o"},
{text:"r",url:"namespacemembers_func.html#index_r"},
{text:"s",url:"namespacemembers_func.html#index_s"},
{text:"w",url:"namespacemembers_func.html#index_w"}]},
{text:"Variables",url:"namespacemembers_vars.html"},
{text:"Typedefs",url:"namespacemembers_type.html"},
{text:"Enumerations",url:"namespacemembers_enum.html"}]}]},
{text:"Data Structures",url:"annotated.html",children:[
{text:"Data Structures",url:"annotated.html"},
{text:"Data Structure Index",url:"classes.html"},
{text:"Class Hierarchy",url:"hierarchy.html"},
{text:"Data Fields",url:"functions.html",children:[
{text:"All",url:"functions.html"},
{text:"Functions",url:"functions_func.html"},
{text:"Variables",url:"functions_vars.html"},
{text:"Enumerations",url:"functions_enum.html"},
{text:"Related Functions",url:"functions_rela.html"}]}]},
{text:"Files",url:"files.html",children:[
{text:"File List",url:"files.html"}]}]}

Added 3rdparty/util/doc/html/namespacemembers.html.

















































































































































































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>fifr::util: Namespace Members</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="contents">
<div class="textblock">Here is a list of all documented namespace members with links to the namespaces they belong to:</div>

<h3><a id="index_c"></a>- c -</h3><ul>
<li>convert()
: <a class="el" href="a00079.html#a2571be8e8b55e880f6c251f93bbf1d97">fifr::util</a>
</li>
</ul>


<h3><a id="index_d"></a>- d -</h3><ul>
<li>debug()
: <a class="el" href="a00079.html#a530005db874eb698dc4f690df47488cb">fifr::util</a>
</li>
<li>default_split
: <a class="el" href="a00079.html#ac4bdb5919b69453de8a723476cb21157">fifr::util</a>
</li>
</ul>


<h3><a id="index_e"></a>- e -</h3><ul>
<li>ends_with()
: <a class="el" href="a00079.html#a73347c8e85b0cc1de47f81646d08f67f">fifr::util</a>
</li>
<li>error()
: <a class="el" href="a00079.html#a4cad7e59800f367105c4125b612ccd76">fifr::util</a>
</li>
<li>escape_shell_argument()
: <a class="el" href="a00079.html#a768ab27dcecf1b581afb1816220dfd53">fifr::util</a>
</li>
</ul>


<h3><a id="index_i"></a>- i -</h3><ul>
<li>indices()
: <a class="el" href="a00079.html#ab85f8d0d402de83302c77b45a93d2d2d">fifr::util</a>
</li>
<li>info()
: <a class="el" href="a00079.html#a0f8dd9522b8575d81cebf04780b034d9">fifr::util</a>
</li>
</ul>


<h3><a id="index_j"></a>- j -</h3><ul>
<li>join()
: <a class="el" href="a00079.html#a4549a4c462e3314bd2dae501eae9d9c9">fifr::util</a>
</li>
</ul>


<h3><a id="index_m"></a>- m -</h3><ul>
<li>make_auto_tuple()
: <a class="el" href="a00079.html#a2bdff2715e924516df9cc786e65d248e">fifr::util</a>
</li>
</ul>


<h3><a id="index_o"></a>- o -</h3><ul>
<li>open_by_extension()
: <a class="el" href="a00079.html#a28a41e2b56c30668238b0015371f3d72">fifr::util</a>
</li>
<li>open_streambuf
: <a class="el" href="a00079.html#ab35030b49111e5496edbd06a4b568435">fifr::util</a>
</li>
<li>operator+()
: <a class="el" href="a00079.html#a2b58dac747e9b7727aac01660043d13f">fifr::util</a>
</li>
<li>operator&lt;&lt;()
: <a class="el" href="a00079.html#ae98e55ea66db06b79188fa9464ab34ea">fifr::util</a>
</li>
</ul>


<h3><a id="index_r"></a>- r -</h3><ul>
<li>range()
: <a class="el" href="a00079.html#a635542a3a6fb35d5a7d726c472a8262e">fifr::util</a>
</li>
<li>range_begin()
: <a class="el" href="a00079.html#a40d02e79f662d3f9b8720198615f8ad4">fifr::util</a>
</li>
<li>range_end()
: <a class="el" href="a00079.html#a014cff4079ea58c93598c1a06c3dd402">fifr::util</a>
</li>
<li>range_size()
: <a class="el" href="a00079.html#ab4fca9109feff56d9fa4b5567013655c">fifr::util</a>
</li>
</ul>


<h3><a id="index_s"></a>- s -</h3><ul>
<li>scan()
: <a class="el" href="a00079.html#a965fae864f05b845194b24177ffd3a81">fifr::util</a>
</li>
<li>scan_matches()
: <a class="el" href="a00079.html#a3093afe9b956797b3ce3fb1191b21409">fifr::util</a>
</li>
<li>sort_by()
: <a class="el" href="a00079.html#a87337d5276c5ab23b339b19fd1cb952e">fifr::util</a>
</li>
<li>split()
: <a class="el" href="a00079.html#a39ff18b164b8ad8bea4f1844059fdcae">fifr::util</a>
</li>
<li>split_begin()
: <a class="el" href="a00079.html#a1c074a76b80bda682fed3eb223e5169d">fifr::util</a>
</li>
<li>split_end()
: <a class="el" href="a00079.html#a4554785c6f64cc545562fbb6af04e480">fifr::util</a>
</li>
<li>splitv()
: <a class="el" href="a00079.html#a5080ec6002a4cb7180a8f758a10a9797">fifr::util</a>
</li>
<li>starts_with()
: <a class="el" href="a00079.html#a97fd698781599ba97906caeafe4a9f4c">fifr::util</a>
</li>
</ul>


<h3><a id="index_w"></a>- w -</h3><ul>
<li>warn()
: <a class="el" href="a00079.html#add7683b10f66d150b12b57bc9518caee">fifr::util</a>
</li>
</ul>


<h3><a id="index_z"></a>- z -</h3><ul>
<li>ZipMode
: <a class="el" href="a00079.html#af2481a377dd3823a98547966b7ce7f70">fifr::util</a>
</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Aug 6 2018 13:22:44 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/namespacemembers_enum.html.



























































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>fifr::util: Namespace Members</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="contents">
&#160;<ul>
<li>ZipMode
: <a class="el" href="a00079.html#af2481a377dd3823a98547966b7ce7f70">fifr::util</a>
</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Aug 6 2018 13:22:44 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/namespacemembers_func.html.























































































































































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>fifr::util: Namespace Members</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="contents">
&#160;

<h3><a id="index_c"></a>- c -</h3><ul>
<li>convert()
: <a class="el" href="a00079.html#a2571be8e8b55e880f6c251f93bbf1d97">fifr::util</a>
</li>
</ul>


<h3><a id="index_d"></a>- d -</h3><ul>
<li>debug()
: <a class="el" href="a00079.html#a530005db874eb698dc4f690df47488cb">fifr::util</a>
</li>
</ul>


<h3><a id="index_e"></a>- e -</h3><ul>
<li>ends_with()
: <a class="el" href="a00079.html#a73347c8e85b0cc1de47f81646d08f67f">fifr::util</a>
</li>
<li>error()
: <a class="el" href="a00079.html#a4cad7e59800f367105c4125b612ccd76">fifr::util</a>
</li>
<li>escape_shell_argument()
: <a class="el" href="a00079.html#a768ab27dcecf1b581afb1816220dfd53">fifr::util</a>
</li>
</ul>


<h3><a id="index_i"></a>- i -</h3><ul>
<li>indices()
: <a class="el" href="a00079.html#ab85f8d0d402de83302c77b45a93d2d2d">fifr::util</a>
</li>
<li>info()
: <a class="el" href="a00079.html#a0f8dd9522b8575d81cebf04780b034d9">fifr::util</a>
</li>
</ul>


<h3><a id="index_j"></a>- j -</h3><ul>
<li>join()
: <a class="el" href="a00079.html#a4549a4c462e3314bd2dae501eae9d9c9">fifr::util</a>
</li>
</ul>


<h3><a id="index_m"></a>- m -</h3><ul>
<li>make_auto_tuple()
: <a class="el" href="a00079.html#a2bdff2715e924516df9cc786e65d248e">fifr::util</a>
</li>
</ul>


<h3><a id="index_o"></a>- o -</h3><ul>
<li>open_by_extension()
: <a class="el" href="a00079.html#a28a41e2b56c30668238b0015371f3d72">fifr::util</a>
</li>
<li>operator+()
: <a class="el" href="a00079.html#a47864c335721f56fe75f007a9c52d004">fifr::util</a>
</li>
<li>operator&lt;&lt;()
: <a class="el" href="a00079.html#a763fb6df77ab87aaa34abbff74100af7">fifr::util</a>
</li>
</ul>


<h3><a id="index_r"></a>- r -</h3><ul>
<li>range()
: <a class="el" href="a00079.html#a635542a3a6fb35d5a7d726c472a8262e">fifr::util</a>
</li>
<li>range_begin()
: <a class="el" href="a00079.html#a40d02e79f662d3f9b8720198615f8ad4">fifr::util</a>
</li>
<li>range_end()
: <a class="el" href="a00079.html#a072c669eeb901b9f5ff50e22cbe9ba52">fifr::util</a>
</li>
<li>range_size()
: <a class="el" href="a00079.html#afc1a7108d8445c9c10e345baa1c57dd2">fifr::util</a>
</li>
</ul>


<h3><a id="index_s"></a>- s -</h3><ul>
<li>scan()
: <a class="el" href="a00079.html#a965fae864f05b845194b24177ffd3a81">fifr::util</a>
</li>
<li>scan_matches()
: <a class="el" href="a00079.html#a3093afe9b956797b3ce3fb1191b21409">fifr::util</a>
</li>
<li>sort_by()
: <a class="el" href="a00079.html#a22abdf2c6d5581264dc1d7933e06319b">fifr::util</a>
</li>
<li>split()
: <a class="el" href="a00079.html#a39ff18b164b8ad8bea4f1844059fdcae">fifr::util</a>
</li>
<li>split_begin()
: <a class="el" href="a00079.html#a1c074a76b80bda682fed3eb223e5169d">fifr::util</a>
</li>
<li>split_end()
: <a class="el" href="a00079.html#a4554785c6f64cc545562fbb6af04e480">fifr::util</a>
</li>
<li>splitv()
: <a class="el" href="a00079.html#a5080ec6002a4cb7180a8f758a10a9797">fifr::util</a>
</li>
<li>starts_with()
: <a class="el" href="a00079.html#a97fd698781599ba97906caeafe4a9f4c">fifr::util</a>
</li>
</ul>


<h3><a id="index_w"></a>- w -</h3><ul>
<li>warn()
: <a class="el" href="a00079.html#add7683b10f66d150b12b57bc9518caee">fifr::util</a>
</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Aug 6 2018 13:22:44 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/namespacemembers_type.html.



























































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>fifr::util: Namespace Members</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="contents">
&#160;<ul>
<li>open_streambuf
: <a class="el" href="a00079.html#ab35030b49111e5496edbd06a4b568435">fifr::util</a>
</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Aug 6 2018 13:22:44 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/namespacemembers_vars.html.



























































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>fifr::util: Namespace Members</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="contents">
&#160;<ul>
<li>default_split
: <a class="el" href="a00079.html#ac4bdb5919b69453de8a723476cb21157">fifr::util</a>
</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Aug 6 2018 13:22:44 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/namespaces.html.





































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>fifr::util: Namespace List</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">fifr::util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">Namespace List</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock">Here is a list of all documented namespaces with brief descriptions:</div><div class="directory">
<div class="levels">[detail level <span onclick="javascript:toggleLevel(1);">1</span><span onclick="javascript:toggleLevel(2);">2</span>]</div><table class="directory">
<tr id="row_0_" class="even"><td class="entry"><span style="width:0px;display:inline-block;">&#160;</span><span id="arr_0_" class="arrow" onclick="toggleFolder('0_')">&#9660;</span><span class="icona"><span class="icon">N</span></span><b>fifr</b></td><td class="desc"></td></tr>
<tr id="row_0_0_"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">N</span></span><a class="el" href="a00079.html" target="_self">util</a></td><td class="desc">Utility functions for c++ </td></tr>
</table>
</div><!-- directory -->
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Aug 6 2018 13:22:44 for fifr::util by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>

Added 3rdparty/util/doc/html/nav_f.png.

cannot compute difference between binary files

Added 3rdparty/util/doc/html/nav_g.png.

cannot compute difference between binary files

Added 3rdparty/util/doc/html/nav_h.png.

cannot compute difference between binary files

Added 3rdparty/util/doc/html/open.png.

cannot compute difference between binary files

Added 3rdparty/util/doc/html/search/all_0.html.





























































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="all_0.js"></script>
<script type="text/javascript" src="search.js"></script>
</head>
<body class="SRPage">
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
createResults();
/* @license-end */
--></script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
/* @license-end */
--></script>
</div>
</body>
</html>

Added 3rdparty/util/doc/html/search/all_0.js.













>
>
>
>
>
>
1
2
3
4
5
6
var searchData=
[
  ['all_5frange',['all_range',['../a00839.html',1,'fifr::util']]],
  ['auto',['Auto',['../a00079.html#af2481a377dd3823a98547966b7ce7f70a06b9281e396db002010bde1de57262eb',1,'fifr::util']]],
  ['autotuple',['AutoTuple',['../a00631.html',1,'fifr::util']]]
];

Added 3rdparty/util/doc/html/search/all_1.html.





























































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="all_1.js"></script>
<script type="text/javascript" src="search.js"></script>
</head>
<body class="SRPage">
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
createResults();
/* @license-end */
--></script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
/* @license-end */
--></script>
</div>
</body>
</html>

Added 3rdparty/util/doc/html/search/all_1.js.









>
>
>
>
1
2
3
4
var searchData=
[
  ['bzip2streambuf',['BZip2StreamBuf',['../a00663.html',1,'fifr::util::BZip2StreamBuf'],['../a00663.html#a1e3446e302e276c7c366cd5f30dbce1b',1,'fifr::util::BZip2StreamBuf::BZip2StreamBuf()']]]
];

Added 3rdparty/util/doc/html/search/all_10.html.





























































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="all_10.js"></script>
<script type="text/javascript" src="search.js"></script>
</head>
<body class="SRPage">
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
createResults();
/* @license-end */
--></script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
/* @license-end */
--></script>
</div>
</body>
</html>

Added 3rdparty/util/doc/html/search/all_10.js.









>
>
>
>
1
2
3
4
var searchData=
[
  ['zipmode',['ZipMode',['../a00079.html#af2481a377dd3823a98547966b7ce7f70',1,'fifr::util']]]
];

Added 3rdparty/util/doc/html/search/all_11.html.





























































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="all_11.js"></script>
<script type="text/javascript" src="search.js"></script>
</head>
<body class="SRPage">
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
createResults();
/* @license-end */
--></script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
/* @license-end */
--></script>
</div>
</body>
</html>

Added 3rdparty/util/doc/html/search/all_11.js.











>
>
>
>
>
1
2
3
4
5
var searchData=
[
  ['_7ebzip2streambuf',['~BZip2StreamBuf',['../a00663.html#a9ff9e4ac10619304d9762e82a472347d',1,'fifr::util::BZip2StreamBuf']]],
  ['_7egzipstreambuf',['~GZipStreamBuf',['../a00799.html#a3d3601c783a0b972293fa1a36db9e39b',1,'fifr::util::GZipStreamBuf']]]
];

Added 3rdparty/util/doc/html/search/all_2.html.





























































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="all_2.js"></script>
<script type="text/javascript" src="search.js"></script>
</head>
<body class="SRPage">
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
createResults();
/* @license-end */
--></script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
/* @license-end */
--></script>
</div>
</body>
</html>

Added 3rdparty/util/doc/html/search/all_2.js.





















































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
var searchData=
[
  ['close',['close',['../a00663.html#ad43c71a8d5642691ef77c890950a9cd8',1,'fifr::util::BZip2StreamBuf::close()'],['../a00799.html#ada54dcff985e2b6ac280b52a4d237f30',1,'fifr::util::GZipStreamBuf::close()']]],
  ['convert',['Convert',['../a00707.html',1,'fifr::util::Convert&lt; To, From, Enable &gt;'],['../a00079.html#a2571be8e8b55e880f6c251f93bbf1d97',1,'fifr::util::convert(From &amp;&amp;x)']]],
  ['convert_2ehxx',['Convert.hxx',['../a00029.html',1,'']]],
  ['convert_3c_20double_2c_20char_20_2a_20_3e',['Convert&lt; double, char * &gt;',['../a00767.html',1,'fifr::util']]],
  ['convert_3c_20float_2c_20char_20_2a_20_3e',['Convert&lt; float, char * &gt;',['../a00763.html',1,'fifr::util']]],
  ['convert_3c_20int_2c_20char_20_2a_20_3e',['Convert&lt; int, char * &gt;',['../a00739.html',1,'fifr::util']]],
  ['convert_3c_20long_20double_2c_20char_20_2a_20_3e',['Convert&lt; long double, char * &gt;',['../a00771.html',1,'fifr::util']]],
  ['convert_3c_20long_20long_2c_20char_20_2a_20_3e',['Convert&lt; long long, char * &gt;',['../a00747.html',1,'fifr::util']]],
  ['convert_3c_20long_2c_20char_20_2a_20_3e',['Convert&lt; long, char * &gt;',['../a00743.html',1,'fifr::util']]],
  ['convert_3c_20std_3a_3aarray_3c_20to_2c_20n_20_3e_2c_20std_3a_3aarray_3c_20from_2c_20n_20_3e_20_3e',['Convert&lt; std::array&lt; To, N &gt;, std::array&lt; From, N &gt; &gt;',['../a00787.html',1,'fifr::util']]],
  ['convert_3c_20std_3a_3apair_3c_20to1_2c_20to2_20_3e_2c_20std_3a_3apair_3c_20from1_2c_20from2_20_3e_20_3e',['Convert&lt; std::pair&lt; To1, To2 &gt;, std::pair&lt; From1, From2 &gt; &gt;',['../a00779.html',1,'fifr::util']]],
  ['convert_3c_20std_3a_3astring_2c_20char_20_2a_20_3e',['Convert&lt; std::string, char * &gt;',['../a00735.html',1,'fifr::util']]],
  ['convert_3c_20std_3a_3astring_2c_20std_3a_3astring_20_3e',['Convert&lt; std::string, std::string &gt;',['../a00715.html',1,'fifr::util']]],
  ['convert_3c_20std_3a_3astring_2c_20t_2c_20decltype_28_28void_29_20std_3a_3adeclval_3c_20const_20t_20_26_20_3e_28_29_2eto_5fstring_28_29_29_3e',['Convert&lt; std::string, T, decltype((void) std::declval&lt; const T &amp; &gt;().to_string())&gt;',['../a00723.html',1,'fifr::util']]],
  ['convert_3c_20std_3a_3astring_2c_20t_2c_20decltype_28_28void_29_20std_3a_3ato_5fstring_28std_3a_3adeclval_3c_20t_20_3e_28_29_29_29_3e',['Convert&lt; std::string, T, decltype((void) std::to_string(std::declval&lt; T &gt;()))&gt;',['../a00719.html',1,'fifr::util']]],
  ['convert_3c_20std_3a_3atuple_3c_20to_2e_2e_2e_20_3e_2c_20std_3a_3atuple_3c_20from_2e_2e_2e_20_3e_20_3e',['Convert&lt; std::tuple&lt; To... &gt;, std::tuple&lt; From... &gt; &gt;',['../a00783.html',1,'fifr::util']]],
  ['convert_3c_20std_3a_3avector_3c_20to_20_3e_2c_20std_3a_3avector_3c_20from_20_3e_20_3e',['Convert&lt; std::vector&lt; To &gt;, std::vector&lt; From &gt; &gt;',['../a00791.html',1,'fifr::util']]],
  ['convert_3c_20t_2c_20t_20_3e',['Convert&lt; T, T &gt;',['../a00711.html',1,'fifr::util']]],
  ['convert_3c_20to_2c_20char_5bn_5d_3e',['Convert&lt; To, char[N]&gt;',['../a00731.html',1,'fifr::util']]],
  ['convert_3c_20to_2c_20std_3a_3astring_20_3e',['Convert&lt; To, std::string &gt;',['../a00727.html',1,'fifr::util']]],
  ['convert_3c_20unsigned_20int_2c_20char_20_2a_20_3e',['Convert&lt; unsigned int, char * &gt;',['../a00751.html',1,'fifr::util']]],
  ['convert_3c_20unsigned_20long_20long_2c_20char_20_2a_20_3e',['Convert&lt; unsigned long long, char * &gt;',['../a00759.html',1,'fifr::util']]],
  ['convert_3c_20unsigned_20long_2c_20char_20_2a_20_3e',['Convert&lt; unsigned long, char * &gt;',['../a00755.html',1,'fifr::util']]]
];

Added 3rdparty/util/doc/html/search/all_3.html.





























































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="all_3.js"></script>
<script type="text/javascript" src="search.js"></script>
</head>
<body class="SRPage">
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
createResults();
/* @license-end */
--></script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
/* @license-end */
--></script>
</div>
</body>
</html>

Added 3rdparty/util/doc/html/search/all_3.js.













>
>
>
>
>
>
1
2
3
4
5
6
var searchData=
[
  ['debug',['debug',['../a00807.html#a5ac53bb43fb6bfdadeb637e86b15e31e',1,'fifr::util::Logger::debug()'],['../a00807.html#a9555e8f1c7ca07556a63f116bd218834aa603905470e2a5b8c13e96b579ef0dba',1,'fifr::util::Logger::Debug()'],['../a00079.html#a530005db874eb698dc4f690df47488cb',1,'fifr::util::debug()']]],
  ['default_5flogger',['default_logger',['../a00807.html#aca74256e77b99d8c22681a03a9b19832',1,'fifr::util::Logger']]],
  ['default_5fsplit',['default_split',['../a00079.html#ac4bdb5919b69453de8a723476cb21157',1,'fifr::util']]]
];

Added 3rdparty/util/doc/html/search/all_4.html.





























































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="all_4.js"></script>
<script type="text/javascript" src="search.js"></script>
</head>
<body class="SRPage">
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
createResults();
/* @license-end */
--></script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
/* @license-end */
--></script>
</div>
</body>
</html>

Added 3rdparty/util/doc/html/search/all_4.js.















>
>
>
>
>
>
>
1
2
3
4
5
6
7
var searchData=
[
  ['ends_5fwith',['ends_with',['../a00079.html#a73347c8e85b0cc1de47f81646d08f67f',1,'fifr::util']]],
  ['error',['error',['../a00807.html#a5f8579e7b396077c71633b95fd6cf380',1,'fifr::util::Logger::error()'],['../a00807.html#a9555e8f1c7ca07556a63f116bd218834a902b0d55fddef6f8d651fe1035b7d4bd',1,'fifr::util::Logger::Error()'],['../a00079.html#a4cad7e59800f367105c4125b612ccd76',1,'fifr::util::error()']]],
  ['escape_5fshell_5fargument',['escape_shell_argument',['../a00079.html#a768ab27dcecf1b581afb1816220dfd53',1,'fifr::util']]],
  ['external',['External',['../a00079.html#af2481a377dd3823a98547966b7ce7f70ab206a1b4ea1097761f78e8876f6da779',1,'fifr::util']]]
];

Added 3rdparty/util/doc/html/search/all_5.html.





























































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="all_5.js"></script>
<script type="text/javascript" src="search.js"></script>
</head>
<body class="SRPage">
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
createResults();
/* @license-end */
--></script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
/* @license-end */
--></script>
</div>
</body>
</html>

Added 3rdparty/util/doc/html/search/all_5.js.













>
>
>
>
>
>
1
2
3
4
5
6
var searchData=
[
  ['flush',['flush',['../a00863.html#a4ffe84082bea5cf71390a5b75d216fa7',1,'fifr::util::WordWrapStream']]],
  ['fifr_3a_3autil_20c_2b_2b_20utility_20library',['fifr::util C++ utility library',['../index.html',1,'']]],
  ['util',['util',['../a00079.html',1,'fifr']]]
];

Added 3rdparty/util/doc/html/search/all_6.html.





























































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="all_6.js"></script>
<script type="text/javascript" src="search.js"></script>
</head>
<body class="SRPage">
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
createResults();
/* @license-end */
--></script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
/* @license-end */
--></script>
</div>
</body>
</html>

Added 3rdparty/util/doc/html/search/all_6.js.









>
>
>
>
1
2
3
4
var searchData=
[
  ['gzipstreambuf',['GZipStreamBuf',['../a00799.html',1,'fifr::util::GZipStreamBuf'],['../a00799.html#ae59f9cd9bcf226c4654cc58f6aeda2fb',1,'fifr::util::GZipStreamBuf::GZipStreamBuf()']]]
];

Added 3rdparty/util/doc/html/search/all_7.html.





























































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="all_7.js"></script>
<script type="text/javascript" src="search.js"></script>
</head>
<body class="SRPage">
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
createResults();
/* @license-end */
--></script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
/* @license-end */
--></script>
</div>
</body>
</html>

Added 3rdparty/util/doc/html/search/all_7.js.



















>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
var searchData=
[
  ['indices',['indices',['../a00079.html#ab85f8d0d402de83302c77b45a93d2d2d',1,'fifr::util::indices(C const &amp;cont) -&gt; range_proxy&lt; decltype(cont.size())&gt;'],['../a00079.html#ac0e7de37628b9706c441b240544c2be4',1,'fifr::util::indices(T(&amp;)[N])'],['../a00079.html#a6c93a762ec4867221e61e00124616fa6',1,'fifr::util::indices(std::initializer_list&lt; T &gt; &amp;&amp;cont)']]],
  ['info',['info',['../a00807.html#a33a9b7d3fe7f3e297418e7fcdcab7897',1,'fifr::util::Logger::info()'],['../a00807.html#a9555e8f1c7ca07556a63f116bd218834a4059b0251f66a18cb56f544728796875',1,'fifr::util::Logger::Info()'],['../a00079.html#a0f8dd9522b8575d81cebf04780b034d9',1,'fifr::util::info()']]],
  ['inputautozipstream',['InputAutoZipStream',['../a00651.html',1,'fifr::util']]],
  ['internal',['Internal',['../a00079.html#af2481a377dd3823a98547966b7ce7f70aafbf0897a5a83fdd873dfb032ec695d3',1,'fifr::util']]],
  ['is_5fopen',['is_open',['../a00663.html#a9ebe88a8f0e41f3d7b797e673820b262',1,'fifr::util::BZip2StreamBuf::is_open()'],['../a00799.html#a9087cf9a619e738806251df7d7d57f05',1,'fifr::util::GZipStreamBuf::is_open()']]],
  ['iteratorproxy',['IteratorProxy',['../a00843.html',1,'fifr::util']]]
];

Added 3rdparty/util/doc/html/search/all_8.html.





























































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="all_8.js"></script>
<script type="text/javascript" src="search.js"></script>
</head>
<body class="SRPage">
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
createResults();
/* @license-end */
--></script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
/* @license-end */
--></script>
</div>
</body>
</html>

Added 3rdparty/util/doc/html/search/all_8.js.









>
>
>
>
1
2
3
4
var searchData=
[
  ['join',['Join',['../a00803.html',1,'fifr::util::Join&lt; C &gt;'],['../a00079.html#a4549a4c462e3314bd2dae501eae9d9c9',1,'fifr::util::join(const C &amp;container, std::string sep=&quot;&quot;)'],['../a00079.html#a70b39361cae719a25356d0565c23582f',1,'fifr::util::join(const std::string &amp;separator, Args &amp;&amp;... args)']]]
];

Added 3rdparty/util/doc/html/search/all_9.html.





























































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="all_9.js"></script>
<script type="text/javascript" src="search.js"></script>
</head>
<body class="SRPage">
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
createResults();
/* @license-end */
--></script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
/* @license-end */
--></script>
</div>
</body>
</html>

Added 3rdparty/util/doc/html/search/all_9.js.











>
>
>
>
>
1
2
3
4
5
var searchData=
[
  ['level',['Level',['../a00807.html#a9555e8f1c7ca07556a63f116bd218834',1,'fifr::util::Logger::Level()'],['../a00807.html#a892a53699376fb17b4a4ab2a2cad7f30',1,'fifr::util::Logger::level() const']]],
  ['logger',['Logger',['../a00807.html',1,'fifr::util']]]
];

Added 3rdparty/util/doc/html/search/all_a.html.





























































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="all_a.js"></script>
<script type="text/javascript" src="search.js"></script>
</head>
<body class="SRPage">
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
createResults();
/* @license-end */
--></script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
/* @license-end */
--></script>
</div>
</body>
</html>

Added 3rdparty/util/doc/html/search/all_a.js.









>
>
>
>
1
2
3
4
var searchData=
[
  ['make_5fauto_5ftuple',['make_auto_tuple',['../a00079.html#a2bdff2715e924516df9cc786e65d248e',1,'fifr::util']]]
];

Added 3rdparty/util/doc/html/search/all_b.html.





























































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="all_b.js"></script>
<script type="text/javascript" src="search.js"></script>
</head>
<body class="SRPage">
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
createResults();
/* @license-end */
--></script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
/* @license-end */
--></script>
</div>
</body>
</html>

Added 3rdparty/util/doc/html/search/all_b.js.









>
>
>
>
1
2
3
4
var searchData=
[
  ['none',['None',['../a00807.html#a9555e8f1c7ca07556a63f116bd218834a6adf97f83acf6453d4a6a4b1070f3754',1,'fifr::util::Logger']]]
];

Added 3rdparty/util/doc/html/search/all_c.html.





























































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="all_c.js"></script>
<script type="text/javascript" src="search.js"></script>
</head>
<body class="SRPage">
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
createResults();
/* @license-end */
--></script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
/* @license-end */
--></script>
</div>
</body>
</html>

Added 3rdparty/util/doc/html/search/all_c.js.



















>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
var searchData=
[
  ['open',['open',['../a00663.html#aafdc74695793e2884eca22d6a5cc8493',1,'fifr::util::BZip2StreamBuf::open()'],['../a00799.html#a01e310fee815cbcb6994af835155cd6b',1,'fifr::util::GZipStreamBuf::open()']]],
  ['open_5fby_5fextension',['open_by_extension',['../a00079.html#a28a41e2b56c30668238b0015371f3d72',1,'fifr::util']]],
  ['open_5fstreambuf',['open_streambuf',['../a00079.html#ab35030b49111e5496edbd06a4b568435',1,'fifr::util']]],
  ['operator_2b',['operator+',['../a00079.html#a47864c335721f56fe75f007a9c52d004',1,'fifr::util::operator+(const std::string &amp;str, const Join&lt; C &gt; &amp;join)'],['../a00079.html#ae914a11121ac9980ffdbe1b224cdb18e',1,'fifr::util::operator+(const Join&lt; C &gt; &amp;join, const std::string &amp;str)'],['../a00079.html#a2b58dac747e9b7727aac01660043d13f',1,'fifr::util::operator+(const char *str, const Join&lt; C &gt; &amp;join)'],['../a00079.html#a76148b1bd88947607632d38ade173609',1,'fifr::util::operator+(const Join&lt; C &gt; &amp;join, const char *str)']]],
  ['operator_3c_3c',['operator&lt;&lt;',['../a00863.html#a58b7842ed39181d0e3f42606344daec0',1,'fifr::util::WordWrapStream::operator&lt;&lt;()'],['../a00079.html#a763fb6df77ab87aaa34abbff74100af7',1,'fifr::util::operator&lt;&lt;(std::ostream &amp;out, const Join&lt; C &gt; &amp;join)'],['../a00079.html#ab45677b30a64b1ee06ab6a448725c51a',1,'fifr::util::operator&lt;&lt;(Logger::LogStream &amp;log, const T &amp;x)'],['../a00079.html#ae98e55ea66db06b79188fa9464ab34ea',1,'fifr::util::operator&lt;&lt;(Logger::LogStream &amp;&amp;log, const T &amp;x)'],['../a00079.html#ad9e4fac96708af6a49603edd795d8611',1,'fifr::util::operator&lt;&lt;(WordWrapStream &amp;out, const T &amp;value)']]],
  ['outputautozipstream',['OutputAutoZipStream',['../a00655.html',1,'fifr::util']]]
];

Added 3rdparty/util/doc/html/search/all_d.html.





























































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="all_d.js"></script>
<script type="text/javascript" src="search.js"></script>
</head>
<body class="SRPage">
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
createResults();
/* @license-end */
--></script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
/* @license-end */
--></script>
</div>
</body>
</html>

Added 3rdparty/util/doc/html/search/all_d.js.

















>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
var searchData=
[
  ['range',['range',['../a00079.html#a635542a3a6fb35d5a7d726c472a8262e',1,'fifr::util::range(T begin, T end)'],['../a00079.html#ae5344551ba7335029de1d5208dc4533b',1,'fifr::util::range(T end)'],['../a00079.html#ac11ef6009b232d7214fb7fe1697fd954',1,'fifr::util::range(T begin, T end, T step)']]],
  ['range_5fbegin',['range_begin',['../a00079.html#a40d02e79f662d3f9b8720198615f8ad4',1,'fifr::util::range_begin(all_range, Size)'],['../a00079.html#a91fd04eecd118d6037d0d55f53ef2799',1,'fifr::util::range_begin(T i, Size)'],['../a00079.html#a3a71f914e941d12e6f70963f736fca4a',1,'fifr::util::range_begin(const range_proxy&lt; T &gt; &amp;rng, Size)']]],
  ['range_5fend',['range_end',['../a00079.html#a072c669eeb901b9f5ff50e22cbe9ba52',1,'fifr::util::range_end(all_range, Size n)'],['../a00079.html#a0a935b9e5f4e88a484402627e6c8da36',1,'fifr::util::range_end(T i, Size)'],['../a00079.html#a014cff4079ea58c93598c1a06c3dd402',1,'fifr::util::range_end(const range_proxy&lt; T &gt; &amp;rng, Size)']]],
  ['range_5fsize',['range_size',['../a00079.html#a794f0c94f474118782db17f128e628a3',1,'fifr::util::range_size(all_range, Size n)'],['../a00079.html#ab4fca9109feff56d9fa4b5567013655c',1,'fifr::util::range_size(T, Size)'],['../a00079.html#afc1a7108d8445c9c10e345baa1c57dd2',1,'fifr::util::range_size(const range_proxy&lt; T &gt; &amp;rng, Size)']]],
  ['rest',['rest',['../a00855.html#aee9f6188e5f13f8fb78d502ee9f1132b',1,'fifr::util::SplitIterator']]]
];

Added 3rdparty/util/doc/html/search/all_e.html.





























































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="all_e.js"></script>
<script type="text/javascript" src="search.js"></script>
</head>
<body class="SRPage">
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
createResults();
/* @license-end */
--></script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
/* @license-end */
--></script>
</div>
</body>
</html>

Added 3rdparty/util/doc/html/search/all_e.js.











































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
var searchData=
[
  ['scan',['scan',['../a00079.html#a965fae864f05b845194b24177ffd3a81',1,'fifr::util']]],
  ['scan_5fmatches',['scan_matches',['../a00079.html#a3093afe9b956797b3ce3fb1191b21409',1,'fifr::util']]],
  ['scaniterator',['ScanIterator',['../a00847.html',1,'fifr::util']]],
  ['scaniterator_3c_3e',['ScanIterator&lt;&gt;',['../a00851.html',1,'fifr::util']]],
  ['set_5findent',['set_indent',['../a00863.html#a0bd9407d389b19a7a318a9374904dcf8',1,'fifr::util::WordWrapStream']]],
  ['set_5findent_5ffirst',['set_indent_first',['../a00863.html#ac2a003bb87e8fc5e379f8555216c055d',1,'fifr::util::WordWrapStream']]],
  ['set_5flevel',['set_level',['../a00807.html#a8a58644fa2cfc3f62a0e18bab9024de7',1,'fifr::util::Logger']]],
  ['set_5fwidth',['set_width',['../a00863.html#adeba1399ba5a180181cc3496af213fb3',1,'fifr::util::WordWrapStream']]],
  ['shift_5fto',['shift_to',['../a00863.html#ab3d311cb8b6dac1471340415c00408f9',1,'fifr::util::WordWrapStream']]],
  ['sort_5fby',['sort_by',['../a00079.html#a22abdf2c6d5581264dc1d7933e06319b',1,'fifr::util::sort_by(C &amp;container, const Keys &amp;keys)'],['../a00079.html#a87337d5276c5ab23b339b19fd1cb952e',1,'fifr::util::sort_by(C &amp;container, Fun fun)']]],
  ['sortby_2ehxx',['SortBy.hxx',['../a00056.html',1,'']]],
  ['split',['split',['../a00079.html#a39ff18b164b8ad8bea4f1844059fdcae',1,'fifr::util::split(const std::string &amp;str, const std::regex &amp;re=default_split)'],['../a00079.html#a4fb84c855978698dbdb2d7d834c5935e',1,'fifr::util::split(const std::string &amp;str, const std::regex &amp;re, Args &amp;... args)']]],
  ['split_5fbegin',['split_begin',['../a00079.html#a1c074a76b80bda682fed3eb223e5169d',1,'fifr::util']]],
  ['split_5fend',['split_end',['../a00079.html#a4554785c6f64cc545562fbb6af04e480',1,'fifr::util']]],
  ['splititerator',['SplitIterator',['../a00855.html',1,'fifr::util']]],
  ['splitv',['splitv',['../a00079.html#a5080ec6002a4cb7180a8f758a10a9797',1,'fifr::util']]],
  ['starts_5fwith',['starts_with',['../a00079.html#a97fd698781599ba97906caeafe4a9f4c',1,'fifr::util']]],
  ['str',['str',['../a00803.html#a7464b23617dfcfef5e1fa85b9eae8116',1,'fifr::util::Join']]]
];

Added 3rdparty/util/doc/html/search/all_f.html.





























































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="all_f.js"></script>
<script type="text/javascript" src="search.js"></script>
</head>
<body class="SRPage">
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
createResults();
/* @license-end */
--></script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
/* @license-end */
--></script>
</div>
</body>
</html>

Added 3rdparty/util/doc/html/search/all_f.js.











>
>
>
>
>
1
2
3
4
5
var searchData=
[
  ['warn',['warn',['../a00807.html#a37b1e9b994f7a2bdf6643d8039b5a7ad',1,'fifr::util::Logger::warn()'],['../a00807.html#a9555e8f1c7ca07556a63f116bd218834a56525ae64d370c0b448ac0d60710ef17',1,'fifr::util::Logger::Warn()'],['../a00079.html#add7683b10f66d150b12b57bc9518caee',1,'fifr::util::warn()']]],
  ['wordwrapstream',['WordWrapStream',['../a00863.html',1,'fifr::util']]]
];

Added 3rdparty/util/doc/html/search/classes_0.html.





























































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="classes_0.js"></script>
<script type="text/javascript" src="search.js"></script>
</head>
<body class="SRPage">
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
createResults();
/* @license-end */
--></script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
/* @license-end */
--></script>
</div>
</body>
</html>

Added 3rdparty/util/doc/html/search/classes_0.js.











>
>
>
>
>
1
2
3
4
5
var searchData=
[
  ['all_5frange',['all_range',['../a00839.html',1,'fifr::util']]],
  ['autotuple',['AutoTuple',['../a00631.html',1,'fifr::util']]]
];

Added 3rdparty/util/doc/html/search/classes_1.html.





























































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="classes_1.js"></script>
<script type="text/javascript" src="search.js"></script>
</head>
<body class="SRPage">
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
createResults();
/* @license-end */
--></script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
/* @license-end */
--></script>
</div>
</body>
</html>

Added 3rdparty/util/doc/html/search/classes_1.js.









>
>
>
>
1
2
3
4
var searchData=
[
  ['bzip2streambuf',['BZip2StreamBuf',['../a00663.html',1,'fifr::util']]]
];

Added 3rdparty/util/doc/html/search/classes_2.html.





























































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="classes_2.js"></script>
<script type="text/javascript" src="search.js"></script>
</head>
<body class="SRPage">
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
createResults();
/* @license-end */
--></script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
/* @license-end */
--></script>
</div>
</body>
</html>

Added 3rdparty/util/doc/html/search/classes_2.js.

















































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
var searchData=
[
  ['convert',['Convert',['../a00707.html',1,'fifr::util']]],
  ['convert_3c_20double_2c_20char_20_2a_20_3e',['Convert&lt; double, char * &gt;',['../a00767.html',1,'fifr::util']]],
  ['convert_3c_20float_2c_20char_20_2a_20_3e',['Convert&lt; float, char * &gt;',['../a00763.html',1,'fifr::util']]],
  ['convert_3c_20int_2c_20char_20_2a_20_3e',['Convert&lt; int, char * &gt;',['../a00739.html',1,'fifr::util']]],
  ['convert_3c_20long_20double_2c_20char_20_2a_20_3e',['Convert&lt; long double, char * &gt;',['../a00771.html',1,'fifr::util']]],
  ['convert_3c_20long_20long_2c_20char_20_2a_20_3e',['Convert&lt; long long, char * &gt;',['../a00747.html',1,'fifr::util']]],
  ['convert_3c_20long_2c_20char_20_2a_20_3e',['Convert&lt; long, char * &gt;',['../a00743.html',1,'fifr::util']]],
  ['convert_3c_20std_3a_3aarray_3c_20to_2c_20n_20_3e_2c_20std_3a_3aarray_3c_20from_2c_20n_20_3e_20_3e',['Convert&lt; std::array&lt; To, N &gt;, std::array&lt; From, N &gt; &gt;',['../a00787.html',1,'fifr::util']]],
  ['convert_3c_20std_3a_3apair_3c_20to1_2c_20to2_20_3e_2c_20std_3a_3apair_3c_20from1_2c_20from2_20_3e_20_3e',['Convert&lt; std::pair&lt; To1, To2 &gt;, std::pair&lt; From1, From2 &gt; &gt;',['../a00779.html',1,'fifr::util']]],
  ['convert_3c_20std_3a_3astring_2c_20char_20_2a_20_3e',['Convert&lt; std::string, char * &gt;',['../a00735.html',1,'fifr::util']]],
  ['convert_3c_20std_3a_3astring_2c_20std_3a_3astring_20_3e',['Convert&lt; std::string, std::string &gt;',['../a00715.html',1,'fifr::util']]],
  ['convert_3c_20std_3a_3astring_2c_20t_2c_20decltype_28_28void_29_20std_3a_3adeclval_3c_20const_20t_20_26_20_3e_28_29_2eto_5fstring_28_29_29_3e',['Convert&lt; std::string, T, decltype((void) std::declval&lt; const T &amp; &gt;().to_string())&gt;',['../a00723.html',1,'fifr::util']]],
  ['convert_3c_20std_3a_3astring_2c_20t_2c_20decltype_28_28void_29_20std_3a_3ato_5fstring_28std_3a_3adeclval_3c_20t_20_3e_28_29_29_29_3e',['Convert&lt; std::string, T, decltype((void) std::to_string(std::declval&lt; T &gt;()))&gt;',['../a00719.html',1,'fifr::util']]],
  ['convert_3c_20std_3a_3atuple_3c_20to_2e_2e_2e_20_3e_2c_20std_3a_3atuple_3c_20from_2e_2e_2e_20_3e_20_3e',['Convert&lt; std::tuple&lt; To... &gt;, std::tuple&lt; From... &gt; &gt;',['../a00783.html',1,'fifr::util']]],
  ['convert_3c_20std_3a_3avector_3c_20to_20_3e_2c_20std_3a_3avector_3c_20from_20_3e_20_3e',['Convert&lt; std::vector&lt; To &gt;, std::vector&lt; From &gt; &gt;',['../a00791.html',1,'fifr::util']]],
  ['convert_3c_20t_2c_20t_20_3e',['Convert&lt; T, T &gt;',['../a00711.html',1,'fifr::util']]],
  ['convert_3c_20to_2c_20char_5bn_5d_3e',['Convert&lt; To, char[N]&gt;',['../a00731.html',1,'fifr::util']]],
  ['convert_3c_20to_2c_20std_3a_3astring_20_3e',['Convert&lt; To, std::string &gt;',['../a00727.html',1,'fifr::util']]],
  ['convert_3c_20unsigned_20int_2c_20char_20_2a_20_3e',['Convert&lt; unsigned int, char * &gt;',['../a00751.html',1,'fifr::util']]],
  ['convert_3c_20unsigned_20long_20long_2c_20char_20_2a_20_3e',['Convert&lt; unsigned long long, char * &gt;',['../a00759.html',1,'fifr::util']]],
  ['convert_3c_20unsigned_20long_2c_20char_20_2a_20_3e',['Convert&lt; unsigned long, char * &gt;',['../a00755.html',1,'fifr::util']]]
];

Added 3rdparty/util/doc/html/search/classes_3.html.





























































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="classes_3.js"></script>
<script type="text/javascript" src="search.js"></script>
</head>
<body class="SRPage">
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
createResults();
/* @license-end */
--></script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
/* @license-end */
--></script>
</div>
</body>
</html>

Added 3rdparty/util/doc/html/search/classes_3.js.









>
>
>
>
1
2
3
4
var searchData=
[
  ['gzipstreambuf',['GZipStreamBuf',['../a00799.html',1,'fifr::util']]]
];

Added 3rdparty/util/doc/html/search/classes_4.html.





























































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="classes_4.js"></script>
<script type="text/javascript" src="search.js"></script>
</head>
<body class="SRPage">
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
createResults();
/* @license-end */
--></script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
/* @license-end */
--></script>
</div>
</body>
</html>

Added 3rdparty/util/doc/html/search/classes_4.js.











>
>
>
>
>
1
2
3
4
5
var searchData=
[
  ['inputautozipstream',['InputAutoZipStream',['../a00651.html',1,'fifr::util']]],
  ['iteratorproxy',['IteratorProxy',['../a00843.html',1,'fifr::util']]]
];

Added 3rdparty/util/doc/html/search/classes_5.html.





























































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="classes_5.js"></script>
<script type="text/javascript" src="search.js"></script>
</head>
<body class="SRPage">
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
createResults();
/* @license-end */
--></script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
/* @license-end */
--></script>
</div>
</body>
</html>

Added 3rdparty/util/doc/html/search/classes_5.js.









>
>
>
>
1
2
3
4
var searchData=
[
  ['join',['Join',['../a00803.html',1,'fifr::util']]]
];

Added 3rdparty/util/doc/html/search/classes_6.html.





























































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="classes_6.js"></script>
<script type="text/javascript" src="search.js"></script>
</head>
<body class="SRPage">
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
createResults();
/* @license-end */
--></script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
/* @license-end */
--></script>
</div>
</body>
</html>

Added 3rdparty/util/doc/html/search/classes_6.js.









>
>
>
>
1
2
3
4
var searchData=
[
  ['logger',['Logger',['../a00807.html',1,'fifr::util']]]
];

Added 3rdparty/util/doc/html/search/classes_7.html.





























































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="classes_7.js"></script>
<script type="text/javascript" src="search.js"></script>
</head>
<body class="SRPage">
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
createResults();
/* @license-end */
--></script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
/* @license-end */
--></script>
</div>
</body>
</html>

Added 3rdparty/util/doc/html/search/classes_7.js.









>
>
>
>
1
2
3
4
var searchData=
[
  ['outputautozipstream',['OutputAutoZipStream',['../a00655.html',1,'fifr::util']]]
];

Added 3rdparty/util/doc/html/search/classes_8.html.





























































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="classes_8.js"></script>
<script type="text/javascript" src="search.js"></script>
</head>
<body class="SRPage">
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
createResults();
/* @license-end */
--></script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
/* @license-end */
--></script>
</div>
</body>
</html>

Added 3rdparty/util/doc/html/search/classes_8.js.













>
>
>
>
>
>
1
2
3
4
5
6
var searchData=
[
  ['scaniterator',['ScanIterator',['../a00847.html',1,'fifr::util']]],
  ['scaniterator_3c_3e',['ScanIterator&lt;&gt;',['../a00851.html',1,'fifr::util']]],
  ['splititerator',['SplitIterator',['../a00855.html',1,'fifr::util']]]
];

Added 3rdparty/util/doc/html/search/classes_9.html.





























































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="classes_9.js"></script>
<script type="text/javascript" src="search.js"></script>
</head>
<body class="SRPage">
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
createResults();
/* @license-end */
--></script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
/* @license-end */
--></script>
</div>
</body>
</html>

Added 3rdparty/util/doc/html/search/classes_9.js.









>
>
>
>
1
2
3
4
var searchData=
[
  ['wordwrapstream',['WordWrapStream',['../a00863.html',1,'fifr::util']]]
];

Added 3rdparty/util/doc/html/search/close.png.

cannot compute difference between binary files

Added 3rdparty/util/doc/html/search/enums_0.html.





























































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="enums_0.js"></script>
<script type="text/javascript" src="search.js"></script>
</head>
<body class="SRPage">
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
createResults();
/* @license-end */
--></script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
/* @license-end */
--></script>
</div>
</body>
</html>

Added 3rdparty/util/doc/html/search/enums_0.js.









>
>
>
>
1
2
3
4
var searchData=
[
  ['level',['Level',['../a00807.html#a9555e8f1c7ca07556a63f116bd218834',1,'fifr::util::Logger']]]
];

Added 3rdparty/util/doc/html/search/enums_1.html.





























































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="enums_1.js"></script>
<script type="text/javascript" src="search.js"></script>
</head>
<body class="SRPage">
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
createResults();
/* @license-end */
--></script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
/* @license-end */
--></script>
</div>
</body>
</html>

Added 3rdparty/util/doc/html/search/enums_1.js.









>
>
>
>
1
2
3
4
var searchData=
[
  ['zipmode',['ZipMode',['../a00079.html#af2481a377dd3823a98547966b7ce7f70',1,'fifr::util']]]
];

Added 3rdparty/util/doc/html/search/enumvalues_0.html.





























































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="enumvalues_0.js"></script>
<script type="text/javascript" src="search.js"></script>
</head>
<body class="SRPage">
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
createResults();
/* @license-end */
--></script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
/* @license-end */
--></script>
</div>
</body>
</html>

Added 3rdparty/util/doc/html/search/enumvalues_0.js.









>
>
>
>
1
2
3
4
var searchData=
[
  ['auto',['Auto',['../a00079.html#af2481a377dd3823a98547966b7ce7f70a06b9281e396db002010bde1de57262eb',1,'fifr::util']]]
];

Added 3rdparty/util/doc/html/search/enumvalues_1.html.





























































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="enumvalues_1.js"></script>
<script type="text/javascript" src="search.js"></script>
</head>
<body class="SRPage">
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
createResults();
/* @license-end */
--></script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
/* @license-end */
--></script>
</div>
</body>
</html>

Added 3rdparty/util/doc/html/search/enumvalues_1.js.









>
>
>
>
1
2
3
4
var searchData=
[
  ['debug',['Debug',['../a00807.html#a9555e8f1c7ca07556a63f116bd218834aa603905470e2a5b8c13e96b579ef0dba',1,'fifr::util::Logger']]]
];

Added 3rdparty/util/doc/html/search/enumvalues_2.html.





























































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="enumvalues_2.js"></script>
<script type="text/javascript" src="search.js"></script>
</head>
<body class="SRPage">
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
createResults();
/* @license-end */
--></script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
/* @license-end */
--></script>
</div>
</body>
</html>

Added 3rdparty/util/doc/html/search/enumvalues_2.js.











>
>
>
>
>
1
2
3
4
5
var searchData=
[
  ['error',['Error',['../a00807.html#a9555e8f1c7ca07556a63f116bd218834a902b0d55fddef6f8d651fe1035b7d4bd',1,'fifr::util::Logger']]],
  ['external',['External',['../a00079.html#af2481a377dd3823a98547966b7ce7f70ab206a1b4ea1097761f78e8876f6da779',1,'fifr::util']]]
];

Added 3rdparty/util/doc/html/search/enumvalues_3.html.





























































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="enumvalues_3.js"></script>
<script type="text/javascript" src="search.js"></script>
</head>
<body class="SRPage">
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
createResults();
/* @license-end */
--></script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
/* @license-end */
--></script>
</div>
</body>
</html>

Added 3rdparty/util/doc/html/search/enumvalues_3.js.











>
>
>
>
>
1
2
3
4
5
var searchData=
[
  ['info',['Info',['../a00807.html#a9555e8f1c7ca07556a63f116bd218834a4059b0251f66a18cb56f544728796875',1,'fifr::util::Logger']]],
  ['internal',['Internal',['../a00079.html#af2481a377dd3823a98547966b7ce7f70aafbf0897a5a83fdd873dfb032ec695d3',1,'fifr::util']]]
];

Added 3rdparty/util/doc/html/search/enumvalues_4.html.





























































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="enumvalues_4.js"></script>
<script type="text/javascript" src="search.js"></script>
</head>
<body class="SRPage">
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
createResults();
/* @license-end */
--></script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
/* @license-end */
--></script>
</div>
</body>
</html>

Added 3rdparty/util/doc/html/search/enumvalues_4.js.









>
>
>
>
1
2
3
4
var searchData=
[
  ['none',['None',['../a00807.html#a9555e8f1c7ca07556a63f116bd218834a6adf97f83acf6453d4a6a4b1070f3754',1,'fifr::util::Logger']]]
];

Added 3rdparty/util/doc/html/search/enumvalues_5.html.





























































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="enumvalues_5.js"></script>
<script type="text/javascript" src="search.js"></script>
</head>
<body class="SRPage">
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
createResults();
/* @license-end */
--></script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
/* @license-end */
--></script>
</div>
</body>
</html>

Added 3rdparty/util/doc/html/search/enumvalues_5.js.









>
>
>
>
1
2
3
4
var searchData=
[
  ['warn',['Warn',['../a00807.html#a9555e8f1c7ca07556a63f116bd218834a56525ae64d370c0b448ac0d60710ef17',1,'fifr::util::Logger']]]
];

Added 3rdparty/util/doc/html/search/files_0.html.





























































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="files_0.js"></script>
<script type="text/javascript" src="search.js"></script>
</head>
<body class="SRPage">
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
createResults();
/* @license-end */
--></script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
/* @license-end */
--></script>
</div>
</body>
</html>

Added 3rdparty/util/doc/html/search/files_0.js.









>
>
>
>
1
2
3
4
var searchData=
[
  ['convert_2ehxx',['Convert.hxx',['../a00029.html',1,'']]]
];

Added 3rdparty/util/doc/html/search/files_1.html.





























































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="files_1.js"></script>
<script type="text/javascript" src="search.js"></script>
</head>
<body class="SRPage">
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
createResults();
/* @license-end */
--></script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
/* @license-end */
--></script>
</div>
</body>
</html>

Added 3rdparty/util/doc/html/search/files_1.js.









>
>
>
>
1
2
3
4
var searchData=
[
  ['sortby_2ehxx',['SortBy.hxx',['../a00056.html',1,'']]]
];

Added 3rdparty/util/doc/html/search/functions_0.html.





























































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="functions_0.js"></script>
<script type="text/javascript" src="search.js"></script>
</head>
<body class="SRPage">
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
createResults();
/* @license-end */
--></script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
/* @license-end */
--></script>
</div>
</body>
</html>

Added 3rdparty/util/doc/html/search/functions_0.js.









>
>
>
>
1
2
3
4
var searchData=
[
  ['bzip2streambuf',['BZip2StreamBuf',['../a00663.html#a1e3446e302e276c7c366cd5f30dbce1b',1,'fifr::util::BZip2StreamBuf']]]
];

Added 3rdparty/util/doc/html/search/functions_1.html.





























































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="functions_1.js"></script>
<script type="text/javascript" src="search.js"></script>
</head>
<body class="SRPage">
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
createResults();
/* @license-end */
--></script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
/* @license-end */
--></script>
</div>
</body>
</html>

Added 3rdparty/util/doc/html/search/functions_1.js.











>
>
>
>
>
1
2
3
4
5
var searchData=
[
  ['close',['close',['../a00663.html#ad43c71a8d5642691ef77c890950a9cd8',1,'fifr::util::BZip2StreamBuf::close()'],['../a00799.html#ada54dcff985e2b6ac280b52a4d237f30',1,'fifr::util::GZipStreamBuf::close()']]],
  ['convert',['convert',['../a00079.html#a2571be8e8b55e880f6c251f93bbf1d97',1,'fifr::util']]]
];

Added 3rdparty/util/doc/html/search/functions_2.html.





























































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="functions_2.js"></script>
<script type="text/javascript" src="search.js"></script>
</head>
<body class="SRPage">
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
createResults();
/* @license-end */
--></script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
/* @license-end */
--></script>
</div>
</body>
</html>

Added 3rdparty/util/doc/html/search/functions_2.js.









>
>
>
>
1
2
3
4
var searchData=
[
  ['debug',['debug',['../a00807.html#a5ac53bb43fb6bfdadeb637e86b15e31e',1,'fifr::util::Logger::debug()'],['../a00079.html#a530005db874eb698dc4f690df47488cb',1,'fifr::util::debug()']]]
];

Added 3rdparty/util/doc/html/search/functions_3.html.





























































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="functions_3.js"></script>
<script type="text/javascript" src="search.js"></script>
</head>
<body class="SRPage">
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
createResults();
/* @license-end */
--></script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
/* @license-end */
--></script>
</div>
</body>
</html>

Added 3rdparty/util/doc/html/search/functions_3.js.













>
>
>
>
>
>
1
2
3
4
5
6
var searchData=
[
  ['ends_5fwith',['ends_with',['../a00079.html#a73347c8e85b0cc1de47f81646d08f67f',1,'fifr::util']]],
  ['error',['error',['../a00807.html#a5f8579e7b396077c71633b95fd6cf380',1,'fifr::util::Logger::error()'],['../a00079.html#a4cad7e59800f367105c4125b612ccd76',1,'fifr::util::error()']]],
  ['escape_5fshell_5fargument',['escape_shell_argument',['../a00079.html#a768ab27dcecf1b581afb1816220dfd53',1,'fifr::util']]]
];

Added 3rdparty/util/doc/html/search/functions_4.html.





























































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="functions_4.js"></script>
<script type="text/javascript" src="search.js"></script>
</head>
<body class="SRPage">
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
createResults();
/* @license-end */
--></script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
/* @license-end */
--></script>
</div>
</body>
</html>

Added 3rdparty/util/doc/html/search/functions_4.js.









>
>
>
>
1
2
3
4
var searchData=
[
  ['flush',['flush',['../a00863.html#a4ffe84082bea5cf71390a5b75d216fa7',1,'fifr::util::WordWrapStream']]]
];

Added 3rdparty/util/doc/html/search/functions_5.html.





























































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="functions_5.js"></script>
<script type="text/javascript" src="search.js"></script>
</head>
<body class="SRPage">
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
createResults();
/* @license-end */
--></script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
/* @license-end */
--></script>
</div>
</body>
</html>

Added 3rdparty/util/doc/html/search/functions_5.js.









>
>
>
>
1
2
3
4
var searchData=
[
  ['gzipstreambuf',['GZipStreamBuf',['../a00799.html#ae59f9cd9bcf226c4654cc58f6aeda2fb',1,'fifr::util::GZipStreamBuf']]]
];

Added 3rdparty/util/doc/html/search/functions_6.html.





























































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="functions_6.js"></script>
<script type="text/javascript" src="search.js"></script>
</head>
<body class="SRPage">
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
createResults();
/* @license-end */
--></script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
/* @license-end */
--></script>
</div>
</body>
</html>

Added 3rdparty/util/doc/html/search/functions_6.js.













>
>
>
>
>
>
1
2
3
4
5
6
var searchData=
[
  ['indices',['indices',['../a00079.html#ab85f8d0d402de83302c77b45a93d2d2d',1,'fifr::util::indices(C const &amp;cont) -&gt; range_proxy&lt; decltype(cont.size())&gt;'],['../a00079.html#ac0e7de37628b9706c441b240544c2be4',1,'fifr::util::indices(T(&amp;)[N])'],['../a00079.html#a6c93a762ec4867221e61e00124616fa6',1,'fifr::util::indices(std::initializer_list&lt; T &gt; &amp;&amp;cont)']]],
  ['info',['info',['../a00807.html#a33a9b7d3fe7f3e297418e7fcdcab7897',1,'fifr::util::Logger::info()'],['../a00079.html#a0f8dd9522b8575d81cebf04780b034d9',1,'fifr::util::info()']]],
  ['is_5fopen',['is_open',['../a00663.html#a9ebe88a8f0e41f3d7b797e673820b262',1,'fifr::util::BZip2StreamBuf::is_open()'],['../a00799.html#a9087cf9a619e738806251df7d7d57f05',1,'fifr::util::GZipStreamBuf::is_open()']]]
];

Added 3rdparty/util/doc/html/search/functions_7.html.





























































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="functions_7.js"></script>
<script type="text/javascript" src="search.js"></script>
</head>
<body class="SRPage">
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
createResults();
/* @license-end */
--></script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
/* @license-end */
--></script>
</div>
</body>
</html>

Added 3rdparty/util/doc/html/search/functions_7.js.









>
>
>
>
1
2
3
4
var searchData=
[
  ['join',['join',['../a00079.html#a4549a4c462e3314bd2dae501eae9d9c9',1,'fifr::util::join(const C &amp;container, std::string sep=&quot;&quot;)'],['../a00079.html#a70b39361cae719a25356d0565c23582f',1,'fifr::util::join(const std::string &amp;separator, Args &amp;&amp;... args)']]]
];

Added 3rdparty/util/doc/html/search/functions_8.html.





























































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="functions_8.js"></script>
<script type="text/javascript" src="search.js"></script>
</head>
<body class="SRPage">
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
createResults();
/* @license-end */
--></script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
/* @license-end */
--></script>
</div>
</body>
</html>

Added 3rdparty/util/doc/html/search/functions_8.js.









>
>
>
>
1
2
3
4
var searchData=
[
  ['level',['level',['../a00807.html#a892a53699376fb17b4a4ab2a2cad7f30',1,'fifr::util::Logger']]]
];

Added 3rdparty/util/doc/html/search/functions_9.html.





























































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="functions_9.js"></script>
<script type="text/javascript" src="search.js"></script>
</head>
<body class="SRPage">
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
createResults();
/* @license-end */
--></script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
/* @license-end */
--></script>
</div>
</body>
</html>

Added 3rdparty/util/doc/html/search/functions_9.js.









>
>
>
>
1
2
3
4
var searchData=
[
  ['make_5fauto_5ftuple',['make_auto_tuple',['../a00079.html#a2bdff2715e924516df9cc786e65d248e',1,'fifr::util']]]
];

Added 3rdparty/util/doc/html/search/functions_a.html.





























































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="functions_a.js"></script>
<script type="text/javascript" src="search.js"></script>
</head>
<body class="SRPage">
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
createResults();
/* @license-end */
--></script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
/* @license-end */
--></script>
</div>
</body>
</html>

Added 3rdparty/util/doc/html/search/functions_a.js.















>
>
>
>
>
>
>
1
2
3
4
5
6
7
var searchData=
[
  ['open',['open',['../a00663.html#aafdc74695793e2884eca22d6a5cc8493',1,'fifr::util::BZip2StreamBuf::open()'],['../a00799.html#a01e310fee815cbcb6994af835155cd6b',1,'fifr::util::GZipStreamBuf::open()']]],
  ['open_5fby_5fextension',['open_by_extension',['../a00079.html#a28a41e2b56c30668238b0015371f3d72',1,'fifr::util']]],
  ['operator_2b',['operator+',['../a00079.html#a47864c335721f56fe75f007a9c52d004',1,'fifr::util::operator+(const std::string &amp;str, const Join&lt; C &gt; &amp;join)'],['../a00079.html#ae914a11121ac9980ffdbe1b224cdb18e',1,'fifr::util::operator+(const Join&lt; C &gt; &amp;join, const std::string &amp;str)'],['../a00079.html#a2b58dac747e9b7727aac01660043d13f',1,'fifr::util::operator+(const char *str, const Join&lt; C &gt; &amp;join)'],['../a00079.html#a76148b1bd88947607632d38ade173609',1,'fifr::util::operator+(const Join&lt; C &gt; &amp;join, const char *str)']]],
  ['operator_3c_3c',['operator&lt;&lt;',['../a00079.html#a763fb6df77ab87aaa34abbff74100af7',1,'fifr::util::operator&lt;&lt;(std::ostream &amp;out, const Join&lt; C &gt; &amp;join)'],['../a00079.html#ab45677b30a64b1ee06ab6a448725c51a',1,'fifr::util::operator&lt;&lt;(Logger::LogStream &amp;log, const T &amp;x)'],['../a00079.html#ae98e55ea66db06b79188fa9464ab34ea',1,'fifr::util::operator&lt;&lt;(Logger::LogStream &amp;&amp;log, const T &amp;x)'],['../a00079.html#ad9e4fac96708af6a49603edd795d8611',1,'fifr::util::operator&lt;&lt;(WordWrapStream &amp;out, const T &amp;value)']]]
];

Added 3rdparty/util/doc/html/search/functions_b.html.





























































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="functions_b.js"></script>
<script type="text/javascript" src="search.js"></script>
</head>
<body class="SRPage">
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
createResults();
/* @license-end */
--></script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
/* @license-end */
--></script>
</div>
</body>
</html>

Added 3rdparty/util/doc/html/search/functions_b.js.

















>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
var searchData=
[
  ['range',['range',['../a00079.html#a635542a3a6fb35d5a7d726c472a8262e',1,'fifr::util::range(T begin, T end)'],['../a00079.html#ae5344551ba7335029de1d5208dc4533b',1,'fifr::util::range(T end)'],['../a00079.html#ac11ef6009b232d7214fb7fe1697fd954',1,'fifr::util::range(T begin, T end, T step)']]],
  ['range_5fbegin',['range_begin',['../a00079.html#a40d02e79f662d3f9b8720198615f8ad4',1,'fifr::util::range_begin(all_range, Size)'],['../a00079.html#a91fd04eecd118d6037d0d55f53ef2799',1,'fifr::util::range_begin(T i, Size)'],['../a00079.html#a3a71f914e941d12e6f70963f736fca4a',1,'fifr::util::range_begin(const range_proxy&lt; T &gt; &amp;rng, Size)']]],
  ['range_5fend',['range_end',['../a00079.html#a072c669eeb901b9f5ff50e22cbe9ba52',1,'fifr::util::range_end(all_range, Size n)'],['../a00079.html#a0a935b9e5f4e88a484402627e6c8da36',1,'fifr::util::range_end(T i, Size)'],['../a00079.html#a014cff4079ea58c93598c1a06c3dd402',1,'fifr::util::range_end(const range_proxy&lt; T &gt; &amp;rng, Size)']]],
  ['range_5fsize',['range_size',['../a00079.html#a794f0c94f474118782db17f128e628a3',1,'fifr::util::range_size(all_range, Size n)'],['../a00079.html#ab4fca9109feff56d9fa4b5567013655c',1,'fifr::util::range_size(T, Size)'],['../a00079.html#afc1a7108d8445c9c10e345baa1c57dd2',1,'fifr::util::range_size(const range_proxy&lt; T &gt; &amp;rng, Size)']]],
  ['rest',['rest',['../a00855.html#aee9f6188e5f13f8fb78d502ee9f1132b',1,'fifr::util::SplitIterator']]]
];

Added 3rdparty/util/doc/html/search/functions_c.html.





























































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="functions_c.js"></script>
<script type="text/javascript" src="search.js"></script>
</head>
<body class="SRPage">
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
createResults();
/* @license-end */
--></script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
/* @license-end */
--></script>
</div>
</body>
</html>

Added 3rdparty/util/doc/html/search/functions_c.js.



































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
var searchData=
[
  ['scan',['scan',['../a00079.html#a965fae864f05b845194b24177ffd3a81',1,'fifr::util']]],
  ['scan_5fmatches',['scan_matches',['../a00079.html#a3093afe9b956797b3ce3fb1191b21409',1,'fifr::util']]],
  ['set_5findent',['set_indent',['../a00863.html#a0bd9407d389b19a7a318a9374904dcf8',1,'fifr::util::WordWrapStream']]],
  ['set_5findent_5ffirst',['set_indent_first',['../a00863.html#ac2a003bb87e8fc5e379f8555216c055d',1,'fifr::util::WordWrapStream']]],
  ['set_5flevel',['set_level',['../a00807.html#a8a58644fa2cfc3f62a0e18bab9024de7',1,'fifr::util::Logger']]],
  ['set_5fwidth',['set_width',['../a00863.html#adeba1399ba5a180181cc3496af213fb3',1,'fifr::util::WordWrapStream']]],
  ['shift_5fto',['shift_to',['../a00863.html#ab3d311cb8b6dac1471340415c00408f9',1,'fifr::util::WordWrapStream']]],
  ['sort_5fby',['sort_by',['../a00079.html#a22abdf2c6d5581264dc1d7933e06319b',1,'fifr::util::sort_by(C &amp;container, const Keys &amp;keys)'],['../a00079.html#a87337d5276c5ab23b339b19fd1cb952e',1,'fifr::util::sort_by(C &amp;container, Fun fun)']]],
  ['split',['split',['../a00079.html#a39ff18b164b8ad8bea4f1844059fdcae',1,'fifr::util::split(const std::string &amp;str, const std::regex &amp;re=default_split)'],['../a00079.html#a4fb84c855978698dbdb2d7d834c5935e',1,'fifr::util::split(const std::string &amp;str, const std::regex &amp;re, Args &amp;... args)']]],
  ['split_5fbegin',['split_begin',['../a00079.html#a1c074a76b80bda682fed3eb223e5169d',1,'fifr::util']]],
  ['split_5fend',['split_end',['../a00079.html#a4554785c6f64cc545562fbb6af04e480',1,'fifr::util']]],
  ['splitv',['splitv',['../a00079.html#a5080ec6002a4cb7180a8f758a10a9797',1,'fifr::util']]],
  ['starts_5fwith',['starts_with',['../a00079.html#a97fd698781599ba97906caeafe4a9f4c',1,'fifr::util']]],
  ['str',['str',['../a00803.html#a7464b23617dfcfef5e1fa85b9eae8116',1,'fifr::util::Join']]]
];

Added 3rdparty/util/doc/html/search/functions_d.html.





























































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="functions_d.js"></script>
<script type="text/javascript" src="search.js"></script>
</head>
<body class="SRPage">
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
createResults();
/* @license-end */
--></script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
/* @license-end */
--></script>
</div>
</body>
</html>

Added 3rdparty/util/doc/html/search/functions_d.js.









>
>
>
>
1
2
3
4
var searchData=
[
  ['warn',['warn',['../a00807.html#a37b1e9b994f7a2bdf6643d8039b5a7ad',1,'fifr::util::Logger::warn()'],['../a00079.html#add7683b10f66d150b12b57bc9518caee',1,'fifr::util::warn()']]]
];

Added 3rdparty/util/doc/html/search/functions_e.html.





























































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="functions_e.js"></script>
<script type="text/javascript" src="search.js"></script>
</head>
<body class="SRPage">
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
createResults();
/* @license-end */
--></script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
/* @license-end */
--></script>
</div>
</body>
</html>

Added 3rdparty/util/doc/html/search/functions_e.js.











>
>
>
>
>
1
2
3
4
5
var searchData=
[
  ['_7ebzip2streambuf',['~BZip2StreamBuf',['../a00663.html#a9ff9e4ac10619304d9762e82a472347d',1,'fifr::util::BZip2StreamBuf']]],
  ['_7egzipstreambuf',['~GZipStreamBuf',['../a00799.html#a3d3601c783a0b972293fa1a36db9e39b',1,'fifr::util::GZipStreamBuf']]]
];

Added 3rdparty/util/doc/html/search/mag_sel.png.

cannot compute difference between binary files

Added 3rdparty/util/doc/html/search/namespaces_0.html.





























































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="namespaces_0.js"></script>
<script type="text/javascript" src="search.js"></script>
</head>
<body class="SRPage">
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
createResults();
/* @license-end */
--></script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
/* @license-end */
--></script>
</div>
</body>
</html>

Added 3rdparty/util/doc/html/search/namespaces_0.js.









>
>
>
>
1
2
3
4
var searchData=
[
  ['util',['util',['../a00079.html',1,'fifr']]]
];

Added 3rdparty/util/doc/html/search/nomatches.html.

























>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="search.js"></script>
</head>
<body class="SRPage">
<div id="SRIndex">
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</body>
</html>

Added 3rdparty/util/doc/html/search/pages_0.html.





























































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="pages_0.js"></script>
<script type="text/javascript" src="search.js"></script>
</head>
<body class="SRPage">
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
createResults();
/* @license-end */
--></script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
/* @license-end */
--></script>
</div>
</body>
</html>

Added 3rdparty/util/doc/html/search/pages_0.js.









>
>
>
>
1
2
3
4
var searchData=
[
  ['fifr_3a_3autil_20c_2b_2b_20utility_20library',['fifr::util C++ utility library',['../index.html',1,'']]]
];

Added 3rdparty/util/doc/html/search/related_0.html.





























































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="related_0.js"></script>
<script type="text/javascript" src="search.js"></script>
</head>
<body class="SRPage">
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
createResults();
/* @license-end */
--></script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
/* @license-end */
--></script>
</div>
</body>
</html>

Added 3rdparty/util/doc/html/search/related_0.js.









>
>
>
>
1
2
3
4
var searchData=
[
  ['operator_3c_3c',['operator&lt;&lt;',['../a00863.html#a58b7842ed39181d0e3f42606344daec0',1,'fifr::util::WordWrapStream']]]
];

Added 3rdparty/util/doc/html/search/search.css.































































































































































































































































































































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
/*---------------- Search Box */

#FSearchBox {
    float: left;
}

#MSearchBox {
    white-space : nowrap;
    float: none;
    margin-top: 8px;
    right: 0px;
    width: 170px;
    height: 24px;
    z-index: 102;
}

#MSearchBox .left
{
    display:block;
    position:absolute;
    left:10px;
    width:20px;
    height:19px;
    background:url('search_l.png') no-repeat;
    background-position:right;
}

#MSearchSelect {
    display:block;
    position:absolute;
    width:20px;
    height:19px;
}

.left #MSearchSelect {
    left:4px;
}

.right #MSearchSelect {
    right:5px;
}

#MSearchField {
    display:block;
    position:absolute;
    height:19px;
    background:url('search_m.png') repeat-x;
    border:none;
    width:115px;
    margin-left:20px;
    padding-left:4px;
    color: #909090;
    outline: none;
    font: 9pt Arial, Verdana, sans-serif;
    -webkit-border-radius: 0px;
}

#FSearchBox #MSearchField {
    margin-left:15px;
}

#MSearchBox .right {
    display:block;
    position:absolute;
    right:10px;
    top:8px;
    width:20px;
    height:19px;
    background:url('search_r.png') no-repeat;
    background-position:left;
}

#MSearchClose {
    display: none;
    position: absolute;
    top: 4px;
    background : none;
    border: none;
    margin: 0px 4px 0px 0px;
    padding: 0px 0px;
    outline: none;
}

.left #MSearchClose {
    left: 6px;
}

.right #MSearchClose {
    right: 2px;
}

.MSearchBoxActive #MSearchField {
    color: #000000;
}

/*---------------- Search filter selection */

#MSearchSelectWindow {
    display: none;
    position: absolute;
    left: 0; top: 0;
    border: 1px solid #90A5CE;
    background-color: #F9FAFC;
    z-index: 10001;
    padding-top: 4px;
    padding-bottom: 4px;
    -moz-border-radius: 4px;
    -webkit-border-top-left-radius: 4px;
    -webkit-border-top-right-radius: 4px;
    -webkit-border-bottom-left-radius: 4px;
    -webkit-border-bottom-right-radius: 4px;
    -webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15);
}

.SelectItem {
    font: 8pt Arial, Verdana, sans-serif;
    padding-left:  2px;
    padding-right: 12px;
    border: 0px;
}

span.SelectionMark {
    margin-right: 4px;
    font-family: monospace;
    outline-style: none;
    text-decoration: none;
}

a.SelectItem {
    display: block;
    outline-style: none;
    color: #000000; 
    text-decoration: none;
    padding-left:   6px;
    padding-right: 12px;
}

a.SelectItem:focus,
a.SelectItem:active {
    color: #000000; 
    outline-style: none;
    text-decoration: none;
}

a.SelectItem:hover {
    color: #FFFFFF;
    background-color: #3D578C;
    outline-style: none;
    text-decoration: none;
    cursor: pointer;
    display: block;
}

/*---------------- Search results window */

iframe#MSearchResults {
    width: 60ex;
    height: 15em;
}

#MSearchResultsWindow {
    display: none;
    position: absolute;
    left: 0; top: 0;
    border: 1px solid #000;
    background-color: #EEF1F7;
    z-index:10000;
}

/* ----------------------------------- */


#SRIndex {
    clear:both; 
    padding-bottom: 15px;
}

.SREntry {
    font-size: 10pt;
    padding-left: 1ex;
}

.SRPage .SREntry {
    font-size: 8pt;
    padding: 1px 5px;
}

body.SRPage {
    margin: 5px 2px;
}

.SRChildren {
    padding-left: 3ex; padding-bottom: .5em 
}

.SRPage .SRChildren {
    display: none;
}

.SRSymbol {
    font-weight: bold; 
    color: #425E97;
    font-family: Arial, Verdana, sans-serif;
    text-decoration: none;
    outline: none;
}

a.SRScope {
    display: block;
    color: #425E97; 
    font-family: Arial, Verdana, sans-serif;
    text-decoration: none;
    outline: none;
}

a.SRSymbol:focus, a.SRSymbol:active,
a.SRScope:focus, a.SRScope:active {
    text-decoration: underline;
}

span.SRScope {
    padding-left: 4px;
}

.SRPage .SRStatus {
    padding: 2px 5px;
    font-size: 8pt;
    font-style: italic;
}

.SRResult {
    display: none;
}

DIV.searchresults {
    margin-left: 10px;
    margin-right: 10px;
}

/*---------------- External search page results */

.searchresult {
    background-color: #F0F3F8;
}

.pages b {
   color: white;
   padding: 5px 5px 3px 5px;
   background-image: url("../tab_a.png");
   background-repeat: repeat-x;
   text-shadow: 0 1px 1px #000000;
}

.pages {
    line-height: 17px;
    margin-left: 4px;
    text-decoration: none;
}

.hl {
    font-weight: bold;
}

#searchresults {
    margin-bottom: 20px;
}

.searchpages {
    margin-top: 10px;
}

Added 3rdparty/util/doc/html/search/search.js.





























































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
/*
 @licstart  The following is the entire license notice for the
 JavaScript code in this file.

 Copyright (C) 1997-2017 by Dimitri van Heesch

 This program is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation; either version 2 of the License, or
 (at your option) any later version.

 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.

 You should have received a copy of the GNU General Public License along
 with this program; if not, write to the Free Software Foundation, Inc.,
 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

 @licend  The above is the entire license notice
 for the JavaScript code in this file
 */
function convertToId(search)
{
  var result = '';
  for (i=0;i<search.length;i++)
  {
    var c = search.charAt(i);
    var cn = c.charCodeAt(0);
    if (c.match(/[a-z0-9\u0080-\uFFFF]/))
    {
      result+=c;
    }
    else if (cn<16)
    {
      result+="_0"+cn.toString(16);
    }
    else
    {
      result+="_"+cn.toString(16);
    }
  }
  return result;
}

function getXPos(item)
{
  var x = 0;
  if (item.offsetWidth)
  {
    while (item && item!=document.body)
    {
      x   += item.offsetLeft;
      item = item.offsetParent;
    }
  }
  return x;
}

function getYPos(item)
{
  var y = 0;
  if (item.offsetWidth)
  {
     while (item && item!=document.body)
     {
       y   += item.offsetTop;
       item = item.offsetParent;
     }
  }
  return y;
}

/* A class handling everything associated with the search panel.

   Parameters:
   name - The name of the global variable that will be
          storing this instance.  Is needed to be able to set timeouts.
   resultPath - path to use for external files
*/
function SearchBox(name, resultsPath, inFrame, label)
{
  if (!name || !resultsPath) {  alert("Missing parameters to SearchBox."); }

  // ---------- Instance variables
  this.name                  = name;
  this.resultsPath           = resultsPath;
  this.keyTimeout            = 0;
  this.keyTimeoutLength      = 500;
  this.closeSelectionTimeout = 300;
  this.lastSearchValue       = "";
  this.lastResultsPage       = "";
  this.hideTimeout           = 0;
  this.searchIndex           = 0;
  this.searchActive          = false;
  this.insideFrame           = inFrame;
  this.searchLabel           = label;

  // ----------- DOM Elements

  this.DOMSearchField = function()
  {  return document.getElementById("MSearchField");  }

  this.DOMSearchSelect = function()
  {  return document.getElementById("MSearchSelect");  }

  this.DOMSearchSelectWindow = function()
  {  return document.getElementById("MSearchSelectWindow");  }

  this.DOMPopupSearchResults = function()
  {  return document.getElementById("MSearchResults");  }

  this.DOMPopupSearchResultsWindow = function()
  {  return document.getElementById("MSearchResultsWindow");  }

  this.DOMSearchClose = function()
  {  return document.getElementById("MSearchClose"); }

  this.DOMSearchBox = function()
  {  return document.getElementById("MSearchBox");  }

  // ------------ Event Handlers

  // Called when focus is added or removed from the search field.
  this.OnSearchFieldFocus = function(isActive)
  {
    this.Activate(isActive);
  }

  this.OnSearchSelectShow = function()
  {
    var searchSelectWindow = this.DOMSearchSelectWindow();
    var searchField        = this.DOMSearchSelect();

    if (this.insideFrame)
    {
      var left = getXPos(searchField);
      var top  = getYPos(searchField);
      left += searchField.offsetWidth + 6;
      top += searchField.offsetHeight;

      // show search selection popup
      searchSelectWindow.style.display='block';
      left -= searchSelectWindow.offsetWidth;
      searchSelectWindow.style.left =  left + 'px';
      searchSelectWindow.style.top  =  top  + 'px';
    }
    else
    {
      var left = getXPos(searchField);
      var top  = getYPos(searchField);
      top += searchField.offsetHeight;

      // show search selection popup
      searchSelectWindow.style.display='block';
      searchSelectWindow.style.left =  left + 'px';
      searchSelectWindow.style.top  =  top  + 'px';
    }

    // stop selection hide timer
    if (this.hideTimeout)
    {
      clearTimeout(this.hideTimeout);
      this.hideTimeout=0;
    }
    return false; // to avoid "image drag" default event
  }

  this.OnSearchSelectHide = function()
  {
    this.hideTimeout = setTimeout(this.name +".CloseSelectionWindow()",
                                  this.closeSelectionTimeout);
  }

  // Called when the content of the search field is changed.
  this.OnSearchFieldChange = function(evt)
  {
    if (this.keyTimeout) // kill running timer
    {
      clearTimeout(this.keyTimeout);
      this.keyTimeout = 0;
    }

    var e  = (evt) ? evt : window.event; // for IE
    if (e.keyCode==40 || e.keyCode==13)
    {
      if (e.shiftKey==1)
      {
        this.OnSearchSelectShow();
        var win=this.DOMSearchSelectWindow();
        for (i=0;i<win.childNodes.length;i++)
        {
          var child = win.childNodes[i]; // get span within a
          if (child.className=='SelectItem')
          {
            child.focus();
            return;
          }
        }
        return;
      }
      else if (window.frames.MSearchResults.searchResults)
      {
        var elem = window.frames.MSearchResults.searchResults.NavNext(0);
        if (elem) elem.focus();
      }
    }
    else if (e.keyCode==27) // Escape out of the search field
    {
      this.DOMSearchField().blur();
      this.DOMPopupSearchResultsWindow().style.display = 'none';
      this.DOMSearchClose().style.display = 'none';
      this.lastSearchValue = '';
      this.Activate(false);
      return;
    }

    // strip whitespaces
    var searchValue = this.DOMSearchField().value.replace(/ +/g, "");

    if (searchValue != this.lastSearchValue) // search value has changed
    {
      if (searchValue != "") // non-empty search
      {
        // set timer for search update
        this.keyTimeout = setTimeout(this.name + '.Search()',
                                     this.keyTimeoutLength);
      }
      else // empty search field
      {
        this.DOMPopupSearchResultsWindow().style.display = 'none';
        this.DOMSearchClose().style.display = 'none';
        this.lastSearchValue = '';
      }
    }
  }

  this.SelectItemCount = function(id)
  {
    var count=0;
    var win=this.DOMSearchSelectWindow();
    for (i=0;i<win.childNodes.length;i++)
    {
      var child = win.childNodes[i]; // get span within a
      if (child.className=='SelectItem')
      {
        count++;
      }
    }
    return count;
  }

  this.SelectItemSet = function(id)
  {
    var i,j=0;
    var win=this.DOMSearchSelectWindow();
    for (i=0;i<win.childNodes.length;i++)
    {
      var child = win.childNodes[i]; // get span within a
      if (child.className=='SelectItem')
      {
        var node = child.firstChild;
        if (j==id)
        {
          node.innerHTML='&#8226;';
        }
        else
        {
          node.innerHTML='&#160;';
        }
        j++;
      }
    }
  }

  // Called when an search filter selection is made.
  // set item with index id as the active item
  this.OnSelectItem = function(id)
  {
    this.searchIndex = id;
    this.SelectItemSet(id);
    var searchValue = this.DOMSearchField().value.replace(/ +/g, "");
    if (searchValue!="" && this.searchActive) // something was found -> do a search
    {
      this.Search();
    }
  }

  this.OnSearchSelectKey = function(evt)
  {
    var e = (evt) ? evt : window.event; // for IE
    if (e.keyCode==40 && this.searchIndex<this.SelectItemCount()) // Down
    {
      this.searchIndex++;
      this.OnSelectItem(this.searchIndex);
    }
    else if (e.keyCode==38 && this.searchIndex>0) // Up
    {
      this.searchIndex--;
      this.OnSelectItem(this.searchIndex);
    }
    else if (e.keyCode==13 || e.keyCode==27)
    {
      this.OnSelectItem(this.searchIndex);
      this.CloseSelectionWindow();
      this.DOMSearchField().focus();
    }
    return false;
  }

  // --------- Actions

  // Closes the results window.
  this.CloseResultsWindow = function()
  {
    this.DOMPopupSearchResultsWindow().style.display = 'none';
    this.DOMSearchClose().style.display = 'none';
    this.Activate(false);
  }

  this.CloseSelectionWindow = function()
  {
    this.DOMSearchSelectWindow().style.display = 'none';
  }

  // Performs a search.
  this.Search = function()
  {
    this.keyTimeout = 0;

    // strip leading whitespace
    var searchValue = this.DOMSearchField().value.replace(/^ +/, "");

    var code = searchValue.toLowerCase().charCodeAt(0);
    var idxChar = searchValue.substr(0, 1).toLowerCase();
    if ( 0xD800 <= code && code <= 0xDBFF && searchValue > 1) // surrogate pair
    {
      idxChar = searchValue.substr(0, 2);
    }

    var resultsPage;
    var resultsPageWithSearch;
    var hasResultsPage;

    var idx = indexSectionsWithContent[this.searchIndex].indexOf(idxChar);
    if (idx!=-1)
    {
       var hexCode=idx.toString(16);
       resultsPage = this.resultsPath + '/' + indexSectionNames[this.searchIndex] + '_' + hexCode + '.html';
       resultsPageWithSearch = resultsPage+'?'+escape(searchValue);
       hasResultsPage = true;
    }
    else // nothing available for this search term
    {
       resultsPage = this.resultsPath + '/nomatches.html';
       resultsPageWithSearch = resultsPage;
       hasResultsPage = false;
    }

    window.frames.MSearchResults.location = resultsPageWithSearch;
    var domPopupSearchResultsWindow = this.DOMPopupSearchResultsWindow();

    if (domPopupSearchResultsWindow.style.display!='block')
    {
       var domSearchBox = this.DOMSearchBox();
       this.DOMSearchClose().style.display = 'inline';
       if (this.insideFrame)
       {
         var domPopupSearchResults = this.DOMPopupSearchResults();
         domPopupSearchResultsWindow.style.position = 'relative';
         domPopupSearchResultsWindow.style.display  = 'block';
         var width = document.body.clientWidth - 8; // the -8 is for IE :-(
         domPopupSearchResultsWindow.style.width    = width + 'px';
         domPopupSearchResults.style.width          = width + 'px';
       }
       else
       {
         var domPopupSearchResults = this.DOMPopupSearchResults();
         var left = getXPos(domSearchBox) + 150; // domSearchBox.offsetWidth;
         var top  = getYPos(domSearchBox) + 20;  // domSearchBox.offsetHeight + 1;
         domPopupSearchResultsWindow.style.display = 'block';
         left -= domPopupSearchResults.offsetWidth;
         domPopupSearchResultsWindow.style.top     = top  + 'px';
         domPopupSearchResultsWindow.style.left    = left + 'px';
       }
    }

    this.lastSearchValue = searchValue;
    this.lastResultsPage = resultsPage;
  }

  // -------- Activation Functions

  // Activates or deactivates the search panel, resetting things to
  // their default values if necessary.
  this.Activate = function(isActive)
  {
    if (isActive || // open it
        this.DOMPopupSearchResultsWindow().style.display == 'block'
       )
    {
      this.DOMSearchBox().className = 'MSearchBoxActive';

      var searchField = this.DOMSearchField();

      if (searchField.value == this.searchLabel) // clear "Search" term upon entry
      {
        searchField.value = '';
        this.searchActive = true;
      }
    }
    else if (!isActive) // directly remove the panel
    {
      this.DOMSearchBox().className = 'MSearchBoxInactive';
      this.DOMSearchField().value   = this.searchLabel;
      this.searchActive             = false;
      this.lastSearchValue          = ''
      this.lastResultsPage          = '';
    }
  }
}

// -----------------------------------------------------------------------

// The class that handles everything on the search results page.
function SearchResults(name)
{
    // The number of matches from the last run of <Search()>.
    this.lastMatchCount = 0;
    this.lastKey = 0;
    this.repeatOn = false;

    // Toggles the visibility of the passed element ID.
    this.FindChildElement = function(id)
    {
      var parentElement = document.getElementById(id);
      var element = parentElement.firstChild;

      while (element && element!=parentElement)
      {
        if (element.nodeName == 'DIV' && element.className == 'SRChildren')
        {
          return element;
        }

        if (element.nodeName == 'DIV' && element.hasChildNodes())
        {
           element = element.firstChild;
        }
        else if (element.nextSibling)
        {
           element = element.nextSibling;
        }
        else
        {
          do
          {
            element = element.parentNode;
          }
          while (element && element!=parentElement && !element.nextSibling);

          if (element && element!=parentElement)
          {
            element = element.nextSibling;
          }
        }
      }
    }

    this.Toggle = function(id)
    {
      var element = this.FindChildElement(id);
      if (element)
      {
        if (element.style.display == 'block')
        {
          element.style.display = 'none';
        }
        else
        {
          element.style.display = 'block';
        }
      }
    }

    // Searches for the passed string.  If there is no parameter,
    // it takes it from the URL query.
    //
    // Always returns true, since other documents may try to call it
    // and that may or may not be possible.
    this.Search = function(search)
    {
      if (!search) // get search word from URL
      {
        search = window.location.search;
        search = search.substring(1);  // Remove the leading '?'
        search = unescape(search);
      }

      search = search.replace(/^ +/, ""); // strip leading spaces
      search = search.replace(/ +$/, ""); // strip trailing spaces
      search = search.toLowerCase();
      search = convertToId(search);

      var resultRows = document.getElementsByTagName("div");
      var matches = 0;

      var i = 0;
      while (i < resultRows.length)
      {
        var row = resultRows.item(i);
        if (row.className == "SRResult")
        {
          var rowMatchName = row.id.toLowerCase();
          rowMatchName = rowMatchName.replace(/^sr\d*_/, ''); // strip 'sr123_'

          if (search.length<=rowMatchName.length &&
             rowMatchName.substr(0, search.length)==search)
          {
            row.style.display = 'block';
            matches++;
          }
          else
          {
            row.style.display = 'none';
          }
        }
        i++;
      }
      document.getElementById("Searching").style.display='none';
      if (matches == 0) // no results
      {
        document.getElementById("NoMatches").style.display='block';
      }
      else // at least one result
      {
        document.getElementById("NoMatches").style.display='none';
      }
      this.lastMatchCount = matches;
      return true;
    }

    // return the first item with index index or higher that is visible
    this.NavNext = function(index)
    {
      var focusItem;
      while (1)
      {
        var focusName = 'Item'+index;
        focusItem = document.getElementById(focusName);
        if (focusItem && focusItem.parentNode.parentNode.style.display=='block')
        {
          break;
        }
        else if (!focusItem) // last element
        {
          break;
        }
        focusItem=null;
        index++;
      }
      return focusItem;
    }

    this.NavPrev = function(index)
    {
      var focusItem;
      while (1)
      {
        var focusName = 'Item'+index;
        focusItem = document.getElementById(focusName);
        if (focusItem && focusItem.parentNode.parentNode.style.display=='block')
        {
          break;
        }
        else if (!focusItem) // last element
        {
          break;
        }
        focusItem=null;
        index--;
      }
      return focusItem;
    }

    this.ProcessKeys = function(e)
    {
      if (e.type == "keydown")
      {
        this.repeatOn = false;
        this.lastKey = e.keyCode;
      }
      else if (e.type == "keypress")
      {
        if (!this.repeatOn)
        {
          if (this.lastKey) this.repeatOn = true;
          return false; // ignore first keypress after keydown
        }
      }
      else if (e.type == "keyup")
      {
        this.lastKey = 0;
        this.repeatOn = false;
      }
      return this.lastKey!=0;
    }

    this.Nav = function(evt,itemIndex)
    {
      var e  = (evt) ? evt : window.event; // for IE
      if (e.keyCode==13) return true;
      if (!this.ProcessKeys(e)) return false;

      if (this.lastKey==38) // Up
      {
        var newIndex = itemIndex-1;
        var focusItem = this.NavPrev(newIndex);
        if (focusItem)
        {
          var child = this.FindChildElement(focusItem.parentNode.parentNode.id);
          if (child && child.style.display == 'block') // children visible
          {
            var n=0;
            var tmpElem;
            while (1) // search for last child
            {
              tmpElem = document.getElementById('Item'+newIndex+'_c'+n);
              if (tmpElem)
              {
                focusItem = tmpElem;
              }
              else // found it!
              {
                break;
              }
              n++;
            }
          }
        }
        if (focusItem)
        {
          focusItem.focus();
        }
        else // return focus to search field
        {
           parent.document.getElementById("MSearchField").focus();
        }
      }
      else if (this.lastKey==40) // Down
      {
        var newIndex = itemIndex+1;
        var focusItem;
        var item = document.getElementById('Item'+itemIndex);
        var elem = this.FindChildElement(item.parentNode.parentNode.id);
        if (elem && elem.style.display == 'block') // children visible
        {
          focusItem = document.getElementById('Item'+itemIndex+'_c0');
        }
        if (!focusItem) focusItem = this.NavNext(newIndex);
        if (focusItem)  focusItem.focus();
      }
      else if (this.lastKey==39) // Right
      {
        var item = document.getElementById('Item'+itemIndex);
        var elem = this.FindChildElement(item.parentNode.parentNode.id);
        if (elem) elem.style.display = 'block';
      }
      else if (this.lastKey==37) // Left
      {
        var item = document.getElementById('Item'+itemIndex);
        var elem = this.FindChildElement(item.parentNode.parentNode.id);
        if (elem) elem.style.display = 'none';
      }
      else if (this.lastKey==27) // Escape
      {
        parent.searchBox.CloseResultsWindow();
        parent.document.getElementById("MSearchField").focus();
      }
      else if (this.lastKey==13) // Enter
      {
        return true;
      }
      return false;
    }

    this.NavChild = function(evt,itemIndex,childIndex)
    {
      var e  = (evt) ? evt : window.event; // for IE
      if (e.keyCode==13) return true;
      if (!this.ProcessKeys(e)) return false;

      if (this.lastKey==38) // Up
      {
        if (childIndex>0)
        {
          var newIndex = childIndex-1;
          document.getElementById('Item'+itemIndex+'_c'+newIndex).focus();
        }
        else // already at first child, jump to parent
        {
          document.getElementById('Item'+itemIndex).focus();
        }
      }
      else if (this.lastKey==40) // Down
      {
        var newIndex = childIndex+1;
        var elem = document.getElementById('Item'+itemIndex+'_c'+newIndex);
        if (!elem) // last child, jump to parent next parent
        {
          elem = this.NavNext(itemIndex+1);
        }
        if (elem)
        {
          elem.focus();
        }
      }
      else if (this.lastKey==27) // Escape
      {
        parent.searchBox.CloseResultsWindow();
        parent.document.getElementById("MSearchField").focus();
      }
      else if (this.lastKey==13) // Enter
      {
        return true;
      }
      return false;
    }
}

function setKeyActions(elem,action)
{
  elem.setAttribute('onkeydown',action);
  elem.setAttribute('onkeypress',action);
  elem.setAttribute('onkeyup',action);
}

function setClassAttr(elem,attr)
{
  elem.setAttribute('class',attr);
  elem.setAttribute('className',attr);
}

function createResults()
{
  var results = document.getElementById("SRResults");
  for (var e=0; e<searchData.length; e++)
  {
    var id = searchData[e][0];
    var srResult = document.createElement('div');
    srResult.setAttribute('id','SR_'+id);
    setClassAttr(srResult,'SRResult');
    var srEntry = document.createElement('div');
    setClassAttr(srEntry,'SREntry');
    var srLink = document.createElement('a');
    srLink.setAttribute('id','Item'+e);
    setKeyActions(srLink,'return searchResults.Nav(event,'+e+')');
    setClassAttr(srLink,'SRSymbol');
    srLink.innerHTML = searchData[e][1][0];
    srEntry.appendChild(srLink);
    if (searchData[e][1].length==2) // single result
    {
      srLink.setAttribute('href',searchData[e][1][1][0]);
      if (searchData[e][1][1][1])
      {
       srLink.setAttribute('target','_parent');
      }
      var srScope = document.createElement('span');
      setClassAttr(srScope,'SRScope');
      srScope.innerHTML = searchData[e][1][1][2];
      srEntry.appendChild(srScope);
    }
    else // multiple results
    {
      srLink.setAttribute('href','javascript:searchResults.Toggle("SR_'+id+'")');
      var srChildren = document.createElement('div');
      setClassAttr(srChildren,'SRChildren');
      for (var c=0; c<searchData[e][1].length-1; c++)
      {
        var srChild = document.createElement('a');
        srChild.setAttribute('id','Item'+e+'_c'+c);
        setKeyActions(srChild,'return searchResults.NavChild(event,'+e+','+c+')');
        setClassAttr(srChild,'SRScope');
        srChild.setAttribute('href',searchData[e][1][c+1][0]);
        if (searchData[e][1][c+1][1])
        {
         srChild.setAttribute('target','_parent');
        }
        srChild.innerHTML = searchData[e][1][c+1][2];
        srChildren.appendChild(srChild);
      }
      srEntry.appendChild(srChildren);
    }
    srResult.appendChild(srEntry);
    results.appendChild(srResult);
  }
}

function init_search()
{
  var results = document.getElementById("MSearchSelectWindow");
  for (var key in indexSectionLabels)
  {
    var link = document.createElement('a');
    link.setAttribute('class','SelectItem');
    link.setAttribute('onclick','searchBox.OnSelectItem('+key+')');
    link.href='javascript:void(0)';
    link.innerHTML='<span class="SelectionMark">&#160;</span>'+indexSectionLabels[key];
    results.appendChild(link);
  }
  searchBox.OnSelectItem(0);
}
/* @license-end */

Added 3rdparty/util/doc/html/search/search_l.png.

cannot compute difference between binary files

Added 3rdparty/util/doc/html/search/search_m.png.

cannot compute difference between binary files

Added 3rdparty/util/doc/html/search/search_r.png.

cannot compute difference between binary files

Added 3rdparty/util/doc/html/search/searchdata.js.



























































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
var indexSectionsWithContent =
{
  0: "abcdefgijlmnorswz~",
  1: "abcgijlosw",
  2: "f",
  3: "cs",
  4: "bcdefgijlmorsw~",
  5: "d",
  6: "o",
  7: "lz",
  8: "adeinw",
  9: "o",
  10: "f"
};

var indexSectionNames =
{
  0: "all",
  1: "classes",
  2: "namespaces",
  3: "files",
  4: "functions",
  5: "variables",
  6: "typedefs",
  7: "enums",
  8: "enumvalues",
  9: "related",
  10: "pages"
};

var indexSectionLabels =
{
  0: "All",
  1: "Data Structures",
  2: "Namespaces",
  3: "Files",
  4: "Functions",
  5: "Variables",
  6: "Typedefs",
  7: "Enumerations",
  8: "Enumerator",
  9: "Friends",
  10: "Pages"
};

Added 3rdparty/util/doc/html/search/typedefs_0.html.





























































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="typedefs_0.js"></script>
<script type="text/javascript" src="search.js"></script>
</head>
<body class="SRPage">
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
createResults();
/* @license-end */
--></script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
/* @license-end */
--></script>
</div>
</body>
</html>

Added 3rdparty/util/doc/html/search/typedefs_0.js.









>
>
>
>
1
2
3
4
var searchData=
[
  ['open_5fstreambuf',['open_streambuf',['../a00079.html#ab35030b49111e5496edbd06a4b568435',1,'fifr::util']]]
];

Added 3rdparty/util/doc/html/search/variables_0.html.





























































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="variables_0.js"></script>
<script type="text/javascript" src="search.js"></script>
</head>
<body class="SRPage">
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
createResults();
/* @license-end */
--></script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
/* @license-end */
--></script>
</div>
</body>
</html>

Added 3rdparty/util/doc/html/search/variables_0.js.











>
>
>
>
>
1
2
3
4
5
var searchData=
[
  ['default_5flogger',['default_logger',['../a00807.html#aca74256e77b99d8c22681a03a9b19832',1,'fifr::util::Logger']]],
  ['default_5fsplit',['default_split',['../a00079.html#ac4bdb5919b69453de8a723476cb21157',1,'fifr::util']]]
];

Added 3rdparty/util/doc/html/splitbar.png.

cannot compute difference between binary files

Added 3rdparty/util/doc/html/sync_off.png.

cannot compute difference between binary files

Added 3rdparty/util/doc/html/sync_on.png.

cannot compute difference between binary files

Added 3rdparty/util/doc/html/tab_a.png.

cannot compute difference between binary files

Added 3rdparty/util/doc/html/tab_b.png.

cannot compute difference between binary files

Added 3rdparty/util/doc/html/tab_h.png.

cannot compute difference between binary files

Added 3rdparty/util/doc/html/tab_s.png.

cannot compute difference between binary files

Added 3rdparty/util/doc/html/tabs.css.



>
1
.sm{position:relative;z-index:9999}.sm,.sm ul,.sm li{display:block;list-style:none;margin:0;padding:0;line-height:normal;direction:ltr;text-align:left;-webkit-tap-highlight-color:rgba(0,0,0,0)}.sm-rtl,.sm-rtl ul,.sm-rtl li{direction:rtl;text-align:right}.sm>li>h1,.sm>li>h2,.sm>li>h3,.sm>li>h4,.sm>li>h5,.sm>li>h6{margin:0;padding:0}.sm ul{display:none}.sm li,.sm a{position:relative}.sm a{display:block}.sm a.disabled{cursor:not-allowed}.sm:after{content:"\00a0";display:block;height:0;font:0/0 serif;clear:both;visibility:hidden;overflow:hidden}.sm,.sm *,.sm *:before,.sm *:after{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}#doc-content{overflow:auto;display:block;padding:0;margin:0;-webkit-overflow-scrolling:touch}.sm-dox{background-image:url("tab_b.png")}.sm-dox a,.sm-dox a:focus,.sm-dox a:hover,.sm-dox a:active{padding:0 12px;padding-right:43px;font-family:"Lucida Grande","Geneva","Helvetica",Arial,sans-serif;font-size:13px;font-weight:bold;line-height:36px;text-decoration:none;text-shadow:0 1px 1px rgba(255,255,255,0.9);color:#283a5d;outline:0}.sm-dox a:hover{background-image:url("tab_a.png");background-repeat:repeat-x;color:white;text-shadow:0 1px 1px black}.sm-dox a.current{color:#d23600}.sm-dox a.disabled{color:#bbb}.sm-dox a span.sub-arrow{position:absolute;top:50%;margin-top:-14px;left:auto;right:3px;width:28px;height:28px;overflow:hidden;font:bold 12px/28px monospace!important;text-align:center;text-shadow:none;background:rgba(255,255,255,0.5);-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px}.sm-dox a.highlighted span.sub-arrow:before{display:block;content:'-'}.sm-dox>li:first-child>a,.sm-dox>li:first-child>:not(ul) a{-moz-border-radius:5px 5px 0 0;-webkit-border-radius:5px;border-radius:5px 5px 0 0}.sm-dox>li:last-child>a,.sm-dox>li:last-child>*:not(ul) a,.sm-dox>li:last-child>ul,.sm-dox>li:last-child>ul>li:last-child>a,.sm-dox>li:last-child>ul>li:last-child>*:not(ul) a,.sm-dox>li:last-child>ul>li:last-child>ul,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>a,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>*:not(ul) a,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>a,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>*:not(ul) a,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>ul,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>a,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>*:not(ul) a,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>ul{-moz-border-radius:0 0 5px 5px;-webkit-border-radius:0;border-radius:0 0 5px 5px}.sm-dox>li:last-child>a.highlighted,.sm-dox>li:last-child>*:not(ul) a.highlighted,.sm-dox>li:last-child>ul>li:last-child>a.highlighted,.sm-dox>li:last-child>ul>li:last-child>*:not(ul) a.highlighted,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>a.highlighted,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>*:not(ul) a.highlighted,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>a.highlighted,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>*:not(ul) a.highlighted,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>a.highlighted,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>*:not(ul) a.highlighted{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0}.sm-dox ul{background:rgba(162,162,162,0.1)}.sm-dox ul a,.sm-dox ul a:focus,.sm-dox ul a:hover,.sm-dox ul a:active{font-size:12px;border-left:8px solid transparent;line-height:36px;text-shadow:none;background-color:white;background-image:none}.sm-dox ul a:hover{background-image:url("tab_a.png");background-repeat:repeat-x;color:white;text-shadow:0 1px 1px black}.sm-dox ul ul a,.sm-dox ul ul a:hover,.sm-dox ul ul a:focus,.sm-dox ul ul a:active{border-left:16px solid transparent}.sm-dox ul ul ul a,.sm-dox ul ul ul a:hover,.sm-dox ul ul ul a:focus,.sm-dox ul ul ul a:active{border-left:24px solid transparent}.sm-dox ul ul ul ul a,.sm-dox ul ul ul ul a:hover,.sm-dox ul ul ul ul a:focus,.sm-dox ul ul ul ul a:active{border-left:32px solid transparent}.sm-dox ul ul ul ul ul a,.sm-dox ul ul ul ul ul a:hover,.sm-dox ul ul ul ul ul a:focus,.sm-dox ul ul ul ul ul a:active{border-left:40px solid transparent}@media(min-width:768px){.sm-dox ul{position:absolute;width:12em}.sm-dox li{float:left}.sm-dox.sm-rtl li{float:right}.sm-dox ul li,.sm-dox.sm-rtl ul li,.sm-dox.sm-vertical li{float:none}.sm-dox a{white-space:nowrap}.sm-dox ul a,.sm-dox.sm-vertical a{white-space:normal}.sm-dox .sm-nowrap>li>a,.sm-dox .sm-nowrap>li>:not(ul) a{white-space:nowrap}.sm-dox{padding:0 10px;background-image:url("tab_b.png");line-height:36px}.sm-dox a span.sub-arrow{top:50%;margin-top:-2px;right:12px;width:0;height:0;border-width:4px;border-style:solid dashed dashed dashed;border-color:#283a5d transparent transparent transparent;background:transparent;-moz-border-radius:0;-webkit-border-radius:0;border-radius:0}.sm-dox a,.sm-dox a:focus,.sm-dox a:active,.sm-dox a:hover,.sm-dox a.highlighted{padding:0 12px;background-image:url("tab_s.png");background-repeat:no-repeat;background-position:right;-moz-border-radius:0!important;-webkit-border-radius:0;border-radius:0!important}.sm-dox a:hover{background-image:url("tab_a.png");background-repeat:repeat-x;color:white;text-shadow:0 1px 1px black}.sm-dox a:hover span.sub-arrow{border-color:white transparent transparent transparent}.sm-dox a.has-submenu{padding-right:24px}.sm-dox li{border-top:0}.sm-dox>li>ul:before,.sm-dox>li>ul:after{content:'';position:absolute;top:-18px;left:30px;width:0;height:0;overflow:hidden;border-width:9px;border-style:dashed dashed solid dashed;border-color:transparent transparent #bbb transparent}.sm-dox>li>ul:after{top:-16px;left:31px;border-width:8px;border-color:transparent transparent #fff transparent}.sm-dox ul{border:1px solid #bbb;padding:5px 0;background:#fff;-moz-border-radius:5px!important;-webkit-border-radius:5px;border-radius:5px!important;-moz-box-shadow:0 5px 9px rgba(0,0,0,0.2);-webkit-box-shadow:0 5px 9px rgba(0,0,0,0.2);box-shadow:0 5px 9px rgba(0,0,0,0.2)}.sm-dox ul a span.sub-arrow{right:8px;top:50%;margin-top:-5px;border-width:5px;border-color:transparent transparent transparent #555;border-style:dashed dashed dashed solid}.sm-dox ul a,.sm-dox ul a:hover,.sm-dox ul a:focus,.sm-dox ul a:active,.sm-dox ul a.highlighted{color:#555;background-image:none;border:0!important;color:#555;background-image:none}.sm-dox ul a:hover{background-image:url("tab_a.png");background-repeat:repeat-x;color:white;text-shadow:0 1px 1px black}.sm-dox ul a:hover span.sub-arrow{border-color:transparent transparent transparent white}.sm-dox span.scroll-up,.sm-dox span.scroll-down{position:absolute;display:none;visibility:hidden;overflow:hidden;background:#fff;height:36px}.sm-dox span.scroll-up:hover,.sm-dox span.scroll-down:hover{background:#eee}.sm-dox span.scroll-up:hover span.scroll-up-arrow,.sm-dox span.scroll-up:hover span.scroll-down-arrow{border-color:transparent transparent #d23600 transparent}.sm-dox span.scroll-down:hover span.scroll-down-arrow{border-color:#d23600 transparent transparent transparent}.sm-dox span.scroll-up-arrow,.sm-dox span.scroll-down-arrow{position:absolute;top:0;left:50%;margin-left:-6px;width:0;height:0;overflow:hidden;border-width:6px;border-style:dashed dashed solid dashed;border-color:transparent transparent #555 transparent}.sm-dox span.scroll-down-arrow{top:8px;border-style:solid dashed dashed dashed;border-color:#555 transparent transparent transparent}.sm-dox.sm-rtl a.has-submenu{padding-right:12px;padding-left:24px}.sm-dox.sm-rtl a span.sub-arrow{right:auto;left:12px}.sm-dox.sm-rtl.sm-vertical a.has-submenu{padding:10px 20px}.sm-dox.sm-rtl.sm-vertical a span.sub-arrow{right:auto;left:8px;border-style:dashed solid dashed dashed;border-color:transparent #555 transparent transparent}.sm-dox.sm-rtl>li>ul:before{left:auto;right:30px}.sm-dox.sm-rtl>li>ul:after{left:auto;right:31px}.sm-dox.sm-rtl ul a.has-submenu{padding:10px 20px!important}.sm-dox.sm-rtl ul a span.sub-arrow{right:auto;left:8px;border-style:dashed solid dashed dashed;border-color:transparent #555 transparent transparent}.sm-dox.sm-vertical{padding:10px 0;-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px}.sm-dox.sm-vertical a{padding:10px 20px}.sm-dox.sm-vertical a:hover,.sm-dox.sm-vertical a:focus,.sm-dox.sm-vertical a:active,.sm-dox.sm-vertical a.highlighted{background:#fff}.sm-dox.sm-vertical a.disabled{background-image:url("tab_b.png")}.sm-dox.sm-vertical a span.sub-arrow{right:8px;top:50%;margin-top:-5px;border-width:5px;border-style:dashed dashed dashed solid;border-color:transparent transparent transparent #555}.sm-dox.sm-vertical>li>ul:before,.sm-dox.sm-vertical>li>ul:after{display:none}.sm-dox.sm-vertical ul a{padding:10px 20px}.sm-dox.sm-vertical ul a:hover,.sm-dox.sm-vertical ul a:focus,.sm-dox.sm-vertical ul a:active,.sm-dox.sm-vertical ul a.highlighted{background:#eee}.sm-dox.sm-vertical ul a.disabled{background:#fff}}

Added 3rdparty/util/src/fifr/util/AutoTuple.hxx.



























































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/*
 * Copyright (c) 2017, 2023 Frank Fischer <frank-fischer@shadow-soft.de>
 *
 * This program is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see  <http://www.gnu.org/licenses/>
 */

#ifndef FIFR_UTIL_AUTOTUPLE_HXX
#define FIFR_UTIL_AUTOTUPLE_HXX

#include <tuple>

namespace fifr {
namespace util {
/// Trait for returning tuple, pair or value depending on the number
/// of type arguments.
///
/// If the number of type arguments is 1, the returned type is the type itself.
/// If the number of type arguments is 2, the returned type is a pair of these types.
/// Otherwise the returned type is a tuple of these types.
template <typename... Args>
struct AutoTuple {
    using type = std::tuple<Args...>;
};

template <typename Arg>
struct AutoTuple<Arg> {
    using type = Arg;
};

template <typename Arg1, typename Arg2>
struct AutoTuple<Arg1, Arg2> {
    using type = std::pair<Arg1, Arg2>;
};

/// Return the arguments as value, pair or tuple.
///
/// The type of the return value depends on the number of type arguments:
///
/// - if one return the plain argument
/// - if two return a std::pair
/// - otherwise return a std::tuple
template <typename... Args>
typename AutoTuple<Args...>::type make_auto_tuple(Args&&... args)
{
    return typename AutoTuple<Args...>::type{std::forward<Args>(args)...};
}
}  // namespace util
}  // namespace fifr

#endif

Added 3rdparty/util/src/fifr/util/AutoZipStream.cxx.





























































































































































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
/*
 * Copyright (c) 2017-2024 Frank Fischer <frank-fischer@shadow-soft.de>
 *
 * This program is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see  <http://www.gnu.org/licenses/>
 */

#include "AutoZipStream.hxx"

#include "String.hxx"
#include "ToolStream.hxx"

#include <cstdlib>
#include <fstream>
#include <functional>
#include <iostream>
#include <map>
#include <memory>
#include <string>
#include <string_view>
#include <utility>

#ifdef HAVE_GZIP
#    include "GZipStream.hxx"
#endif

#ifdef HAVE_BZIP2
#    include "BZip2Stream.hxx"
#endif

using namespace std::literals;

namespace fifr::util {

namespace {
using Registry = std::map<std::string,
                          std::function<std::unique_ptr<std::streambuf>(const std::string&, std::ios_base::openmode)>,
                          std::less<>>;
auto registry() -> Registry&
{
    static Registry compressors = {};
    return compressors;
}
}  // namespace

void register_autozipper(const char* extension,
                         std::function<std::unique_ptr<std::streambuf>(const std::string&, std::ios_base::openmode)> open)
{
    registry()[extension] = std::move(open);
}

class AutoZipStreamData
{
public:
    open_streambuf open;
    ZipMode zipmode;
    std::unique_ptr<std::streambuf> buf;
};

std::unique_ptr<std::streambuf> open_by_extension(const std::string& name, std::ios::openmode opmode, ZipMode zipmode)
{
    // try external compressor
    if (zipmode == ZipMode::Auto || zipmode == ZipMode::Internal) {
        if (auto p = name.rfind('.'); p != std::string::npos) {
            auto ext = std::string_view(name).substr(p);
            auto& reg = registry();
            if (auto it = reg.find(ext); it != reg.end()) {
                return it->second(name, opmode);
            }
        }
    }

    // try internal compressor
    if (ends_with(name, ".gz")) {
        if (zipmode == ZipMode::Auto || zipmode == ZipMode::External) {
            if ((opmode & std::ios::in) != 0) {
                return std::unique_ptr<std::streambuf>(new ToolStreambuf("/usr/bin/gzip", {"-c", "-d", name}, opmode));
            }
            return std::unique_ptr<std::streambuf>(new ToolStreambuf("/usr/bin/gzip", {"-"}, name, opmode));
        }
        std::cerr << "Internal compression for gzip not compiled in";
        std::abort();

    } else if (ends_with(name, ".bz2")) {
        if (zipmode == ZipMode::Auto || zipmode == ZipMode::External) {
            if ((opmode & std::ios::in) != 0) {
                return std::unique_ptr<std::streambuf>(new ToolStreambuf("/usr/bin/bzip2", {"-c", "-d", name}, opmode));
            }
            return std::unique_ptr<std::streambuf>(new ToolStreambuf("/usr/bin/bzip2", {"-"}, name, opmode));
        }
        std::cerr << "Internal compression for bzip2 not compiled in";
        std::abort();

    } else if (ends_with(name, ".xz")) {
        if (zipmode == ZipMode::Auto || zipmode == ZipMode::External) {
            if ((opmode & std::ios::in) != 0) {
                return std::unique_ptr<std::streambuf>(new ToolStreambuf("/usr/bin/xz", {"-c", "-d", name}, opmode));
            }
            return std::unique_ptr<std::streambuf>(new ToolStreambuf("/usr/bin/xz", {"-"}, name, opmode));
        }
        std::cerr << "Internal compression for xz not compiled in";
        std::abort();

    } else {
        std::unique_ptr<std::filebuf> f{new std::filebuf()};
        f->open(name, opmode);
        return f;
    }
}

InputAutoZipStream::InputAutoZipStream(ZipMode zipmode, const open_streambuf& open)
    : d(new AutoZipStreamData{open, zipmode, {}})
{
}

InputAutoZipStream::InputAutoZipStream(const std::string& name,
                                       std::ios::openmode op_mode,
                                       ZipMode zipmode,
                                       const open_streambuf& open)
    : InputAutoZipStream(zipmode, open)
{
    this->open(name, op_mode);
}

InputAutoZipStream::InputAutoZipStream(InputAutoZipStream&& s) noexcept : d(std::move(s.d)) {}

InputAutoZipStream::~InputAutoZipStream() = default;

InputAutoZipStream& InputAutoZipStream::operator=(InputAutoZipStream&& s) noexcept
{
    d = std::move(s.d);
    return *this;
}

void InputAutoZipStream::open(const std::string& name, std::ios_base::openmode op_mode)
{
    rdbuf(nullptr);
    clear();
    d->buf = d->open(name, op_mode, d->zipmode);
    rdbuf(d->buf.get());
    if (d->buf == nullptr) {
        clear(rdstate() | std::ios::badbit);
    }
}

OutputAutoZipStream::OutputAutoZipStream(ZipMode zipmode, const open_streambuf& open)
    : d(new AutoZipStreamData{open, zipmode, {}})
{
}

OutputAutoZipStream::OutputAutoZipStream(const std::string& name,
                                         std::ios::openmode op_mode,
                                         ZipMode zipmode,
                                         const open_streambuf& open)
    : OutputAutoZipStream(zipmode, open)
{
    this->open(name, op_mode);
}

OutputAutoZipStream::OutputAutoZipStream(OutputAutoZipStream&& s) noexcept : d(std::move(s.d)) {}

OutputAutoZipStream::~OutputAutoZipStream() = default;

OutputAutoZipStream& OutputAutoZipStream::operator=(OutputAutoZipStream&& s) noexcept
{
    d = std::move(s.d);
    return *this;
}

void OutputAutoZipStream::open(const std::string& name, std::ios_base::openmode op_mode)
{
    rdbuf(nullptr);
    clear();
    d->buf = d->open(name, op_mode, d->zipmode);
    rdbuf(d->buf.get());
    if (d->buf == nullptr) {
        clear(rdstate() | std::ios::badbit);
    }
}
}  // namespace fifr::util

Added 3rdparty/util/src/fifr/util/AutoZipStream.hxx.





































































































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
/*
 * Copyright (c) 2017-2024 Frank Fischer <frank-fischer@shadow-soft.de>
 *
 * This program is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see  <http://www.gnu.org/licenses/>
 */

#ifndef FIFR_UTIL_AUTOZIPSTREAM_HXX
#define FIFR_UTIL_AUTOZIPSTREAM_HXX

#include <functional>
#include <istream>
#include <memory>
#include <ostream>

namespace fifr {
namespace util {
/// Selection of an internal or external compressor.
enum class ZipMode {
    /// Automatically select the compressor.
    ///
    /// If the correct compression library is available, choose that
    /// library. Otherwise choose an external compression tool
    Auto,
    /// Always use the linked compression library (if available).
    Internal,
    /// Always use the external compression tool.
    External,
};

/// A function to open a streambuf depending on filename, openmode and zipmode.
using open_streambuf = std::function<std::unique_ptr<std::streambuf>(const std::string&, std::ios::openmode, ZipMode)>;

/// Open a streambuf depending on the file extension.
///
/// This function detects the compression type of a file
/// automatically and chooses the appropriate compressor.
///
///  - `.gz`  zlib (gzip/zcat)
///  - `.bz2` bzip2 (bzip2/bzcat)
///  - `.xz` xz (xz/xzcat)
std::unique_ptr<std::streambuf> open_by_extension(const std::string& name, std::ios::openmode, ZipMode zipmode);

class AutoZipStreamData;

/// A file stream that automatically decompresses files.
///
/// This stream detects the compression type of a file
/// automatically and chooses the appropriate compressor.
///
/// The default implementation chooses the compressor based
/// on the file extension:
///
///  - `.gz`  zlib (gzip/zcat)
///  - `.bz2` bzip2 (bzip2/bzcat)
///  - `.xz` xz (xz/xzcat)
class InputAutoZipStream : public std::istream
{
public:
    explicit InputAutoZipStream(ZipMode zipmode = ZipMode::Auto, const open_streambuf& open = open_by_extension);

    explicit InputAutoZipStream(const std::string& name,
                                std::ios::openmode op_mode = std::ios::in,
                                ZipMode zipmode = ZipMode::Auto,
                                const open_streambuf& open = open_by_extension);

    InputAutoZipStream(InputAutoZipStream&& s) noexcept;

    InputAutoZipStream(const InputAutoZipStream&) = delete;

    ~InputAutoZipStream() override;

    InputAutoZipStream& operator=(InputAutoZipStream&& s) noexcept;

    InputAutoZipStream& operator=(const InputAutoZipStream&) = delete;

    void open(const std::string& name, std::ios_base::openmode op_mode = std::ios::in);

private:
    std::unique_ptr<AutoZipStreamData> d;
};

/// A file stream that automatically compresses files.
///
/// This stream detects the compression type of a file
/// automatically and chooses the appropriate compressor.
///
/// The default implementation chooses the compressor based
/// on the file extension:
///
///  - `.gz`  zlib (gzip/zcat)
///  - `.bz2` bzip2 (bzip2/bzcat)
///  - `.xz` xz (xz/xzcat)
class OutputAutoZipStream : public std::ostream
{
public:
    explicit OutputAutoZipStream(ZipMode zipmode = ZipMode::Auto, const open_streambuf& open = open_by_extension);

    explicit OutputAutoZipStream(const std::string& name,
                                 std::ios::openmode op_mode = std::ios::out,
                                 ZipMode zipmode = ZipMode::Auto,
                                 const open_streambuf& open = open_by_extension);

    OutputAutoZipStream(OutputAutoZipStream&& s) noexcept;

    OutputAutoZipStream(const OutputAutoZipStream& s) noexcept = delete;

    ~OutputAutoZipStream() override;

    OutputAutoZipStream& operator=(OutputAutoZipStream&& s) noexcept;

    OutputAutoZipStream& operator=(const OutputAutoZipStream& s) noexcept = delete;

    void open(const std::string& name, std::ios_base::openmode op_mode = std::ios::out);

private:
    std::unique_ptr<AutoZipStreamData> d;
};

using izipstream = InputAutoZipStream;
using ozipstream = OutputAutoZipStream;

/// Called to register a compression stream.
///
/// This function is called automatically if a compression library is linked in.
/// It should never be called directly.
template <typename T>
void register_autozipper(const char* extension)
{
    register_autozipper(extension, [](const std::string& filename, std::ios_base::openmode op_mode) {
        auto f = std::make_unique<T>();
        if (f->open(filename, op_mode) != nullptr) {
            return f;
        }
        return std::unique_ptr<T>{};
    });
}

/// Called to register a compression stream.
///
/// @param extension The file extension used for detecting the autozipper.
/// @param open Opens a new streambuf for the given file and open mode.
///
/// This function is called automatically if a compression library is linked in.
/// It should never be called directly.
void register_autozipper(const char* extension,
                         std::function<std::unique_ptr<std::streambuf>(const std::string&, std::ios_base::openmode)> open);

}  // namespace util
}  // namespace fifr

#endif

Added 3rdparty/util/src/fifr/util/BZip2Stream.cxx.









































































































































































































































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
/*
 * Copyright (c) 2017-2024 Frank Fischer <frank-fischer@shadow-soft.de>
 *
 * This program is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see  <http://www.gnu.org/licenses/>
 */

#include "BZip2Stream.hxx"

#include "AutoZipStream.hxx"

#include <bzlib.h>

#include <algorithm>
#include <array>
#include <cstdio>
#include <cstring>
#include <ios>
#include <iostream>
#include <string>

namespace fifr::util {
static const unsigned BufferSize = 47 + 256;
static const int BlockSize100k = 9;

struct BZip2StreamBuf::Data {
    FILE* file = nullptr;
    BZFILE* bzfile = nullptr;
    std::array<char, BufferSize> buf = {};
    bool is_open = false;
    std::ios::openmode mode = {};
};

BZip2StreamBuf::BZip2StreamBuf() : d(new Data)
{
    setp(d->buf.data(), d->buf.data() + (BufferSize - 1));
    setg(d->buf.data() + 4, d->buf.data() + 4, d->buf.data() + 4);
}

BZip2StreamBuf::~BZip2StreamBuf()
{
    close();
}

bool BZip2StreamBuf::is_open() const
{
    return d->is_open;
}

BZip2StreamBuf* BZip2StreamBuf::open(const std::string& name, std::ios::openmode op_mode)
{
    if (is_open()) {
        close();
        return nullptr;
    }

    d->mode = op_mode;

    if (((d->mode & std::ios::ate) != 0) || ((d->mode & std::ios::app) != 0) ||
        (((d->mode & std::ios::in) != 0) && ((d->mode & std::ios::out) != 0)))
    {
        return nullptr;
    }

    std::array<char, 3> fmode = {};
    std::size_t pos = 0;

    if ((d->mode & std::ios::in) != 0) {
        fmode.at(pos++) = 'r';
    } else if ((d->mode & std::ios::out) != 0) {
        fmode.at(pos++) = 'w';
    }
    fmode.at(pos++) = 'b';
    fmode.at(pos++) = '0';

    d->file = fopen(name.c_str(), fmode.data());
    if (d->file == nullptr) {
        return nullptr;
    }

    int bzerror = 0;
    if ((d->mode & std::ios::in) != 0) {
        d->bzfile = BZ2_bzReadOpen(&bzerror, d->file, 0, 0, nullptr, 0);
    } else if ((d->mode & std::ios::out) != 0) {
        d->bzfile = BZ2_bzWriteOpen(&bzerror, d->file, BlockSize100k, 0, 0);
    } else {
        fclose(d->file);
        return nullptr;
    }

    if (bzerror != BZ_OK) {
        fclose(d->file);
        return nullptr;
    }

    d->is_open = true;

    return this;
}

BZip2StreamBuf* BZip2StreamBuf::close()
{
    if (is_open()) {
        if ((pptr() != nullptr) && pptr() > pbase()) {
            flush_buffer();
        }
        d->is_open = false;

        int bzerror = 0;
        if ((d->mode & std::ios::in) != 0) {
            BZ2_bzReadClose(&bzerror, d->bzfile);
        } else if ((d->mode & std::ios::out) != 0) {
            BZ2_bzWriteClose(&bzerror, d->bzfile, 0, nullptr, nullptr);
        } else {
            fclose(d->file);
            return nullptr;
        }

        fclose(d->file);
        if (bzerror == BZ_OK) {
            return this;
        }
    }

    return nullptr;
}

int BZip2StreamBuf::underflow()
{
    if ((gptr() != nullptr) && (gptr() < egptr())) {
        return *reinterpret_cast<unsigned char*>(gptr());
    }

    if (((d->mode & std::ios::in) == 0) || !d->is_open) {
        return EOF;
    }

    // Josuttis' implementation of inbuf
    auto n_putback = 0L;
    if (gptr() != nullptr) {
        n_putback = std::min(gptr() - eback(), 4L);
        memcpy(d->buf.data() + (4 - n_putback), gptr() - n_putback, static_cast<std::size_t>(n_putback));
    }

    int bzerror = 0;
    const int num = BZ2_bzRead(&bzerror, d->bzfile, d->buf.data() + 4, BufferSize - 4);
    if (!(bzerror == BZ_OK || (bzerror == BZ_STREAM_END && num > 0))) {
        return EOF;
    }

    // reset buffer pointers
    setg(d->buf.data() + (4 - n_putback),  // beginning of putback area
         d->buf.data() + 4,                // read position
         d->buf.data() + 4 + num);         // end of buffer

    // return next character
    return *reinterpret_cast<unsigned char*>(gptr());
}

int BZip2StreamBuf::flush_buffer()
{
    // Separate the writing of the buffer from overflow() and
    // sync() operation.
    auto w = static_cast<int>(pptr() - pbase());
    int bzerror = 0;
    BZ2_bzWrite(&bzerror, d->bzfile, pbase(), w);

    if (bzerror != BZ_OK) {
        return EOF;
    }

    pbump(-w);
    return w;
}

int BZip2StreamBuf::overflow(int c)
{
    if (((d->mode & std::ios::out) == 0) || !d->is_open) {
        return EOF;
    }
    if (c != EOF) {
        *pptr() = static_cast<char>(c);
        pbump(1);
    }
    if (flush_buffer() == EOF) {
        return EOF;
    }
    return c;
}

int BZip2StreamBuf::sync()
{
    // Changed to use flush_buffer() instead of overflow( EOF)
    // which caused improper behavior with std::endl and flush(),
    // bug reported by Vincent Ricard.
    if ((pptr() != nullptr) && pptr() > pbase()) {
        if (flush_buffer() == EOF) {
            return -1;
        }
    }
    return 0;
}

namespace {
struct RegisterBZip2 {
    RegisterBZip2() noexcept
    {
        try {
            register_autozipper<BZip2StreamBuf>(".bz2");
        } catch (...) {
            std::cerr << "Can't register bzip2 auto zipper\n";
        }
    }
};

static const RegisterBZip2 register_bzip2 = {};
}  // namespace
}  // namespace fifr::util

Added 3rdparty/util/src/fifr/util/BZip2Stream.hxx.





















































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
/*
 * Copyright (c) 2017-2024 Frank Fischer <frank-fischer@shadow-soft.de>
 *
 * This program is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see  <http://www.gnu.org/licenses/>
 */

#ifndef FIFRUTIL_BZIP2STREAM_HXX
#define FIFRUTIL_BZIP2STREAM_HXX

#include "ZipStreamBase.hxx"

#include <memory>
#include <streambuf>
#include <string>

namespace fifr {
namespace util {
/// Stream buffer for bzip2ed files.
class BZip2StreamBuf : public std::streambuf
{
public:
    /// Constructor.
    BZip2StreamBuf();

    BZip2StreamBuf(BZip2StreamBuf&&) = delete;
    BZip2StreamBuf(const BZip2StreamBuf&) = delete;
    BZip2StreamBuf& operator=(BZip2StreamBuf&&) = delete;
    BZip2StreamBuf& operator=(const BZip2StreamBuf&) = delete;

    /// Destructor.
    ///
    /// Closes the stream.
    ~BZip2StreamBuf() override;

    /// Returns true if the associated file is opened.
    [[nodiscard]] bool is_open() const;

    ///
    /// Opens a file.
    ///
    /// A gzipped file may neither be opened read-write (at the
    /// same time) nor in append-mode.
    ///
    /// \param fname The name of the file to open.
    /// \param op_mode The mode in which the file should be opened.
    ///
    /// \return \b this on success, `nullptr` otherwise.
    ///
    BZip2StreamBuf* open(const std::string& name, std::ios_base::openmode op_mode);

    /// Closes the associated file.
    BZip2StreamBuf* close();

    int overflow(int c) override;

    int underflow() override;

    int sync() override;

private:
    /// Flushes the current write buffe to the file.
    int flush_buffer();

private:
    struct Data;
    std::unique_ptr<Data> d;
};

using InputBZip2Stream = InputZipStreamBase<BZip2StreamBuf>;

using OutputBZip2Stream = OutputZipStreamBase<BZip2StreamBuf>;

using ibz2stream = InputBZip2Stream;

using obz2stream = OutputBZip2Stream;
}  // namespace util
}  // namespace fifr

#endif

Added 3rdparty/util/src/fifr/util/CMakeLists.txt.



























































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
cmake_minimum_required(VERSION 3.12)

cmake_policy(SET CMP0063 NEW)

include(GNUInstallDirs)

add_library(Util STATIC
    AutoZipStream.cxx
    CmdArgs.cxx
    Csv.cxx
    IndentStream.cxx
    Logger.cxx
    Pretty.cxx
    PrettyStruct.cxx
    Scan.cxx
    String.cxx
    Timer.cxx
    ToolStream.cxx
    WordWrapStream.cxx)
add_library(Fifr::Util ALIAS Util)

set_property(TARGET Util PROPERTY OUTPUT_NAME fifrutil)
target_compile_features(Util PUBLIC cxx_std_17)

# Packages
include(CMakeFindDependencyMacro)

find_dependency(ZLIB)
if (ZLIB_FOUND)
  add_library(GZip STATIC GZipStream.cxx)
  add_library(Fifr::Util::GZip ALIAS GZip)
  target_link_libraries(GZip PRIVATE Util ZLIB::ZLIB)
  set_target_properties(GZip PROPERTIES OUTPUT_NAME fifrutil-gzip)
  target_compile_options(GZip PRIVATE ${UTIL_COMPILE_OPTIONS})
  set(FifrUtil_GZip_FOUND ${ZLIB_FOUND} PARENT_SCOPE)
  set(ZLIB_FOUND ${ZLIB_FOUND} PARENT_SCOPE)
endif()

find_dependency(BZip2)
if (BZIP2_FOUND)
  add_library(BZip2 STATIC BZip2Stream.cxx)
  add_library(Fifr::Util::BZip2 ALIAS BZip2)
  target_link_libraries(BZip2 PRIVATE Util BZip2::BZip2)
  set_target_properties(BZip2 PROPERTIES OUTPUT_NAME fifrutil-bzip2)
  target_compile_options(BZip2 PRIVATE ${UTIL_COMPILE_OPTIONS})
  set(FifrUtil_BZip2_FOUND ${BZIP2_FOUND} PARENT_SCOPE)
  set(BZIP2_FOUND ${BZIP2_FOUND} PARENT_SCOPE)
endif()

if (CMAKE_CXX_COMPILER_ID MATCHES "Clang|GNU")
  target_compile_options(Util PRIVATE -W -Wall -Wconversion -Wsign-conversion -pedantic)
endif ()

# Install stuff

target_include_directories(Util INTERFACE
  $<INSTALL_INTERFACE:include>
  $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../..>)

install(
  TARGETS Util
  EXPORT FifrUtilTargets
  ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
  LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
  INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
  )

if (ZLIB_FOUND)
  install(
    TARGETS GZip
    EXPORT FifrUtilGZipTargets
    ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
    LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
    INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
    )
endif ()

if (BZIP2_FOUND)
  install(
    TARGETS BZip2
    EXPORT FifrUtilBZip2Targets
    ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
    LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
    INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
    )
endif ()

install(
  DIRECTORY .
  DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/fifr/util
  COMPONENT headers
  FILES_MATCHING PATTERN "*.hxx"
  )

Added 3rdparty/util/src/fifr/util/CmdArgs.cxx.























































































































































































































































































































































































































































































































































































































































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
/*
 * Copyright (c) 2017-2021, 2023 Frank Fischer <frank-fischer@shadow-soft.de>
 *
 * This program is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see  <http://www.gnu.org/licenses/>
 */

#include "CmdArgs.hxx"

#include "Join.hxx"
#include "String.hxx"
#include "WordWrapStream.hxx"

#include <algorithm>
#include <cassert>
#include <cctype>
#include <cstddef>
#include <cstdlib>
#include <iostream>
#include <memory>
#include <ostream>
#include <sstream>
#include <string>
#include <unordered_set>
#include <utility>
#include <vector>

namespace fifr::util {

const auto WrapIndent = 30;

struct CmdArgs::Data {
    std::string program_name;
    std::string synopsis;
    BaseOpt* help{};
    bool auto_shorts{};
    std::vector<std::string> stopon;
    std::vector<std::unique_ptr<BaseOpt>> opts;
    std::vector<std::unique_ptr<BaseOpt>> params;
    std::vector<std::string> rest;
    std::unique_ptr<CmdArgs::Section> next_section;
};

std::string CmdArgs::BaseOpt::to_string() const
{
    std::ostringstream out;
    if (!long_opt.empty()) {
        out << "--" << long_opt;
    } else if (short_opt != 0) {
        out << "-" << short_opt;
    }
    return out.str();
}

void CmdArgs::BaseOpt::see()
{
    if (seen) {
        throw CmdArgsError("Duplicated argument: " + to_string());
    }
    seen = true;
}

CmdArgs::Section::Section(std::string header) : header_(std::move(header)) {}

CmdArgs::Section::~Section() = default;

void CmdArgs::Section::parse_arg(const std::string&)
{
    assert(0);
}

bool CmdArgs::Section::has_arg() const
{
    assert(0);
    return false;
}

std::string CmdArgs::Section::default_string() const
{
    assert(0);
    return {};
}

CmdArgs::CmdArgs(const std::string& program_name) : d(new Data)
{
    d->program_name = program_name;
    d->help = nullptr;
    d->auto_shorts = true;
    d->stopon = {"--"};
}

CmdArgs::~CmdArgs() = default;

void CmdArgs::synopsis(const std::string& s)
{
    d->synopsis = s;
}

void CmdArgs::section(const std::string& s)
{
    assert(!s.empty());
    d->next_section = std::unique_ptr<CmdArgs::Section>(new Section(s));
}

void CmdArgs::no_auto_shorts()
{
    d->auto_shorts = false;
}

std::vector<std::string> CmdArgs::rest() const&
{
    return d->rest;
}

std::vector<std::string>&& CmdArgs::rest() &&
{
    return std::move(d->rest);
}

CmdArgs::BaseOpt* CmdArgs::add_opt(BaseOpt* opt)
{
    if (d->next_section) {
        d->opts.push_back(std::move(d->next_section));
        d->next_section = nullptr;
    }
    d->opts.push_back(std::unique_ptr<BaseOpt>(opt));
    return d->opts.back().get();
}

CmdArgs::BaseOpt* CmdArgs::add_param(BaseOpt* opt)
{
    if (d->next_section) {
        d->params.push_back(std::move(d->next_section));
        d->next_section = nullptr;
    }
    d->params.push_back(std::unique_ptr<BaseOpt>(opt));
    return d->params.back().get();
}

bool CmdArgs::parse_args(int argc, const char** argv)
{
    if (argc < 1) {
        throw CmdArgsError("Too few arguments");
    }

    d->program_name = argv[0];

    return parse(std::vector<std::string>(argv + 1, argv + argc));
}

bool CmdArgs::parse(const std::vector<std::string>& args)
{
    if (d->auto_shorts) {
        std::unordered_set<char> used_shorts;

        for (auto& arg : d->opts) {
            arg->seen = false;
            if (arg->short_opt != 0) {
                used_shorts.insert(arg->short_opt);
            }
        }

        for (auto& arg : d->opts) {
            if ((arg->short_opt == 0) && arg->auto_short) {
                for (auto c : arg->long_opt) {
                    if ((std::isalnum(c) != 0) && used_shorts.find(c) == used_shorts.end()) {
                        arg->short_opt = c;
                        used_shorts.insert(c);
                        break;
                    }
                }
            }
        }
    }

    std::size_t i = 0;
    std::size_t param_i = 0;
    while (i < args.size()) {
        if (std::find(d->stopon.begin(), d->stopon.end(), args[i]) != d->stopon.end()) {
            i += 1;
            break;
        }

        if (starts_with(args[i], "--")) {
            parse_long(args, i);
        } else if (args[i].size() > 1 && starts_with(args[i], "-")) {
            for (std::size_t j = 1; j < args[i].size(); ++j) {
                parse_short(args, i, j);
            }
        } else if (param_i < d->params.size()) {
            if (dynamic_cast<const Section*>(d->params[param_i].get()) != nullptr) {
                param_i += 1;
                continue;
            }
            d->params[param_i]->see();
            d->params[param_i]->parse_arg(args[i]);
            param_i += 1;
        } else {
            d->rest.push_back(args[i]);
        }
        i += 1;
    }

    d->rest.insert(d->rest.begin(), args.begin() + static_cast<std::ptrdiff_t>(i), args.end());

    if ((d->help != nullptr) && d->help->seen) {
        return false;
    }

    for (auto& p : d->params) {
        if (p->required && !p->seen) {
            throw CmdArgsError("Missing required parameter: <" + p->long_opt + ">");
        }
    }

    for (auto& opt : d->opts) {
        if (opt->required && opt->required_arg && !opt->seen) {
            throw CmdArgsError("Missing required option: " + opt->to_string());
        }
    }

    return true;
}

void CmdArgs::parse_args_or_fail(int argc, const char** argv)
{
    try {
        if (!parse_args(argc, argv)) {
            std::cerr << *this;
            std::exit(EXIT_FAILURE);
        }
    } catch (CmdArgsError& e) {
        std::cerr << e.what() << "\n";
        std::cerr << "Try '" << d->program_name << " --help'\n";
        std::exit(EXIT_FAILURE);
    }
}

void CmdArgs::parse_long(const std::vector<std::string>& args, std::size_t& i)
{
    auto argpos = args[i].find('=');
    auto prefix = argpos != std::string::npos ? args[i].substr(2, argpos - 2) : args[i].substr(2);
    std::vector<BaseOpt*> candidates;
    bool perfect = false;

    for (auto& arg : d->opts) {
        if (starts_with(arg->long_opt, prefix)) {
            if (arg->long_opt.size() == prefix.size() && !perfect) {
                candidates.clear();
                candidates.push_back(arg.get());
                perfect = true;
            } else if (!perfect) {
                candidates.push_back(arg.get());
            }
        }
    }

    if (candidates.empty()) {
        throw CmdArgsError("Unknown option: --" + prefix);
    }
    if (candidates.size() > 1) {
        std::vector<std::string> cands;
        cands.reserve(candidates.size());
        for (auto* c : candidates) {
            cands.push_back(c->to_string());
        }
        throw CmdArgsError("Ambiguous prefix --" + prefix + " (candidates: " + join(cands, ", ") + ")");
    }

    if (argpos != std::string::npos) {
        if (!candidates[0]->has_arg()) {
            throw CmdArgsError("Unexpected argument for " + candidates[0]->to_string());
        }
        candidates[0]->parse_arg(args[i].substr(argpos + 1));
    } else if (candidates[0]->required || candidates[0]->required_arg) {
        if (i + 1 == args.size()) {
            throw CmdArgsError("Missing argument for " + candidates[0]->to_string());
        }
        candidates[0]->parse_arg(args[i + 1]);
        i += 1;
    }

    candidates[0]->see();
}

void CmdArgs::parse_short(const std::vector<std::string>& args, std::size_t& i, std::size_t& j)
{
    std::vector<BaseOpt*> candidates;

    for (auto& arg : d->opts) {
        if (arg->short_opt == args[i][j]) {
            candidates.push_back(arg.get());
        }
    }

    if (candidates.empty()) {
        throw CmdArgsError("Unknown option: -" + std::string(1, args[i][j]));
    }
    if (candidates.size() > 1) {
        throw CmdArgsError("Ambiguous options -" + std::string(1, args[i][j]));
    }

    if (candidates[0]->has_arg() && (candidates[0]->required || candidates[0]->required_arg)) {
        if (j + 1 < args[i].size()) {
            throw CmdArgsError("Short option -" + std::string(1, candidates[0]->short_opt) +
                               " with required argument must be last");
        }
        if (i + 1 == args.size()) {
            throw CmdArgsError("Missing argument for " + candidates[0]->to_string());
        }
        candidates[0]->parse_arg(args[i + 1]);
        i += 1;
        j = args[i].size();
    }
    candidates[0]->see();
}

void CmdArgs::add_help()
{
    d->help = &flag('h', "help").desc("Show this help page");
}

std::ostream& operator<<(std::ostream& out, const CmdArgs& args)
{
    out << "Usage: " << args.d->program_name << " [OPTIONS]";

    for (auto& p : args.d->params) {
        if (dynamic_cast<CmdArgs::Section*>(p.get()) != nullptr) {
            // skip section headers
        } else if (p->required) {
            out << " <" << p->long_opt << ">";
        } else {
            out << " [<" << p->long_opt << ">]";
        }
    }
    out << "\n";

    if (!args.d->synopsis.empty()) {
        WordWrapStream wrapout(out);
        wrapout.set_indent(2);
        wrapout << "\n" << args.d->synopsis << "\n";
    }

    if (!args.d->params.empty()) {
        if (dynamic_cast<CmdArgs::Section*>(args.d->params[0].get()) == nullptr) {
            // show default section header
            out << "\nPARAMETER\n";
        }
        for (auto& p : args.d->params) {
            // possibly write section header
            auto* s = dynamic_cast<CmdArgs::Section*>(p.get());
            if (s != nullptr) {
                out << "\n" << s->header() << "\n";
                continue;
            }
            WordWrapStream wrapout(out);
            wrapout.set_indent_first(2);
            wrapout.set_indent(WrapIndent);
            wrapout << "<" << p->long_opt << ">";
            wrapout.shift_to(WrapIndent - 2);
            wrapout << "  " << p->desc;
            if (p->has_default) {
                wrapout << " [default: " << p->default_string() << "]";
            }
            wrapout << "\n";
        }
    }

    if (!args.d->opts.empty()) {
        if (dynamic_cast<CmdArgs::Section*>(args.d->opts[0].get()) == nullptr) {
            // show default section header
            out << "\nOPTIONS\n";
        }
        for (auto& opt : args.d->opts) {
            // possibly write section header
            auto* s = dynamic_cast<CmdArgs::Section*>(opt.get());
            if (s != nullptr) {
                out << "\n" << s->header() << "\n";
                continue;
            }
            WordWrapStream wrapout(out);
            wrapout.set_indent_first(2);
            wrapout.set_indent(WrapIndent);
            if (opt->short_opt != 0) {
                wrapout << "-" << opt->short_opt;

                if (opt->has_arg() && opt->required_arg) {
                    wrapout << " <" << opt->arg_name() << ">";
                }

                if (!opt->long_opt.empty()) {
                    wrapout << ",";
                }
            }
            if (!opt->long_opt.empty()) {
                wrapout << "--" << opt->long_opt;

                if (opt->has_arg()) {
                    if (opt->required_arg) {
                        wrapout << "=<" << opt->arg_name() << ">";
                    } else {
                        wrapout << "[=<" << opt->arg_name() << ">]";
                    }
                }
            }

            wrapout.shift_to(WrapIndent - 2);
            wrapout << "  " << opt->desc;
            if (opt->has_default) {
                wrapout << " [default: " << opt->default_string() << "]";
            }
            wrapout << "\n";
        }
    }
    return out;
}
}  // namespace fifr::util

Added 3rdparty/util/src/fifr/util/CmdArgs.hxx.







































































































































































































































































































































































































































































































































































































































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
/*
 * Copyright (c) 2017-2021, 2023 Frank Fischer <frank-fischer@shadow-soft.de>
 *
 * This program is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see  <http://www.gnu.org/licenses/>
 */

#ifndef FIFR_UTIL_CMDARGS_HXX
#define FIFR_UTIL_CMDARGS_HXX

#include "Convert.hxx"

#include <exception>
#include <memory>
#include <string>
#include <typeinfo>
#include <utility>
#include <vector>

namespace fifr {
namespace util {
template <typename T>
struct ArgType {
    static std::string name() { return typeid(T).name(); }

    static T parse(const std::string& arg) { return convert<T>(arg); }
};

#define FIFR_UTIL_DEF_ARGTYPE(typ, ctyp, name_)  \
    template <>                                  \
    struct ArgType<typ> {                        \
        static std::string name()                \
        {                                        \
            return #name_;                       \
        }                                        \
                                                 \
        static typ parse(const std::string& arg) \
        {                                        \
            return convert<ctyp>(arg);           \
        }                                        \
    };

FIFR_UTIL_DEF_ARGTYPE(int8_t, int8_t, i8)
FIFR_UTIL_DEF_ARGTYPE(int16_t, int16_t, i16)
FIFR_UTIL_DEF_ARGTYPE(int32_t, int32_t, i32)
FIFR_UTIL_DEF_ARGTYPE(int64_t, int64_t, i64)
FIFR_UTIL_DEF_ARGTYPE(uint8_t, uint8_t, u8)
FIFR_UTIL_DEF_ARGTYPE(uint16_t, uint16_t, u16)
FIFR_UTIL_DEF_ARGTYPE(uint32_t, uint32_t, u32)
FIFR_UTIL_DEF_ARGTYPE(uint64_t, uint64_t, u64)

template <>
struct ArgType<std::string> {
    static std::string name() { return "s"; }

    static std::string parse(const std::string& arg) { return arg; }
};

class CmdArgsError : public std::exception
{
public:
    explicit CmdArgsError(std::string msg) : msg_(std::move(msg)) {}

    [[nodiscard]] const char* what() const noexcept override { return msg_.c_str(); }

private:
    std::string msg_;
};

class CmdArgs
{
private:
    class BaseOpt
    {
        friend class CmdArgs;
        friend std::ostream& operator<<(std::ostream& out, const CmdArgs& args);

    public:
        BaseOpt() = default;

        BaseOpt(BaseOpt&&) = delete;
        BaseOpt(const BaseOpt&) = delete;

        BaseOpt& operator=(BaseOpt&&) = delete;
        BaseOpt& operator=(const BaseOpt&) = delete;

        virtual ~BaseOpt() = default;

    protected:
        virtual void parse_arg(const std::string& opt) = 0;

        virtual std::string arg_name() { return "ARG"; }

        [[nodiscard]] virtual bool has_arg() const = 0;

        [[nodiscard]] virtual std::string default_string() const = 0;

        [[nodiscard]] std::string to_string() const;

        virtual void see();

    protected:
        // NOLINTBEGIN(cppcoreguidelines-non-private-member-variables-in-classes)
        std::string long_opt;
        bool auto_short = true;
        char short_opt = 0;
        std::string desc;
        bool required = false;
        bool required_arg = true;
        bool has_default = false;
        bool seen = false;
        // NOLINTEND(cppcoreguidelines-non-private-member-variables-in-classes)
    };

    /// A special option representing a section header.
    class Section : public BaseOpt
    {
        friend class CmdArgs;

    private:
        explicit Section(std::string header);

    public:
        Section(Section&&) = delete;
        Section(const Section&) = delete;
        Section& operator=(Section&&) = delete;
        Section& operator=(const Section&) = delete;

        ~Section() override;

        [[nodiscard]] const std::string& header() const { return header_; }

    protected:
        void parse_arg(const std::string&) override;

        [[nodiscard]] bool has_arg() const override;

        [[nodiscard]] std::string default_string() const override;

    private:
        std::string header_;
    };

public:
    template <typename Self>
    class OptAdapter : public BaseOpt
    {
    public:
        /// Set the long version of the parameter.
        ///
        /// This sets the short option automatically unless an explicit
        /// short option is specified.
        Self& long_opt(const std::string& lng)
        {
            BaseOpt::long_opt = lng;
            return static_cast<Self&>(*this);
        }

        /// Set the short option.
        ///
        /// If set to 0, the argument does not have a short option
        /// (not even an automatic one).
        ///
        /// @see noshort
        Self& short_opt(char shrt)
        {
            auto_short = false;
            BaseOpt::short_opt = shrt;
            return static_cast<Self&>(*this);
        }

        /// Removes the short option.
        ///
        /// This is equivalent to `short_opt(0)`.
        Self& noshort() { return short_opt(0); }

        /// Sets the description string of this argument.
        Self& desc(const std::string& d)
        {
            BaseOpt::desc = d;
            return static_cast<Self&>(*this);
        }

        /// Return true iff this argument has been seen.
        [[nodiscard]] bool seen() const { return seen; }
    };

    template <typename T>
    class Opt : public OptAdapter<Opt<T>>
    {
        friend class CmdArgs;

    public:
        using value_type = T;

    protected:
        Opt() = default;

    public:
        /// Makes this an obligatory argument.
        Opt& required()
        {
            BaseOpt::required = true;
            return *this;
        }

        /// Set the default value.
        ///
        /// If `required_arg` is *false*, the option can be used without
        /// the argument.
        Opt& def(const T& default_value, bool required_arg = true)
        {
            value_ = default_value;
            BaseOpt::has_default = true;
            BaseOpt::required_arg = required_arg;
            return *this;
        }

        /// Return true iff this argument has been set.
        explicit operator bool() const { return BaseOpt::seen; }

        /// Return the value.
        [[nodiscard]] const T& value() const& { return value_; }

        /// Return the value.
        operator const T&() const& { return value(); }

        /// Return true iff the value of this argument equals the given value.
        bool operator==(const T& value) const { return value_ == value; }

        bool operator!=(const T& value) const { return !(*this == value); }

    protected:
        void parse_arg(const std::string& opt) override { value_ = ArgType<T>::parse(opt); }

        [[nodiscard]] std::string arg_name() override { return ArgType<T>::name(); }

        [[nodiscard]] bool has_arg() const override { return true; }

        [[nodiscard]] std::string default_string() const override { return convert<std::string>(value_); }

    private:
        T value_ = {};
    };

    using Flag = Opt<bool>;

public:
    explicit CmdArgs(const std::string& program_name = "");

    CmdArgs(CmdArgs&&) = default;
    CmdArgs(const CmdArgs&) = delete;

    CmdArgs& operator=(CmdArgs&&) = default;
    CmdArgs& operator=(const CmdArgs&) = delete;

    ~CmdArgs();

    /// Set a short description.
    void synopsis(const std::string& s);

    /// Add a new section header.
    ///
    /// The section header is shown before the options and flags that
    /// are added after the header.
    void section(const std::string& s);

    /// Disable auto shorts.
    void no_auto_shorts();

    /// Add a new command line argument.
    template <typename T>
    Opt<T>& opt()
    {
        return opt<T>(0, {});
    }

    /// Add a new command line argument with a short option.
    template <typename T>
    Opt<T>& opt(char short_opt)
    {
        return opt<T>(short_opt, {});
    }

    /// Add a new command line argument with a long option.
    template <typename T>
    Opt<T>& opt(std::string long_opt)
    {
        return opt<T>(0, std::move(long_opt));
    }

    /// Add a new command line argument with short and long option.
    template <typename T>
    Opt<T>& opt(char short_opt, std::string long_opt)
    {
        auto& arg = *static_cast<Opt<T>*>(add_opt(new Opt<T>));
        if (short_opt != 0) {
            arg.short_opt(short_opt);
        }
        arg.long_opt(std::move(long_opt));
        return arg;
    }

    /// Add a new command line flag.
    Flag& flag() { return flag(0, {}); }

    /// Add a new command line argument with a short option.
    Flag& flag(char short_opt) { return flag(short_opt, {}); }

    /// Add a new command line argument with a long option.
    Flag& flag(std::string long_opt) { return flag(0, std::move(long_opt)); }

    /// Add a new command line argument with short and long option.
    Flag& flag(char short_opt, std::string long_opt) { return opt<bool>(short_opt, std::move(long_opt)); }

    /// Add a new parameter.
    template <typename T>
    Opt<T>& param(std::string name)
    {
        auto& param = *static_cast<Opt<T>*>(add_param(new Opt<T>));
        param.long_opt(std::move(name));
        return param;
    }

    /// Adds a help option.
    void add_help();

    /// Parse a list of strings as command line arguments.
    bool parse(const std::vector<std::string>& args);

    /// Parse command line arguments from `main`.
    bool parse_args(int argc, const char** argv);

    /// Parse command line arguments from `main` or abort on error.
    void parse_args_or_fail(int argc, const char** argv);

    /// Return the unparsed arguments.
    [[nodiscard]] std::vector<std::string> rest() const&;

    /// Return the unparsed arguments.
    [[nodiscard]] std::vector<std::string>&& rest() &&;

    friend std::ostream& operator<<(std::ostream& out, const CmdArgs& args);

private:
    BaseOpt* add_opt(BaseOpt* opt);

    BaseOpt* add_param(BaseOpt* opt);

    void parse_long(const std::vector<std::string>& args, std::size_t& i);

    void parse_short(const std::vector<std::string>& args, std::size_t& i, std::size_t& j);

private:
    struct Data;
    std::unique_ptr<Data> d;
};

template <>
class CmdArgs::Opt<bool> : public CmdArgs::OptAdapter<Opt<bool>>
{
    friend class CmdArgs;

protected:
    Opt() { BaseOpt::required_arg = false; }

public:
    /// Return true iff this argument has been set.
    ///
    /// Not that this might be different from `seen` if the default
    /// value is *true*.
    operator bool() const { return value_; }

    /// Return the value.
    [[nodiscard]] const bool& value() const& { return value_; }

    /// Set the default value.
    Opt& def(bool default_value)
    {
        value_ = default_value;
        return *this;
    }

protected:
    void parse_arg(const std::string&) override {}

    [[nodiscard]] bool has_arg() const override { return false; }

    void see() override
    {
        BaseOpt::see();
        value_ = !value_;
    }

    [[nodiscard]] std::string default_string() const override { return std::to_string(static_cast<int>(value_)); }

private:
    bool value_ = false;
};

template <class T>
std::ostream& operator<<(std::ostream& out, const CmdArgs::Opt<T>& arg)
{
    return out << arg.value();
}
}  // namespace util
}  // namespace fifr

#endif

Added 3rdparty/util/src/fifr/util/Convert.hxx.



































































































































































































































































































































































































































































































































































































































































































































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
/*
 * Copyright (c) 2016-2020, 2023 Frank Fischer <frank-fischer@shadow-soft.de>
 *
 * This program is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see  <http://www.gnu.org/licenses/>
 */

/**
 * @file
 *
 * Implement a Rust inspired conversion trait `Convert`.
 */

#ifndef FIFR_UTIL_CONVERT_HXX
#define FIFR_UTIL_CONVERT_HXX

#include <algorithm>
#include <charconv>
#include <limits>
#include <stdexcept>
#include <string>
#include <tuple>
#include <utility>
#include <vector>

#ifndef __has_include
#    define __has_include(x) 0
#endif
#if __has_include(<version>)
#    include <version>
#endif
#if __has_include(<optional>)
#    include <optional>
#endif

#if __cpp_lib_optional >= 201606
#    define fifr_util_have_optional 1
#    include <optional>
#else
#    define fifr_util_have_optional 0
#endif

namespace fifr {
namespace util {
template <typename T, typename F, typename Enable = void>
struct Convert;

/// Convert an element to itself.
///
/// This conversion does nothing.
template <typename T>
struct Convert<T, T> {
#if fifr_util_have_optional
    inline static std::optional<T> to(T&& x) { return std::forward<T>(x); }
#endif

    inline static T convert(T&& x) { return std::forward<T>(x); }
    inline static const T& convert(const T& x) { return x; }
};

/// Converting to a `std::string`.
///
/// This conversion requires `std::to_string` to be implemented for the source
/// type.
template <typename F>
struct Convert<std::string, F, decltype((void)std::to_string(std::declval<F>()))> {
#if fifr_util_have_optional
    inline static std::optional<std::string> to(const F& x) { return std::to_string(x); }
#endif

    inline static std::string convert(const F& x) { return std::to_string(x); }
};

/// Converting to a `std::string` from a `std::string_view`.
#ifdef __cpp_lib_string_view
template <>
struct Convert<std::string, std::string_view> {
#    if fifr_util_have_optional
    inline static std::optional<std::string> to(std::string_view x) { return std::string(x); }
#    endif

    inline static std::string convert(std::string_view x) { return std::string(x); }
};
#endif

/// Convert a `std::string_view` to a numeric value.
///
/// The conversion requires `std::from_chars`.
template <typename T>
struct Convert<T,
#ifdef __cpp_lib_string_view
               std::string_view,
#else
               std::string,
#endif
               typename std::enable_if<!std::is_floating_point<T>::value,
                                       decltype((void)std::from_chars(nullptr, nullptr, std::declval<T&>()))>::type> {

#ifdef __cpp_lib_string_view
    using string_type = std::string_view;
#else
    using string_type = const std::string&;
#endif

#if fifr_util_have_optional
    inline static std::optional<T> to(string_type str)
    {
        T x;
        if (auto [p, ec] = std::from_chars(str.data(), str.data() + str.size(), x); ec == std::errc()) {
            if (p == str.data() + str.size()) {
                return x;
            }
        }
        return {};
    }
#endif

    inline static T convert(string_type str)
    {
        T x;
        auto r = std::from_chars(str.data(), str.data() + str.size(), x);
        if (r.ec == std::errc()) {
            if (r.ptr == str.data() + str.size()) {
                return x;
            }
            throw std::invalid_argument("convert: invalid argument");
        }
        if (r.ec == std::errc::invalid_argument) {
            throw std::invalid_argument("convert: invalid argument");
        }
        if (r.ec == std::errc::result_out_of_range) {
            throw std::out_of_range("convert: out of range");
        }
        throw std::invalid_argument("convert: invalid argument");
    }
};

/// Convert a `std::string_view` to a float.
template <typename T>
struct Convert<T,
#ifdef __cpp_lib_string_view
               std::string_view,
#else
               std::string,
#endif
               typename std::enable_if<std::is_floating_point<T>::value>::type> {
#ifdef __cpp_lib_string_view
    using string_type = std::string_view;
#else
    using string_type = const std::string&;
#endif

#if fifr_util_have_optional
    inline static std::optional<T> to(string_type str)
    {
        char* end = nullptr;
        T x;
        from_str(str.data(), &end, x);
        if (errno != ERANGE && end != str.data()) {
            return x;
        }
        return {};
    }
#endif

    inline static T convert(string_type str)
    {
        char* end = nullptr;
        T x;
        from_str(str.data(), &end, x);
        if (errno == ERANGE) {
            throw std::out_of_range("convert: out of range");
        }
        if (end == str.data()) {
            throw std::invalid_argument("convert: invalid argument");
        }
        return x;
    }

private:
    static void from_str(const char* str, char** end, float& x) { x = std::strtof(str, end); }

    static void from_str(const char* str, char** end, double& x) { x = std::strtod(str, end); }

    static void from_str(const char* str, char** end, long double& x) { x = std::strtold(str, end); }
};

#ifdef __cpp_lib_string_view
/// Convert a `std::string` to a numeric value.
template <typename T>
struct Convert<T, std::string, typename std::enable_if<std::is_arithmetic<T>::value>::type>
    : public Convert<T, std::string_view> {
};
#endif

/// Convert a `char[]` to a numeric value.
template <typename T, std::size_t N>
struct Convert<T, char[N]> : public Convert<T,
#ifdef __cpp_lib_string_view
                                            std::string_view
#else
                                            std::string
#endif
                                            > {
};

/// Convert a `char*` to a numeric value.
template <typename T>
struct Convert<T, const char*> : public Convert<T,
#ifdef __cpp_lib_string_view
                                                std::string_view
#else
                                                std::string
#endif
                                                > {
};

/// Convert an integral type to an arithmetic with bounds checking.
template <typename T, typename F>
struct Convert<
    T,
    F,
    typename std::enable_if<!std::is_same<T, F>::value && std::is_arithmetic<T>::value && std::is_integral<F>::value>::type> {
#if fifr_util_have_optional
    inline static std::optional<T> to(F x)
    {
        if (std::is_unsigned<T>::value && std::is_signed<F>::value && x < 0) {
            return {};
        }

        using To = typename std::common_type<F, T>::type;
        if (std::is_signed<T>::value && std::is_signed<F>::value) {
            if (static_cast<To>(std::numeric_limits<T>::lowest()) > static_cast<To>(x)) {
                return {};
            }
        }
        if (static_cast<To>(std::numeric_limits<T>::max()) < static_cast<To>(x)) {
            return {};
        }
        return static_cast<T>(x);
    }
#endif

    inline static T convert(F x)
    {
        if (std::is_unsigned<T>::value && std::is_signed<F>::value && x < 0) {
            throw std::out_of_range("convert: value out of range " + std::to_string(x));
        }

        using To = typename std::common_type<F, T>::type;
        if (std::is_signed<T>::value && std::is_signed<F>::value) {
            if (static_cast<To>(std::numeric_limits<T>::lowest()) > static_cast<To>(x)) {
                throw std::out_of_range("convert: value out of range " + std::to_string(x));
            }
        }
        if (static_cast<To>(std::numeric_limits<T>::max()) < static_cast<To>(x)) {
            throw std::out_of_range("convert: value out of range " + std::to_string(x));
        }
        return static_cast<T>(x);
    }
};

/// Convert pair to another pair.
///
/// This is done by converting each element.
template <typename To1, typename To2, typename From1, typename From2>
struct Convert<std::pair<To1, To2>, std::pair<From1, From2>> {
#if fifr_util_have_optional
    inline static std::optional<std::pair<To1, To2>> to(const std::pair<From1, From2>& from)
    {
        auto x = Convert<To1, From1>::to(from.first);
        auto y = Convert<To2, From2>(from.second);
        if (x && y) {
            return {*std::move(x), *std::move(y)};
        }
        return {};
    }
#endif

    inline static std::pair<To1, To2> convert(const std::pair<From1, From2>& from)
    {
        return {Convert<To1, From1>::convert(from.first), Convert<To2, From2>::convert(from.second)};
    }
};

/// Convert tuple to another tuple.
///
/// This is done by converting each element.
template <typename... Ts, typename... Fs>
struct Convert<std::tuple<Ts...>, std::tuple<Fs...>> {
#if fifr_util_have_optional
    inline static std::optional<std::tuple<Ts...>> to(const std::tuple<Fs...>& tuple)
    {
        static constexpr auto size = std::tuple_size<std::tuple<Fs...>>::value;
        return to(tuple, std::make_index_sequence<size>{});
    }
#endif

    inline static std::tuple<Ts...> convert(const std::tuple<Fs...>& tuple)
    {
        static constexpr auto size = std::tuple_size<std::tuple<Fs...>>::value;
        return convert(tuple, std::make_index_sequence<size>{});
    }

private:
#if fifr_util_have_optional
    template <size_t... I>
    static std::optional<std::tuple<Ts...>> to(const std::tuple<Fs...>& args, std::index_sequence<I...>)
    {
        try {
            return std::make_tuple(
                Convert<Ts, typename std::remove_cv<typename std::remove_reference<Fs>::type>::type>::convert(
                    std::get<I>(args))...);
        } catch (...) {
            return {};
        }
    }
#endif

    template <size_t... I>
    static std::tuple<Ts...> convert(const std::tuple<Fs...>& args, std::index_sequence<I...>)
    {
        return std::make_tuple(
            Convert<Ts, typename std::remove_cv<typename std::remove_reference<Fs>::type>::type>::convert(
                std::get<I>(args))...);
    }
};

/// Convert array to another array.
///
/// This is done by converting each element.
template <typename T, typename F, std::size_t N>
struct Convert<std::array<T, N>, std::array<F, N>> {
#if fifr_util_have_optional
    inline static std::optional<std::array<T, N>> to(const std::array<F, N>& args)
    {
        std::array<T, N> result = {};
        for (std::size_t i = 0; i < N; i++) {
            auto x = Convert<T, F>::to(args[i]);
            if (x) {
                result[i] = *std::move(x);
            } else {
                return {};
            }
        }
        return result;
    }
#endif

    inline static std::array<T, N> convert(const std::array<F, N>& args)
    {
        std::array<T, N> result = {};
        std::transform(args.begin(), args.end(), result.begin(), Convert<T, F>::convert);
        return result;
    }
};

/// Convert vector to another vector.
///
/// This is done by converting each element.
template <typename T, typename F>
struct Convert<std::vector<T>, std::vector<F>> {
#if fifr_util_have_optional
    inline static std::optional<std::vector<T>> to(const std::vector<F>& args)
    {
        std::vector<T> result;
        result.reserve(args.size());
        for (auto& x : args) {
            auto y = Convert<T, F>::to(x);
            if (x) {
                result.push_back(*std::move(x));
            } else {
                return {};
            }
        }
        return result;
    }
#endif

    inline static std::vector<T> convert(const std::vector<F>& args)
    {
        std::vector<T> result;
        result.reserve(args.size());
        for (auto& x : args) {
            result.push_back(Convert<T, F>::convert(x));
        }
        return result;
    }
};

#if fifr_util_have_optional
/// Generic conversion function.
///
/// This function returns an `std::optional`. The returned value is valid if and
/// only if the conversion was successful.
template <typename T, typename F>
auto to(F&& x) -> std::optional<T>
{
    using From = typename std::remove_cv<typename std::remove_reference<F>::type>::type;
    return Convert<T, From>::to(std::forward<F>(x));
}
#endif

/// Generic conversion function.
template <typename T, typename F>
inline T convert(F&& x)
{
    using From = typename std::remove_cv<typename std::remove_reference<F>::type>::type;
    return Convert<T, From>::convert(std::forward<F>(x));  // NOLINT
}

#if fifr_util_have_optional
/// Generic conversion function for ranges.
///
/// This function converts a sequence given by a pair of iterators to a
/// resulting container. The result container must provide a `emplace_back`
/// method.
///
/// If at least one element could not be converted, the function returns an
/// invalid `std::optional`.
template <typename T, typename It>
inline std::optional<T> to(It beg, It end)
{
    T result;
    for (; beg != end; ++beg) {
        auto x = to<typename T::value_type>(std::move(*beg));
        if (x) {
            result.emplace_back(std::move(*(x)));
        } else {
            return {};
        }
    }
    return result;
}
#endif

/// Generic conversion function for ranges.
///
/// This function converts a sequence given by a pair of iterators to a
/// resulting container. The result container must provide a `emplace_back` method.
///
/// The function raises an error if at least one element could not be converted.
template <typename T, typename It>
inline T convert(It beg, It end)
{
    T result;
    for (; beg != end; ++beg) {
        result.emplace_back(convert<typename T::value_type>(std::move(*beg)));
    }
    return result;
}
}  // namespace util
}  // namespace fifr

#endif

Added 3rdparty/util/src/fifr/util/Csv.cxx.











































































































































































































































































































































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
/*
 * Copyright (c) 2019, 2021, 2023 Frank Fischer <frank-fischer@shadow-soft.de>
 *
 * This program is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see  <http://www.gnu.org/licenses/>
 */

#include "Csv.hxx"

#include <algorithm>
#include <cctype>
#include <cstddef>
#include <fstream>
#include <istream>
#include <memory>
#include <optional>
#include <ostream>
#include <stdexcept>
#include <string>
#include <string_view>
#include <utility>

namespace fifr {
namespace util {

const std::string CsvWriter::ForbiddenQuote = "0123456789eE.+-";

CsvWriter::CsvWriter(std::unique_ptr<std::ostream> out, Parameters params) : CsvWriter(*out, params)
{
    owned_out_ = std::move(out);
}

CsvWriter::CsvWriter(std::ostream& out, Parameters params)
    : out_(out), params_(params), forbidden_({params.field_separator, params.record_separator, params.quote})
{
    if (ForbiddenQuote.find(params.quote) != detail::string_view::npos) {
        throw Error("Character '" + std::to_string(params.quote) + "' not allowed as quotation marker");
    }
}

CsvWriter::~CsvWriter() noexcept
{
    try {
        end_row();
    } catch (...) {
    }
}

CsvWriter CsvWriter::write(const std::string& filename, Parameters params)
{
    std::unique_ptr<std::ostream> out(new std::ofstream(filename));
    if (!*out) {
        throw Error("Error writing to file " + filename);
    }
    return CsvWriter(std::move(out), params);
}

void CsvWriter::end_row()
{
    if (num_cur_columns_ > 0) {
        out_ << params_.record_separator;
        update_num_columns(num_cur_columns_);
        num_cur_columns_ = 0;
    }
}

void CsvWriter::quote(detail::string_view_ref s)
{
    if (s.find_first_of(forbidden_) != detail::string_view::npos) {
        out_ << params_.quote;
        detail::string_view::size_type beg = 0;
        while (true) {
            auto end = s.find(params_.quote, beg);
            if (end != detail::string_view::npos) {
                out_ << s.substr(beg, end - beg) << params_.quote << params_.quote;
                beg = end + 1;
            } else {
                out_ << s.substr(beg);
                break;
            }
        }
        out_ << params_.quote;
    } else {
        out_ << s;
    }
}

#ifdef __cpp_lib_string_view
void CsvWriter::quote(const std::string& s)
{
    quote(std::string_view(s));
}
#endif

CsvReadError::CsvReadError(const std::string& msg, std::size_t line_nr)
    : runtime_error(line_nr == 0 ? msg : msg + " (line: " + std::to_string(line_nr) + ")"), line_nr_(line_nr)
{
}

CsvReader::CsvReader(std::unique_ptr<std::istream> in, Parameters params) : CsvReader(*in, params)
{
    owned_in_ = std::move(in);
}

CsvReader::CsvReader(std::istream& in, Parameters params) : in_(&in), params_(params)
{
    if (params_.headers) {
        init_headers();
    }
}

#ifdef __cpp_lib_string_view
std::optional<std::size_t> CsvReader::column_index(std::string_view header) const
{
    auto it = std::find(headers_.begin(), headers_.end(), header);
    if (it != headers_.end()) {
        return static_cast<std::size_t>(it - headers_.begin());
    }
    return {};
}
#endif

bool CsvReader::column_index(const std::string& header, std::size_t& index) const
{
    auto it = std::find(headers_.begin(), headers_.end(), header);
    if (it != headers_.end()) {
        index = static_cast<std::size_t>(it - headers_.begin());
        return true;
    }
    return false;
}

void CsvReader::init_headers()
{
    if (get(headers_)) {
        // do not count the header as record
        num_records_--;
        field_pos_.clear();
        raw_.clear();
    }
}

CsvReader CsvReader::read(const std::string& filename, Parameters params)
{
    std::unique_ptr<std::istream> in(new std::ifstream(filename));
    if (!*in) {
        throw Error("Error reading from file " + filename);
    }
    return CsvReader{std::move(in), params};
}

bool CsvReader::next_record()
{
    if (in_ == nullptr || in_->eof()) {
        return false;
    }

    raw_.clear();
    field_pos_.clear();

    auto line = line_;
    char c = 0;
    std::string::size_type beg = 0;
    while (true) {
        in_->get(c);
        if (in_->eof()) {
            line++;
            break;
        }

        // TODO: is this correct on windows?
        if (c == '\n') {
            line++;
        }

        if (c == params_.quote) {
            while (true) {
                in_->get(c);
                if (in_->eof()) {
                    throw Error("Unclosed quotation", line);
                }
                if (c == '\n') {
                    line++;
                }
                if (c != params_.quote) {
                    raw_.push_back(c);
                } else {
                    in_->get(c);
                    if (in_->eof()) {
                        // end of text, quotation is closed
                        break;
                    }
                    if (c == params_.quote) {
                        // double quote -> read a single quote
                        raw_.push_back(c);
                    } else {
                        // not a quote -> quotation is closed
                        in_->unget();
                        break;
                    }
                }
            }
        } else if (c == params_.record_separator) {
            // Skip empty records
            if (raw_.empty()) {
                continue;
            }
            trim_whitespaces();
            field_pos_.emplace_back(beg, raw_.size());
            beg = raw_.size();
            break;
        } else if (c == params_.field_separator) {
            trim_whitespaces();
            field_pos_.emplace_back(beg, raw_.size());
            beg = raw_.size();
        } else if (params_.ignore_whitespace && beg == raw_.size() && std::isspace(c) != 0) {
            // ignore the character
        } else {
            raw_.push_back(c);
        }
    }

    // The last field might have not been finished (missing trailing separator).
    // This happens if we reached the EOF but have already read at least one character
    // so that the current record is not empty.
    if (in_->eof() && (!raw_.empty() || !field_pos_.empty())) {
        trim_whitespaces();
        field_pos_.emplace_back(beg, raw_.size());
    }

    // If we did not read a record we must have reached the EOF.
    if (field_pos_.empty()) {
        in_ = nullptr;
        owned_in_ = nullptr;
        return false;
    }

    if (params_.num_columns != 0 && params_.num_columns != field_pos_.size()) {
        throw Error("Invalid number of columns (expected: " + std::to_string(params_.num_columns) +
                        " got: " + std::to_string(field_pos_.size()) + ")",
                    line);
    }

    min_columns_ = std::min(min_columns_, field_pos_.size());
    max_columns_ = std::max(max_columns_, field_pos_.size());
    line_ = line;
    num_records_++;

    return true;
}

void CsvReader::trim_whitespaces()
{
    if (params_.ignore_whitespace) {
        while (!raw_.empty() && std::isspace(raw_.back()) != 0) {
            raw_.pop_back();
        }
    }
}

template bool CsvReader::get(std::vector<std::string>& x);
#ifdef __cpp_lib_string_view
template bool CsvReader::get(std::vector<std::string_view>& x);
#endif

}  // namespace util
}  // namespace fifr

Added 3rdparty/util/src/fifr/util/Csv.hxx.























































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
/*
 * Copyright (c) 2019-2024 Frank Fischer <frank-fischer@shadow-soft.de>
 *
 * This program is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see  <http://www.gnu.org/licenses/>
 */

#ifndef FIFR_UTIL_CSV_HXX
#define FIFR_UTIL_CSV_HXX

#include "Convert.hxx"
#include "Range.hxx"

#include <array>
#include <cassert>
#include <iomanip>
#include <limits>
#include <memory>
#include <optional>
#include <ostream>
#include <stdexcept>
#include <string_view>
#include <vector>

namespace fifr {
namespace util {
namespace detail {
#ifdef __cpp_lib_string_view
using string_view = std::string_view;
using string_view_ref = std::string_view;
#else
using string_view = std::string;
using string_view_ref = const std::string&;
#endif
}  // namespace detail

/// Type tag to mark the end of a row/record.
struct end_row_tag {
};

/// Mark the end of a row/record.
static const end_row_tag end_row;

/// A error when writing a CSV file occurred.
class CsvWriteError : public std::runtime_error
{
    using runtime_error::runtime_error;
};

/// Parameters used for writing.
struct CsvWriteParameters {
    /// The field separator, defaults to ","
    char field_separator = ',';

    /// The record separator, defaults to "\n"
    char record_separator = '\n';

    /// The quotation character.
    char quote = '"';

    /// Require that all records have the numbers of fields.
    bool fixed_columns = true;
};

class CsvWriter
{
public:
    /// Exception class raised on error.
    using Error = CsvWriteError;

    /// Parameters to configurate the writer.
    using Parameters = CsvWriteParameters;

    /// List of characters that must not be used a quote character.
    ///
    /// Default: 0123456789eE.+-
    static const std::string ForbiddenQuote;

public:
    /// Create `CsvWriter` writing to an output stream and taking ownership.
    explicit CsvWriter(std::unique_ptr<std::ostream> out, Parameters params = {});

    /// Create `CsvWriter` writing to an output stream and without taking ownership.
    explicit CsvWriter(std::ostream& out, Parameters params = {});

    CsvWriter(const CsvWriter&) = delete;

    CsvWriter(CsvWriter&&) = default;

    CsvWriter& operator=(const CsvWriter&) = delete;

    CsvWriter& operator=(CsvWriter&&) = delete;

    ~CsvWriter() noexcept;

    /// Write a vector as a new record.
    template <typename T>
    void put(const std::vector<T>& fields)
    {
        update_num_columns(fields.size());
        bool first = true;
        for (auto& f : fields) {
            if (!first) {
                out_ << params_.field_separator;
            } else {
                first = false;
            }
            quote(f);
        }
        out_ << params_.record_separator;
        if (!out_) {
            throw Error("Error writing csv file");
        }
    }

    /// Write an array as a new record.
    template <typename T, std::size_t N>
    void put(const std::array<T, N>& fields)
    {
        put_impl(fields, std::make_index_sequence<N>{});
    }

    /// Write a tuple as a new record.
    template <typename... Args>
    void put(const std::tuple<Args...>& fields)
    {
        put_impl(fields, std::make_index_sequence<sizeof...(Args)>{});
    }

    /// Write several arguments as a new record.
    template <typename... Args>
    void put(Args... args)
    {
        update_num_columns(sizeof...(Args));
        put_impl(args...);
    }

    template <typename T>
    void put_cell(T arg)
    {
        if (num_cur_columns_++ > 0) {
            out_ << params_.field_separator;
        }
        quote(arg);
    }

    /// Ends the current record and starts a new one.
    void end_row();

    /// Output stream interface for appending a cell to the current record.
    template <typename T>
    CsvWriter& operator<<(T&& fields)
    {
        put_cell(std::forward<T>(fields));
        return *this;
    }

    /// Ends the current record and starts a new one.
    CsvWriter& operator<<(end_row_tag)
    {
        this->end_row();
        return *this;
    }

    /// Output stream interface for adding a full record.
    template <typename T, std::size_t N>
    CsvWriter& operator<<(std::array<T, N>&& fields)
    {
        if (num_cur_columns_ > 0) {
            end_row();  // possibly end the current record
        }
        put(std::forward<std::array<T, N>>(fields));
        return *this;
    }

    /// Output stream interface for adding a full record.
    template <typename T>
    CsvWriter& operator<<(std::vector<T>&& fields)
    {
        if (num_cur_columns_ > 0) {
            end_row();  // possibly end the current record
        }
        put(std::forward<std::vector<T>>(fields));
        return *this;
    }

    /// Output stream interface for adding a full record.
    template <typename... Args>
    CsvWriter& operator<<(std::tuple<Args...>&& fields)
    {
        if (num_cur_columns_ > 0) {
            end_row();  // possibly end the current record
        }
        put(std::forward<std::tuple<Args...>>(fields));
        return *this;
    }

    /// Return a CsvWriter open for writing to an output stream.
    static CsvWriter write(std::ostream& out, Parameters params = {}) { return CsvWriter(out, params); }

    /// Return a CsvWriter open for writing to a file.
    static CsvWriter write(const std::string& filename, Parameters params = {});

private:
    template <typename T, std::size_t N, std::size_t... I>
    void put_impl(const std::array<T, N>& fields, std::index_sequence<I...>)
    {
        update_num_columns(N);
        put_impl(fields[I]...);
    }

    template <typename... Args, std::size_t... I>
    void put_impl(const std::tuple<Args...>& fields, std::index_sequence<I...>)
    {
        update_num_columns(sizeof...(Args));
        put_impl(std::get<I>(fields)...);
    }

    template <typename Arg0>
    void put_impl(Arg0 arg0)
    {
        quote(arg0);
        out_ << params_.record_separator;
        if (!out_) {
            throw Error("Error writing csv file");
        }
    }

    template <typename Arg0, typename Arg1, typename... Args>
    void put_impl(Arg0 arg0, Arg1 arg1, Args... args)
    {
        quote(arg0);
        out_ << params_.field_separator;
        if (!out_) {
            throw Error("Error writing csv file");
        }
        put_impl(std::forward<Arg1>(arg1), std::forward<Args>(args)...);
    }

#ifdef __cpp_lib_string_view
    /// Write a string to an output stream, possibly quoting the text.
    ///
    /// \param quote is the quotation character
    /// \param forbidden is the set characters that must be quoted
    /// \param x the string to be written
    void quote(detail::string_view s);
#endif

    /// Write a string to an output stream, possibly quoting the text.
    ///
    /// \param quote is the quotation character
    /// \param forbidden is the set characters that must be quoted
    /// \param x the string to be written
    void quote(const std::string& s);

    /// \overload
    template <typename T, std::enable_if_t<std::is_convertible<T, detail::string_view>::value, int> = 0>
    void quote(const T& x)
    {
        return quote(detail::string_view{x});
    }

    /// Write an element to an output stream, possibly quoting the text.
    ///
    /// \param quote is the quotation character
    /// \param forbidden is the set characters that must be quoted
    /// \param x the element to be written
    template <typename T,
              std::enable_if_t<!std::is_arithmetic<T>::value && !std::is_convertible<T, detail::string_view>::value, int> = 0>
    void quote(const T& x)
    {
        quote(detail::string_view_ref{convert<std::string>(x)});
    }

    /// \overload
    template <typename T, std::enable_if_t<std::is_arithmetic<T>::value, int> = 0>
    void quote(const T& x)
    {
        out_ << x;
    }

    void update_num_columns(std::size_t n)
    {
        if (params_.fixed_columns) {
            if (num_columns_ != n) {
                if (num_columns_ == 0) {
                    num_columns_ = n;
                } else {
                    throw Error("Records have different numbers of fields (" + std::to_string(n) + ", " +
                                std::to_string(num_columns_) + ")");
                }
            }
        }
    }

private:
    std::unique_ptr<std::ostream> owned_out_ = nullptr;
    std::ostream& out_;

    Parameters params_;
    std::string forbidden_;

    std::size_t num_columns_ = 0;

    std::size_t num_cur_columns_ = 0;  ///< Number of cells in the current record
};

/// An error occurred during reading a CSV file.
class CsvReadError : public std::runtime_error
{
public:
    explicit CsvReadError(const std::string& msg, std::size_t line_nr = 0);

    [[nodiscard]] std::size_t line_number() const { return line_nr_; }

private:
    std::size_t line_nr_;
};

/// Parameters for reading a CSV file.
struct CsvReaderParameters {
    /// The field separator, defaults to ","
    char field_separator = ',';

    /// The record separator, defaults to "\n"
    char record_separator = '\n';

    /// Ignore whitespace at the beginning and end of a field.
    ///
    /// If one of the separators is a whitespace character,
    /// this character is not ignored.
    bool ignore_whitespace = false;

    /// The quotation character.
    ///
    /// The default quotation character is ".
    /// All text between "..." is taken literally. To include a single " within
    /// a quoted text, double the character: "text""text".
    char quote = '"';

    /// The first line contains column headers.
    bool headers = false;

    /// The exact number of columns (0 means record may have different numbers of
    /// columns).
    std::size_t num_columns = 0;
};

/// A range of CSV records.
class CsvReader
{
    friend class iterator;

public:
    /// Exception raised on error.
    using Error = CsvReadError;

    /// Parameters to configurate the reader.
    using Parameters = CsvReaderParameters;

    template <std::size_t N = 0, typename Fields = std::vector<detail::string_view>>
    class RecordIterator
    {
    private:
        static constexpr auto NumColumns = N;

    public:
        using value_type = Fields;
        using difference_type = std::ptrdiff_t;
        using pointer = const value_type*;
        using reference = const value_type&;
        using iterator_category = std::input_iterator_tag;

    public:
        RecordIterator() : inds_(){};
        ~RecordIterator() = default;

        explicit RecordIterator(CsvReader& range, std::array<std::size_t, N> inds = {})
            : range_(&range), inds_(std::move(inds))
        {
            if (range.field_pos_.empty()) {
                // no record has been read so far, just read the first one.
                ++(*this);
            }
        }

        RecordIterator(RecordIterator&) = delete;
        RecordIterator(RecordIterator&&) noexcept = default;
        RecordIterator& operator=(RecordIterator&) = delete;
        RecordIterator& operator=(RecordIterator&&) noexcept = default;

        reference operator*()
        {
            assert(range_);
            return fields_;
        }

        pointer operator->()
        {
            assert(range_);
            return &fields_;
        }

        RecordIterator& operator++()
        {
            assert(range_);
            if (!range_->get_tuple(inds_, fields_)) {
                range_ = nullptr;
            }
            return *this;
        }

        bool operator==(const RecordIterator& it) const { return range_ == it.range_; }
        bool operator!=(const RecordIterator& it) const { return !(*this == it); }

    private:
        CsvReader* range_ = nullptr;
        Fields fields_;
        std::array<std::size_t, N> inds_;
    };

    /// The default, untyped iterator.
    using iterator = RecordIterator<>;

    /// A wrapper around named columns.
    template <std::size_t N, typename Fields>
    class Named
    {
    public:
        static constexpr auto NumColumns = N;

        using iterator = RecordIterator<NumColumns, Fields>;

    public:
        Named(CsvReader& csv, const std::array<detail::string_view, NumColumns>& columns) : csv_(csv)
        {
            compute_column_indices(columns);
        }

    private:
        void compute_column_indices(const std::array<detail::string_view, NumColumns>& columns);

    public:
        [[nodiscard]] iterator begin() { return iterator(csv_, indices_); }

        [[nodiscard]] iterator end() { return {}; }

    private:
        CsvReader& csv_;
        std::array<std::size_t, NumColumns> indices_;
    };

public:
    /// Create `CsvReader` reading from an input stream and taking ownership.
    explicit CsvReader(std::unique_ptr<std::istream> in, Parameters params = {});

    /// Create `CsvReader` reading from an input stream and without taking ownership.
    explicit CsvReader(std::istream& in, Parameters params = {});

    /// Returns the number of records read so far.
    [[nodiscard]] std::size_t num_records() const { return num_records_; }

    /// Returns the maximal number of columns seen in the file.
    [[nodiscard]] std::size_t max_columns() const { return max_columns_; }

    /// Returns the minimal number of columns seen in the file.
    [[nodiscard]] std::size_t min_columns() const { return min_columns_; }

    /// Returns the number of lines read so far.
    [[nodiscard]] std::size_t num_lines() const { return line_; }

    /// Return the header of the given column.
    ///
    /// If the column does not have a header, an empty string is returned.
    [[nodiscard]] detail::string_view header(std::size_t i) const
    {
        return i < headers_.size() ? headers_[i] : detail::string_view{};
    }

#ifdef __cpp_lib_string_view
    /// Return the index of the column with the given header.
    ///
    /// The returned value is invalid if no column with this header exists.
    [[nodiscard]] std::optional<std::size_t> column_index(std::string_view header) const;

    /// Return `true` and the index of the column with the given header.
    ///
    /// The returned value is `false` if no column with this header exists.
    [[nodiscard]] bool column_index(std::string_view header, std::size_t& index) const
    {
        auto idx = column_index(header);
        if (idx) {
            index = *idx;
            return true;
        }
        return false;
    }
#endif

    /// Return `true` and the index of the column with the given header.
    ///
    /// The returned value is `false` if no column with this header exists.
    [[nodiscard]] bool column_index(const std::string& header, std::size_t& index) const;

    [[nodiscard]] iterator begin() { return iterator{*this}; }

    [[nodiscard]] iterator end() { return {}; }

    template <typename T>
    [[nodiscard]] Named<0, std::vector<T>> rows()
    {
        return Named<0, std::vector<T>>{*this, {}};
    }

    template <typename T, std::size_t N>
    [[nodiscard]] Named<0, std::array<T, N>> rows()
    {
        return Named<0, std::array<T, N>>{*this, {}};
    }

    template <typename Arg0, typename Arg1, typename... Args>
    [[nodiscard]] Named<0, std::tuple<Arg0, Arg1, Args...>> rows()
    {
        return Named<0, std::tuple<Arg0, Arg1, Args...>>{*this, {}};
    }

    template <typename... Columns>
    [[nodiscard]] Named<sizeof...(Columns), std::array<detail::string_view, sizeof...(Columns)>> named(Columns... columns)
    {
        if (params_.headers == false && headers_.empty()) {
            init_headers();
        }
        return Named<sizeof...(Columns), std::array<detail::string_view, sizeof...(Columns)>>{
            *this, std::array<detail::string_view, sizeof...(Columns)>{detail::string_view{columns}...}};
    }

    template <typename... Args>
    [[nodiscard]] Named<sizeof...(Args), std::tuple<Args...>> named(
        typename std::conditional<false, Args, detail::string_view>::type... columns)
    {
        if (params_.headers == false && headers_.empty()) {
            init_headers();
        }
        return Named<sizeof...(Args), std::tuple<Args...>>{
            *this, std::array<detail::string_view, sizeof...(Args)>{detail::string_view{columns}...}};
    }

    /// Read the next record into the given parameters.
    ///
    /// The number of fields must match the number of parameters (or a
    /// `Error` is raised).
    ///
    /// Each field is converted to the corresponding type using `convert`. A
    /// `Error` is raised if the conversion fails.
    ///
    /// The function returns `true` if and only if a new record has been
    /// returned.
    template <typename... Args>
    bool get(Args&... args)
    {
        return get_impl({}, std::make_index_sequence<sizeof...(Args)>{}, args...);
    }

    /// Read the next record into a tuple.
    ///
    /// The number of fields must match the tuple size (or a `Error` is
    /// raised).
    ///
    /// Each field is converted to the corresponding type using `convert`. A
    /// `Error` is raised if the conversion fails.
    ///
    /// The function returns `true` if and only if a new record has been
    /// returned.
    template <typename... Args>
    bool get(std::tuple<Args...>& x)
    {
        return get_impl({}, x, std::make_index_sequence<sizeof...(Args)>{});
    }

    /// Read the next record into an array.
    ///
    /// The number of fields must match the array size (or a `Error` is
    /// raised).
    ///
    /// Each field is converted to the corresponding type using `convert`. A
    /// `Error` is raised if the conversion fails.
    ///
    /// The function returns `true` if and only if a new record has been
    /// returned.
    template <typename T, std::size_t N>
    bool get(std::array<T, N>& x)
    {
        return get_impl({}, x, std::make_index_sequence<N>{});
    }

    /// Read the next record into a vector.
    ///
    /// The vector will be resized to the number of fields.
    ///
    /// Each field is converted to the corresponding type using `convert`. A
    /// `Error` is raised if the conversion fails.
    ///
    /// The function returns `true` if and only if a new record has been
    /// returned.
    template <typename T>
    bool get(std::vector<T>& x);

    /// Read the next record into the given parameter.
    ///
    /// This function just calls `get`.
    template <typename Record>
    CsvReader& operator>>(Record& x)
    {
        get(x);
        return *this;
    }

    /// Return `true` if and only if there is another record to be read.
    [[nodiscard]] explicit operator bool() const { return has_record_; }

    /// Return a `CsvReader` iterating over the records of the given input stream.
    [[nodiscard]] static CsvReader read(std::istream& in, Parameters params = {}) { return CsvReader{in, params}; }

    /// Return a `CsvReader` iterating over the records of the given file.
    [[nodiscard]] static CsvReader read(const std::string& filename, Parameters params = {});

private:
    /// Read the first line as header line.
    void init_headers();

    /// Read the next record.
    ///
    /// This method updates the internal data like `raw_` and `field_pos_`.
    ///
    /// Returns `true` on success.
    bool next_record();

    /// Remove whitespace at the end of the current field in `raw_`.
    void trim_whitespaces();

    template <typename... Args, std::size_t... I, std::size_t N = 0>
    bool get_impl(const std::array<std::size_t, N>& inds, std::index_sequence<I...>, Args&... x);

    template <typename... Args, std::size_t... I, std::size_t N = 0>
    bool get_impl(const std::array<std::size_t, N>& inds, std::tuple<Args...>& x, std::index_sequence<I...>)
    {
        return get_impl(inds, std::make_index_sequence<sizeof...(Args)>{}, std::get<I>(x)...);
    }

    template <typename T, std::size_t M, std::size_t... I, std::size_t N = 0>
    bool get_impl(const std::array<std::size_t, N>& inds, std::array<T, M>& x, std::index_sequence<I...>)
    {
        return get_impl(inds, std::make_index_sequence<M>{}, std::get<I>(x)...);
    }

    template <typename... Args, std::size_t N = 0>
    bool get_tuple(const std::array<std::size_t, N>& inds, std::tuple<Args...>& x)
    {
        return get_impl(inds, x, std::make_index_sequence<sizeof...(Args)>{});
    }

    template <typename T, std::size_t M, std::size_t N = 0>
    bool get_tuple(const std::array<std::size_t, N>& inds, std::array<T, M>& x)
    {
        return get_impl(inds, x, std::make_index_sequence<M>{});
    }

    template <typename T>
    bool get_tuple(const std::array<std::size_t, 0>&, std::vector<T>& x)
    {
        return get(x);
    }

private:
    std::unique_ptr<std::istream> owned_in_ = nullptr;
    std::istream* in_;

    /// `true` if the last record has been read successfully.
    ///
    /// Used for the stream interface.
    bool has_record_ = true;

    /// The used read parameter.
    Parameters params_ = {};

    /// maximal number of columns
    std::size_t max_columns_ = 0;
    /// minimal number of columns
    std::size_t min_columns_ = std::numeric_limits<std::size_t>::max();
    /// current line number
    std::size_t line_ = 0;
    /// current record number
    std::size_t num_records_ = 0;

    /// The column headers.
    std::vector<std::string> headers_ = {};

    /// The raw data containing the current line's data.
    std::vector<char> raw_;

    /// Boundaries of fields in the current record (points to raw_)
    std::vector<std::pair<std::string::size_type, std::string::size_type>> field_pos_;
};

template <typename... Args, size_t... I, size_t N>
bool CsvReader::get_impl(const std::array<std::size_t, N>& inds, std::index_sequence<I...>, Args&... x)
{
    static_assert(N == 0 || N == sizeof...(Args), "Indices must match number of values");
    static constexpr auto size = N == 0 ? sizeof...(Args) : N;

    if (!next_record()) {
        has_record_ = false;
        return false;
    }

    if (N == 0 && (size != field_pos_.size())) {
        throw Error("Record has wrong number of fields (expected: " + std::to_string(size) +
                        " got:" + std::to_string(field_pos_.size()) + ")",
                    line_);
    }

    try {
        std::tie(x...) = std::make_tuple(convert<Args>(detail::string_view{
            raw_.data() + field_pos_.at(N == 0 ? I : inds[I]).first,
            field_pos_.at(N == 0 ? I : inds[I]).second - field_pos_.at(N == 0 ? I : inds[I]).first})...);
    } catch (std::invalid_argument& e) {
        has_record_ = false;
        throw Error("Error reading a field (" + std::string(e.what()) + ")", line_);
    } catch (std::out_of_range& e) {
        has_record_ = false;
        throw Error("Error reading a field (" + std::string(e.what()) + ")", line_);
    }

    has_record_ = true;

    return true;
}

template <typename T>
bool CsvReader::get(std::vector<T>& x)
{
    if (!next_record()) {
        has_record_ = false;
        return false;
    }

    x.clear();
    x.reserve(field_pos_.size());
    try {
        for (auto pos : field_pos_) {
            x.emplace_back(convert<T>(detail::string_view{raw_.data() + pos.first, pos.second - pos.first}));  // NOLINT
        }
    } catch (std::invalid_argument& e) {
        has_record_ = false;
        throw Error("Error reading a field (" + std::string(e.what()) + ")", line_);
    } catch (std::out_of_range& e) {
        has_record_ = false;
        throw Error("Error reading a field (" + std::string(e.what()) + ")", line_);
    }
    has_record_ = true;

    return true;
}

template <std::size_t N, typename Fields>
void CsvReader::Named<N, Fields>::compute_column_indices(const std::array<detail::string_view, NumColumns>& columns)
{
    for (auto i : indices(columns)) {
        std::size_t index = 0;
        if (!csv_.column_index(columns[i], index)) {
            throw Error("Column '" + std::string(columns[i]) + "' not found in csv file");
        }
        indices_[i] = index;
    }
}

extern template bool CsvReader::get(std::vector<std::string>& x);
#ifdef __cpp_lib_string_view
extern template bool CsvReader::get(std::vector<std::string_view>& x);
#endif

}  // namespace util
}  // namespace fifr

#endif

Added 3rdparty/util/src/fifr/util/GZipStream.cxx.







































































































































































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
/*
 * Copyright (c) 2017-2024 Frank Fischer <frank-fischer@shadow-soft.de>
 *
 * This program is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see  <http://www.gnu.org/licenses/>
 */

#include "GZipStream.hxx"

#include "AutoZipStream.hxx"

#include <zlib.h>

#include <algorithm>
#include <array>
#include <cstdio>
#include <cstring>
#include <ios>
#include <iostream>
#include <string>

namespace fifr::util {
static const unsigned BufferSize = 47 + 256;

struct GZipStreamBuf::Data {
    gzFile file = nullptr;
    std::array<char, BufferSize> buf = {};
    bool is_open = false;
    std::ios::openmode mode = {};
};

GZipStreamBuf::GZipStreamBuf() : d(new Data)
{
    setp(d->buf.data(), d->buf.data() + (BufferSize - 1));
    setg(d->buf.data() + 4, d->buf.data() + 4, d->buf.data() + 4);
}

GZipStreamBuf::~GZipStreamBuf()
{
    close();
}

bool GZipStreamBuf::is_open() const
{
    return d->is_open;
}

GZipStreamBuf* GZipStreamBuf::open(const std::string& name, std::ios::openmode op_mode)
{
    if (is_open()) {
        close();
        return nullptr;
    }

    d->mode = op_mode;

    if (((d->mode & std::ios::ate) != 0) || ((d->mode & std::ios::app) != 0) ||
        (((d->mode & std::ios::in) != 0) && ((d->mode & std::ios::out) != 0)))
    {
        return nullptr;
    }

    std::array<char, 3> fmode = {};
    std::size_t pos = 0;

    if ((d->mode & std::ios::in) != 0) {
        fmode.at(pos++) = 'r';
    } else if ((d->mode & std::ios::out) != 0) {
        fmode.at(pos++) = 'w';
    }
    fmode.at(pos++) = 'b';
    fmode.at(pos++) = '0';

    d->file = gzopen(name.c_str(), fmode.data());
    if (d->file == nullptr) {
        return nullptr;
    }

    d->is_open = true;

    return this;
}

GZipStreamBuf* GZipStreamBuf::close()
{
    if (is_open()) {
        if ((pptr() != nullptr) && pptr() > pbase()) {
            flush_buffer();
        }
        d->is_open = false;
        if (gzclose(d->file) == Z_OK) {
            return this;
        }
    }
    return nullptr;
}

int GZipStreamBuf::underflow()  // used for input buffer only
{
    if ((gptr() != nullptr) && (gptr() < egptr())) {
        return *reinterpret_cast<unsigned char*>(gptr());  // NOLINT
    }

    if (((d->mode & std::ios::in) == 0) || !d->is_open) {
        return EOF;
    }

    // Josuttis' implementation of inbuf
    auto n_putback = 0L;
    if (gptr() != nullptr) {
        n_putback = std::min(4L, gptr() - eback());
        memcpy(d->buf.data() + (4 - n_putback),
               gptr() - n_putback,  // NOLINT
               static_cast<std::size_t>(n_putback));
    }

    const int num = gzread(d->file, d->buf.data() + 4, BufferSize - 4);
    if (num <= 0) {  // ERROR or EOF
        return EOF;
    }

    // reset buffer pointers
    setg(d->buf.data() + (4 - n_putback),  // beginning of putback area
         d->buf.data() + 4,                // read position
         d->buf.data() + 4 + num);         // end of buffer

    // return next character
    return *reinterpret_cast<unsigned char*>(gptr());  // NOLINT
}

int GZipStreamBuf::flush_buffer()
{
    // Separate the writing of the buffer from overflow() and
    // sync() operation.
    auto w = static_cast<int>(pptr() - pbase());
    if (gzwrite(d->file, pbase(), static_cast<unsigned>(w)) != w) {
        return EOF;
    }
    pbump(-w);
    return w;
}

int GZipStreamBuf::overflow(int c)  // used for output buffer only
{
    if (((d->mode & std::ios::out) == 0) || !d->is_open) {
        return EOF;
    }
    if (c != EOF) {
        *pptr() = static_cast<char>(c);
        pbump(1);
    }
    if (flush_buffer() == EOF) {
        return EOF;
    }
    return c;
}

int GZipStreamBuf::sync()
{
    // Changed to use flush_buffer() instead of overflow( EOF)
    // which caused improper behavior with std::endl and flush(),
    // bug reported by Vincent Ricard.
    if ((pptr() != nullptr) && pptr() > pbase()) {
        if (flush_buffer() == EOF) {
            return -1;
        }
    }
    return 0;
}

namespace {
struct RegisterGZip {
    RegisterGZip() noexcept
    {
        try {
            register_autozipper<GZipStreamBuf>(".gz");
        } catch (...) {
            std::cerr << "Can't register gzip auto zipper\n";
        }
    }
};

static const RegisterGZip register_gzip = {};
}  // namespace
}  // namespace fifr::util

Added 3rdparty/util/src/fifr/util/GZipStream.hxx.

























































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
/*
 * Copyright (c) 2017-2024 Frank Fischer <frank-fischer@shadow-soft.de>
 *
 * This program is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see  <http://www.gnu.org/licenses/>
 */

#ifndef FIFR_UTIL_GZIPSTREAM_HXX
#define FIFR_UTIL_GZIPSTREAM_HXX

#include "ZipStreamBase.hxx"

#include <memory>
#include <streambuf>
#include <string>

namespace fifr {
namespace util {
/// Stream buffer for gzipped files.
///
/// This class is based on @e gzstream.
class GZipStreamBuf : public std::streambuf
{
public:
    /// Constructor.
    GZipStreamBuf();

    GZipStreamBuf(GZipStreamBuf&&) = delete;
    GZipStreamBuf(const GZipStreamBuf&) = delete;
    GZipStreamBuf& operator=(GZipStreamBuf&&) = delete;
    GZipStreamBuf& operator=(const GZipStreamBuf&) = delete;

    /// Destructor.
    ///
    /// Closes the stream.
    ~GZipStreamBuf() override;

    /// Returns true if the associated file is opened.
    [[nodiscard]] bool is_open() const;

    ///
    /// Opens a file.
    ///
    /// A gzipped file may neither be opened read-write (at the
    /// same time) nor in append-mode.
    ///
    /// \param fname The name of the file to open.
    /// \param op_mode The mode in which the file should be opened.
    ///
    /// \return \b this on success, `nullptr` otherwise.
    ///
    GZipStreamBuf* open(const std::string& name, std::ios_base::openmode op_mode);

    /// Closes the associated file.
    GZipStreamBuf* close();

    int overflow(int c) override;

    int underflow() override;

    int sync() override;

private:
    /// Flushes the current write buffer to the file.
    int flush_buffer();

private:
    struct Data;
    std::unique_ptr<Data> d;
};

using InputGZipStream = InputZipStreamBase<GZipStreamBuf>;

using OutputGZipStream = OutputZipStreamBase<GZipStreamBuf>;

using igzstream = InputGZipStream;

using ogzstream = OutputGZipStream;
}  // namespace util
}  // namespace fifr

#endif

Added 3rdparty/util/src/fifr/util/IndentStream.cxx.









































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
 * Copyright (c) 2018 Frank Fischer <frank-fischer@shadow-soft.de>
 *
 * This program is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see  <http://www.gnu.org/licenses/>
 */

#include "IndentStream.hxx"

#include <cstddef>
#include <iostream>
#include <string>

namespace fifr::util {
int IndentStreamBuf::overflow(int ch)
{
    if (is_start_of_line_ && ch != '\n') {
        for (std::size_t i = 0; i < indent_; i++) {
            buf_->sputc(' ');
        }
    }
    is_start_of_line_ = ch == '\n';
    return buf_->sputc(std::char_traits<char>::to_char_type(ch));
}

}  // namespace fifr::util

Added 3rdparty/util/src/fifr/util/IndentStream.hxx.



























































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
/*
 * Copyright (c) 2018, 2023 Frank Fischer <frank-fischer@shadow-soft.de>
 *
 * This program is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see  <http://www.gnu.org/licenses/>
 */

#ifndef FIFR_UTIL_INDENTSTREAM_HXX
#define FIFR_UTIL_INDENTSTREAM_HXX

#include <memory>
#include <ostream>

namespace fifr {
namespace util {
/// Streambuffer for the indentation stream.
///
/// Credits:
/// https://stackoverflow.com/questions/9599807/how-to-add-indention-to-the-stream-operator/9600752#9600752
class IndentStreamBuf : public std::streambuf
{
public:
    explicit IndentStreamBuf(std::ostream& out, std::size_t indent = 0, bool is_start_of_line = true)
        : out_(out), buf_(out.rdbuf()), is_start_of_line_(is_start_of_line), indent_(indent)
    {
    }

    IndentStreamBuf(IndentStreamBuf&&) = delete;

    IndentStreamBuf(const IndentStreamBuf&) = delete;

    IndentStreamBuf& operator=(IndentStreamBuf&&) = delete;

    IndentStreamBuf& operator=(const IndentStreamBuf&) = delete;

    ~IndentStreamBuf() override { out_.rdbuf(buf_); }

    int overflow(int ch) override;

    void increase() { increase(default_inc_); }

    void increase(std::size_t inc) { indent_ += inc; }

    void decrease() { decrease(default_inc_); }

    void decrease(std::size_t dec)
    {
        if (dec <= indent_) {
            {
                {
                    indent_ -= dec;
                }
            }
        } else {
            {
                {
                    indent_ = 0;
                }
            }
        }
    }

    void set_default_inc(std::size_t default_inc) { default_inc_ = default_inc; }

private:
    std::ostream& out_;
    std::streambuf* buf_;
    bool is_start_of_line_;
    std::size_t indent_;
    std::size_t default_inc_ = 2;
};

class IndentStream : public std::ostream
{
public:
    explicit IndentStream(std::ostream& out, std::size_t indent = 0, bool is_start_of_line = true)
        : std::ostream(&buf_), buf_(out, indent, is_start_of_line)
    {
        if (out.width() > 0) {
            buf_.set_default_inc(static_cast<std::size_t>(out.width()));
        }
    }

    void increase() { buf_.increase(); }

    void increase(std::size_t inc) { buf_.increase(inc); }

    void decrease() { buf_.decrease(); }

    void decrease(std::size_t dec) { buf_.decrease(dec); }

private:
    IndentStreamBuf buf_;
};

}  // namespace util
}  // namespace fifr

#endif

Added 3rdparty/util/src/fifr/util/Join.hxx.

























































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
/*
 * Copyright (c) 2016-2017, 2023 Frank Fischer <frank-fischer@shadow-soft.de>
 *
 * This program is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see  <http://www.gnu.org/licenses/>
 */

#ifndef FIFR_UTIL_JOIN_HXX
#define FIFR_UTIL_JOIN_HXX

#include "Convert.hxx"

#include <array>
#include <sstream>
#include <string>

namespace fifr {
namespace util {
/**
 * Join operator.
 *
 * This object can be converted to a string, a C-string or written to
 * an output stream.
 */
template <class C>
class Join
{
public:
    Join(const C& container, const std::string& sep) : container_(container), sep_(sep) {}

    Join(Join&&) = delete;

    Join(const Join&) = delete;

    Join& operator=(Join&&) = delete;

    Join& operator=(const Join&) = delete;

    ~Join() = default;

    /// Return the joined string.
    [[nodiscard]] std::string str() const
    {
        std::ostringstream out;
        out << *this;
        return out.str();
    }

    explicit operator std::string() const { return str(); }

    template <typename CC>
    friend std::ostream& operator<<(std::ostream& out, const Join<CC>& join);

private:
    const C& container_;
    const std::string& sep_;
};

/// Write a joined vector to an output stream.
template <class C>
std::ostream& operator<<(std::ostream& out, const Join<C>& join)
{
    auto it = join.container_.begin();
    auto itend = join.container_.end();
    if (it != itend) {
        out << *it;
        ++it;
        for (; it != itend; ++it) {
            out << join.sep_ << *it;
        }
    }
    return out;
}

/**
 * Join a container to a string.
 */
template <typename C>
Join<C> join(const C& container, const std::string& sep = "")
{
    return {container, sep};
}

/// Add string and joined string.
template <typename C>
std::string operator+(const std::string& str, const Join<C>& join)
{
    return str + join.str();
}

/// Add joined string and string.
template <typename C>
std::string operator+(const Join<C>& join, const std::string& str)
{
    return join.str() + str;
}

/// Add string and joined string.
template <typename C>
std::string operator+(const char* str, const Join<C>& join)
{
    return str + join.str();
}

/// Add joined string and string.
template <typename C>
std::string operator+(const Join<C>& join, const char* str)
{
    return join.str() + str;
}

/**
 * Join a fixed number of objects.
 *
 * All objects are converted to `std::string` using
 * `fifr::util::convert` before being joined.
 *
 * @warning In contrast to other `join` functions, the separator is
 *          the *first* argument.
 */
template <typename... Args>
std::string join(const std::string& separator, Args&&... args)
{
    return std::string(
        join(std::array<std::string, sizeof...(Args)>{{convert<std::string>(std::forward<Args>(args))...}}, separator));
}
}  // namespace util
}  // namespace fifr

#endif

Added 3rdparty/util/src/fifr/util/Logger.cxx.





































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*
 * Copyright (c) 2017-2021, 2023 Frank Fischer <frank-fischer@shadow-soft.de>
 *
 * This program is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see  <http://www.gnu.org/licenses/>
 */

#include "Logger.hxx"

#include <iostream>
#include <string>

namespace fifr::util {
Logger Logger::default_logger;

Logger::LogStreamBuf::~LogStreamBuf()
{
    if (written_ && visible_) {
        buf_->sputc('\n');
    }
}

int Logger::LogStreamBuf::overflow(int ch)
{
    if (!visible_) {
        return ch;
    }
    if (!written_ && ch != '\n' && name_ != nullptr) {
        for (const auto* p = name_; *p != '\0'; p++) {
            buf_->sputc(*p);
        }
        buf_->sputc(' ');
    }
    written_ = ch != '\n';
    return buf_->sputc(std::char_traits<char>::to_char_type(ch));
}

Logger::Logger() noexcept : Logger(std::cerr) {}

}  // namespace fifr::util

Added 3rdparty/util/src/fifr/util/Logger.hxx.

































































































































































































































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
/*
 * Copyright (c) 2017-2021, 2023 Frank Fischer <frank-fischer@shadow-soft.de>
 *
 * This program is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see  <http://www.gnu.org/licenses/>
 */

#ifndef FIFR_UTIL_LOGGER_HXX
#define FIFR_UTIL_LOGGER_HXX

#include <ostream>

#ifdef __cpp_lib_format
#    include <format>
#    include <iterator>
#endif

// NOLINTBEGIN(bugprone-macro-parentheses)
#define FIFR_UTIL_LOG(LEVEL, log, what)                                                   \
    if (fifr::util::Logger::default_logger.level() <= fifr::util::Logger::Level::LEVEL) { \
        log() << what;                                                                    \
    }

#define DEBUG(what) FIFR_UTIL_LOG(Debug, debug, what)
#define INFO(what) FIFR_UTIL_LOG(Info, info, what)
#define WARN(what) FIFR_UTIL_LOG(Warn, warn, what)
#define ERROR(what) FIFR_UTIL_LOG(Error, error, what)
// NOLINTEND(bugprone-macro-parentheses)

namespace fifr {
namespace util {
/// A simple Logger.
class Logger
{
public:
    class LogStreamBuf : public std::streambuf
    {
    public:
        LogStreamBuf(const char* name, std::ostream& out, bool visible)
            : buf_(out.rdbuf()), name_(name), visible_(visible)
        {
        }

        LogStreamBuf(LogStreamBuf&& b) noexcept
            : buf_(b.buf_), name_(b.name_), written_(b.written_), visible_(b.visible_)
        {
            b.buf_ = nullptr;
            b.name_ = nullptr;
            b.written_ = false;
        }

        LogStreamBuf(const LogStreamBuf&) = delete;
        LogStreamBuf& operator=(LogStreamBuf&&) = delete;
        LogStreamBuf& operator=(const LogStreamBuf&) = delete;

        ~LogStreamBuf() override;

        int overflow(int ch) override;

    private:
        std::streambuf* buf_;
        const char* name_;
        bool written_ = false;
        bool visible_;
    };

    class LogStream : public std::ostream
    {
    public:
        LogStream(const char* const name, std::ostream& s, bool visible) : std::ostream(&buf_), buf_(name, s, visible)
        {
        }

        LogStream(LogStream&& log) noexcept : std::ostream(&buf_), buf_(std::move(log.buf_)) { log.rdbuf(nullptr); }

        ~LogStream() override = default;

        LogStream(const LogStream&) = delete;

        LogStream& operator=(const LogStream&) = delete;

        LogStream& operator=(LogStream&&) = delete;

    private:
        LogStreamBuf buf_;
    };

public:
    enum class Level {
        Debug,  ///< Show debug messages and everything else.
        Info,   ///< Show info, warning and error messages.
        Warn,   ///< Show warning and error messages.
        Error,  ///< Show error messages.
        None,   ///< Show nothing.
    };

public:
    explicit Logger(std::ostream& out) noexcept : out_(&out), level_(Level::Info) {}

    Logger(Logger&&) noexcept = default;

    Logger(const Logger&) = default;

    Logger& operator=(Logger&&) noexcept = default;

    Logger& operator=(const Logger&) = delete;

    ~Logger() = default;

    /// Set the log level.
    void set_level(Level level) { level_ = level; }

    /// Return current log level.
    [[nodiscard]] Level level() const { return level_; }

    /// Return info log stream.
    LogStream info() { return {"I  ", *out_, level_ <= Level::Info}; }

    /// Return warning log stream.
    LogStream warn() { return {"W  ", *out_, level_ <= Level::Warn}; }

    /// Return error log stream.
    LogStream error() { return {"E  ", *out_, level_ <= Level::Error}; }

    /// Return debug log stream.
    LogStream debug() { return {"D  ", *out_, level_ <= Level::Debug}; }

private:
    /// Default logger, logs to stderr.
    Logger() noexcept;

private:
    std::ostream* out_;
    Level level_;

public:
    /// The global default logger.
    static Logger default_logger;
};

/// Return info stream for the default logger.
inline Logger::LogStream info()
{
    return Logger::default_logger.info();
}

/// Return warning stream for the default logger.
inline Logger::LogStream warn()
{
    return Logger::default_logger.warn();
}

/// Return error stream for the default logger.
inline Logger::LogStream error()
{
    return Logger::default_logger.error();
}

/// Return debug stream for the default logger.
inline Logger::LogStream debug()
{
    return Logger::default_logger.debug();
}

#ifdef __cpp_lib_format
template <typename... Args>
inline auto debug(std::format_string<Args...> fmt, Args&&... args)
{
    if (Logger::default_logger.level() <= Logger::Level::Debug) {
        auto log = Logger::default_logger.debug();
        std::format_to(std::ostream_iterator<char>(log),
                       std::forward<std::format_string<Args...>>(fmt),
                       std::forward<Args>(args)...);
    }
}

template <typename... Args>
inline auto info(std::format_string<Args...> fmt, Args&&... args)
{
    if (Logger::default_logger.level() <= Logger::Level::Info) {
        auto log = Logger::default_logger.info();
        std::format_to(std::ostream_iterator<char>(log),
                       std::forward<std::format_string<Args...>>(fmt),
                       std::forward<Args>(args)...);
    }
}

template <typename... Args>
inline auto warn(std::format_string<Args...> fmt, Args&&... args)
{
    if (Logger::default_logger.level() <= Logger::Level::Warn) {
        auto log = Logger::default_logger.warn();
        std::format_to(std::ostream_iterator<char>(log),
                       std::forward<std::format_string<Args...>>(fmt),
                       std::forward<Args>(args)...);
    }
}

template <typename... Args>
inline auto error(std::format_string<Args...> fmt, Args&&... args)
{
    if (Logger::default_logger.level() <= Logger::Level::Error) {
        auto log = Logger::default_logger.error();
        std::format_to(std::ostream_iterator<char>(log),
                       std::forward<std::format_string<Args...>>(fmt),
                       std::forward<Args>(args)...);
    }
}
#endif

}  // namespace util
}  // namespace fifr

#endif

Added 3rdparty/util/src/fifr/util/Permutation.hxx.











































































































































































































































































































































































































































































































































































































































































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
/*
 * Copyright (c) 2020, 2023 Frank Fischer <frank-fischer@shadow-soft.de>
 *
 * This program is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see  <http://www.gnu.org/licenses/>
 */

#ifndef FIFR_UTIL_PERMUTATION_HXX
#define FIFR_UTIL_PERMUTATION_HXX

#include "Range.hxx"

#include <algorithm>
#include <array>
#include <numeric>

namespace fifr {
namespace util {

namespace detail {

/// Iterate over subsets of size R.
template <std::size_t R, typename T>
struct nMr {
    nMr(T end) : beg_(), end_(std::move(end)) {}

    nMr(T beg, T end) : beg_(std::move(beg)), end_(std::move(end)) {}

    struct end_iterator {
    };

    struct iterator {
        using pointer = void;
        using value_type = std::array<T, R>;
        using reference = const value_type&;
        using iterator_category = std::forward_iterator_tag;

        iterator(T beg, T end) : beg_(std::move(beg)), end_(std::move(end)) { cur_.fill(beg_); }

        reference operator*() const { return cur_; }

        iterator& operator++()
        {
            for (auto i = R; i > 0;) {
                --i;
                ++cur_[i];
                if (cur_[i] != end_ || i == 0) {
                    break;
                }
                cur_[i] = beg_;
            }
            return *this;
        }

        iterator operator++(int)
        {
            auto copy = *this;
            ++*this;
            return copy;
        }

        bool operator==(const iterator& other) const { return cur_ == other.cur_; }

        bool operator!=(const iterator& other) const { return !(*this == other); }

        bool operator<(const iterator& other) const { return cur_ < other.cur_; }

        bool operator<=(const iterator& other) const { return cur_ <= other.cur_; }

        bool operator>=(const iterator& other) const { return cur_ >= other.cur_; }

        bool operator>(const iterator& other) const { return cur_ > other.cur_; }

        bool operator==(const end_iterator&) const { return cur_[0] == end_; }

        bool operator!=(const end_iterator& other) const { return !(*this == other); }

    private:
        std::array<T, R> cur_;
        T beg_;
        T end_;
    };

    [[nodiscard]] iterator begin() const { return {beg_, end_}; }

    [[nodiscard]] end_iterator end() const { return {}; }

private:
    T beg_;
    T end_;
};

/// Iterate over combinations of size R.
template <std::size_t R, typename T>
struct nCr {
    nCr(T end) : beg_(), end_(std::move(end)) {}

    nCr(T beg, T end) : beg_(std::move(beg)), end_(std::move(end)) {}

    struct end_iterator {
    };

    struct iterator {
        using pointer = void;
        using value_type = std::array<T, R>;
        using reference = const value_type&;
        using iterator_category = std::forward_iterator_tag;

        iterator(T beg, T end) : beg_(std::move(beg)), end_(std::move(end))
        {
            if (end_ - beg_ >= static_cast<int>(R)) {
                std::iota(cur_.begin(), cur_.end(), beg_);
            } else {
                std::fill(cur_.begin(), cur_.end(), end_);
            }
        }

        reference operator*() const { return cur_; }

        iterator& operator++()
        {
            for (auto i = R; i > 0;) {
                --i;
                auto nxt = cur_[i];
                ++nxt;
                // current element < next element -> valid
                if ((i == R - 1 && nxt != end_) || (i < R - 1 && nxt != cur_[i + 1])) {
                    cur_[i] = nxt;
                    // start all succeeding elements from their lowest value
                    while (++i < R) {
                        cur_[i] = cur_[i - 1];
                        ++cur_[i];
                    }
                    return *this;
                }
            }
            cur_[0] = end_;
            return *this;
        }

        iterator operator++(int)
        {
            auto copy = *this;
            ++*this;
            return copy;
        }

        bool operator==(const iterator& other) const { return cur_ == other.cur_; }

        bool operator!=(const iterator& other) const { return !(*this == other); }

        bool operator<(const iterator& other) const { return cur_ < other.cur_; }

        bool operator<=(const iterator& other) const { return cur_ <= other.cur_; }

        bool operator>=(const iterator& other) const { return cur_ >= other.cur_; }

        bool operator>(const iterator& other) const { return cur_ > other.cur_; }

        bool operator==(const end_iterator&) const { return cur_[0] == end_; }

        bool operator!=(const end_iterator& other) const { return !(*this == other); }

    private:
        std::array<T, R> cur_;
        T beg_;
        T end_;
    };

    [[nodiscard]] iterator begin() const { return {beg_, end_}; }

    [[nodiscard]] end_iterator end() const { return {}; }

private:
    T beg_;
    T end_;
};

/// Iterate over permutations of size R.
template <std::size_t R, typename T>
struct nPr {
    nPr(T end) : beg_(), end_(std::move(end)) {}

    nPr(T beg, T end) : beg_(std::move(beg)), end_(std::move(end)) {}

    struct end_iterator {
    };

    struct iterator {
        using pointer = void;
        using value_type = std::array<T, R>;
        using reference = const value_type&;
        using iterator_category = std::forward_iterator_tag;

        iterator(T beg, T end) : beg_(std::move(beg)), end_(std::move(end))
        {
            if (end_ - beg_ >= static_cast<int>(R)) {
                std::iota(cur_.begin(), cur_.end(), beg_);
            } else {
                std::fill(cur_.begin(), cur_.end(), end_);
            }
        }

        reference operator*() const { return cur_; }

        iterator& operator++()
        {
            auto i = R - 1;

            ++cur_[i];
            for (;;) {
                if (cur_[i] == end_) {
                    if (i == 0) {
                        return *this;
                    }
                    cur_[i] = beg_;
                    --i;
                    ++cur_[i];
                } else {
                    bool valid = true;
                    for (auto j = 0UL; valid && j < i; ++j) {
                        valid = cur_[j] != cur_[i];
                    }
                    if (valid) {
                        if (++i == R) {
                            return *this;
                        }
                    } else {
                        ++cur_[i];
                    }
                }
            }

            return *this;
        }

        iterator operator++(int)
        {
            auto copy = *this;
            ++*this;
            return copy;
        }

        bool operator==(const iterator& other) const { return cur_ == other.cur_; }

        bool operator!=(const iterator& other) const { return !(*this == other); }

        bool operator<(const iterator& other) const { return cur_ < other.cur_; }

        bool operator<=(const iterator& other) const { return cur_ <= other.cur_; }

        bool operator>=(const iterator& other) const { return cur_ >= other.cur_; }

        bool operator>(const iterator& other) const { return cur_ > other.cur_; }

        bool operator==(const end_iterator&) const { return cur_[0] == end_; }

        bool operator!=(const end_iterator& other) const { return !(*this == other); }

    private:
        std::array<T, R> cur_;
        T beg_;
        T end_;
    };

    [[nodiscard]] iterator begin() const { return {beg_, end_}; }

    [[nodiscard]] end_iterator end() const { return {}; }

private:
    T beg_;
    T end_;
};

template <typename Rng, typename Pred>
struct filtered {
    filtered(Rng rng, Pred pred) : rng_(std::move(rng)), pred_(std::move(pred)) {}

    using end_iterator = typename Rng::end_iterator;

    struct iterator {
        using pointer = void;
        using value_type = typename Rng::iterator::value_type;
        using reference = const value_type&;
        using iterator_category = std::forward_iterator_tag;

        iterator(typename Rng::iterator cur, end_iterator end, Pred pred)
            : cur_(std::move(cur)), end_(std::move(end)), pred_(pred)
        {
            while (cur_ != end_ && !pred_(*cur_)) {
                ++cur_;
            }
        }

        reference operator*() const { return *cur_; }

        iterator& operator++()
        {
            ++cur_;
            while (cur_ != end_ && !pred_(*cur_)) {
                ++cur_;
            }
            return *this;
        }

        iterator operator++(int)
        {
            auto copy = *this;
            ++*this;
            return copy;
        }

        bool operator==(const iterator& other) const { return cur_ == other.cur_; }

        bool operator!=(const iterator& other) const { return !(*this == other); }

        bool operator<(const iterator& other) const { return cur_ < other.cur_; }

        bool operator<=(const iterator& other) const { return cur_ <= other.cur_; }

        bool operator>=(const iterator& other) const { return cur_ >= other.cur_; }

        bool operator>(const iterator& other) const { return cur_ > other.cur_; }

        bool operator==(const end_iterator&) const { return cur_ == end_; }

        bool operator!=(const end_iterator& other) const { return !(*this == other); }

    private:
        typename Rng::iterator cur_;
        end_iterator end_;
        Pred pred_;
    };

    [[nodiscard]] iterator begin() const { return {rng_.begin(), rng_.end(), pred_}; }

    [[nodiscard]] end_iterator end() const { return {}; }

private:
    Rng rng_;
    Pred pred_;
};

}  // namespace detail

template <typename Rng, typename Pred>
auto filtered(Rng rng, Pred pred) -> detail::filtered<Rng, Pred>
{
    return detail::filtered<Rng, Pred>(rng, pred);
}

template <std::size_t R, typename T>
auto nMr(T end) -> detail::nMr<R, T>
{
    return detail::nMr<R, T>(end);
}

template <std::size_t R, typename T>
auto nMr(T beg, T end) -> detail::nMr<R, T>
{
    return detail::nMr<R, T>(beg, end);
}

template <std::size_t R, typename T, typename Pred>
auto nMr(T end, Pred pred) -> detail::filtered<detail::nMr<R, T>, Pred>
{
    return filtered(nMr<R>(std::move(end)), std::move(pred));
}

template <std::size_t R, typename T, typename Pred>
auto nMr(T beg, T end, Pred pred) -> detail::filtered<detail::nMr<R, T>, Pred>
{
    return filtered(nMr<R>(std::move(beg), std::move(end)), std::move(pred));
}

template <std::size_t R, typename T>
auto nCr(T end) -> detail::nCr<R, T>
{
    return detail::nCr<R, T>(end);
}

template <std::size_t R, typename T>
auto nCr(T beg, T end) -> detail::nCr<R, T>
{
    return detail::nCr<R, T>(beg, end);
}

template <std::size_t R, typename T, typename Pred>
auto nCr(T end, Pred pred) -> detail::filtered<detail::nCr<R, T>, Pred>
{
    return filtered(nCr<R>(std::move(end)), std::move(pred));
}

template <std::size_t R, typename T, typename Pred>
auto nCr(T beg, T end, Pred pred) -> detail::filtered<detail::nCr<R, T>, Pred>
{
    return filtered(nCr<R>(std::move(beg), std::move(end)), std::move(pred));
}

template <std::size_t R, typename T>
auto nPr(T end) -> detail::nPr<R, T>
{
    return detail::nPr<R, T>(end);
}

template <std::size_t R, typename T>
auto nPr(T beg, T end) -> detail::nPr<R, T>
{
    return detail::nPr<R, T>(beg, end);
}

template <std::size_t R, typename T, typename Pred>
auto nPr(T end, Pred pred) -> detail::filtered<detail::nPr<R, T>, Pred>
{
    return filtered(nPr<R>(std::move(end)), std::move(pred));
}

template <std::size_t R, typename T, typename Pred>
auto nPr(T beg, T end, Pred pred) -> detail::filtered<detail::nPr<R, T>, Pred>
{
    return filtered(nPr<R>(std::move(beg), std::move(end)), std::move(pred));
}

}  // namespace util
}  // namespace fifr

#endif

Added 3rdparty/util/src/fifr/util/Pretty.cxx.

















































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
/*
 * Copyright (c) 2018, 2019 Frank Fischer <frank-fischer@shadow-soft.de>
 *
 * This program is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see  <http://www.gnu.org/licenses/>
 */

#include "Pretty.hxx"

#include "IndentStream.hxx"

#include <cctype>
#include <istream>
#include <string>
#include <string_view>

namespace fifr::util {
void pretty_read(std::istream& in, std::string& arg)
{
    if (in.get() != '"') {
        throw ReadError("Expected \" for string value");
    }
    arg.clear();
    for (auto c = in.get(); c != '"'; c = in.get()) {
        if (c == '\\') {
            c = in.get();
            switch (c) {
                case 'r': arg.push_back('\r'); break;
                case 'n': arg.push_back('\n'); break;
                case 't': arg.push_back('\t'); break;
                case '0': arg.push_back('\0'); break;
                default: arg.push_back(std::char_traits<char>::to_char_type(c)); break;
            }
        } else {
            arg.push_back(std::char_traits<char>::to_char_type(c));
        }
    }
}

void pretty_read(std::istream& in, bool& arg)
{
    in >> std::ws;

    auto ch = in.get();

    if (ch == 't') {
        if (in.get() == 'r' && in.get() == 'u' && in.get() == 'e' && std::isalnum(in.get()) == 0) {
            in.unget();
            arg = true;
        } else {
            throw ReadError("Expected 'true', 'false' or a number of boolean value");
        }
    } else if (ch == 'f') {
        if (in.get() == 'a' && in.get() == 'l' && in.get() == 's' && in.get() == 'e' && std::isalnum(in.get()) == 0) {
            in.unget();
            arg = false;
        } else {
            throw ReadError("Expected 'true', 'false' or a number of boolean value");
        }
    } else {
        in.unget();
        in >> arg;
    }
}

void pretty_print(IndentStream& out, detail::string_view_ref arg)
{
    static const detail::string_view ctrls("\\\"\n\r\t\0", 6);

    out << '"';
    for (detail::string_view::size_type pos = 0, end = 0;; pos = end + 1) {
        end = arg.find_first_of(ctrls, pos);
        if (end == detail::string_view::npos) {
            out << arg.substr(pos);
            break;
        }
        out << arg.substr(pos, end - pos) << '\\';
        switch (arg[end]) {
            case '\n': out << 'n'; break;
            case '\r': out << 'r'; break;
            case '\t': out << 't'; break;
            case '\0': out << '0'; break;
            default: out << arg[end]; break;
        }
    }
    out << '"';
}

void pretty_print(IndentStream& out, const bool& arg)
{
    out << (arg ? "true" : "false");
}

}  // namespace fifr::util

Added 3rdparty/util/src/fifr/util/Pretty.hxx.

































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
/*
 * Copyright (c) 2018-2019, 2023 Frank Fischer <frank-fischer@shadow-soft.de>
 *
 * This program is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see  <http://www.gnu.org/licenses/>
 */

#ifndef FIFR_UTIL_PRETTY_HXX
#define FIFR_UTIL_PRETTY_HXX

#include "IndentStream.hxx"

#include <cassert>
#include <istream>
#include <limits>
#include <map>
#include <memory>
#include <stdexcept>
#include <unordered_map>
#include <vector>

#ifdef __cpp_lib_optional
#    include <optional>
#endif

namespace fifr {
namespace util {
namespace detail {
#ifdef __cpp_lib_string_view
using string_view = std::string_view;
using string_view_ref = std::string_view;
#else
using string_view = std::string;
using string_view_ref = const std::string&;
#endif
}  // namespace detail

/// Error when reading data from an input stream.
class ReadError : public std::runtime_error
{
public:
    explicit ReadError(const std::string& msg) : std::runtime_error(msg) {}
};

void pretty_print(IndentStream& out, detail::string_view_ref arg);

inline void pretty_print(IndentStream& out, const char* arg)
{
    pretty_print(out, detail::string_view{arg});
}

#ifdef __cpp_lib_string_view
inline void pretty_print(IndentStream& out, const std::string& arg)
{
    pretty_print(out, std::string_view{arg});
}
#endif

void pretty_print(IndentStream& out, const bool& arg);

template <typename Arg>
void pretty_print(IndentStream& out, const Arg& arg)
{
#ifdef __cpp_if_constexpr
    if constexpr (std::is_integral<Arg>::value) {  // NOLINT
        if (arg == std::numeric_limits<Arg>::max()) {
            out << "max";
        } else if (std::is_signed<Arg>::value && arg == std::numeric_limits<Arg>::lowest()) {
            out << "min";
        } else {
            out << arg;
        }
        return;
    }
#endif
    out << arg;
}

template <typename Arg>
void pretty_print(IndentStream& out, const std::unique_ptr<Arg>& arg)
{
    pretty_print(out, *arg);
}

template <typename... Arg>
void pretty_print_tuple(IndentStream&, const std::tuple<Arg...>&, bool, std::index_sequence<>)
{
}

template <typename... Arg, std::size_t I, std::size_t... Is>
void pretty_print_tuple(IndentStream& out, const std::tuple<Arg...>& arg, bool multiline, std::index_sequence<I, Is...>)
{
    if (!multiline) {
        if (I > 0) {
            out << ", ";
        }
        pretty_print(out, std::get<I>(arg));
    } else {
        out.increase();
        out << '\n';
        pretty_print(out, std::get<I>(arg));
        out.decrease();
        out << ',';
    }
    pretty_print_tuple(out, arg, multiline, std::index_sequence<Is...>{});
}

template <typename... Arg>
void pretty_print(IndentStream& out, const std::tuple<Arg...>& arg, bool multiline = false)
{
    out << '(';
    pretty_print_tuple(out, arg, multiline, std::index_sequence_for<Arg...>{});
    if (!multiline) {
        out << ')';
    } else {
        out << "\n)";
    }
}

template <typename Arg1, typename Arg2>
void pretty_print(IndentStream& out, const std::pair<Arg1, Arg2>& arg, bool multiline = false)
{
    pretty_print(out, std::tuple<Arg1, Arg2>(arg), multiline);
}

template <typename Arg>
void pretty_print(IndentStream& out, const std::vector<Arg>& arg, bool multiline = false);

template <typename Arg, std::size_t N>
void pretty_print(IndentStream& out, const std::array<Arg, N>& arg, bool multiline = false)
{
    pretty_print(out, std::vector<Arg>(arg.begin(), arg.end()), multiline);
}

template <typename Arg>
void pretty_print(IndentStream& out, const std::vector<Arg>& arg, bool multiline)
{
    if (!multiline) {
        out << '[';
        for (std::size_t i = 0; i < arg.size(); i++) {
            if (i > 0) {
                {
                    out << ", ";
                }
            }
            pretty_print(out, arg[i]);
        }
        out << ']';
    } else {
        out << '[';
        for (auto it = arg.begin(), it_end = arg.end(); it != it_end; ++it) {
            out.increase();
            out << '\n';
            pretty_print(out, *it);
            out.decrease();
            out << ',';
        }
        out << "\n]";
    }
}

template <typename Map>
void pretty_print_map(IndentStream& out, const Map& arg, bool multiline)
{
    if (!multiline) {
        out << '{';
        bool first = true;
        for (auto& it : arg) {
            if (!first) {
                {
                    out << ", ";
                }
            } else {
                {
                    first = false;
                }
            }
            pretty_print(out, it.first);
            out << ": ";
            pretty_print(out, it.second);
        }
        out << '}';
    } else {
        out << '{';
        for (auto& it : arg) {
            out.increase();
            out << '\n';
            pretty_print(out, it.first);
            out << ": ";
            pretty_print(out, it.second);
            out << ',';
            out.decrease();
        }
        out << "\n}";
    }
}

template <typename K, typename V>
void pretty_print(IndentStream& out, const std::map<K, V>& arg, bool multiline = false)
{
    pretty_print_map(out, arg, multiline);
}

template <typename K, typename V>
void pretty_print(IndentStream& out, const std::unordered_map<K, V>& arg, bool multiline = false)
{
    pretty_print_map(out, arg, multiline);
}

template <typename Arg>
void pretty_print(IndentStream& out, const Arg& arg, bool)
{
    pretty_print(out, arg);
}

#ifdef __cpp_lib_optional
template <typename Arg>
void pretty_print(IndentStream& out, const std::optional<Arg>& arg, bool multiline = false)
{
    if (arg) {
        pretty_print(out, *arg, multiline);
    } else {
        out << "∅";
    }
}
#endif

void pretty_read(std::istream& in, bool& arg);

template <typename Arg>
void pretty_read(std::istream& in, Arg& arg)
{
    in >> std::ws;
#ifdef __cpp_if_constexpr
    if constexpr (std::is_integral<Arg>::value) {  // NOLINT
        if (in.get() == 'm') {
            auto ch = in.get();
            if (ch == 'a' && in.get() == 'x' && !std::isalnum(in.get())) {
                arg = std::numeric_limits<Arg>::max();
            } else if (ch == 'i' && in.get() == 'n' && !std::isalnum(in.get())) {
                arg = std::numeric_limits<Arg>::lowest();
            } else {
                throw ReadError("Expected 'max', 'min', '-' or a digit for integral value");
            }
            in.unget();
        } else {
            in.unget();
            in >> arg;
        }
        return;
    }

    if constexpr (std::is_floating_point<Arg>::value) {  // NOLINT
        auto ch = in.get();
        if (ch == 'i') {
            if (in.get() == 'n' && in.get() == 'f' && !std::isalnum(in.get())) {
                arg = std::numeric_limits<Arg>::infinity();
            } else {
                throw ReadError("Expected 'inf', '-inf' or a floating point value");
            }
            in.unget();
        } else if (ch == '-') {
            pretty_read(in, arg);
            arg = -arg;
        } else {
            in.unget();
            in >> arg;
        }
        return;
    }
#endif
    in >> arg;
}

template <typename Arg>
void pretty_read(std::istream& in, std::unique_ptr<Arg>& arg)
{
    arg.reset(new Arg());
    pretty_read(in, *arg);
}

void pretty_read(std::istream& in, std::string& arg);

template <typename... Arg>
void pretty_read_tuple(std::istream& in, std::tuple<Arg...>&, std::index_sequence<>)
{
    in >> std::ws;
    if (in.get() == ',') {
        in >> std::ws;
    } else {
        in.unget();
    }
    if (in.get() != ')') {
        throw ReadError("Expected ')' character at the end of a tuple");
    }
}

template <typename... Arg, std::size_t I, std::size_t... Is>
void pretty_read_tuple(std::istream& in, std::tuple<Arg...>& arg, std::index_sequence<I, Is...>)
{
    if (I != 0) {
        in >> std::ws;
        if (in.get() != ',') {
            throw ReadError("Expected ',' character between tuple elements");
        }
    }
    in >> std::ws;
    pretty_read(in, std::get<I>(arg));
    pretty_read_tuple(in, arg, std::index_sequence<Is...>{});
}

template <typename... Arg>
void pretty_read(std::istream& in, std::tuple<Arg...>& arg)
{
    in >> std::ws;
    if (in.get() != '(') {
        throw ReadError("Expected '(' character for tuple value");
    }

    pretty_read_tuple(in, arg, std::index_sequence_for<Arg...>{});
}

template <typename Arg1, typename Arg2>
void pretty_read(std::istream& in, std::pair<Arg1, Arg2>& arg)
{
    std::tuple<Arg1, Arg2> x;
    pretty_read(in, x);
    arg.first = std::move(std::get<0>(x));
    arg.second = std::move(std::get<1>(x));
}

template <typename Arg>
void pretty_read(std::istream& in, std::vector<Arg>& arg);

template <typename Arg, std::size_t N>
void pretty_read(std::istream& in, std::array<Arg, N>& arg)
{
    std::vector<Arg> x;
    pretty_read(in, x);
    if (x.size() != N) {
        throw ReadError("Expected array of exactly " + std::to_string(N) +
                        " elements (got: " + std::to_string(x.size()) + ")");
    }
    std::move(x.begin(), x.end(), arg.begin());
}

template <typename Arg>
void pretty_read(std::istream& in, std::vector<Arg>& arg)
{
    arg.clear();
    if (in.get() != '[') {
        throw ReadError("Expected '[' character for array value");
    }

    in >> std::ws;
    if (in.get() == ']') {
        return;  // empty array
    }
    in.unget();

    in >> std::ws;
    for (;;) {
        Arg a;
        pretty_read(in, a);
        arg.push_back(std::move(a));

        in >> std::ws;
        auto c = in.get();
        if (c != ',' && c != ']') {
            throw ReadError("Expected ',' or ']' character after array element");
        }
        if (c == ',') {
            in >> std::ws;
            c = in.get();
        }
        if (c == ']') {
            break;
        }
        in.unget();
    }
}

template <typename Map>
void pretty_read_map(std::istream& in, Map& arg)
{
    arg.clear();
    if (in.get() != '{') {
        throw ReadError("Expected '{' character for map value");
    }

    in >> std::ws;
    if (in.get() == '}') {
        return;  // empty map
    }
    in.unget();

    in >> std::ws;
    for (;;) {
        typename Map::key_type key;
        pretty_read(in, key);

        in >> std::ws;
        if (in.get() != ':') {
            throw ReadError("Expected ':' character after key in map");
        }
        in >> std::ws;

        typename Map::mapped_type value;
        pretty_read(in, value);

        arg.insert({std::move(key), std::move(value)});

        in >> std::ws;
        auto c = in.get();
        if (c != ',' && c != '}') {
            throw ReadError("Expected ',' or '}' character after value in map");
        }
        if (c == ',') {
            in >> std::ws;
            c = in.get();
        }
        if (c == '}') {
            break;
        }
        in.unget();
    }
}

template <typename K, typename V>
void pretty_read(std::istream& in, std::map<K, V>& arg)
{
    pretty_read_map(in, arg);
}

template <typename K, typename V>
void pretty_read(std::istream& in, std::unordered_map<K, V>& arg)
{
    pretty_read_map(in, arg);
}

#ifdef __cpp_lib_optional
template <typename Arg>
void pretty_read(std::istream& in, std::optional<Arg>& arg)
{
    in >> std::ws;

    const char bytes[] = "∅";
    for (const char* b = bytes; *b != 0; ++b) {
        auto ch = in.get();
        if (ch != static_cast<uint8_t>(*b)) {
            in.unget();
            if (b != bytes) {
                throw ReadError("Expected ∅ or content for optional");
            }
            Arg x;
            pretty_read(in, x);
            arg = std::move(x);
            return;
        }
    }
    arg = {};
}
#endif

/// Pretty printing tag.
template <typename T>
struct Pretty {
    T value;
    bool multiline;
};

/// This function uses SimpleStructIO functions to pretty print a plain value.
template <typename T>
Pretty<T> pretty(T&& arg, bool multiline = false)
{
    return {std::forward<T>(arg), multiline};
}

template <typename T>
std::ostream& operator<<(std::ostream& out, const Pretty<T>& pretty)
{
    IndentStream iout(out);
    pretty_print(iout, pretty.value, pretty.multiline);
    return out;
}

template <typename T>
std::istream& operator>>(std::istream& in, Pretty<T&> pretty)
{
    pretty_read(in, pretty.value);
    return in;
}

}  // namespace util
}  // namespace fifr

#ifdef __cpp_lib_format
#    include <format>
#    include <sstream>

template <typename T, class CharT>
struct std::formatter<fifr::util::Pretty<T>, CharT> {
    bool multiline = false;

    template <class ParseContext>
    constexpr ParseContext::iterator parse(ParseContext& ctx)
    {
        auto it = ctx.begin();
        if (it == ctx.end()) return it;

        if (*it == '#') {
            multiline = true;
            ++it;
        }
        if (it != ctx.end() && *it != '}') throw std::format_error("Invalid format args for Pretty.");

        return it;
    }

    template <class FmtContext>
    FmtContext::iterator format(fifr::util::Pretty<T> s, FmtContext& ctx) const
    {
        std::ostringstream out;
        if (multiline) {
            s.multiline = true;
        }
        out << s;
        return std::ranges::copy(std::move(out).str(), ctx.out()).out;
    }
};

#endif

#endif

Added 3rdparty/util/src/fifr/util/PrettyStruct.cxx.





































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
/*
 * Copyright (c) 2018-2021 Frank Fischer <frank-fischer@shadow-soft.de>
 *
 * This program is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see  <http://www.gnu.org/licenses/>
 */

#include "PrettyStruct.hxx"

#include "Pretty.hxx"
#include "Range.hxx"

#include <cctype>
#include <istream>
#include <string>
#include <string_view>

namespace fifr::util::intern {

namespace {
template <typename S>
void pretty_read_struct_name_generic(std::istream& in, const S& name)
{
    in >> std::ws;
    for (auto pos : range(name.size())) {
        const int c = in.get();
        if (c == std::char_traits<char>::eof()) {
            throw ReadError("Unexpected eof when reading struct name");
        }
        if (name[pos] != c) {
            throw ReadError("Invalid struct name, expected '" + std::string(name) + "' got: '" +
                            std::string(name.substr(0, pos)) + std::string(1, static_cast<char>(c)) + "'");
        }
    }
}
}  // namespace

#ifdef __cpp_lib_string_view
void pretty_read_struct_name(std::istream& in, std::string_view name)
{
    pretty_read_struct_name_generic(in, name);
}
#endif

void pretty_read_struct_name(std::istream& in, const std::string& name)
{
    pretty_read_struct_name_generic(in, name);
}

void pretty_read_struct_field_name(std::istream& in, std::string& param)
{
    param.clear();
    in >> std::ws;

    for (auto c = in.get(); (std::isalnum(c) != 0) || c == '_'; c = in.get()) {
        param.push_back(std::char_traits<char>::to_char_type(c));
    }

    in.unget();
    in >> std::ws;
    auto c = in.get();

    if (c == std::char_traits<char>::eof()) {
        throw ReadError("Unexpected eof after field name, expected ':'");
    }
    if (c != ':') {
        throw ReadError("Unexpected character after field name, expected ':', got: '" +
                        std::string(1, std::char_traits<char>::to_char_type(c)) + "'");
    }
}

}  // namespace fifr::util::intern

Added 3rdparty/util/src/fifr/util/PrettyStruct.hxx.

















































































































































































































































































































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
/*
 * Copyright (c) 2018-2021, 2023 Frank Fischer <frank-fischer@shadow-soft.de>
 *
 * This program is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see  <http://www.gnu.org/licenses/>
 */

#ifndef FIFR_UTIL_PRETTYSTRUCT_HXX
#define FIFR_UTIL_PRETTYSTRUCT_HXX

#include "IndentStream.hxx"
#include "Pretty.hxx"

#include <array>
#include <cassert>

namespace fifr {
namespace util {
/// Marker that an argument should be written in multiline style.
template <typename T>
struct MultiLine {
    const T& value;
};

/// Mark an argument to be written in multiline style.
template <typename T>
MultiLine<T> multiline(const T& x)
{
    return MultiLine<T>{x};
}

template <typename T>
void pretty_print(IndentStream& out, const MultiLine<T>& arg)
{
    pretty_print(out, arg.value, true);
}

namespace intern {
void pretty_read_struct_name(std::istream& in, detail::string_view_ref name);
void pretty_read_struct_field_name(std::istream& in, std::string& param);

template <std::size_t N>
void pretty_read_struct_check_missing(std::array<bool, N>&)
{
}

template <std::size_t I = 0, std::size_t N, typename Arg, typename... Args>
void pretty_read_struct_check_missing(std::array<bool, N>& seen, detail::string_view_ref param, Arg&, Args&&... args)
{
    if (!seen[I]) {
        throw ReadError("Missing field: " + std::string(param));
    }
    pretty_read_struct_check_missing<I + 1>(seen, std::forward<Args>(args)...);  // NOLINT
}

template <std::size_t N>
void pretty_read_struct_field(std::istream&, detail::string_view_ref name, std::array<bool, N>&)
{
    throw ReadError("Unknown struct field: " + std::string(name));
}

template <std::size_t I = 0, std::size_t N, typename Arg, typename... Args>
void pretty_read_struct_field(std::istream& in,
                              detail::string_view_ref name,
                              std::array<bool, N>& seen,
                              detail::string_view_ref field,
                              Arg& arg,
                              Args&&... args)
{
    if (name == field) {
        if (seen[I]) {
            throw ReadError("Duplicate field " + std::string(name));
        }
        seen[I] = true;
        in >> std::ws;
        try {
            pretty_read(in, arg);
        } catch (std::istream::failure& fail) {
            throw ReadError("Cannot extract value for field " + std::string(name) + "(" + fail.what() + ")");
        }
    } else {
        pretty_read_struct_field<I + 1>(in, name, seen, std::forward<Args>(args)...);  // NOLINT
    }
}

template <typename... Args>
void pretty_read_struct(std::istream& in, bool fields_required, detail::string_view_ref name, Args&&... args)
{
    assert(!name.empty());

    auto exception_flags = in.exceptions();
    in.exceptions(std::istream::failbit);

    static constexpr auto size = std::tuple_size<std::tuple<Args...>>::value;
    static_assert(size % 2 == 0, "Even number of field/value parameters is required");
    std::array<bool, size / 2> seen = {};

    try {
        intern::pretty_read_struct_name(in, name);

        in >> std::ws;
        if (in.get() != '[') {
            throw ReadError("Unexpected character after struct name " + std::string(name) + ", expected '['");
        }

        std::string param;
        in >> std::ws;
        while (true) {
            intern::pretty_read_struct_field_name(in, param);
            intern::pretty_read_struct_field(in, param, seen, args...);  // NOLINT

            in >> std::ws;

            auto c = in.get();
            if (c == std::char_traits<char>::eof()) {
                throw ReadError("Unexpected eof after field, expected ',' or ']'");
            }
            if (c != ']' && c != ',') {
                throw ReadError("Unexpected character after field, expected ',' or ']', got: '" +
                                std::string(1, std::char_traits<char>::to_char_type(c)) + "'");
            }
            if (c == ',') {
                in >> std::ws;
                c = in.get();
            }
            if (c == ']') {
                break;
            }
            in.unget();
        }

        if (fields_required) {
            intern::pretty_read_struct_check_missing(seen, std::forward<Args>(args)...);  // NOLINT
        }
    } catch (std::istream::failure& fail) {
        in.exceptions(exception_flags);
        throw ReadError("Error reading the struct: " + std::string(fail.what()));
    } catch (...) {
        in.exceptions(exception_flags);
        throw;
    }
}

}  // namespace intern

/// Read a struct from a simple formatted string representation.
///
/// The string must be of the form
///
///     MyStruct[a:1, b:2, c:3]
///
/// where `MyStruct` is an arbitrary identifier (name of the struct) and
/// `a`, `b` and `c` are the names of the fields. The struct is deserialized using
///
///     int a;
///     unsigned b;
///     double c;
///
///     pretty_read_struct(in, "MyStruct", "a", a, "b", b, "c", c);
///
/// If an error occurs, the exception `ReadError` is thrown.
/// All fields are required and *must* be specified.
template <typename... Args>
void pretty_read_struct(std::istream& in, detail::string_view_ref name, Args&&... args)
{
    intern::pretty_read_struct(in, true, name, std::forward<Args>(args)...);
}

/// Read a struct from a simple formatted string representation.
///
/// The string must be of the form
///
///     MyStruct[a:1, b:2, c:3]
///
/// where `MyStruct` is an arbitrary identifier (name of the struct) and
/// `a`, `b` and `c` are the names of the fields. The struct is deserialized using
///
///     int a;
///     unsigned b;
///     double c;
///
///     pretty_read_struct(in, "MyStruct", "a", a, "b", b, "c", c);
///
/// If an error occurs, the exception `ReadError` is thrown.
/// Fields that are not present in the string will not be modified.
template <typename... Args>
void pretty_read_struct_optional(std::istream& in, detail::string_view_ref name, Args&&... args)
{
    intern::pretty_read_struct(in, false, name, std::forward<Args>(args)...);
}

namespace intern {
template <bool first, bool multiline>
void pretty_print_struct_field(IndentStream&)
{
}

template <bool first = true, bool multiline = false, typename Arg, typename... Args>
void pretty_print_struct_field(IndentStream& out, detail::string_view_ref field, const Arg& arg, const Args&... args)
{
    if (!multiline) {
        if (!first) {
            out << ", ";
        }
    } else {
        out << '\n';
    }
    out << field << ": ";
    pretty_print(out, arg);  // NOLINT
    if (multiline) {
        out << ',';
    }

    pretty_print_struct_field<false, multiline>(out, args...);  // NOLINT
}
}  // namespace intern

/// Write a struct to a simple formatted string representation.
///
/// The string will be of the form, everything on a single line
///
///     MyStruct[a:1, b:2, c:3]
///
/// where `MyStruct` is an arbitrary identifier (name of the struct) and
/// `a`, `b` and `c` are the names of the fields. The struct is serialized using
///
///     pretty_print_struct(in, "MyStruct", "a", 1, "b", 2, "c", 3);
template <typename... Args>
void pretty_print_struct(std::ostream& out, detail::string_view_ref name, const Args&... args)
{
    IndentStream wout(out);
    wout << name << '[';
    wout.increase();
    intern::pretty_print_struct_field<true, false>(wout, args...);  // NOLINT
    wout.decrease();
    wout << ']';
}

/// Pretty print a struct in multiline layout
template <typename... Args>
void pretty_print_struct_multiline(std::ostream& out, detail::string_view_ref name, const Args&... args)
{
    IndentStream wout(out);
    wout << name << '[';
    wout.increase();
    intern::pretty_print_struct_field<true, true>(wout, args...);  // NOLINT
    wout << '\n';
    wout.decrease();
    wout << ']';
}
}  // namespace util
}  // namespace fifr

#endif

Added 3rdparty/util/src/fifr/util/Range.hxx.



































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
/*
 * Copyright (c) 2015-2024 Frank Fischer <frank-fischer@shadow-soft.de>
 *
 * This program is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see  <http://www.gnu.org/licenses/>
 */

#ifndef FIFR_UTIL_RANGE_HXX
#define FIFR_UTIL_RANGE_HXX

#include "Convert.hxx"

#include <iterator>
#include <type_traits>
#include <vector>

#ifdef __cpp_lib_ranges
#    include <concepts>
#    include <ranges>
#endif

namespace fifr {
namespace util {
#ifdef __cpp_lib_ranges

template <typename A, typename B>
auto range(A&& begin, B&& end)
{
    using T = std::common_type<A, B>::type;
    return std::ranges::iota_view<T, T>(std::forward<A>(begin), std::forward<B>(end));
}

template <typename T>
auto range(T&& end)
{
    return range(std::remove_reference_t<T>{}, std::forward<T>(end));
}

template <typename A, typename B, typename S>
    requires std::integral<S>
auto range(A&& begin, B&& end, const S& step)
{
#    if __cpp_lib_ranges_stride
    return range(std::forward<A>(begin), std::forward<B>(end)) | std::views::stride(step);
#    else
    using T = std::common_type_t<A, B>;
    auto s = static_cast<T>(static_cast<std::make_unsigned_t<S>>(step));
    auto n = static_cast<T>(end) - static_cast<T>(begin);
    auto e = (n / s) + (s % n ? 1 : 0);
    return range(T{}, std::move(e)) | std::views::transform([begin, s](auto i) { return begin + i * s; });
#    endif
}

auto indices(const std::ranges::input_range auto& rng)
{
    size_t i = 0;
    return rng | std::views::transform([i](auto) mutable { return i++; });
}

#    if __cpp_lib_ranges_enumerate
using std::views::enumerate;
#    else
auto enumerate(const std::ranges::range auto& rng)
{
    size_t i = 0;
    return rng | std::views::transform([i](auto&& x) mutable { return std::pair{i++, std::forward<decltype(x)>(x)}; });
}
#    endif

#else
#    if __cpp_deduction_guides

template <typename T, typename S>
struct range {
    range(T begin, T end, S step) : begin_(std::move(begin)), end_(std::move(end)), step_(std::move(step)) {}

    range(T begin, T end) : begin_(std::move(begin)), end_(std::move(end)), step_() {}

    explicit range(T end) : begin_(), end_(std::move(end)), step_() {}

    struct iterator;

    struct end_iterator {
        friend struct iterator;

        using difference_type = decltype(std::declval<T>() - std::declval<T>());
        using pointer = void;
        using value_type = T;
        using reference = const value_type&;
        using iterator_category = std::random_access_iterator_tag;

        end_iterator() : end_() {}

        explicit end_iterator(T end) : end_(std::move(end)) {}

        reference operator*() const { return end_; }

        bool operator==(const end_iterator&) const { return true; }

        bool operator==(const iterator& other) const { return other == *this; }

    private:
        T end_;
    };

    struct iterator {
        using difference_type = decltype(std::declval<T>() - std::declval<T>());
        using pointer = void;
        using value_type = T;
        using reference = const value_type&;
        using iterator_category = std::random_access_iterator_tag;

        iterator(value_type x, S step) : current_(std::move(x)), step_(std::move(step)) {}

        reference operator*() const { return current_; }

        iterator& operator++()
        {
            current_ += step_;
            return *this;
        }

        const iterator operator++(int)
        {
            auto copy = *this;
            ++*this;
            return copy;
        }

        iterator& operator+=(difference_type n)
        {
            current_ += n * step_;
            return *this;
        }

        iterator operator+(difference_type n) const
        {
            auto copy = *this;
            copy += n;
            return copy;
        }

        friend iterator operator+(difference_type n, const iterator& it) { return it + n; }

        iterator& operator--()
        {
            current_ -= step_;
            return *this;
        }

        const iterator operator--(int)
        {
            auto copy = *this;
            --*this;
            return copy;
        }

        iterator& operator-=(difference_type n)
        {
            current_ -= n * step_;
            return *this;
        }

        iterator operator-(difference_type n) const
        {
            auto copy = *this;
            copy -= n;
            return copy;
        }

        difference_type operator-(const iterator& other) const { return current_ - other.current_; }

        reference operator[](difference_type n) const { return *(*this + n); }

        bool operator==(const iterator& other) const { return current_ == other.current_; }

        bool operator!=(const iterator& other) const { return !(*this == other); }

        bool operator<(const iterator& other) const { return current_ < other.current_; }

        bool operator<=(const iterator& other) const { return current_ <= other.current_; }

        bool operator>=(const iterator& other) const { return current_ >= other.current_; }

        bool operator>(const iterator& other) const { return current_ > other.current_; }

        bool operator==(const end_iterator& other) const { return current_ >= other.end_; }

        bool operator!=(const end_iterator& other) const { return !(*this == other); }

    private:
        value_type current_;
        S step_;
    };

    [[nodiscard]] iterator begin() const { return iterator(begin_, step_); }

    [[nodiscard]] end_iterator end() const { return end_iterator(end_); }

private:
    T begin_;
    T end_;
    S step_;
};

struct OneStep {
    template <typename T>
    friend T& operator+=(T& x, OneStep)
    {
        return ++x;
    }
};

template <typename T>
range(T end) -> range<T, OneStep>;

template <typename A, typename B>
range(A begin, B end) -> range<typename std::common_type<A, B>::type, OneStep>;

template <typename A, typename B, typename C>
range(A begin, B end, C step) -> range<typename std::common_type<A, B>::type, C>;

template <typename T>
using range_proxy = range<T, OneStep>;

#    else  // C++ 14

namespace detail {
template <typename T>
struct range_iter_base : std::iterator<std::random_access_iterator_tag, T, std::ptrdiff_t, const T*, const T&> {
    using super_type = std::iterator<std::random_access_iterator_tag, T, std::ptrdiff_t, const T*, const T&>;

    using typename super_type::difference_type;
    using typename super_type::pointer;
    using typename super_type::reference;

    explicit range_iter_base(T lcurrent) : current(lcurrent) {}

    reference operator*() const { return current; }

    pointer operator->() const { return &current; }

    range_iter_base& operator++()
    {
        ++current;
        return *this;
    }

    range_iter_base operator++(int)
    {
        auto copy = *this;
        ++*this;
        return copy;
    }

    range_iter_base& operator+=(difference_type n)
    {
        current += n;
        return *this;
    }

    range_iter_base operator+(difference_type n) const
    {
        auto copy = *this;
        copy += n;
        return copy;
    }

    friend range_iter_base operator+(difference_type n, const range_iter_base& it) { return it + n; }

    range_iter_base& operator--()
    {
        --current;
        return *this;
    }

    range_iter_base operator--(int)
    {
        auto copy = *this;
        --*this;
        return copy;
    }

    range_iter_base& operator-=(difference_type n)
    {
        current -= n;
        return *this;
    }

    range_iter_base operator-(difference_type n) const
    {
        auto copy = *this;
        copy -= n;
        return copy;
    }

    difference_type operator-(const range_iter_base& other) const { return current - other.current; }

    reference operator[](difference_type n) const { return *(*this + n); }

    bool operator==(const range_iter_base& other) const { return current == other.current; }

    bool operator!=(const range_iter_base& other) const { return !(*this == other); }

    bool operator<(const range_iter_base& other) const { return current < other.current; }

    bool operator<=(const range_iter_base& other) const { return current <= other.current; }

    bool operator>=(const range_iter_base& other) const { return current >= other.current; }

    bool operator>(const range_iter_base& other) const { return current > other.current; }

protected:
    T current;
};

}  // namespace detail

template <typename T>
struct range_proxy {
    /// \internal
    struct iter : detail::range_iter_base<T> {
        explicit iter(T lcurrent) : detail::range_iter_base<T>(lcurrent) {}
    };

    /// \internal
    struct step_range_proxy {
        struct iter : detail::range_iter_base<T> {
            iter(T lcurrent, T lstep) : detail::range_iter_base<T>(lcurrent), step(lstep) {}

            using detail::range_iter_base<T>::current;

            iter& operator++()
            {
                current += step;
                return *this;
            }

            iter operator++(int)
            {
                auto copy = *this;
                ++*this;
                return copy;
            }

            // Loses commutativity. Iterator-based ranges are simply broken. :-(
            bool operator==(iter const& other) const
            {
                return step > 0 ? current >= other.current : current < other.current;
            }

            bool operator!=(iter const& other) const { return !(*this == other); }

        private:
            T step;
        };

        step_range_proxy(T lbegin, T lend, T lstep) : begin_(lbegin, lstep), end_(lend, lstep) {}

        iter begin() const { return begin_; }

        iter end() const { return end_; }

    private:
        iter begin_;
        iter end_;
    };

    range_proxy(T lbegin, T lend) : begin_(lbegin), end_(lend) { assert(lbegin <= lend); }

    step_range_proxy step(T lstep) { return {*begin_, *end_, lstep}; }

    iter begin() const { return begin_; }

    iter end() const { return end_; }

private:
    iter begin_;
    iter end_;

public:
    auto size() const -> decltype(end_ - begin_) { return end_ - begin_; }
};

/// Return range over [begin,end).
template <typename T>
range_proxy<T> range(T begin, T end)
{
    return {begin, end};
}

/// Return range over [0,end)
template <typename T>
range_proxy<T> range(T end)
{
    return {0, end};
}

/// Return range over [begin, begin+step, ..., end).
template <typename T>
typename range_proxy<T>::step_range_proxy range(T begin, T end, T step)
{
    return range(begin, end).step(step);
}

#    endif

namespace traits {
/// \internal
template <typename C>
struct has_size {
    template <typename T>
    static constexpr auto check(T*) -> typename std::is_integral<decltype(std::declval<T const>().size())>::type
    {
        return std::true_type();
    }

    template <typename>
    static constexpr auto check(...) -> std::false_type;

    using type = decltype(check<C>(nullptr));
    static constexpr bool value = type::value;
};

}  // namespace traits

/**
 * Return range over the valid indices of a container.
 *
 * This requires the container to implement a `size()` method.
 */
template <typename C, typename = typename std::enable_if<traits::has_size<C>::value>>
auto indices(C const& cont) -> range_proxy<decltype(cont.size())>
{
    return {0, cont.size()};
}

/**
 * Return range over the valid indices of a fixed size array.
 */
template <typename T, std::size_t N>
range_proxy<std::size_t> indices(T (&)[N])
{
    return {0, N};
}

/**
 * Return range over the valid indices of an initializer list.
 */
template <typename T>
range_proxy<typename std::initializer_list<T>::size_type> indices(const std::initializer_list<T>& cont)
{
    return {0, cont.size()};
}

/// Range covering all elements.
struct all_range {
};

constexpr all_range all{};

/// Beginning of an all-range.
template <typename Size>
Size range_begin(all_range, Size)
{
    return 0;
}

/// End of an all-range.
template <typename Size>
Size range_end(all_range, Size n)
{
    return n;
}

/// Size of an all-range.
template <typename Size>
Size range_size(all_range, Size n)
{
    return n;
}

/// Begin of a single value range.
template <typename T, typename Size, typename std::enable_if<std::is_integral<T>::value>::type* = nullptr>
Size range_begin(T i, Size)
{
    return i;
}

/// Begin of a single value range.
template <typename T, typename Size, typename std::enable_if<std::is_integral<T>::value>::type* = nullptr>
Size range_end(T i, Size)
{
    return i + 1;
}

/// Size of a single value range.
template <typename T, typename Size, typename std::enable_if<std::is_integral<T>::value>::type* = nullptr>
Size range_size(T, Size)
{
    return 1;
}

/// Begin of a regular index range.
template <typename T, typename Size>
Size range_begin(const range_proxy<T>& rng, Size)
{
    return *rng.begin();
}

/// End of a regular index range.
template <typename T, typename Size>
Size range_end(const range_proxy<T>& rng, Size)
{
    return *rng.end();
}

/// Size of a regular index range.
template <typename T, typename Size>
Size range_size(const range_proxy<T>& rng, Size)
{
    return rng.end() - rng.begin();
}
#endif

/// Proxy providing access to some iterators.
template <typename It_>
class IteratorProxy
{
public:
    using iterator = It_;
    using value_type = typename iterator::value_type;

public:
    IteratorProxy(iterator&& start, iterator&& end) : start_(std::move(start)), end_(std::move(end)) {}

    IteratorProxy(const IteratorProxy&) = delete;

    IteratorProxy(IteratorProxy&&) = delete;

    void operator=(const IteratorProxy&) = delete;

    void operator=(IteratorProxy&&) = delete;

    ~IteratorProxy() = default;

    [[nodiscard]] iterator begin() const { return start_; }

    [[nodiscard]] iterator end() const { return end_; }

    template <typename T>
    explicit operator std::vector<T>() const&
    {
        std::vector<T> result;
        for (auto it : *this) {
            result.push_back(convert<T>(it));
        }
        return result;
    }

    template <typename T>
    explicit operator std::vector<T>() &&
    {
        std::vector<T> result;
        for (auto&& val : *this) {
            result.push_back(convert<T>(std::move(val)));
        }
        return result;
    }

    [[nodiscard]] std::vector<value_type> collect() const& { return {start_, end_}; }

    [[nodiscard]] std::vector<value_type> collect() && { return {std::move(start_), std::move(end_)}; }

private:
    iterator start_;
    iterator end_;
};

}  // namespace util
}  // namespace fifr

#endif  // __FIFR_UTIL_RANGE_HXX__

Added 3rdparty/util/src/fifr/util/Scan.cxx.





























































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
 * Copyright (c) 2017 Frank Fischer <frank-fischer@shadow-soft.de>
 *
 * This program is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see  <http://www.gnu.org/licenses/>
 */

#include "Scan.hxx"

#include "Range.hxx"

#include <regex>
#include <string>

namespace fifr::util {
IteratorProxy<std::sregex_iterator> scan_matches(const std::string& str, const std::regex& re)
{
    return {std::sregex_iterator(str.begin(), str.end(), re), std::sregex_iterator()};
}
}  // namespace fifr::util

Added 3rdparty/util/src/fifr/util/Scan.hxx.

















































































































































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
/*
 * Copyright (c) 2017, 2023 Frank Fischer <frank-fischer@shadow-soft.de>
 *
 * This program is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see  <http://www.gnu.org/licenses/>
 */

#ifndef FIFR_UTIL_SCAN_HXX
#define FIFR_UTIL_SCAN_HXX

#include "AutoTuple.hxx"
#include "Convert.hxx"
#include "Range.hxx"

#include <regex>

namespace fifr {
namespace util {
/// Iterator for matches of a scan operation.
///
/// Elements of this operator are the submatches converted to types
/// Args and returned as a tuple.
template <typename... Args>
class ScanIterator
{
public:
    using difference_type = typename std::sregex_iterator::difference_type;
    using value_type = typename AutoTuple<Args...>::type;
    using pointer = const value_type*;
    using reference = const value_type&;
    using iterator_category = std::forward_iterator_tag;

public:
    explicit ScanIterator(const std::sregex_iterator& it) : it_(it) {}

    value_type operator*() const
    {
        static constexpr auto size = std::tuple_size<std::tuple<Args...>>::value;
        return get_matches(*it_, std::make_index_sequence<size>{});
    }

    ScanIterator& operator++()
    {
        ++it_;
        return *this;
    }

    const ScanIterator operator++(int)
    {
        auto copy = *this;
        ++*this;
        return copy;
    }

    bool operator==(const ScanIterator& other) const { return it_ == other.it_; }

    bool operator!=(const ScanIterator& other) const { return it_ != other.it_; }

private:
    template <size_t... I>
    static value_type get_matches(const std::sregex_iterator::value_type& m, std::index_sequence<I...>)
    {
        return make_auto_tuple(convert<Args>(m.str(I + 1))...);
    }

private:
    std::sregex_iterator it_;
};

/// Full match scan iterator.
///
/// The elements of this iterator are the full scan matches as a string.
template <>
class ScanIterator<>
{
public:
    using difference_type = typename std::sregex_iterator::difference_type;
    using value_type = std::string;
    using pointer = const std::string*;
    using reference = const std::string&;
    using iterator_category = std::forward_iterator_tag;

public:
    explicit ScanIterator(const std::sregex_iterator& it) : it_(it) {}

    value_type operator*() const { return it_->str(); }

    ScanIterator& operator++()
    {
        ++it_;
        return *this;
    }

    const ScanIterator operator++(int)
    {
        auto copy = *this;
        ++*this;
        return copy;
    }

    bool operator==(const ScanIterator& other) const { return it_ == other.it_; }

    bool operator!=(const ScanIterator& other) const { return it_ != other.it_; }

private:
    std::sregex_iterator it_;
};

/**
 * Returns an iterator proxy over all matches within a string.
 *
 * This function should be used within a for loop.
 */
IteratorProxy<std::sregex_iterator> scan_matches(const std::string& str, const std::regex& re);

/**
 * Returns an iterator proxy over all matches within a string.
 *
 * The type of the returned iterator values depends on the number of
 * type arguments:
 *
 * - if the number of type arguments is 0, the returned values are
 *   strings consisting of the whole matches
 * - if the number of type arguments is 1, the returned values are the
 *   first submatches converted to that type
 * - if the number of type arguments is 2, the returned values are
 *   std::pair of of the first two submatches converted to those two
 *   types
 * - if the number of type arguments is greater than two, the returned
 *   values are std::tuple if the submatches converted to the given
 *   types.
 *
 * Note that this function may fail if there are not enough submatches
 * or a conversion fails. So you have to make sure that successful
 * matches can always be converted to the given types.
 *
 * ~~~~~~~~~~~~~~~~~~~~{.cpp}
 * std::string str = "a: 1,2\nb: 3,4\nc: 5,6\n";
 * std::regex re("(\\S+):\\s*(\\d+)\\s*,\\s*(\\d+)");
 *
 * auto r1 = scan(str, re).collect();
 * assert(r1[0] == "a: 1,2");
 * assert(r1[1] == "b: 3,4");
 * assert(r1[2] == "c: 5,6");
 *
 * auto r2 = scan<std::string>(str, re).collect();
 * assert(r2[0] == "a");
 * assert(r2[1] == "b");
 * assert(r2[2] == "c");
 *
 * auto r3 = scan<std::string,int>(str, re).collect();
 * assert(r3[0].first == "a");
 * assert(r3[0].second == 1);
 * assert(r3[1].first == "b");
 * assert(r3[1].second == 3);
 * assert(r3[2].first == "c");
 * assert(r3[2].second == 5);
 *
 * auto r4 = scan<std::string,int,int>(str, re).collect();
 * assert(r4[0] == std::make_tuple("a", 1, 2));
 * assert(r4[1] == std::make_tuple("b", 3, 4));
 * assert(r4[2] == std::make_tuple("c", 5, 6));
 * ~~~~~~~~~~~~~~~~~~~~
 */
template <typename... Args>
IteratorProxy<ScanIterator<Args...>> scan(const std::string& str, const std::regex& re)
{
    return IteratorProxy(ScanIterator<Args...>(std::sregex_iterator(str.begin(), str.end(), re)),
                         ScanIterator<Args...>(std::sregex_iterator()));
}
}  // namespace util
}  // namespace fifr

#endif

Added 3rdparty/util/src/fifr/util/SortBy.hxx.

























































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
/*
 * Copyright (c) 2016, 2023 Frank Fischer <frank-fischer@shadow-soft.de>
 *
 * This program is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see  <http://www.gnu.org/licenses/>
 */

#ifndef FIFR_UTIL_SORTBY_HXX
#define FIFR_UTIL_SORTBY_HXX

/**
 * @file
 *
 * Sort function to sort elements by a key.
 */

#include <algorithm>
#include <cassert>
#include <functional>
#include <vector>

namespace fifr {
namespace util {
/// Sort container of values by some given container of keys.
template <typename C,
          typename Keys,
          typename std::remove_reference<decltype(std::declval<C>()[0])>::type* = nullptr,
          typename std::remove_reference<decltype(std::declval<C>().size())>::type* = nullptr,
          typename std::remove_reference<decltype(std::declval<Keys>()[0])>::type* = nullptr,
          typename std::remove_reference<decltype(std::declval<Keys>().size())>::type* = nullptr>
void sort_by(C& container, const Keys& keys)
{
    assert(container.size() == keys.size());

    using size_type = typename C::size_type;

    std::vector<size_type> indices;
    indices.reserve(container.size());
    for (size_type i = 0; i < container.size(); i++) {
        indices.push_back(i);
    }

    std::sort(indices.begin(), indices.end(), [&](size_type i, size_type j) { return keys[i] < keys[j]; });

    for (size_type i = 0; i < indices.size(); i++) {
        if (indices[i] != i) {
            auto x = std::move(container[i]);
            auto j = i;
            while (true) {
                auto k = indices[j];
                indices[j] = j;
                if (k != i) {
                    container[j] = std::move(container[k]);
                    j = k;
                } else {
                    container[j] = std::move(x);
                    break;
                }
            }
        }
    }
}

/// Sort container of values by some given function of keys.
template <typename C,
          typename Fun,
          typename std::remove_reference<decltype(std::declval<C>()[0])>::type* = nullptr,
          typename std::remove_reference<decltype(std::declval<C>().size())>::type* = nullptr,
          typename std::remove_reference<decltype(std::declval<Fun>()(std::declval<C>()[0]))>::type* = nullptr>
void sort_by(C& container, Fun fun)
{
    std::vector<decltype(fun(container[0]))> keys;
    keys.reserve(container.size());
    for (auto& x : container) {
        keys.push_back(fun(x));
    }
    sort_by(container, keys);
}
}  // namespace util
}  // namespace fifr

#endif

Added 3rdparty/util/src/fifr/util/Split.hxx.





















































































































































































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
/*
 * Copyright (c) 2016-2017, 2019, 2023 Frank Fischer <frank-fischer@shadow-soft.de>
 *
 * This program is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see  <http://www.gnu.org/licenses/>
 */

#ifndef FIFR_UTIL_SPLIT_HXX
#define FIFR_UTIL_SPLIT_HXX

#include "Convert.hxx"
#include "Range.hxx"

#include <array>
#include <iterator>
#include <regex>
#include <string>
#include <utility>

namespace fifr {
namespace util {
/// Split on white spaces by default.
const std::regex default_split = std::regex("[[:space:]]+");

/// Iterator over the parts of a split string.
class SplitIterator
{
public:
    using difference_type = ptrdiff_t;
    using pointer = std::string*;
    using reference = std::string&;
    using value_type = std::string;

    using iterator_category = std::forward_iterator_tag;

    SplitIterator() : beg_(std::string::npos), end_(std::string::npos) {}

    SplitIterator(const std::string& str, std::sregex_iterator&& it) : str_(&str), it_(it), beg_(0)
    {
        end_ = it_ != std::sregex_iterator() ? static_cast<std::string::size_type>(it_->position(0)) : std::string::npos;
    }

    std::string operator*() const { return str_->substr(beg_, end_ - beg_); }

    SplitIterator& operator++()
    {
        if (it_ != std::sregex_iterator()) {
            beg_ = end_ + static_cast<std::string::size_type>(it_->length(0));
            ++it_;
            end_ = it_ != std::sregex_iterator() ? static_cast<std::string::size_type>(it_->position(0))
                                                 : std::string::npos;
        } else {
            beg_ = std::string::npos;
            end_ = std::string::npos;
        }
        return *this;
    }

    SplitIterator operator++(int)
    {
        auto copy = *this;
        ++*this;
        return copy;
    }

    bool operator==(const SplitIterator& it) const { return beg_ == it.beg_; }

    bool operator!=(const SplitIterator& it) const { return !(*this == it); }

    /// Return the rest of the string starting at the current part.
    [[nodiscard]] std::string rest() const { return str_->substr(beg_); }

private:
    const std::string* str_ = nullptr;
    std::sregex_iterator it_;
    std::string::size_type beg_;
    std::string::size_type end_;
};

/// Return an iterator over parts of a split string.
inline SplitIterator split_begin(const std::string& str, const std::regex& re = default_split)
{
    return {str, std::sregex_iterator(str.begin(), str.end(), re)};
}

/// Return an end iterator over parts of a split string.
inline SplitIterator split_end()
{
    return {};
}

/// Return an iterator proxy of parts of a split string.
inline IteratorProxy<SplitIterator> split(const std::string& str, const std::regex& re = default_split)
{
    return {split_begin(str, re), split_end()};
}

/// Return a split string as a vector.
inline std::vector<std::string> splitv(const std::string& str, const std::regex& re = default_split)
{
    return {split_begin(str, re), split_end()};
}

/// @overload
template <typename T>
std::vector<T> splitv(const std::string& str, const std::regex& re = default_split)
{
    std::vector<T> result;
    for (auto x : split(str, re)) {
        result.push_back(convert<T>(std::move(x)));
    }
    return result;
}

/**
 * Split a string into N parts.
 *
 * The string is split in exactly N parts. The last part contains
 * the rest of the string. If there are too few parts, the remaining
 * parts are empty strings.
 */
template <std::size_t N, typename T = std::string>
std::array<T, N> split(const std::string& str, const std::regex& re = default_split)
{
    std::size_t i = 0;
    std::array<T, N> result;
    auto it = split_begin(str, re);
    auto it_end = split_end();
    while (i < N && it != it_end) {
        result.at(i) = convert<T>(*it);
        ++it;
        ++i;
    }

    return result;
}

/// @internal
namespace detail {
template <typename It>
void split_args(It&, It&)
{
}

template <typename It, typename Arg0, typename... Args>
void split_args(It& it, It& it_end, Arg0& arg0, Args&... args)
{
    if (it != it_end) {
        arg0 = convert<Arg0>(*it);
        split_args(++it, it_end, args...);
    }
}
}  // namespace detail

/**
 * Split a string and cast results to appropriate types.
 *
 * The result variables must implement a `Convert<std::string, T>` trait.
 */
template <typename... Args>
void split(const std::string& str, const std::regex& re, Args&... args)
{
    auto it = split_begin(str, re);
    auto it_end = split_end();
    detail::split_args(it, it_end, args...);
}

namespace detail {
template <typename Tuple, size_t... I>
void split_tuple(const std::string& str, const std::regex& re, Tuple& t, std::index_sequence<I...>)
{
    split(str, re, std::get<I>(t)...);
}
}  // namespace detail

/**
 * Split a string and return casted results as tuple.
 *
 * The result types must implement a `Convert<std::string, T>` trait.
 */
template <typename... Args>
std::tuple<Args...> split(const std::string& str, const std::regex& re = default_split)
{
    static constexpr auto size = std::tuple_size<std::tuple<Args...>>::value;
    std::tuple<Args...> result;
    detail::split_tuple(str, re, result, std::make_index_sequence<size>{});
    return result;
}
}  // namespace util
}  // namespace fifr

#endif

Added 3rdparty/util/src/fifr/util/String.cxx.













































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/*
 * Copyright (c) 2016, 2017 Frank Fischer <frank-fischer@shadow-soft.de>
 *
 * This program is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see  <http://www.gnu.org/licenses/>
 */

#include "String.hxx"

#include <string>

namespace fifr::util {
bool starts_with(const std::string& str, const std::string& start)
{
    return (str.size() >= start.size() && str.compare(0, start.size(), start) == 0);
}

bool ends_with(const std::string& str, const std::string& end)
{
    return (str.size() >= end.size() && str.compare(str.size() - end.size(), end.size(), end) == 0);
}

std::string escape_shell_argument(const std::string& arg)
{
    std::string result;
    result.reserve(arg.size() + 2);
    std::string::size_type beg = 0;
    std::string::size_type pos = 0;

    result.append("'");

    while ((pos = arg.find('\'', beg)) != std::string::npos) {
        result.append(arg.begin() + static_cast<std::string::difference_type>(beg),
                      arg.begin() + static_cast<std::string::difference_type>(pos));
        result.append("'\\''");
        beg = pos + 1;
    }

    result.append(arg.begin() + static_cast<std::string::difference_type>(beg), arg.end());
    result.append("'");

    return result;
}
}  // namespace fifr::util

Added 3rdparty/util/src/fifr/util/String.hxx.























































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/*
 * Copyright (c) 2016-2017, 2019, 2023 Frank Fischer <frank-fischer@shadow-soft.de>
 *
 * This program is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see  <http://www.gnu.org/licenses/>
 */

#ifndef FIFR_UTIL_STRING_HXX
#define FIFR_UTIL_STRING_HXX

#include <string>

namespace fifr {
/// Utility functions for c++.
namespace util {
/// Returns true if a string starts with a certain substring.
bool starts_with(const std::string& str, const std::string& start);

/// Returns true if a string ends with a certain substring.
bool ends_with(const std::string& str, const std::string& end);

/**
 * Quote a string for being passed as a shell argument.
 *
 * Replace all single quotes by '\'' and enclose the whole string
 * within single quotes.
 */
std::string escape_shell_argument(const std::string& arg);

}  // namespace util
}  // namespace fifr

#endif

Added 3rdparty/util/src/fifr/util/Timer.cxx.





























































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
/*
 * Copyright (c) 2017-2024 Frank Fischer <frank-fischer@shadow-soft.de>
 *
 * This program is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see  <http://www.gnu.org/licenses/>
 */

#include "Timer.hxx"

#include <chrono>
#include <iomanip>
#include <ostream>
#include <sstream>
#include <stdexcept>
#include <string>

using namespace std::chrono;
using Clock = high_resolution_clock;

namespace fifr::util {

struct Timer::Data {
    bool running = false;
    Clock::time_point start_time = {};
    Clock::time_point stop_time = {};
    bool started = false;
};

Timer::Timer(bool autostart) : d(new Data)
{
    if (autostart) {
        start();
    }
}

Timer::Timer(const Timer& timer) : d(new Data{*timer.d}) {}

Timer::Timer(Timer&&) noexcept = default;

Timer& Timer::operator=(const Timer& timer)
{
    if (this != &timer) *d = *timer.d;
    return *this;
}

Timer& Timer::operator=(Timer&&) noexcept = default;

Timer::~Timer() = default;

void Timer::start(bool reset)
{
    if (reset || !d->started) {
        d->start_time = Clock::now();
        d->started = true;
    }
    d->running = true;
}

void Timer::stop()
{
    d->stop_time = Clock::now();
    d->running = false;
}

double Timer::time() const
{
    auto diff = duration<double>(d->stop_time - d->start_time);
    return diff.count();
}

std::string Timer::str() const
{
    std::ostringstream s;
    s << *this;
    return s.str();
}

std::ostream& operator<<(std::ostream& o, const Timer& timer)
{
    if (!timer.d->started) {
        throw std::logic_error("Timer has not been started, yet");
    }

    auto stop_time = timer.d->running ? Clock::now() : timer.d->stop_time;
    auto diff = stop_time - timer.d->start_time;

    auto h = floor<hours>(diff);
    auto m = floor<minutes>(diff - h);
    auto s = floor<seconds>(diff - h - m);
    auto ms = floor<milliseconds>(diff - h - m - s);

    o << std::setw(2) << std::setfill('0') << h.count() << ":";
    o << std::setw(2) << std::setfill('0') << m.count() << ":";
    o << std::setw(2) << std::setfill('0') << s.count() << ".";
    o << std::setw(2) << std::setfill('0') << ms.count();

    return o;
}

}  // namespace fifr::util

Added 3rdparty/util/src/fifr/util/Timer.hxx.













































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
/*
 * Copyright (c) 2018-2021, 2023 Frank Fischer <frank-fischer@shadow-soft.de>
 *
 * This program is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see  <http://www.gnu.org/licenses/>
 */

#ifndef FIFR_UTIL_TIMER_HXX
#define FIFR_UTIL_TIMER_HXX

#include <ctime>
#include <iosfwd>
#include <memory>
#include <string>

namespace fifr {
namespace util {
/// A simple timer class.
class Timer
{
public:
    /// Create a new timer.
    ///
    /// If `autostart` is *true* the timer is started on creation.
    explicit Timer(bool autostart = false);

    Timer(const Timer&);
    Timer(Timer&&) noexcept;
    Timer& operator=(const Timer&);
    Timer& operator=(Timer&&) noexcept;

    ~Timer();

    /// Start the timer.
    ///
    /// If `restart` is `true` the timer is reset to 0.
    void start(bool reset = false);

    /// Stop the timer.
    void stop();

    /// Return the elapsed seconds.
    [[nodiscard]] double time() const;

    /// Return a string representation of time.
    [[nodiscard]] std::string str() const;

    friend std::ostream& operator<<(std::ostream& o, const Timer& timer);

private:
    struct Data;
    std::unique_ptr<Data> d;
};

std::ostream& operator<<(std::ostream& o, const Timer& timer);

}  // namespace util
}  // namespace fifr

#endif

Added 3rdparty/util/src/fifr/util/ToolStream.cxx.





















































































































































































































































































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
/*
 * Copyright (c) 2018-2019, 2023 Frank Fischer <frank-fischer@shadow-soft.de>
 *
 * This program is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see  <http://www.gnu.org/licenses/>
 */

#include "ToolStream.hxx"

#include "Join.hxx"

#include <ext/stdio_filebuf.h>
#include <fcntl.h>
#include <sched.h>
#include <sys/wait.h>
#include <unistd.h>

#include <algorithm>
#include <array>
#include <cerrno>
#include <cstdlib>
#include <cstring>
#include <ios>
#include <iostream>
#include <stdexcept>
#include <string>
#include <utility>
#include <vector>

using namespace __gnu_cxx;
using namespace std::literals;

namespace fifr::util {
namespace {

const auto MaxErrSize = 128;

int open_tool(const std::string& command,
              const std::vector<std::string>& args,
              const std::string& filename,
              std::ios_base::openmode mode,
              pid_t& pid)
{
    std::array<char, MaxErrSize> err = {};
    std::array<int, 2> fd = {};

    if (mode != std::ios::in && mode != std::ios::out) {
        throw std::runtime_error("Only std::ios::in and std::ios::out are supported");
    }

    if (pipe2(fd.data(), O_CLOEXEC) == -1) {
        throw std::runtime_error("Cannot create pipes: "s + strerror_r(errno, err.data(), MaxErrSize));
    }

    pid = fork();
    if (pid == -1) {
        throw std::runtime_error("Cannot fork process pipes: "s + strerror_r(errno, err.data(), MaxErrSize));
    }

    if (pid == 0) {
        if (mode == std::ios::in) {
            close(fd[0]);
            if (dup2(fd[1], 1) == -1) {
                std::cerr << "Cannot redirect stdout: " << strerror_r(errno, err.data(), MaxErrSize) << "\n";
                std::exit(EXIT_FAILURE);
            }

            if (!filename.empty()) {
                auto file = open(filename.c_str(), O_RDONLY);  // NOLINT
                if (file == -1) {
                    std::cerr << "Cannot open file " << filename << ": " << strerror_r(errno, err.data(), MaxErrSize)
                              << "\n";
                    std::exit(EXIT_FAILURE);
                }
                if (dup2(file, 0) == -1) {
                    std::cerr << "Cannot redirect input from file: " << strerror_r(errno, err.data(), MaxErrSize) << "\n";
                    std::exit(EXIT_FAILURE);
                }
            }
        } else {
            close(fd[1]);
            if (dup2(fd[0], 0) == -1) {
                std::cerr << "Cannot redirect stdin: " << strerror_r(errno, err.data(), MaxErrSize) << "\n";
                std::exit(EXIT_FAILURE);
            }

            if (!filename.empty()) {
                auto file = open(filename.c_str(),
                                 O_CREAT | O_WRONLY | O_TRUNC,
                                 S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);  // NOLINT
                if (file == -1) {
                    std::cerr << "Cannot write to file " << filename << ": "
                              << strerror_r(errno, err.data(), MaxErrSize) << "\n";
                    std::exit(EXIT_FAILURE);
                }
                if (dup2(file, 1) == -1) {
                    std::cerr << "Cannot redirect output to file: " << strerror_r(errno, err.data(), MaxErrSize) << "\n";
                    std::exit(EXIT_FAILURE);
                }
            }
        }

        std::vector<char*> argp(args.size() + 2, nullptr);
        argp[0] = const_cast<char*>(command.c_str());  // NOLINT
        std::transform(args.begin(), args.end(), argp.begin() + 1, [](auto& arg) {
            return const_cast<char*>(arg.c_str());  // NOLINT
        });
        char* const* envp = {nullptr};

        if (execve(command.c_str(), argp.data(), envp) == -1) {
            std::cerr << "Cannot execute '" << command << " " << join(args, " ")
                      << "': " << strerror_r(errno, err.data(), MaxErrSize) << "\n";
        }
        std::exit(EXIT_FAILURE);
    }

    if (mode == std::ios::out) {
        std::swap(fd[0], fd[1]);
    }

    close(fd[1]);

    auto flags = fcntl(fd[0], F_GETFD);  // NOLINT
    if (flags == -1) {
        throw std::runtime_error("Error calling fcntl: "s + strerror_r(errno, err.data(), MaxErrSize));
    }

    flags |= FD_CLOEXEC;
    if (fcntl(fd[0], F_SETFD, flags) == -1) {  // NOLINT
        throw std::runtime_error("Error calling fcntl: "s + strerror_r(errno, err.data(), MaxErrSize));
    }

    return fd[0];
}

}  // namespace

ToolStreambuf::ToolStreambuf(const std::string& command, const std::vector<std::string>& args, std::ios_base::openmode mode)
    : stdio_filebuf(open_tool(command, args, {}, mode, pid_), mode)
{
}

ToolStreambuf::ToolStreambuf(const std::string& command,
                             const std::vector<std::string>& args,
                             const std::string& filename,
                             std::ios_base::openmode mode)
    : stdio_filebuf(open_tool(command, args, filename, mode, pid_), mode)
{
}

ToolStreambuf::ToolStreambuf(ToolStreambuf&& b) noexcept : stdio_filebuf(std::move(b)), pid_(std::exchange(b.pid_, 0))
{
}

ToolStreambuf& ToolStreambuf::operator=(ToolStreambuf&& b) noexcept
{
    close();
    pid_ = std::exchange(b.pid_, 0);
    stdio_filebuf::operator=(std::move(b));
    return *this;
}

ToolStreambuf::~ToolStreambuf()
{
    close();
}

void ToolStreambuf::close()
{
    if (is_open() && pid_ != 0) {
        int status = 0;
        stdio_filebuf::close();
        waitpid(pid_, &status, 0);
    }
    pid_ = 0;
}

InputToolStream::InputToolStream(const std::string& command,
                                 const std::vector<std::string>& args,
                                 const std::string& filename)
    : std::istream(&buf_), buf_(command, args, filename, std::ios::in)
{
}

InputToolStream::InputToolStream(InputToolStream&& s) noexcept : std::istream(std::move(s)), buf_(std::move(s.buf_))
{
    std::istream::set_rdbuf(&buf_);
}

void InputToolStream::open(const std::string& command, const std::vector<std::string>& args, const std::string& filename)
{
    buf_ = ToolStreambuf(command, args, filename, std::ios::in);
    if (buf_.is_open()) {
        clear();
    } else {
        setstate(std::ios_base::failbit);
    }
}

InputToolStream& InputToolStream::operator=(InputToolStream&& s) noexcept
{
    buf_ = std::move(s.buf_);
    std::istream::operator=(std::move(s));
    return *this;
}

InputToolStream::~InputToolStream() = default;

OutputToolStream::OutputToolStream(const std::string& command,
                                   const std::vector<std::string>& args,
                                   const std::string& filename)
    : std::ostream(&buf_), buf_(command, args, filename, std::ios::out)
{
}

OutputToolStream::OutputToolStream(OutputToolStream&& s) noexcept : std::ostream(std::move(s)), buf_(std::move(s.buf_))
{
    std::ostream::set_rdbuf(&buf_);
}

OutputToolStream& OutputToolStream::operator=(OutputToolStream&& s) noexcept
{
    buf_ = std::move(s.buf_);
    std::ostream::operator=(std::move(s));
    return *this;
}

OutputToolStream::~OutputToolStream() = default;

void OutputToolStream::open(const std::string& command, const std::vector<std::string>& args, const std::string& filename)
{
    buf_ = ToolStreambuf(command, args, filename, std::ios::out);
    if (buf_.is_open()) {
        clear();
    } else {
        setstate(std::ios_base::failbit);
    }
}

}  // namespace fifr::util

Added 3rdparty/util/src/fifr/util/ToolStream.hxx.



















































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
/*
 * Copyright (c) 2018, 2023 Frank Fischer <frank-fischer@shadow-soft.de>
 *
 * This program is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see  <http://www.gnu.org/licenses/>
 */

#ifndef FIFR_UTIL_TOOLSTREAM_HXX
#define FIFR_UTIL_TOOLSTREAM_HXX

#include <ext/stdio_filebuf.h>
#include <sys/types.h>

#include <string>
#include <vector>

namespace fifr {
namespace util {
/// A stream-buffer for piping data through an external tool.
class ToolStreambuf : public __gnu_cxx::stdio_filebuf<char>
{
public:
    /// Create a streambuffer piping through the given command.
    ToolStreambuf(const std::string& command, const std::vector<std::string>& args, std::ios_base::openmode mode);

    /// Create a streambuffer piping through the given command.
    ///
    /// The output/input of the command is written to/read from the given file.
    ToolStreambuf(const std::string& command,
                  const std::vector<std::string>& args,
                  const std::string& filename,
                  std::ios_base::openmode mode);

    ToolStreambuf(ToolStreambuf&&) noexcept;
    ToolStreambuf(const ToolStreambuf&) = delete;
    ToolStreambuf& operator=(ToolStreambuf&&) noexcept;
    ToolStreambuf& operator=(const ToolStreambuf&) = delete;

    ~ToolStreambuf() override;

    void close();

private:
    pid_t pid_;
};

/// An input stream that gets its data from an external tool.
class InputToolStream : public std::istream
{
public:
    explicit InputToolStream(const std::string& command, const std::vector<std::string>& args = {})
        : InputToolStream(command, args, {})
    {
    }

    InputToolStream(const std::string& command, const std::vector<std::string>& args, const std::string& filename);

    InputToolStream(InputToolStream&& s) noexcept;

    InputToolStream(const InputToolStream&) = delete;

    ~InputToolStream() override;

    InputToolStream& operator=(InputToolStream&& s) noexcept;

    InputToolStream& operator=(const InputToolStream&) = delete;

    void open(const std::string& command, const std::vector<std::string>& args = {}) { open(command, args, {}); }

    void open(const std::string& command, const std::vector<std::string>& args, const std::string& filename);

    void close()
    {
        if (buf_.is_open()) {
            buf_.close();
            clear();
        }
    }

private:
    ToolStreambuf buf_;
};

/// An output stream that pipes its data through an external tool.
class OutputToolStream : public std::ostream
{
public:
    explicit OutputToolStream(const std::string& command, const std::vector<std::string>& args = {})
        : OutputToolStream(command, args, {})
    {
    }

    OutputToolStream(const std::string& command, const std::vector<std::string>& args, const std::string& filename);

    OutputToolStream(OutputToolStream&& s) noexcept;

    OutputToolStream(const OutputToolStream&) = delete;

    ~OutputToolStream() override;

    OutputToolStream& operator=(OutputToolStream&& s) noexcept;

    OutputToolStream& operator=(const OutputToolStream&) = delete;

    void open(const std::string& command, const std::vector<std::string>& args = {}) { open(command, args, {}); }

    void open(const std::string& command, const std::vector<std::string>& args, const std::string& filename);

    void close()
    {
        if (buf_.is_open()) {
            buf_.close();
            clear();
        }
    }

private:
    ToolStreambuf buf_;
};

using itoolstream = InputToolStream;
using otoolstream = OutputToolStream;

}  // namespace util
}  // namespace fifr

#endif

Added 3rdparty/util/src/fifr/util/WordWrapStream.cxx.































































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
/*
 * Copyright (c) 2017 Frank Fischer <frank-fischer@shadow-soft.de>
 *
 * This program is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see  <http://www.gnu.org/licenses/>
 */

#include "WordWrapStream.hxx"

#include <algorithm>
#include <cassert>
#include <cstddef>
#include <limits>
#include <ostream>
#include <sstream>
#include <string>

namespace fifr::util {
namespace {
enum class Line { First, Newline, Mid };
}

struct WordWrapStream::Data {
    explicit Data(std::ostream& o) : out(o) {}

    std::ostream& out;
    std::size_t width = DEFAULT_WIDTH;
    std::size_t indent = 0;
    std::size_t indent_first = std::numeric_limits<std::size_t>::max();
    std::ostringstream buffer;

    Line line = Line::First;
    std::size_t pos = 0;
};

WordWrapStream::WordWrapStream(std::ostream& out) : d(new Data(out)) {}

WordWrapStream::~WordWrapStream()
{
    flush();
}

void WordWrapStream::set_width(std::size_t width)
{
    assert(width > 0);
    d->width = width;
}

void WordWrapStream::set_indent(std::size_t indent)
{
    d->indent = indent;
}

void WordWrapStream::set_indent_first(std::size_t indent)
{
    d->indent_first = indent;
}

void WordWrapStream::flush()
{
    std::string str = d->buffer.str();
    d->buffer.str("");

    std::string::size_type beg = 0;

    while (beg < str.size()) {
        if (d->line == Line::Mid) {
            auto mid = str.find_first_not_of(" \t\r", beg);
            auto end = str.find_first_of(" \t\r\n", mid);
            if (end == std::string::npos) {
                end = str.size();
            }
            if (d->pos + end - beg > d->width) {
                d->line = Line::Newline;
                beg = mid;
            } else if (end != std::string::npos && str[end] == '\n') {
                d->out << str.substr(beg, end - beg);
                beg = end;
                d->line = Line::Newline;
                // skip line break because we add one anyway
                if (beg + 1 < str.size()) {
                    beg += 1;
                } else {
                    d->out << "\n";
                    break;
                }
            } else {
                d->out << str.substr(beg, end - beg);
                d->pos += end - beg;
                beg = end;
            }
        } else {
            std::size_t indent = d->indent;
            if (d->line == Line::First) {
                if (d->indent_first != std::numeric_limits<std::size_t>::max()) {
                    indent = d->indent_first;
                }
            } else {
                d->out << "\n";
            }
            for (std::size_t i = 0; i < indent; i++) {
                d->out.put(' ');
            }
            d->pos = std::min(d->width - 1, indent);
            d->line = Line::Mid;
        }
    }
}

void WordWrapStream::shift_to(std::size_t pos)
{
    flush();
    if (d->line != Line::Mid) {
        d->line = Line::Mid;
        d->out << "\n";
        d->pos = 0;
    }

    if (d->pos < pos) {
        for (std::size_t i = d->pos; i < pos; i++) {
            d->out.put(' ');
        }
        d->pos = pos;
    }
}

std::ostream& WordWrapStream::stream()
{
    return d->buffer;
}

const std::size_t WordWrapStream::DEFAULT_WIDTH;
}  // namespace fifr::util

Added 3rdparty/util/src/fifr/util/WordWrapStream.hxx.

















































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
/*
 * Copyright (c) 2017, 2023 Frank Fischer <frank-fischer@shadow-soft.de>
 *
 * This program is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see  <http://www.gnu.org/licenses/>
 */

#ifndef FIFR_UTIL_WORDWRAPSTREAM_HXX
#define FIFR_UTIL_WORDWRAPSTREAM_HXX

#include <memory>
#include <ostream>

namespace fifr {
namespace util {
/// Write to an output stream with word wrapping.
///
/// This is a simple wrapper around `std::ostream`. Data written to this
/// stream is buffered and written with word wrap.
///
/// Word wrap can be customized by the following parameters:
///
///  - width ... the maximal width of a line
///  - indent ... the indentation of of all lines
///  - indent_first ... if set the indentation of the first line.
struct WordWrapStream {
    template <typename T>
    friend WordWrapStream& operator<<(WordWrapStream& out, const T& value);

public:
    static const std::size_t DEFAULT_WIDTH = 80;

public:
    explicit WordWrapStream(std::ostream& out);

    WordWrapStream(WordWrapStream&&) = default;
    WordWrapStream(const WordWrapStream&) = delete;
    WordWrapStream& operator=(WordWrapStream&&) = default;
    WordWrapStream& operator=(const WordWrapStream&) = delete;

    ~WordWrapStream();

    /// Write current buffer to output stream.
    void flush();

    /// Set the width at which lines should be wrapped.
    void set_width(std::size_t width);

    /// Set the indentation of the lines.
    void set_indent(std::size_t indent);

    /// Set the indentation of the first line.
    void set_indent_first(std::size_t indent);

    /// Insert spaces until the given column.
    ///
    /// If the current position is beyond that column, nothing is written.
    void shift_to(std::size_t pos);

private:
    std::ostream& stream();

private:
    struct Data;
    std::unique_ptr<Data> d;
};

/// Write `value` to a word wrapping stream.
template <typename T>
WordWrapStream& operator<<(WordWrapStream& out, const T& value)
{
    out.stream() << value;  // NOLINT
    return out;
}
}  // namespace util
}  // namespace fifr

#endif

Added 3rdparty/util/src/fifr/util/ZipStreamBase.hxx.

















































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
/*
 * Copyright (c) 2017, 2023 Frank Fischer <frank-fischer@shadow-soft.de>
 *
 * This program is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see  <http://www.gnu.org/licenses/>
 */

#ifndef FIFR_UTIL_ZIPSTREAMBASE_HXX
#define FIFR_UTIL_ZIPSTREAMBASE_HXX

#include <istream>
#include <ostream>

namespace fifr {
namespace util {
template <typename S>
class InputZipStreamBase : public std::istream
{
public:
    InputZipStreamBase() : std::istream(&buf_) {}

    /// Creates and opens a stream to a given file.
    ///
    /// The file is opened in read-mode by default.
    ///
    /// \param fname The name of the file to open.
    /// \param op_mode The mode in which the file should be opened.
    explicit InputZipStreamBase(const std::string& name, std::ios::openmode op_mode = std::ios::in)
        : InputZipStreamBase()
    {
        open(name, op_mode);
    }

    /// Opens a file.
    ///
    /// The file is opened in read-mode by default.
    ///
    /// If the stream is already open,  the file is closed and the
    /// bad-bit is set.
    ///
    /// \param fname The name of the file to open.
    /// \param op_mode The mode in which the file should be opened.
    void open(const std::string& name, std::ios::openmode op_mode = std::ios::in)
    {
        if (!buf_.open(name, op_mode)) {
            clear(rdstate() | std::ios::badbit);
        }
    }

    /// Close the underlying file.
    void close()
    {
        if (buf_.is_open() && buf_.close() == nullptr) {
            clear(rdstate() | std::ios::badbit);
        }
    }

private:
    S buf_;
};

template <typename S>
class OutputZipStreamBase : public std::ostream
{
public:
    OutputZipStreamBase() : std::ostream(&buf_) {}

    /// Creates and opens a stream to a given file.
    ///
    /// The file is opened in write-mode by default.
    ///
    /// \param fname The name of the file to open.
    /// \param op_mode The mode in which the file should be opened.
    explicit OutputZipStreamBase(const std::string& name, std::ios::openmode op_mode = std::ios::out)
        : OutputZipStreamBase()
    {
        open(name, op_mode);
    }

    /// Opens a file.
    ///
    /// The file is opened in read-mode by default.
    ///
    /// If the stream is already open,  the file is closed and the
    /// bad-bit is set.
    ///
    /// \param fname The name of the file to open.
    /// \param op_mode The mode in which the file should be opened.
    void open(const std::string& name, std::ios::openmode op_mode = std::ios::out)
    {
        if (!buf_.open(name, op_mode)) {
            clear(rdstate() | std::ios::badbit);
        }
    }

    /// Close the underlying file.
    void close()
    {
        if (buf_.is_open() && buf_.close() == nullptr) {
            clear(rdstate() | std::ios::badbit);
        }
    }

private:
    S buf_;
};
}  // namespace util
}  // namespace fifr

#endif

Added 3rdparty/util/tests/CMakeLists.txt.

















































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
add_test(NAME all COMMAND test_fifrutil)

set(TEST_SOURCES
  test_main.cxx
  test_cmdargs.cxx
  test_convert.cxx
  test_csv.cxx
  test_indentstream.cxx
  test_permutation.cxx
  test_pretty.cxx
  test_prettystruct.cxx
  test_range.cxx
  test_sort.cxx
  test_string.cxx
  test_toolstream.cxx
  test_zip.cxx)

find_package(ZLIB QUIET)
if (ZLIB_FOUND)
  set_property(SOURCE test_zip.cxx APPEND PROPERTY
    COMPILE_DEFINITIONS "HAVE_GZIP=1")
endif ()

find_package(BZip2 QUIET)
if (BZIP2_FOUND)
  set_property(SOURCE test_zip.cxx APPEND PROPERTY
    COMPILE_DEFINITIONS "HAVE_BZIP2=1")
endif ()

add_executable(test_fifrutil ${TEST_SOURCES} catch_amalgamated.cpp)
target_link_libraries(test_fifrutil Util Fifr::Util::GZip Fifr::Util::BZip2)

# disable all warnings for catch itself
set_source_files_properties(catch_amalgamated.cpp PROPERTIES COMPILE_FLAGS -w)

if (CMAKE_CXX_COMPILER_ID MATCHES "GNU")
  target_compile_options(test_fifrutil PRIVATE -W -Wall -Wconversion -Wsign-conversion -pedantic -Wno-unused-result -Wno-catch-value)
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
  target_compile_options(test_fifrutil PRIVATE -W -Wall -Wconversion -Wsign-conversion -pedantic -Wno-unused-result)
endif ()

Added 3rdparty/util/tests/catch_amalgamated.cpp.

more than 10,000 changes

Added 3rdparty/util/tests/catch_amalgamated.hpp.

more than 10,000 changes

Added 3rdparty/util/tests/test_cmdargs.cxx.











































































































































































































































































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
/*
 * Copyright (c) 2017, 2020 Frank Fischer <frank-fischer@shadow-soft.de>
 *
 * This program is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see  <http://www.gnu.org/licenses/>
 */

#include "catch_amalgamated.hpp"

#include <fifr/util/CmdArgs.hxx>

using namespace fifr::util;

SCENARIO("short flags")
{
    CmdArgs args;

    auto& r = args.flag('r');
    auto& g = args.flag().short_opt('g');
    auto& l = args.flag().short_opt('l');
    auto& a = args.flag().short_opt('a').def(true);
    auto& b = args.flag().short_opt('b').def(true);

    args.parse({"-r", "-g", "-a", "PARAMS"});
    CHECK(r);
    CHECK(g);
    CHECK(!l);
    CHECK(!a);
    CHECK(b);
    CHECK(args.rest() == std::vector<std::string>({"PARAMS"}));
}

SCENARIO("long flags")
{
    CmdArgs args;

    auto& long_flag = args.flag("long-flag");
    auto& g = args.flag().long_opt("global");
    auto& l = args.flag().long_opt("long");

    args.parse({"--global", "--long-flag", "ARG1", "ARG2"});
    CHECK(long_flag);
    CHECK(g);
    CHECK(!l);
    CHECK(args.rest() == std::vector<std::string>({"ARG1", "ARG2"}));
}

SCENARIO("long opt")
{
    CmdArgs args;

    auto& l = args.opt<int>().long_opt("long");
    auto& l2 = args.opt<int>().long_opt("long2");

    args.parse({"--long", "42", "--long2=23"});
    CHECK(l == 42);
    CHECK(l2 == 23);
}

SCENARIO("long opt missing")
{
    CmdArgs args;

    auto& l = args.opt<int>().long_opt("long");
    (void)l;

    REQUIRE_THROWS_AS(args.parse({"--long"}), CmdArgsError);
}

SCENARIO("unknown short")
{
    CmdArgs args;

    auto& g = args.flag().long_opt("global");
    auto& l = args.flag().long_opt("long").def(true);

    WHEN("existing args")
    {
        args.parse({"-g", "-l"});
        CHECK(g);
        CHECK(!l);
    }

    WHEN("no existing args") { REQUIRE_THROWS_AS(args.parse({"-g", "-u"}), CmdArgsError); }
}

SCENARIO("unknown long")
{
    CmdArgs args;

    auto& g = args.flag().long_opt("global");
    auto& l = args.flag().long_opt("long").def(true);

    WHEN("existing args")
    {
        args.parse({"--gl", "--lo"});
        CHECK(g);
        CHECK(!l);
    }

    WHEN("no existing args") { REQUIRE_THROWS_AS(args.parse({"--global", "--unknown"}), CmdArgsError); }
}

SCENARIO("prefix")
{
    CmdArgs args;

    auto& l = args.flag("a-very-long-option");

    args.parse({"--a-ver"});
    CHECK(l);
}

SCENARIO("ambiguous prefix")
{
    CmdArgs args;

    auto& l = args.flag("a-very-long-option");
    auto& l2 = args.flag("a-very-long-option2");
    (void)l;
    (void)l2;

    REQUIRE_THROWS_AS(args.parse({"--a-ver"}), CmdArgsError);
}

SCENARIO("exact prefix")
{
    CmdArgs args;

    auto& l = args.flag("a-very-long-option");
    auto& l2 = args.flag("a-very-long-option2");

    args.parse({"--a-very-long-option"});
    CHECK(l);
    CHECK(!l2);
}

SCENARIO("optional nodefault")
{
    CmdArgs args;
    auto& a = args.opt<std::string>('a');
    auto& b = args.opt<int>('b');
    auto& along = args.opt<std::string>("along");
    auto& blong = args.opt<std::string>("blong");
    auto& clong = args.opt<std::string>("clong");

    args.parse({"-a", "abc", "--along=xyz", "--blong", "ert"});
    CHECK(a);
    CHECK(a == "abc");
    CHECK(!b);
    CHECK(along);
    CHECK(along == "xyz");
    CHECK(blong);
    CHECK(blong == "ert");
    CHECK(!clong);
}

SCENARIO("optional default")
{
    CmdArgs args;
    auto& along = args.opt<int>("along").def(1, false);
    auto& blong = args.opt<int>("blong").def(2, false);
    auto& clong = args.opt<int>("clong").def(3, false);

    args.parse({"--along=42", "--blong"});
    CHECK(along);
    CHECK(along == 42);
    CHECK(blong);
    CHECK(blong == 2);
    CHECK(!clong);
    CHECK(clong == 3);
}

SCENARIO("required nodefault")
{
    CmdArgs args;

    auto& a = args.opt<int>('a').required();
    auto& b = args.opt<int>('b').required();

    WHEN("all required arguments are passed")
    {
        args.parse({"-a", "42", "-b", "1"});
        CHECK(a == 42);
        CHECK(b == 1);
    }

    WHEN("some required argument is missing") { REQUIRE_THROWS_AS(args.parse({"-b", "1"}), CmdArgsError); }
}

SCENARIO("required default")
{
    CmdArgs args;

    auto& a = args.opt<int>('a').def(1);
    auto& b = args.opt<int>('b').def(2);

    args.parse({"-a", "42"});
    CHECK(a == 42);
    CHECK(b == 2);
}

SCENARIO("auto shorts")
{
    CmdArgs args;
    auto& a = args.flag("abc");

    WHEN("enabled")
    {
        args.parse({"-a"});
        CHECK(a);
    }

    WHEN("disabled")
    {
        args.no_auto_shorts();
        REQUIRE_THROWS_AS(args.parse({"-a"}), CmdArgsError);
    }

    WHEN("ambiguous")
    {
        auto& another = args.flag("another");
        args.parse({"-n"});
        CHECK(!a);
        CHECK(another);
    }

    WHEN("forced ambiguous")
    {
        auto& another = args.flag("another").short_opt('a');
        args.parse({"-b"});
        CHECK(a);
        CHECK(!another);
    }
}

Added 3rdparty/util/tests/test_convert.cxx.































































































































































































































































































































































































































































































































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
/*
 * Copyright (c) 2016, 2017, 2019 Frank Fischer <frank-fischer@shadow-soft.de>
 *
 * This program is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see  <http://www.gnu.org/licenses/>
 */

#include "catch_amalgamated.hpp"

#include <fifr/util/Convert.hxx>

#include <vector>

#ifndef __has_include
#define __has_include(x) 0
#endif
#if __has_include(<version>)
#include <version>
#elif __has_include(<optional>)
#include <optional>
#endif
#if __cpp_lib_optional >= 201606
#define have_optional 1
#else
#define have_optional 0
#endif

using namespace fifr::util;

SCENARIO("Convert an unsigned integral type to an unsigned integral type")
{
    GIVEN("A number within range")
    {
        {
            uint16_t x = 42;
            uint8_t y = convert<uint8_t>(x);
            THEN("The result should be converted") { REQUIRE(y == 42); }
        }
        {
            uint8_t x = 42;
            uint16_t y = convert<uint16_t>(x);
            THEN("The result should be converted") { REQUIRE(y == 42); }
        }
    }

    GIVEN("A number out of range")
    {
        uint16_t x = 1000;
        THEN("An error should be raised") { REQUIRE_THROWS_AS(convert<uint8_t>(x), std::out_of_range); }
    }
}

SCENARIO("Convert an signed integral type to an signed integral type")
{
    GIVEN("A number within range")
    {
        {
            int16_t x = -42;
            int8_t y = convert<int8_t>(x);
            THEN("The result should be converted") { REQUIRE(y == -42); }
        }
        {
            int8_t x = -42;
            int16_t y = convert<int16_t>(x);
            THEN("The result should be converted") { REQUIRE(y == -42); }
        }
    }

    GIVEN("A number out of range")
    {
        int16_t x = -129;
        THEN("An error should be raised") { REQUIRE_THROWS_AS(convert<int8_t>(x), std::out_of_range); }
    }
}

SCENARIO("Convert an signed integral type to an unsigned integral type")
{
    GIVEN("A number within range")
    {
        {
            int16_t x = 42;
            uint8_t y = convert<uint8_t>(x);
            THEN("The result should be converted") { REQUIRE(y == 42); }
        }
        {
            int8_t x = 42;
            uint16_t y = convert<uint16_t>(x);
            THEN("The result should be converted") { REQUIRE(y == 42); }
        }
    }

    GIVEN("A number out of range")
    {
        int16_t x = 256;
        THEN("An error should be raised") { REQUIRE_THROWS_AS(convert<uint8_t>(x), std::out_of_range); }
    }

    GIVEN("A negative number")
    {
        int16_t x = -1;
        THEN("An error should be raised") { REQUIRE_THROWS_AS(convert<uint32_t>(x), std::out_of_range); }
    }
}

SCENARIO("Convert a double to an integral type")
{
    REQUIRE(convert<double>(0) == 0.0);
    REQUIRE(convert<double>(42) == 42.0);
}

SCENARIO("Convert a pair")
{
    GIVEN("A pair of strings")
    {
        auto t = std::make_pair("1", "2.3");
        WHEN("converting to a pair of numbers")
        {
            auto r = convert<std::pair<int, double>>(t);
            THEN("the result should have to correct values") { REQUIRE(r == std::make_pair(1, 2.3)); }
        }
    }
}

SCENARIO("Convert a tuple")
{
    GIVEN("A tuple of strings")
    {
        auto t = std::make_tuple("1", "2.3", "abc");
        WHEN("converting to a tuple of types values")
        {
            auto r = convert<std::tuple<int, double, std::string>>(t);
            THEN("the result should have to correct values") { REQUIRE(r == std::make_tuple(1, 2.3, "abc")); }
        }
    }
}

SCENARIO("Convert an array")
{
    GIVEN("An array of strings")
    {
        std::array<std::string, 2> ary = {{"1", "2.3"}};
        WHEN("converting to an array of numbers")
        {
            auto r = convert<std::array<double, 2>>(ary);
            THEN("the result should have to correct values")
            {
                REQUIRE(r[0] == 1.0);
                REQUIRE(r[1] == 2.3);
            }
        }
    }
}

SCENARIO("Convert a vector")
{
    GIVEN("A vector of strings")
    {
        auto t = std::vector<std::string>{"1", "2.3"};
        WHEN("converting to a vector of numbers")
        {
            auto r = convert<std::vector<double>>(t);
            THEN("the result should have to correct values")
            {
                REQUIRE(r.size() == 2);
                REQUIRE(r[0] == 1.0);
                REQUIRE(r[1] == 2.3);
            }
        }
    }
}

SCENARIO("Convert string to integer")
{
    GIVEN("A string representing a valid integer")
    {
        std::string s = "42";
        THEN("The conversion should work")
        {
            REQUIRE(convert<int8_t>(s) == 42);
            REQUIRE(convert<int16_t>(s) == 42);
            REQUIRE(convert<int32_t>(s) == 42);
            REQUIRE(convert<int64_t>(s) == 42);
            REQUIRE(convert<uint8_t>(s) == 42);
            REQUIRE(convert<uint16_t>(s) == 42);
            REQUIRE(convert<uint32_t>(s) == 42);
            REQUIRE(convert<uint64_t>(s) == 42);

#if have_optional
            REQUIRE(to<int8_t>(s) == 42);
            REQUIRE(to<int16_t>(s) == 42);
            REQUIRE(to<int32_t>(s) == 42);
            REQUIRE(to<int64_t>(s) == 42);
            REQUIRE(to<uint8_t>(s) == 42);
            REQUIRE(to<uint16_t>(s) == 42);
            REQUIRE(to<uint32_t>(s) == 42);
            REQUIRE(to<uint64_t>(s) == 42);
#endif
        }
    }

    GIVEN("A string not representing an integer")
    {
        std::string s = "abc";
        THEN("The conversion should fail")
        {
            REQUIRE_THROWS_AS(convert<int8_t>(s), std::invalid_argument);
            REQUIRE_THROWS_AS(convert<int16_t>(s), std::invalid_argument);
            REQUIRE_THROWS_AS(convert<int32_t>(s), std::invalid_argument);
            REQUIRE_THROWS_AS(convert<int64_t>(s), std::invalid_argument);
            REQUIRE_THROWS_AS(convert<uint8_t>(s), std::invalid_argument);
            REQUIRE_THROWS_AS(convert<uint16_t>(s), std::invalid_argument);
            REQUIRE_THROWS_AS(convert<uint32_t>(s), std::invalid_argument);
            REQUIRE_THROWS_AS(convert<uint64_t>(s), std::invalid_argument);

#if have_optional
            REQUIRE(!to<int8_t>(s));
            REQUIRE(!to<int16_t>(s));
            REQUIRE(!to<int32_t>(s));
            REQUIRE(!to<int64_t>(s));
            REQUIRE(!to<uint8_t>(s));
            REQUIRE(!to<uint16_t>(s));
            REQUIRE(!to<uint32_t>(s));
            REQUIRE(!to<uint64_t>(s));
#endif
        }
    }

    GIVEN("A string not being a complete integer")
    {
        std::string s = "42 ";
        THEN("The conversion should fail")
        {
            REQUIRE_THROWS_AS(convert<int8_t>(s), std::invalid_argument);
            REQUIRE_THROWS_AS(convert<int16_t>(s), std::invalid_argument);
            REQUIRE_THROWS_AS(convert<int32_t>(s), std::invalid_argument);
            REQUIRE_THROWS_AS(convert<int64_t>(s), std::invalid_argument);
            REQUIRE_THROWS_AS(convert<uint8_t>(s), std::invalid_argument);
            REQUIRE_THROWS_AS(convert<uint16_t>(s), std::invalid_argument);
            REQUIRE_THROWS_AS(convert<uint32_t>(s), std::invalid_argument);
            REQUIRE_THROWS_AS(convert<uint64_t>(s), std::invalid_argument);

#if have_optional
            REQUIRE(!to<int8_t>(s));
            REQUIRE(!to<int16_t>(s));
            REQUIRE(!to<int32_t>(s));
            REQUIRE(!to<int64_t>(s));
            REQUIRE(!to<uint8_t>(s));
            REQUIRE(!to<uint16_t>(s));
            REQUIRE(!to<uint32_t>(s));
            REQUIRE(!to<uint64_t>(s));
#endif
        }
    }

    GIVEN("A string with a valid but out of range value")
    {
        THEN("The conversion should fail")
        {
            REQUIRE_THROWS_AS(convert<int8_t>("128"), std::out_of_range);
            REQUIRE_THROWS_AS(convert<int16_t>("10000000"), std::out_of_range);
            REQUIRE_THROWS_AS(convert<int32_t>("100000000000000000"), std::out_of_range);
            REQUIRE_THROWS_AS(convert<int64_t>("1000000000000000000000000000000"), std::out_of_range);
            REQUIRE_THROWS_AS(convert<uint8_t>("-1"), std::invalid_argument);
            REQUIRE_THROWS_AS(convert<uint16_t>("-1"), std::invalid_argument);
            REQUIRE_THROWS_AS(convert<uint32_t>("-1"), std::invalid_argument);
            REQUIRE_THROWS_AS(convert<uint64_t>("-1"), std::invalid_argument);

#if have_optional
            REQUIRE(!to<int8_t>("128"));
            REQUIRE(!to<int16_t>("10000000"));
            REQUIRE(!to<int32_t>("100000000000000000"));
            REQUIRE(!to<int64_t>("1000000000000000000000000000000"));
            REQUIRE(!to<uint8_t>("-1"));
            REQUIRE(!to<uint16_t>("-1"));
            REQUIRE(!to<uint32_t>("-1"));
            REQUIRE(!to<uint64_t>("-1"));
#endif
        }
    }
}

SCENARIO("Convert integer to string")
{
    GIVEN("An integer")
    {
        THEN("The conversion should work")
        {
            REQUIRE(convert<std::string>(static_cast<int8_t>(-42)) == "-42");
            REQUIRE(convert<std::string>(static_cast<int16_t>(-42)) == "-42");
            REQUIRE(convert<std::string>(static_cast<int32_t>(-42)) == "-42");
            REQUIRE(convert<std::string>(static_cast<int64_t>(-42)) == "-42");
            REQUIRE(convert<std::string>(static_cast<uint8_t>(42)) == "42");
            REQUIRE(convert<std::string>(static_cast<uint16_t>(42)) == "42");
            REQUIRE(convert<std::string>(static_cast<uint32_t>(42)) == "42");
            REQUIRE(convert<std::string>(static_cast<uint64_t>(42)) == "42");

#if have_optional
            REQUIRE(to<std::string>(static_cast<int8_t>(-42)) == "-42");
            REQUIRE(to<std::string>(static_cast<int16_t>(-42)) == "-42");
            REQUIRE(to<std::string>(static_cast<int32_t>(-42)) == "-42");
            REQUIRE(to<std::string>(static_cast<int64_t>(-42)) == "-42");
            REQUIRE(to<std::string>(static_cast<uint8_t>(42)) == "42");
            REQUIRE(to<std::string>(static_cast<uint16_t>(42)) == "42");
            REQUIRE(to<std::string>(static_cast<uint32_t>(42)) == "42");
            REQUIRE(to<std::string>(static_cast<uint64_t>(42)) == "42");
#endif
        }
    }
}

SCENARIO("Convert a range of iterators to a vector")
{
    GIVEN("A range of strings")
    {
        auto strings = std::vector<std::string>{"1", "2", "3"};

        WHEN("Converting the range to a new vector of integers with `convert`")
        {
            auto results = convert<std::vector<std::size_t>>(strings.begin(), strings.end());

            THEN("The result should be a vector of correctly converted numbers")
            {
                REQUIRE(results == (std::vector<std::size_t>{1, 2, 3}));
            }
        }

#if have_optional
        WHEN("Converting the range to a new vector of integers with `to`")
        {
            auto results = to<std::vector<std::size_t>>(strings.begin(), strings.end());

            THEN("The result should be a vector of correctly converted numbers")
            {
                REQUIRE(results);
                REQUIRE(*results == (std::vector<std::size_t>{1, 2, 3}));
            }
        }
#endif
    }

    GIVEN("A range of strings not being integers")
    {
        auto strings = std::vector<std::string>{"1", "2", "3x"};

        WHEN("Converting the range to a new vector of integers")
        {
            THEN("The conversion should fail")
            {
                REQUIRE_THROWS_AS(convert<std::vector<std::size_t>>(strings.begin(), strings.end()),
                                  std::invalid_argument);
#if have_optional
                REQUIRE(!to<std::vector<std::size_t>>(strings.begin(), strings.end()));
#endif
            }
        }
    }
}

Added 3rdparty/util/tests/test_csv.cxx.













































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
/*
 * Copyright (c) 2019, 2021 Frank Fischer <frank-fischer@shadow-soft.de>
 *
 * This program is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see  <http://www.gnu.org/licenses/>
 */

#include "catch_amalgamated.hpp"

#include <fifr/util/Csv.hxx>

#include <sstream>
#include <string>

using namespace fifr::util;
using namespace std::string_literals;

SCENARIO("Write csv")
{
    WHEN("Writing an vector or array of integers")
    {
        std::ostringstream out;
        auto csv = CsvWriter::write(out);
        csv << std::array<const char*, 3>{"A", "B", "C"};
        csv << std::vector<int>{3, 12, 7};
        csv << std::array<int, 3>{1, 2, 3};
        csv << std::make_tuple(1, "Hallo", "Welt");
        THEN("The table should be printed") { REQUIRE(out.str() == "A,B,C\n3,12,7\n1,2,3\n1,Hallo,Welt\n"); }
    }

    WHEN("Writing single cells")
    {
        std::ostringstream out;
        auto csv = CsvWriter::write(out);
        csv << "A"
            << "B"
            << "C" << end_row;
        csv << 3 << 12 << 7 << end_row;
        csv << 1 << 2 << 3 << end_row;
        csv << 1 << "Hallo"
            << "Welt" << end_row;
        THEN("The table should be printed") { REQUIRE(out.str() == "A,B,C\n3,12,7\n1,2,3\n1,Hallo,Welt\n"); }
    }

    WHEN("Do not write empty records")
    {
        std::ostringstream out;
        auto csv = CsvWriter::write(out);
        csv << "A"
            << "B"
            << "C" << end_row;
        csv << end_row;
        csv << 3 << 12 << 7 << end_row;
        csv << end_row;
        csv << 1 << 2 << 3 << end_row;
        csv << end_row;
        csv << 1 << "Hallo"
            << "Welt" << end_row;
        csv << end_row;
        THEN("The table should be printed") { REQUIRE(out.str() == "A,B,C\n3,12,7\n1,2,3\n1,Hallo,Welt\n"); }
    }

    WHEN("Writing a full record, the previous record is ended")
    {
        std::ostringstream out;
        auto csv = CsvWriter::write(out);
        csv << "A"
            << "B"
            << "C";
        csv << std::vector<int>{3, 12, 7};
        csv << 1 << 2 << 3;
        csv << std::make_tuple(1, "Hallo", "Welt");
        THEN("The table should be printed") { REQUIRE(out.str() == "A,B,C\n3,12,7\n1,2,3\n1,Hallo,Welt\n"); }
    }

    WHEN("Not ending the last record")
    {
        std::ostringstream out;
        {
            auto csv = CsvWriter::write(out);
            csv << "A"
                << "B"
                << "C" << end_row;
            csv << 3 << 12 << 7 << end_row;
            csv << 1 << 2 << 3 << end_row;
            csv << 1 << "Hallo"
                << "Welt";
        }
        THEN("The last record should be closed on destruction")
        {
            REQUIRE(out.str() == "A,B,C\n3,12,7\n1,2,3\n1,Hallo,Welt\n");
        }
    }

    WHEN("Writing an vector of integers with custom separators")
    {
        std::vector<std::vector<int>> table = {2, {3, 12, 7}};

        std::ostringstream out;
        CsvWriter::Parameters params;
        params.field_separator = ' ';
        params.record_separator = ';';
        auto csv = CsvWriter::write(out, params);
        csv << std::array<int, 3>{3, 12, 7};
        csv << std::array<int, 3>{3, 12, 7};
        THEN("The table should be printed") { REQUIRE(out.str() == "3 12 7;3 12 7;"); }
    }

    WHEN("Writing an vector with strings containing separators")
    {
        std::ostringstream out;
        auto csv = CsvWriter(out);
        csv << std::array<const char*, 3>{"Hallo, Welt", "Hi", "Er sagte: \"Hi\""};
        csv << std::array<const char*, 3>{"Hallo, Welt", "Hi", "Er sagte: \"Hi\""};

        THEN("The table should be printed with quoted fields")
        {
            REQUIRE(out.str() == R"("Hallo, Welt",Hi,"Er sagte: ""Hi""")"s + "\n" +
                                     R"("Hallo, Welt",Hi,"Er sagte: ""Hi""")"s + "\n");
        }
    }

    WHEN("Writing with a forbidden quotation character")
    {
        CsvWriteParameters params;
        params.quote = '4';
        std::ostringstream out;
        THEN("An error should be raised ") { REQUIRE_THROWS_AS(CsvWriter::write(out, params), CsvWriter::Error); }
    }
}

SCENARIO("Read csv")
{
    WHEN("Reading an array of integers")
    {
        std::istringstream in("3,12,7\n1,2,3\n");
        auto csv = CsvReader::read(in);
        std::vector<std::vector<std::string>> table;
        for (auto row : csv) {
            table.emplace_back(row.begin(), row.end());
        }
        THEN("The correct number of records should be returned") { REQUIRE(csv.num_records() == 2); }
        THEN("The correct number of columns should be returned")
        {
            REQUIRE(csv.min_columns() == 3);
            REQUIRE(csv.max_columns() == 3);
        }
        THEN("The correct number of lines should be returned") { REQUIRE(csv.num_lines() == 2); }
        THEN("The correct entries should be read")
        {
            REQUIRE(table == (std::vector<std::vector<std::string>>{{"3", "12", "7"}, {"1", "2", "3"}}));
        }
    }

    WHEN("Reading a table of integers with empty lines/records")
    {
        std::istringstream in("3,12,7\n\n1,2,3\n");
        auto csv = CsvReader::read(in);
        std::vector<std::vector<std::string>> table;
        for (auto row : csv) {
            table.emplace_back(row.begin(), row.end());
        }
        THEN("The correct number of records should be returned") { REQUIRE(csv.num_records() == 2); }
        THEN("The correct number of columns should be returned")
        {
            REQUIRE(csv.min_columns() == 3);
            REQUIRE(csv.max_columns() == 3);
        }
        THEN("The correct number of lines should be returned") { REQUIRE(csv.num_lines() == 3); }
        THEN("The correct number of lines should be returned") { REQUIRE(csv.max_columns() == 3); }
        THEN("The correct entries should be read")
        {
            REQUIRE(table == (std::vector<std::vector<std::string>>{{"3", "12", "7"}, {"1", "2", "3"}}));
        }
    }

    WHEN("Reading a table of integers without trailing newline")
    {
        std::istringstream in("3,12,7\n1,2,3");
        auto csv = CsvReader::read(in);
        std::vector<std::vector<std::string>> table;
        for (auto row : csv) {
            table.emplace_back(row.begin(), row.end());
        }
        THEN("The correct number of records should be returned") { REQUIRE(csv.num_records() == 2); }
        THEN("The correct number of columns should be returned")
        {
            REQUIRE(csv.min_columns() == 3);
            REQUIRE(csv.max_columns() == 3);
        }
        THEN("The correct number of lines should be returned") { REQUIRE(csv.num_lines() == 2); }
        THEN("The correct number of lines should be returned") { REQUIRE(csv.max_columns() == 3); }
        THEN("The correct entries should be read")
        {
            REQUIRE(table == (std::vector<std::vector<std::string>>{{"3", "12", "7"}, {"1", "2", "3"}}));
        }
    }

    WHEN("Reading an with custom field and record separators")
    {
        std::istringstream in("3 12 7;1 2 3");
        CsvReader::Parameters params;
        params.field_separator = ' ';
        params.record_separator = ';';
        auto csv = CsvReader::read(in, params);
        std::vector<std::vector<std::string>> table;
        for (auto row : csv) {
            table.emplace_back(row.begin(), row.end());
        }
        THEN("The correct number of records should be returned") { REQUIRE(csv.num_records() == 2); }
        THEN("The correct number of columns should be returned")
        {
            REQUIRE(csv.min_columns() == 3);
            REQUIRE(csv.max_columns() == 3);
        }
        THEN("The correct number of lines should be returned") { REQUIRE(csv.num_lines() == 1); }
        THEN("The correct entries should be read")
        {
            REQUIRE(table == (std::vector<std::vector<std::string>>{{"3", "12", "7"}, {"1", "2", "3"}}));
        }
    }

    WHEN("Reading with ignored whitespaces")
    {
        std::istringstream in("3  , 12 , 7 \n   1  ,  2  , 3   \n    ");
        CsvReader::Parameters params;
        params.ignore_whitespace = true;
        auto csv = CsvReader::read(in, params);
        std::vector<std::vector<std::string>> table;
        for (auto row : csv) {
            table.emplace_back(row.begin(), row.end());
        }
        THEN("The correct number of records should be returned") { REQUIRE(csv.num_records() == 2); }
        THEN("The correct number of columns should be returned")
        {
            REQUIRE(csv.min_columns() == 3);
            REQUIRE(csv.max_columns() == 3);
        }
        THEN("The correct number of lines should be returned") { REQUIRE(csv.num_lines() == 2); }
        THEN("The correct entries should be read")
        {
            REQUIRE(table == (std::vector<std::vector<std::string>>{{"3", "12", "7"}, {"1", "2", "3"}}));
        }
    }

    WHEN("Reading with explicitly specified wrong column number")
    {
        std::istringstream in("A,B,C\n3,7\n1,2,3\n");
        CsvReader::Parameters params;
        params.num_columns = 3;
        auto csv = CsvReader::read(in, params);

        THEN("An error should be raised when reading the offending record")
        {
            std::vector<std::string> x;
            REQUIRE_NOTHROW(csv.get(x));
            REQUIRE_THROWS_AS(csv.get(x), CsvReader::Error);
        }
    }

    WHEN("Reading an explicit header line")
    {
        std::istringstream in("A,B,C\n3,12,7\n1,2,3\n");
        CsvReader::Parameters params;
        params.headers = true;
        auto csv = CsvReader::read(in, params);

        THEN("The correct headers should be read")
        {
            REQUIRE(csv.header(0) == "A");
            REQUIRE(csv.header(1) == "B");
            REQUIRE(csv.header(2) == "C");
        }

        std::vector<std::vector<std::string>> table;
        for (auto row : csv) {
            table.emplace_back(row.begin(), row.end());
        }

        THEN("The correct number of records should be returned") { REQUIRE(csv.num_records() == 2); }

        THEN("The correct number of columns should be returned")
        {
            REQUIRE(csv.min_columns() == 3);
            REQUIRE(csv.max_columns() == 3);
        }

        THEN("The correct number of lines should be returned") { REQUIRE(csv.num_lines() == 3); }

        THEN("The correct entries should be read")
        {
            REQUIRE(table == (std::vector<std::vector<std::string>>{{"3", "12", "7"}, {"1", "2", "3"}}));
        }
    }

    WHEN("Reading a row into several variables")
    {
        std::istringstream in("3,12.0,text\n4,22,bar\n");
        auto csv = CsvReader::read(in);

        int x1, y1;
        double x2, y2;
        std::string x3, y3;

        REQUIRE(csv.get(x1, x2, x3));
        REQUIRE(csv.get(y1, y2, y3));

        THEN("The correct tuples should be read")
        {
            REQUIRE(x1 == 3);
            REQUIRE(x2 == 12.0);
            REQUIRE(x3 == "text");
            REQUIRE(y1 == 4);
            REQUIRE(y2 == 22.0);
            REQUIRE(y3 == "bar");
        }

        THEN("The correct number of records should be returned") { REQUIRE(csv.num_records() == 2); }

        THEN("The correct number of columns should be returned")
        {
            REQUIRE(csv.min_columns() == 3);
            REQUIRE(csv.max_columns() == 3);
        }

        THEN("The correct number of lines should be returned") { REQUIRE(csv.num_lines() == 2); }
    }

    WHEN("Reading a tuple")
    {
        std::istringstream in("3,12.0,text\n4,22,bar\n");
        auto csv = CsvReader::read(in);

        std::tuple<int, double, std::string> x, y;

        REQUIRE((csv >> x));
        REQUIRE((csv >> y));

        THEN("The correct tuples should be read")
        {
            REQUIRE(x == std::make_tuple(3, 12.0, std::string("text")));
            REQUIRE(y == std::make_tuple(4, 22.0, std::string("bar")));
        }

        THEN("The correct number of records should be returned") { REQUIRE(csv.num_records() == 2); }

        THEN("The correct number of columns should be returned")
        {
            REQUIRE(csv.min_columns() == 3);
            REQUIRE(csv.max_columns() == 3);
        }

        THEN("The correct number of lines should be returned") { REQUIRE(csv.num_lines() == 2); }
    }

    WHEN("Reading a typed array")
    {
        std::istringstream in("3,12,7\n1,2,3\n");
        auto csv = CsvReader::read(in);

        std::array<int, 3> x, y;

        REQUIRE((csv >> x));
        REQUIRE((csv >> y));

        THEN("The correct tuples should be read")
        {
            REQUIRE(x == (std::array<int, 3>{3, 12, 7}));
            REQUIRE(y == (std::array<int, 3>{1, 2, 3}));
        }

        THEN("The correct number of records should be returned") { REQUIRE(csv.num_records() == 2); }

        THEN("The correct number of columns should be returned")
        {
            REQUIRE(csv.min_columns() == 3);
            REQUIRE(csv.max_columns() == 3);
        }

        THEN("The correct number of lines should be returned") { REQUIRE(csv.num_lines() == 2); }
    }

    WHEN("Reading a typed array via ranges")
    {
        std::istringstream in("3,12,7\n1,2,42\n");
        auto csv = CsvReader::read(in);

        std::vector<std::array<int, 3>> table;

        for (auto row : csv.rows<int, 3>()) {
            table.emplace_back(row);
        }

        THEN("The correct tuples should be read")
        {
            REQUIRE(table[0] == (std::array<int, 3>{3, 12, 7}));
            REQUIRE(table[1] == (std::array<int, 3>{1, 2, 42}));
        }

        THEN("The correct number of records should be returned") { REQUIRE(csv.num_records() == 2); }

        THEN("The correct number of columns should be returned")
        {
            REQUIRE(csv.min_columns() == 3);
            REQUIRE(csv.max_columns() == 3);
        }

        THEN("The correct number of lines should be returned") { REQUIRE(csv.num_lines() == 2); }
    }

    WHEN("Reading a typed vector")
    {
        std::istringstream in("3,12,7\n1,2\n");
        auto csv = CsvReader::read(in);

        std::vector<int> x, y;

        REQUIRE((csv >> x));
        REQUIRE((csv >> y));

        THEN("The correct tuples should be read")
        {
            REQUIRE(x == (std::vector<int>{3, 12, 7}));
            REQUIRE(y == (std::vector<int>{1, 2}));
        }

        THEN("The correct number of records should be returned") { REQUIRE(csv.num_records() == 2); }

        THEN("The correct number of columns should be returned")
        {
            REQUIRE(csv.min_columns() == 2);
            REQUIRE(csv.max_columns() == 3);
        }

        THEN("The correct number of lines should be returned") { REQUIRE(csv.num_lines() == 2); }
    }

    WHEN("Reading a typed vector via ranges")
    {
        std::istringstream in("3,12,7\n1,2\n");
        auto csv = CsvReader::read(in);

        std::vector<std::vector<int>> table;

        for (auto row : csv.rows<int>()) {
            table.emplace_back(row);
        }

        THEN("The correct tuples should be read")
        {
            REQUIRE(table[0] == (std::vector<int>{3, 12, 7}));
            REQUIRE(table[1] == (std::vector<int>{1, 2}));
        }

        THEN("The correct number of records should be returned") { REQUIRE(csv.num_records() == 2); }

        THEN("The correct number of columns should be returned")
        {
            REQUIRE(csv.min_columns() == 2);
            REQUIRE(csv.max_columns() == 3);
        }

        THEN("The correct number of lines should be returned") { REQUIRE(csv.num_lines() == 2); }
    }

    WHEN("Reading named columns")
    {
        std::istringstream in("A,C,B\n3,12,7\n1,2,3\n");
        auto csv = CsvReader::read(in);

        std::vector<std::vector<std::string>> table;
        for (auto row : csv.named("A", "B", "C")) {
            table.emplace_back(row.begin(), row.end());
        }

        THEN("The correct data should be read")
        {
            REQUIRE(table == (std::vector<std::vector<std::string>>{{"3", "7", "12"}, {"1", "3", "2"}}));
        }

        THEN("The correct number of records should be returned") { REQUIRE(csv.num_records() == 2); }

        THEN("The correct number of columns should be returned")
        {
            REQUIRE(csv.min_columns() == 3);
            REQUIRE(csv.max_columns() == 3);
        }

        THEN("The correct number of lines should be returned") { REQUIRE(csv.num_lines() == 3); }
    }

    WHEN("Reading named columns with unknown headers")
    {
        std::istringstream in("A,C,B\n3,12,7\n1,2,3\n");
        auto csv = CsvReader::read(in);

        THEN("An error should be raised") { REQUIRE_THROWS_AS(csv.named("A", "B", "D"), CsvReader::Error); }
    }

    WHEN("Reading typed named columns")
    {
        std::istringstream in("A,C,B\n3,abc,7.2\n1,xyz,4.2\n");
        CsvReader::Parameters params;
        params.headers = true;
        auto csv = CsvReader::read(in, params);

        std::vector<std::tuple<int, double, std::string>> table;
        for (auto t : csv.named<int, double, std::string>("A", "B", "C")) {
            auto a = std::get<0>(t);
            auto b = std::get<1>(t);
            auto c = std::get<2>(t);
            table.emplace_back(a, b, c);
        }

        THEN("The correct data should be read")
        {
            REQUIRE(table[0] == (std::make_tuple(3, 7.2, std::string("abc"))));
            REQUIRE(table[1] == (std::make_tuple(1, 4.2, std::string("xyz"))));
        }

        THEN("The correct number of records should be returned") { REQUIRE(csv.num_records() == 2); }

        THEN("The correct number of columns should be returned")
        {
            REQUIRE(csv.min_columns() == 3);
            REQUIRE(csv.max_columns() == 3);
        }

        THEN("The correct number of lines should be returned") { REQUIRE(csv.num_lines() == 3); }
    }

    WHEN("Reading typed named columns with unknown headers")
    {
        std::istringstream in("A,C,B\n3,12,7\n1,2,3\n");
        CsvReader::Parameters params;
        params.headers = true;
        auto csv = CsvReader::read(in, params);

        THEN("An error should be raised")
        {
            REQUIRE_THROWS_AS((csv.named<int, int, int>("A", "B", "D")), CsvReader::Error);
        }
    }

    WHEN("Reading typed named columns with duplicated column names")
    {
        std::istringstream in("A,C,B\n3,12,7\n1,2,3\n");
        auto csv = CsvReader::read(in);

        std::vector<std::tuple<int, std::string>> table;
        for (auto t : csv.named<int, std::string>("C", "C")) {
            auto a = std::get<0>(t);
            auto b = std::get<1>(t);
            table.emplace_back(a, b);
        }

        THEN("The correct data should be read")
        {
            REQUIRE(table[0] == (std::make_tuple(12, std::string("12"))));
            REQUIRE(table[1] == (std::make_tuple(2, std::string("2"))));
        }

        THEN("The correct number of records should be returned") { REQUIRE(csv.num_records() == 2); }

        THEN("The correct number of columns should be returned")
        {
            REQUIRE(csv.min_columns() == 3);
            REQUIRE(csv.max_columns() == 3);
        }

        THEN("The correct number of lines should be returned") { REQUIRE(csv.num_lines() == 3); }
    }

    WHEN("Reading a with quoted fields text")
    {
        std::istringstream in(R"("Hallo, Welt",Hi,"Er sagte: ""Hi""","12",13)"s + "\n" + R"("Hallo,)" + "\n" +
                              R"(Welt",Hi,"Er sagte: ""Hi""",1,"2")"s + "\n");
        auto csv = CsvReader::read(in);
        std::vector<std::tuple<std::string, std::string, std::string, int, int>> table;
        for (auto x : csv.rows<std::string, std::string, std::string, int, int>()) {
            table.push_back(x);
        }

        THEN("The correct data should be read")
        {
            REQUIRE(
                table[0] ==
                (std::make_tuple(std::string("Hallo, Welt"), std::string("Hi"), std::string("Er sagte: \"Hi\""), 12, 13)));
            REQUIRE(
                table[1] ==
                (std::make_tuple(std::string("Hallo,\nWelt"), std::string("Hi"), std::string("Er sagte: \"Hi\""), 1, 2)));
        }

        THEN("The correct number of records should be returned") { REQUIRE(csv.num_records() == 2); }

        THEN("The correct number of columns should be returned")
        {
            REQUIRE(csv.min_columns() == 5);
            REQUIRE(csv.max_columns() == 5);
        }

        THEN("The correct number of lines should be returned") { REQUIRE(csv.num_lines() == 3); }
    }
}

Added 3rdparty/util/tests/test_indentstream.cxx.



















































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/*
 * Copyright (c) 2018, 2020 Frank Fischer <frank-fischer@shadow-soft.de>
 *
 * This program is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see  <http://www.gnu.org/licenses/>
 */

#include "catch_amalgamated.hpp"

#include <fifr/util/IndentStream.hxx>

#include <sstream>

using namespace fifr::util;

SCENARIO("A new IndentStream")
{
    WHEN("Used with indentation")
    {
        std::ostringstream out;
        {
            IndentStream iout(out);
            iout << "Hello\nworld\n!!!";
        }
        THEN("should not indent the text") { REQUIRE(out.str() == "Hello\nworld\n!!!"); }
    }

    WHEN("Used with increased indentation")
    {
        std::ostringstream out;
        {
            IndentStream iout(out);
            iout.increase(2);
            iout << "Hello\nworld\n!!!";
        }
        THEN("should indent the text") { REQUIRE(out.str() == "  Hello\n  world\n  !!!"); }
    }

    WHEN("Used with increased indentation but is_first_line == false")
    {
        std::ostringstream out;
        {
            IndentStream iout(out, 2, false);
            iout << "Hello\nworld\n!!!";
        }
        THEN("should indent the text but the first line") { REQUIRE(out.str() == "Hello\n  world\n  !!!"); }
    }

    WHEN("Used with nested indentation")
    {
        std::ostringstream out;
        {
            IndentStream iout(out);
            iout.increase(2);
            iout << "def foo(x)\n";
            iout.increase(2);
            iout << "puts 42" << std::endl;
            iout.decrease(2);
            iout << "end\n";
        }
        THEN("should indent the text correctly") { REQUIRE(out.str() == "  def foo(x)\n    puts 42\n  end\n"); }
    }
}

Added 3rdparty/util/tests/test_main.cxx.







































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*
 * Copyright (c) 2016 Frank Fischer <frank-fischer@shadow-soft.de>
 *
 * This program is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see  <http://www.gnu.org/licenses/>
 */

#define CATCH_CONFIG_MAIN
#include "catch_amalgamated.hpp"

Added 3rdparty/util/tests/test_permutation.cxx.































































































































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
/*
 * Copyright (c) 2020 Frank Fischer <frank-fischer@shadow-soft.de>
 *
 * This program is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see  <http://www.gnu.org/licenses/>
 */

#include "catch_amalgamated.hpp"

#include <fifr/util/Permutation.hxx>
#include <fifr/util/Range.hxx>

#include <iostream>

using namespace fifr::util;

SCENARIO("Enumerate permutations")
{
    WHEN("Iterating 5 nMr 2")
    {
        auto p = nMr<2>(5);
        auto b = p.begin();
        auto e = p.end();

        for (auto i : range(5)) {
            for (auto j : range(5)) {
                REQUIRE((b != e));
                REQUIRE((*b++ == std::array{i, j}));
            }
        }
        REQUIRE(b == e);

        b = p.begin();
        for (auto [i, j] : nMr<2>(5)) {
            REQUIRE((*b++ == std::array{i, j}));
        }
    }

    WHEN("Iterating 5 nCr 2")
    {
        auto p = nCr<2>(5);
        auto b = p.begin();
        auto e = p.end();

        for (auto i : range(5)) {
            for (auto j : range(i + 1, 5)) {
                REQUIRE((b != e));
                REQUIRE((*b++ == std::array{i, j}));
            }
        }
        REQUIRE(b == e);

        b = p.begin();
        for (auto [i, j] : nCr<2>(5)) {
            REQUIRE((*b++ == std::array{i, j}));
        }
    }

    WHEN("Iterating 9 nCr 3")
    {
        auto p = nCr<3>(9);
        auto b = p.begin();
        auto e = p.end();

        for (auto i : range(9)) {
            for (auto j : range(i + 1, 9)) {
                for (auto k : range(j + 1, 9)) {
                    REQUIRE((b != e));
                    REQUIRE((*b++ == std::array{i, j, k}));
                }
            }
        }
        REQUIRE(b == e);
    }

    WHEN("Iterating 5 nMr 2 filtered")
    {
        auto p = nMr<2>(5, [](auto& x) { return x[0] != x[1]; });
        auto b = p.begin();
        auto e = p.end();

        for (auto i : range(5)) {
            for (auto j : range(5)) {
                if (i == j) continue;
                REQUIRE((b != e));
                REQUIRE((*b++ == std::array{i, j}));
            }
        }
        REQUIRE(b == e);

        auto b2 = p.begin();
        for (auto [i, j] : nMr<2>(5, [](auto& x) { return x[0] != x[1]; })) {
            REQUIRE((*b2++ == std::array{i, j}));
        }
    }

    WHEN("Iterating 5 nPr 2")
    {
        auto p = nPr<2>(5);
        auto b = p.begin();
        auto e = p.end();

        for (auto i : range(5)) {
            for (auto j : range(5)) {
                if (i == j) continue;
                REQUIRE((b != e));
                REQUIRE((*b++ == std::array{i, j}));
            }
        }
        REQUIRE(b == e);

        b = p.begin();
        for (auto [i, j] : nPr<2>(5)) {
            REQUIRE((*b++ == std::array{i, j}));
        }
    }

    WHEN("Iterating 9 nPr 3")
    {
        auto p = nPr<3>(9);
        auto b = p.begin();
        auto e = p.end();

        for (auto i : range(9)) {
            for (auto j : range(9)) {
                for (auto k : range(9)) {
                    if (i == j || i == k || j == k) continue;
                    REQUIRE((b != e));
                    REQUIRE((*b++ == std::array{i, j, k}));
                }
            }
        }
        REQUIRE(b == e);
    }

    WHEN("Iterating 9 nPr 3 filtered")
    {
        auto p = nPr<3>(9, [](auto& x) { return x[0] < x[2]; });
        auto b = p.begin();
        auto e = p.end();

        for (auto i : range(9)) {
            for (auto j : range(9)) {
                for (auto k : range(i + 1, 9)) {
                    if (i == j || k == j) continue;
                    REQUIRE((b != e));
                    REQUIRE((*b++ == std::array{i, j, k}));
                }
            }
        }
        REQUIRE(b == e);
    }

    WHEN("Iterating 3 nPr 4")
    {
        auto p = nPr<4>(3);
        THEN("The range should be empty") { REQUIRE((p.begin() == p.end())); }
    }

    WHEN("Iterating 3 nCr 4")
    {
        auto p = nCr<4>(3);
        THEN("The range should be empty") { REQUIRE((p.begin() == p.end())); }
    }
}

Added 3rdparty/util/tests/test_pretty.cxx.























































































































































































































































































































































































































































































































































































































































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
/*
 * Copyright (c) 2018, 2019, 2020 Frank Fischer <frank-fischer@shadow-soft.de>
 *
 * This program is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see  <http://www.gnu.org/licenses/>
 */

#include "catch_amalgamated.hpp"

#include <fifr/util/Pretty.hxx>

#include <iomanip>
#include <sstream>

using namespace fifr::util;

SCENARIO("Pretty print")
{
    WHEN("Pretty printing a scalar value")
    {
        std::ostringstream out;
        out << pretty(5);
        THEN("the plain value should be printed") { REQUIRE(out.str() == "5"); }
    }

#ifdef __cpp_if_constexpr
    WHEN("Pretty printing a maximal integral value")
    {
        std::ostringstream out;
        out << pretty(std::numeric_limits<int>::max());
        THEN("'max' should be printed") { REQUIRE(out.str() == "max"); }
    }

    WHEN("Pretty printing a minimal integral value")
    {
        std::ostringstream out;
        out << pretty(std::numeric_limits<int>::min());
        THEN("'min' should be printed") { REQUIRE(out.str() == "min"); }
    }

    WHEN("Pretty printing a minimal unsigned integral value")
    {
        std::ostringstream out;
        out << pretty(std::numeric_limits<unsigned>::min());
        THEN("'0' should be printed") { REQUIRE(out.str() == "0"); }
    }

    WHEN("Pretty printing a infinite floating point value")
    {
        std::ostringstream out;
        out << pretty(std::numeric_limits<double>::infinity());
        THEN("'inf' should be printed") { REQUIRE(out.str() == "inf"); }

        out.str("");
        out << pretty(-std::numeric_limits<double>::infinity());
        THEN("'-inf' should be printed") { REQUIRE(out.str() == "-inf"); }
    }
#endif

    WHEN("Pretty printing a boolean value")
    {
        std::ostringstream out;
        out << pretty(true);
        THEN("'true' should be printed") { REQUIRE(out.str() == "true"); }

        out.str("");
        out << pretty(false);
        THEN("'false' should be printed") { REQUIRE(out.str() == "false"); }
    }

    WHEN("Pretty printing a tuple value")
    {
        std::ostringstream out;
        out << pretty(std::make_tuple(1, "abc", 4.2));
        THEN("the value should be printed") { REQUIRE(out.str() == "(1, \"abc\", 4.2)"); }
    }

    WHEN("Pretty printing a multiline tuple value")
    {
        std::ostringstream out;
        out << pretty(std::make_tuple(1, "abc", 4.2), true);
        THEN("the value should be printed") { REQUIRE(out.str() == "(\n  1,\n  \"abc\",\n  4.2,\n)"); }
    }

    WHEN("Pretty printing a pair value")
    {
        std::ostringstream out;
        out << pretty(std::make_pair(1, "abc"));
        THEN("the value should be printed") { REQUIRE(out.str() == "(1, \"abc\")"); }
    }

    WHEN("Pretty printing a multiline pair value")
    {
        std::ostringstream out;
        out << pretty(std::make_pair(1, "abc"), true);
        THEN("the value should be printed") { REQUIRE(out.str() == "(\n  1,\n  \"abc\",\n)"); }
    }

    WHEN("Pretty printing a vector value")
    {
        std::ostringstream out;
        out << pretty(std::vector<int>{1, 2, 3});
        THEN("the value should be printed") { REQUIRE(out.str() == "[1, 2, 3]"); }
    }

    WHEN("Pretty printing a multiline vector value")
    {
        std::ostringstream out;
        out << pretty(std::vector<int>{1, 2, 3}, true);
        THEN("the plain value should be printed") { REQUIRE(out.str() == "[\n  1,\n  2,\n  3,\n]"); }
    }

    WHEN("Pretty printing an array value")
    {
        std::ostringstream out;
        out << pretty(std::array<int, 3>{1, 2, 3});
        THEN("the value should be printed") { REQUIRE(out.str() == "[1, 2, 3]"); }
    }

    WHEN("Pretty printing a map value")
    {
        std::ostringstream out;
        out << pretty(std::map<int, int>{{1, 2}, {3, 4}});
        THEN("the plain value should be printed") { REQUIRE(out.str() == "{1: 2, 3: 4}"); }
    }

    WHEN("Pretty printing a multiline map value")
    {
        std::ostringstream out;
        out << pretty(std::map<int, int>{{1, 2}, {3, 4}}, true);
        THEN("the plain value should be printed") { REQUIRE(out.str() == "{\n  1: 2,\n  3: 4,\n}"); }
    }

    WHEN("Pretty printing a multiline map value with custom indentation")
    {
        std::ostringstream out;
        out << std::setw(4) << pretty(std::map<int, int>{{1, 2}, {3, 4}}, true);
        THEN("the plain value should be printed") { REQUIRE(out.str() == "{\n    1: 2,\n    3: 4,\n}"); }
    }

#if __cpp_lib_optional
    WHEN("Pretty printing an empty optional") {
        std::ostringstream out;
        std::optional<int> x = {};
        out << pretty(x);
        THEN("the empty-set symbol '∅' should be printed") { REQUIRE(out.str() == "∅"); }
    }

    WHEN("Pretty printing a non-empty optional") {
        std::ostringstream out;
        std::optional<int> x = 42;
        out << pretty(x);
        THEN("the content should be printed") { REQUIRE(out.str() == "42"); }
    }
#endif
}

SCENARIO("Pretty read")
{
    WHEN("Pretty reading a scalar value")
    {
        std::istringstream in("  42");
        int x;
        in >> pretty(x);
        THEN("the correct value should be read") { REQUIRE(x == 42); }
    }

#ifdef __cpp_if_constexpr
    WHEN("Pretty reading an integral max value")
    {
        std::istringstream in(" max");
        int x;
        in >> pretty(x);
        THEN("the maximal value should be read") { REQUIRE(x == std::numeric_limits<int>::max()); }
    }

    WHEN("Pretty reading an invalid max value")
    {
        std::istringstream in("maxX");
        std::pair<int, std::string> x;
        THEN("an error should be raised") { REQUIRE_THROWS_AS(in >> pretty(x), ReadError); }
    }

    WHEN("Pretty reading an integral min value")
    {
        std::istringstream in(" min");
        int x;
        in >> pretty(x);
        THEN("the minimal value should be read") { REQUIRE(x == std::numeric_limits<int>::min()); }
    }

    WHEN("Pretty reading an invalid min value")
    {
        std::istringstream in("minN");
        std::pair<int, std::string> x;
        THEN("an error should be raised") { REQUIRE_THROWS_AS(in >> pretty(x), ReadError); }
    }
#endif

    WHEN("Pretty reading a boolean value 'true'")
    {
        bool x = false;
        std::istringstream in(" true");
        in >> pretty(x);
        THEN("true should be read") { REQUIRE(x == true); }
    }

    WHEN("Pretty reading a boolean value '1'")
    {
        bool x = false;
        std::istringstream in(" 1");
        in >> pretty(x);
        THEN("true should be read") { REQUIRE(x == true); }
    }

    WHEN("Pretty reading a boolean value 'false'")
    {
        bool x = true;
        std::istringstream in(" false");
        in >> pretty(x);
        THEN("false should be read") { REQUIRE(x == false); }
    }

    WHEN("Pretty reading a boolean value '0'")
    {
        bool x = true;
        std::istringstream in(" 0");
        in >> pretty(x);
        THEN("false should be read") { REQUIRE(x == false); }
    }

    WHEN("Pretty reading a floating point value")
    {
        double x = 1;
        std::istringstream in(" -3.42");
        in >> pretty(x);
        THEN("the correct value should be read") { REQUIRE(std::fabs(x - -3.42) < 1e-9); }
    }

#ifdef __cpp_if_constexpr
    WHEN("Pretty reading a floating point value 'inf'")
    {
        double x = 1;
        std::istringstream in(" inf");
        in >> pretty(x);
        THEN("infinity should be read") { REQUIRE(x == std::numeric_limits<double>::infinity()); }
    }

    WHEN("Pretty reading a floating point value '-inf'")
    {
        double x = 1;
        std::istringstream in(" -inf");
        in >> pretty(x);
        THEN("-infinity should be read") { REQUIRE(x == -std::numeric_limits<double>::infinity()); }
    }
#endif

    WHEN("Pretty reading a tuple value")
    {
        std::istringstream in("  (  2, \"abc\", 4.2 )");
        std::tuple<int, std::string, double> x;
        in >> pretty(x);
        THEN("the correct value should be read")
        {
            REQUIRE(std::get<0>(x) == 2);
            REQUIRE(std::get<1>(x) == "abc");
            REQUIRE(std::get<2>(x) == 4.2);
        }
    }

    WHEN("Pretty reading a tuple value with a trailing comma")
    {
        std::istringstream in("  (  2, \"abc\", 4.2, )");
        std::tuple<int, std::string, double> x;
        in >> pretty(x);
        THEN("the correct value should be read")
        {
            REQUIRE(std::get<0>(x) == 2);
            REQUIRE(std::get<1>(x) == "abc");
            REQUIRE(std::get<2>(x) == 4.2);
        }
    }

    WHEN("Pretty reading an empty tuple")
    {
        std::istringstream in("  (  )");
        std::tuple<> x;
        in >> pretty(x);
    }

    WHEN("Pretty reading an invalid tuple value")
    {
        std::istringstream in;
        std::tuple<int, std::string, double> x;
        THEN("an error should be raised") { REQUIRE_THROWS_AS(in >> pretty(x), ReadError); }
    }

    WHEN("Pretty reading a pair value")
    {
        std::istringstream in("  (  2, \"abc\" )");
        std::pair<int, std::string> x;
        in >> pretty(x);
        THEN("the correct value should be read")
        {
            REQUIRE(x.first == 2);
            REQUIRE(x.second == "abc");
        }
    }

    WHEN("Pretty reading a pair value with a trailing comma")
    {
        std::istringstream in("  (  2, \"abc\", )");
        std::pair<int, std::string> x;
        in >> pretty(x);
        THEN("the correct value should be read")
        {
            REQUIRE(x.first == 2);
            REQUIRE(x.second == "abc");
        }
    }

    WHEN("Pretty reading an invalid pair value")
    {
        std::istringstream in;
        std::pair<int, std::string> x;
        THEN("an error should be raised") { REQUIRE_THROWS_AS(in >> pretty(x), ReadError); }
    }

    WHEN("Pretty reading a vector value")
    {
        std::istringstream in("[1,2,3]");
        std::vector<int> x;
        in >> pretty(x);
        THEN("the correct value should be read") { REQUIRE(x == std::vector<int>({1, 2, 3})); }
    }

    WHEN("Pretty reading a vector value with trailing comma")
    {
        std::istringstream in("[1,2,3,]");
        std::vector<int> x;
        in >> pretty(x);
        THEN("the correct value should be read") { REQUIRE(x == std::vector<int>({1, 2, 3})); }
    }

    WHEN("Pretty reading an invalid vector value")
    {
        std::istringstream in;
        std::vector<std::string> x;
        THEN("an error should be raised") { REQUIRE_THROWS_AS(in >> pretty(x), ReadError); }
    }

    WHEN("Pretty reading a vector value to an array of correct size")
    {
        std::istringstream in("[1,2,3]");
        std::array<int, 3> x;
        in >> pretty(x);
        THEN("the correct value should be read") { REQUIRE(x == (std::array<int, 3>{1, 2, 3})); }
    }

    WHEN("Pretty reading a vector value to an array of wrong size")
    {
        std::istringstream in("[1,2,3]");
        std::array<int, 4> x;
        THEN("an error should be raised") { REQUIRE_THROWS(in >> pretty(x)); }
    }

    WHEN("Pretty reading a map value")
    {
        std::istringstream in("{1: 2, 3: 4}");
        std::map<int, int> x;
        in >> pretty(x);
        THEN("the correct value should be read") { REQUIRE((x == std::map<int, int>{{1, 2}, {3, 4}})); }
    }

    WHEN("Pretty reading a map value with trailing comma")
    {
        std::istringstream in("{1: 2, 3: 4,}");
        std::map<int, int> x;
        in >> pretty(x);
        THEN("the correct value should be read") { REQUIRE((x == std::map<int, int>{{1, 2}, {3, 4}})); }
    }

    WHEN("Pretty reading an invalid map value")
    {
        std::istringstream in("{1: 2, 3: 4.2}");
        std::map<int, int> x;
        THEN("an error should be raised") { REQUIRE_THROWS_AS(in >> pretty(x), ReadError); }
    }

#if __cpp_lib_optional
    WHEN("Pretty reading an empty optional") {
        std::istringstream in("∅");
        std::optional<int> x = 42;
        in >> pretty(x);
        THEN("an empty optional should be read") { REQUIRE(!x.has_value()); }
    }

    WHEN("Pretty reading an non-empty but valid optional value") {
        std::istringstream in("42");
        std::optional<int> x = 42;
        in >> pretty(x);
        THEN("the value should be read") { REQUIRE(x == 42); }

        in.clear();
        in.str("\"foo\"");
        std::optional<std::string> s;
        in >> pretty(s);
        THEN("the value should be read") { REQUIRE(s == "foo"); }
    }

    WHEN("Pretty reading an non-empty but invalid optional value") {
        std::istringstream in("\"foo\"");
        std::optional<std::pair<int, int>> x = {};
        THEN("an error should be raised") { REQUIRE_THROWS_AS(in >> pretty(x), ReadError); }
    }
#endif
}

Added 3rdparty/util/tests/test_prettystruct.cxx.







































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
/*
 * Copyright (c) 2018-2021 Frank Fischer <frank-fischer@shadow-soft.de>
 *
 * This program is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see  <http://www.gnu.org/licenses/>
 */

#include "catch_amalgamated.hpp"

#include <fifr/util/PrettyStruct.hxx>

#include <sstream>

using namespace fifr::util;

SCENARIO("Read a valid string")
{
    GIVEN("A valid string")
    {
        std::istringstream in("MyStruct[a:1,b:2,c:3]");
        WHEN("reading all fields")
        {
            int a, b, c;
            pretty_read_struct(in, "MyStruct", "a", a, "b", b, "c", c);
            THEN("the correct values should be read")
            {
                REQUIRE(a == 1);
                REQUIRE(b == 2);
                REQUIRE(c == 3);
            }
        }

        WHEN("reading all fields in a different order")
        {
            int a, b, c;
            pretty_read_struct(in, "MyStruct", "b", b, "c", c, "a", a);
            THEN("the correct values should be read")
            {
                REQUIRE(a == 1);
                REQUIRE(b == 2);
                REQUIRE(c == 3);
            }
        }

        WHEN("specifying a different name")
        {
            THEN("An error should be raised")
            {
                int a, b, c;
                REQUIRE_THROWS_AS(pretty_read_struct(in, "Foo", "a", a, "b", b, "c", c), ReadError);
            }
        }

        WHEN("Reading an extra field")
        {
            THEN("An error should be raised")
            {
                int a, b, c, d;
                REQUIRE_THROWS_AS(pretty_read_struct(in, "MyStruct", "a", a, "b", b, "c", c, "d", d), ReadError);
            }
        }

        WHEN("Not reading a certain field")
        {
            THEN("An error should be raised")
            {
                int a, c;
                REQUIRE_THROWS_AS(pretty_read_struct(in, "Foo", "a", a, "c", c), ReadError);
            }
        }
    }

    GIVEN("A valid string with floating point numbers")
    {
        std::istringstream in("MyStruct[a:2,b:4.2,c:5.2e-4]");
        WHEN("Reading the field with correct types")
        {
            int a;
            double b, c;
            pretty_read_struct(in, "MyStruct", "a", a, "b", b, "c", c);
            THEN("the correct values should be read")
            {
                REQUIRE(a == 2);
                REQUIRE(b == 4.2);
                REQUIRE(c == 5.2e-4);
            }
        }

        WHEN("Reading the field with invalid types")
        {
            int a;
            int b, c;
            THEN("an error should be raised")
            {
                REQUIRE_THROWS_AS(pretty_read_struct(in, "MyStruct", "a", a, "b", b, "c", c), ReadError);
            }
        }
    }

    GIVEN("A valid string with spaces")
    {
        std::istringstream in("  MyStruct    [    a    :    1    ,  \n  b    :    2    ,    c    :    3    ]  ");
        WHEN("reading all fields")
        {
            int a, b, c;
            pretty_read_struct(in, "MyStruct", "a", a, "b", b, "c", c);
            THEN("the correct values should be read")
            {
                REQUIRE(a == 1);
                REQUIRE(b == 2);
                REQUIRE(c == 3);
            }
        }
    }

    GIVEN("A valid string with a string value")
    {
        WHEN("reading a simple string")
        {
            std::istringstream in("MyStruct[s:\"hello world\", b:42]");
            std::string s;
            int b;
            pretty_read_struct(in, "MyStruct", "s", s, "b", b);
            THEN("the correct values should be read")
            {
                REQUIRE(s == "hello world");
                REQUIRE(b == 42);
            }
        }

        WHEN("reading a string with escaped values")
        {
            std::istringstream in(R"(MyStruct[s:"hello\t\"world\"\r\nyeah", b:42])");
            std::string s;
            int b;
            pretty_read_struct(in, "MyStruct", "s", s, "b", b);
            THEN("the correct values should be read")
            {
                REQUIRE(s == "hello\t\"world\"\r\nyeah");
                REQUIRE(b == 42);
            }
        }

        WHEN("reading a string with escaped zero")
        {
            std::istringstream in(R"(MyStruct[s:"hello\0world"])");
            std::string s;
            pretty_read_struct(in, "MyStruct", "s", s);
            THEN("the zero character should be read correctly")
            {
                std::string s0 = "hello world";
                s0.replace(s0.find(' '), 1, 1, '\0');
                REQUIRE(s == s0);
            }
        }
    }

    WHEN("Reading a struct with a non-required missing field")
    {
        std::istringstream in("MyStruct[a: 1, c: 2]");
        THEN("An error should be raised")
        {
            int a = 0, b = 0, c = 0;
            pretty_read_struct_optional(in, "MyStruct", "a", a, "b", b, "c", c);
            REQUIRE(a == 1);
            REQUIRE(b == 0);
            REQUIRE(c == 2);
        }
    }
}

SCENARIO("Reading an invalid string")
{
    WHEN("Reading a struct with a missing '['")
    {
        std::istringstream in("MyStruct");
        THEN("An error should be raised") { REQUIRE_THROWS_AS(pretty_read_struct(in, "MyStruct"), ReadError); }
    }

    WHEN("Reading a struct with a wrong opening brace")
    {
        std::istringstream in("MyStruct(a: 1, b: 2)");
        THEN("An error should be raised")
        {
            int a, c;
            REQUIRE_THROWS_AS(pretty_read_struct(in, "MyStruct", "a", a, "c", c), ReadError);
        }
    }

    WHEN("Reading a struct with a wrong closing brace")
    {
        std::istringstream in("MyStruct[a: 1, c: 2)");
        THEN("An error should be raised")
        {
            int a, c;
            REQUIRE_THROWS_AS(pretty_read_struct(in, "MyStruct", "a", a, "c", c), ReadError);
        }
    }

    WHEN("Reading a struct with an invalid field character")
    {
        std::istringstream in("MyStruct[a,: 1, c: 2]");
        THEN("An error should be raised")
        {
            int a, c;
            REQUIRE_THROWS_AS(pretty_read_struct(in, "MyStruct", "a", a, "c", c), ReadError);
        }
    }

    WHEN("Reading a struct with a missing comma")
    {
        std::istringstream in("MyStruct[a: 1 c: 2]");
        THEN("An error should be raised")
        {
            int a, c;
            REQUIRE_THROWS_AS(pretty_read_struct(in, "MyStruct", "a", a, "c", c), ReadError);
        }
    }

    WHEN("Reading a struct with a missing field")
    {
        std::istringstream in("MyStruct[a: 1, c: 2]");
        THEN("An error should be raised")
        {
            int a, b, c;
            REQUIRE_THROWS_AS(pretty_read_struct(in, "MyStruct", "a", a, "b", b, "c", c), ReadError);
        }
    }
}

SCENARIO("Reading an array value")
{
    WHEN("Reading a valid int array")
    {
        std::istringstream in("MyStruct[a: [1, 2,\n   3]]");
        THEN("the array should be read correctly")
        {
            std::vector<int> ary;
            pretty_read_struct(in, "MyStruct", "a", ary);
            REQUIRE(ary == std::vector<int>({1, 2, 3}));
        }
    }

    WHEN("Reading a valid string array")
    {
        std::istringstream in(R"(MyStruct[a: ["foo","bar"]])");
        THEN("the array should be read correctly")
        {
            std::vector<std::string> ary;
            pretty_read_struct(in, "MyStruct", "a", ary);
            REQUIRE(ary == std::vector<std::string>({"foo", "bar"}));
        }
    }

    WHEN("Reading a valid empty array")
    {
        std::istringstream in("MyStruct[a: []]");
        THEN("the array should be read correctly")
        {
            std::vector<double> ary;
            pretty_read_struct(in, "MyStruct", "a", ary);
            REQUIRE(ary.empty());
        }
    }

    WHEN("Reading an array with wrong opening brace")
    {
        std::istringstream in("MyStruct[a: (1,2,3)]");
        THEN("an error should be raised")
        {
            std::vector<double> ary;
            REQUIRE_THROWS_AS(pretty_read_struct(in, "MyStruct", "a", ary), ReadError);
        }
    }

    WHEN("Reading an array with wrong closing brace")
    {
        std::istringstream in("MyStruct[a: [1,2,3)]");
        THEN("an error should be raised")
        {
            std::vector<double> ary;
            REQUIRE_THROWS_AS(pretty_read_struct(in, "MyStruct", "a", ary), ReadError);
        }
    }

    WHEN("Reading an array with wrong separator brace")
    {
        std::istringstream in("MyStruct[a: [1,2;3]]");
        THEN("an error should be raised")
        {
            std::vector<double> ary;
            REQUIRE_THROWS_AS(pretty_read_struct(in, "MyStruct", "a", ary), ReadError);
        }
    }

    WHEN("Reading an array with wrong type")
    {
        std::istringstream in("MyStruct[a: [1,2,3]]");
        THEN("an error should be raised")
        {
            std::vector<std::string> ary;
            REQUIRE_THROWS_AS(pretty_read_struct(in, "MyStruct", "a", ary), ReadError);
        }
    }
}

SCENARIO("Reading a map value")
{
    WHEN("Reading a valid map")
    {
        std::istringstream in(R"(MyStruct[m: {"foo":42, "bar":23}])");
        THEN("the map should be read correctly")
        {
            std::map<std::string, int> map;
            pretty_read_struct(in, "MyStruct", "m", map);
            std::map<std::string, int> expected = {{"foo", 42}, {"bar", 23}};
            REQUIRE(map == expected);
        }
    }

    WHEN("Reading a valid empty map")
    {
        std::istringstream in("MyStruct[m: {}]");
        THEN("the array should be read correctly")
        {
            std::map<int, int> map;
            pretty_read_struct(in, "MyStruct", "m", map);
            REQUIRE(map.empty());
        }
    }

    WHEN("Reading a map with wrong opening brace")
    {
        std::istringstream in("MyStruct[m: [1: 2, 3: 4}]");
        THEN("an error should be raised")
        {
            std::map<int, int> map;
            REQUIRE_THROWS_AS(pretty_read_struct(in, "MyStruct", "m", map), ReadError);
        }
    }

    WHEN("Reading an map with wrong closing brace")
    {
        std::istringstream in("MyStruct[m: {1: 2, 3: 4]]");
        THEN("an error should be raised")
        {
            std::map<int, int> map;
            REQUIRE_THROWS_AS(pretty_read_struct(in, "MyStruct", "m", map), ReadError);
        }
    }

    WHEN("Reading a map with wrong element separator")
    {
        std::istringstream in("MyStruct[m: {1:2; 3:4}]");
        THEN("an error should be raised")
        {
            std::map<int, int> map;
            REQUIRE_THROWS_AS(pretty_read_struct(in, "MyStruct", "m", map), ReadError);
        }
    }

    WHEN("Reading an array with wrong key type")
    {
        std::istringstream in("MyStruct[m: {1: 2, 3.2: 4}]");
        THEN("an error should be raised")
        {
            std::map<int, int> map;
            REQUIRE_THROWS_AS(pretty_read_struct(in, "MyStruct", "m", map), ReadError);
        }
    }

    WHEN("Reading an array with wrong value type")
    {
        std::istringstream in("MyStruct[m: {1: 2, 3: 4.2}]");
        THEN("an error should be raised")
        {
            std::map<int, int> map;
            REQUIRE_THROWS_AS(pretty_read_struct(in, "MyStruct", "m", map), ReadError);
        }
    }
}

SCENARIO("Write a formatted struct")
{
    WHEN("Writing a struct")
    {
        std::ostringstream out;
        pretty_print_struct(out, "MyStruct", "a", 1, "b", true, "c", -0.32e-42);
        THEN("the correct string should be generated") { REQUIRE(out.str() == "MyStruct[a: 1, b: true, c: -3.2e-43]"); }
    }

    WHEN("Writing a string value")
    {
        std::ostringstream out;
        pretty_print_struct(out, "MyStruct", "s", std::string("hello world"));
        THEN("the value should be quoted") { REQUIRE(out.str() == "MyStruct[s: \"hello world\"]"); }
    }

    WHEN("Writing a string value containing \\")
    {
        std::ostringstream out;
        pretty_print_struct(out, "MyStruct", "s", std::string("hello\\world"));
        THEN("the \\ should be escaped") { REQUIRE(out.str() == "MyStruct[s: \"hello\\\\world\"]"); }
    }

    WHEN("Writing a string value containing \"")
    {
        std::ostringstream out;
        pretty_print_struct(out, "MyStruct", "s", "hello \"world\"");
        THEN("the \" should be escaped") { REQUIRE(out.str() == "MyStruct[s: \"hello \\\"world\\\"\"]"); }
    }

    WHEN("Writing a string value containing \\n, \\r, \\t")
    {
        std::ostringstream out;
        pretty_print_struct(out, "MyStruct", "s", "hello\tworld\r\nyeah");
        THEN("they should be escaped") { REQUIRE(out.str() == "MyStruct[s: \"hello\\tworld\\r\\nyeah\"]"); }
    }

    WHEN("Writing a string value with embedded zero")
    {
        std::string s0 = "hello world";
        s0.replace(s0.find(' '), 1, 1, '\0');
        std::ostringstream out;
        pretty_print_struct(out, "MyStruct", "s", s0);
        THEN("the zero should be escaped") { REQUIRE(out.str() == "MyStruct[s: \"hello\\0world\"]"); }
    }

    WHEN("Writing a multiline struct")
    {
        std::ostringstream out;
        pretty_print_struct_multiline(out, "MyStruct", "a", 1, "b", 2);
        THEN("the resulting string should be multiline") { REQUIRE(out.str() == "MyStruct[\n  a: 1,\n  b: 2,\n]"); }
    }

    WHEN("Writing a struct with multiline value")
    {
        std::ostringstream out;
        pretty_print_struct_multiline(out, "MyStruct", "a", multiline(std::vector<int>{1, 2, 3}), "b", multiline(2));
        THEN("the resulting string should be multiline")
        {
            REQUIRE(out.str() == "MyStruct[\n  a: [\n    1,\n    2,\n    3,\n  ],\n  b: 2,\n]");
        }
    }
}

SCENARIO("Array values")
{
    WHEN("Writing an integer array field")
    {
        std::ostringstream out;
        pretty_print_struct(out, "MyStruct", "a", std::vector<int>{1, 2, 3});
        THEN("the resulting string should be correct") { REQUIRE(out.str() == "MyStruct[a: [1, 2, 3]]"); }
    }

    WHEN("Writing an string array field")
    {
        std::ostringstream out;
        pretty_print_struct(out, "MyStruct", "a", std::vector<std::string>{"foo", "bar"});
        THEN("the resulting string should be correct and the element should be quoted")
        {
            REQUIRE(out.str() == "MyStruct[a: [\"foo\", \"bar\"]]");
        }
    }

    WHEN("Writing an empty array field")
    {
        std::ostringstream out;
        pretty_print_struct(out, "MyStruct", "a", std::vector<std::string>{});
        THEN("the resulting string should contain an empty array") { REQUIRE(out.str() == "MyStruct[a: []]"); }
    }
}

SCENARIO("Map values")
{
    WHEN("Writing a map field")
    {
        std::ostringstream out;
        pretty_print_struct(out, "MyStruct", "m", std::map<std::string, int>{{"foo", 1}, {"bar", 2}});
        THEN("the resulting string should be correct")
        {
            REQUIRE(out.str() == "MyStruct[m: {\"bar\": 2, \"foo\": 1}]");
        }
    }

    WHEN("Writing a multiline map field")
    {
        std::ostringstream out;
        pretty_print_struct(out, "MyStruct", "m", multiline(std::map<std::string, int>{{"foo", 1}, {"bar", 2}}));
        THEN("the resulting string should be correct")
        {
            REQUIRE(out.str() == "MyStruct[m: {\n    \"bar\": 2,\n    \"foo\": 1,\n  }]");
        }
    }

    WHEN("Writing a multiline map field in multiline struct")
    {
        std::ostringstream out;
        pretty_print_struct_multiline(out, "MyStruct", "m", multiline(std::map<std::string, int>{{"foo", 1}, {"bar", 2}}));
        THEN("the resulting string should be correct")
        {
            REQUIRE(out.str() == "MyStruct[\n  m: {\n    \"bar\": 2,\n    \"foo\": 1,\n  },\n]");
        }
    }
}

Added 3rdparty/util/tests/test_range.cxx.



























































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
/*
 * Copyright (c) 2024 Frank Fischer <frank-fischer@shadow-soft.de>
 *
 * This program is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see  <http://www.gnu.org/licenses/>
 */

#include "catch_amalgamated.hpp"

#include <fifr/util/Range.hxx>

#if __cpp_lib_ranges
#include <iterator>
#include <ranges>
#endif

using namespace fifr::util;

SCENARIO("Range")
{
    GIVEN("A range")
    {
#if __cpp_lib_ranges
        THEN("should implement std::ranges::begin(...)")
        {
            auto r = range(0, 42, 1);
            std::ranges::begin(r);
        }
        THEN("should implement std::ranges::end(...)")
        {
            auto r = range(0, 42, 1);
            std::ranges::end(r);
        }

        // static_assert(std::input_or_output_iterator<range<int, int>::iterator>);
        // static_assert(std::sentinel_for<range<int, int>::end_iterator, range<int, int>::iterator>);
        // static_assert(std::ranges::range<range<int, int>>);

        // static_assert(std::input_or_output_iterator<range<uint32_t, uint32_t>::iterator>);
        // static_assert(std::sentinel_for<range<uint32_t, uint32_t>::end_iterator, range<uint32_t,
        // uint32_t>::iterator>); static_assert(std::ranges::range<range<uint32_t, uint32_t>>);
#endif

        THEN("it can be used as a range over signed integers starting at 0")
        {
            std::vector<int> v;
#if __cpp_lib_ranges
            std::ranges::copy(range(10), std::back_inserter(v));
#else
            for (auto i : range(10)) v.push_back(i);
#endif
            REQUIRE(v.size() == 10);
            for (std::size_t i = 0; i < 10; i++) {
                REQUIRE(v[i] == (int)i);
            }
        }

        THEN("it can be used as a range over signed integers not starting at 0")
        {
            std::vector<int> v;
#if __cpp_lib_ranges
            std::ranges::copy(range(1, 10), std::back_inserter(v));
#else
            for (auto i : range(1, 10)) v.push_back(i);
#endif
            REQUIRE(v.size() == 9);
            for (std::size_t i = 0; i < 9; i++) {
                REQUIRE(v[i] == (int)i + 1);
            }
        }

        THEN("it can be used as a range over unsigned integers starting at 0")
        {
            std::vector<uint32_t> v;
#if __cpp_lib_ranges
            std::ranges::copy(range(10U), std::back_inserter(v));
#else
            for (auto i : range(10U)) v.push_back(i);
#endif
            REQUIRE(v.size() == 10);
            for (std::size_t i = 0; i < 10; i++) {
                REQUIRE(v[i] == (uint32_t)i);
            }
        }

        THEN("it can be used as a range over unsigned integers not starting at 0")
        {
            std::vector<uint32_t> v;
#if __cpp_lib_ranges
            std::ranges::copy(range(1U, 10U), std::back_inserter(v));
#else
            for (auto i : range(1U, 10U)) v.push_back(i);
#endif
            REQUIRE(v.size() == 9);
            for (std::size_t i = 0; i < 9; i++) {
                REQUIRE(v[i] == (uint32_t)i + 1);
            }
        }

        THEN("it can be used as a range over unsigned integers with positive step size")
        {
            std::vector<uint32_t> v;
#if __cpp_lib_ranges
            std::ranges::copy(range(1U, 20U, 2), std::back_inserter(v));
#else
            for (auto i : range(1U, 20U, 2)) v.push_back(i);
#endif
            REQUIRE(v.size() == 10);
            for (std::size_t i = 0; i < 10; i++) {
                REQUIRE(v[i] == (uint32_t)(2 * i + 1));
            }
        }

        THEN("it can be used as a range over unsigned integers with positive step size from variables")
        {
            std::vector<uint32_t> v;
            uint32_t a = 1;
            uint32_t b = 20;
            uint32_t s = 2;
#if __cpp_lib_ranges
            std::ranges::copy(range(a, b, s), std::back_inserter(v));
#else
            for (auto i : range(a, b, s)) v.push_back(i);
#endif
            REQUIRE(v.size() == 10);
            for (std::size_t i = 0; i < 10; i++) {
                REQUIRE(v[i] == (uint32_t)(2 * i + 1));
            }
        }
    }
}

Added 3rdparty/util/tests/test_sort.cxx.























































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/*
 * Copyright (c) 2016 Frank Fischer <frank-fischer@shadow-soft.de>
 *
 * This program is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see  <http://www.gnu.org/licenses/>
 */

#include "catch_amalgamated.hpp"

#include <fifr/util/SortBy.hxx>

#include <vector>

using namespace fifr::util;

SCENARIO("Sorting by keys")
{
    GIVEN("A vector of numbers")
    {
        std::vector<int> nums = {5, 1, 8, 0, 2, 3, 4, 7, 9, 6};

        WHEN("Sorting by a given vector of weights")
        {
            std::vector<double> weights;
            for (auto i : nums) {
                weights.push_back(std::abs(i - 3.2));
            }

            sort_by(nums, weights);

            THEN("should be sorted by increasing weights")
            {
                std::vector<int> res = {3, 4, 2, 5, 1, 6, 0, 7, 8, 9};
                REQUIRE(nums == res);
            }
        }

        WHEN("sorting by a key function")
        {
            sort_by(nums, [](int x) { return -x; });

            THEN("should be sorted by increased keys")
            {
                std::vector<int> res = {9, 8, 7, 6, 5, 4, 3, 2, 1, 0};
                REQUIRE(nums == res);
            }
        }
    }
}

Added 3rdparty/util/tests/test_string.cxx.





















































































































































































































































































































































































































































































































































































































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
/*
 * Copyright (c) 2016 2017, 2019, 2023 Frank Fischer <frank-fischer@shadow-soft.de>
 *
 * This program is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see  <http://www.gnu.org/licenses/>
 */

#include <fifr/util/Convert.hxx>
#include <fifr/util/Join.hxx>
#include <fifr/util/Scan.hxx>
#include <fifr/util/Split.hxx>
#include <fifr/util/String.hxx>

#include <iostream>
#include <vector>

#include "catch_amalgamated.hpp"

using namespace fifr::util;

SCENARIO("Join to a string")
{
    GIVEN("A vector of strings")
    {
        std::vector<std::string> vec{"Hello", "World", "!"};

        WHEN("Joining without separator")
        {
            THEN("should return the joined string") { REQUIRE(join(vec).str() == "HelloWorld!"); }

            THEN("should output to a stream")
            {
                std::ostringstream out;
                out << join(vec);
                REQUIRE(out.str() == "HelloWorld!");
            }
        }

        WHEN("Joining with separator")
        {
            THEN("should return the joined string") { REQUIRE(join(vec, ", ").str() == "Hello, World, !"); }

            THEN("should output to a stream")
            {
                std::ostringstream out;
                out << join(vec, ", ");
                REQUIRE(out.str() == "Hello, World, !");
            }
        }
    }

    WHEN("Joining a fixed number of objects")
    {
        auto str = join("_", 1, "2", 3.4);
        THEN("should return the correct string") { REQUIRE(str == "1_2_" + std::to_string(3.4)); }
    }
}

SCENARIO("Split a string")
{
    GIVEN("An empty string")
    {
        WHEN("splitting the string")
        {
            THEN("should return exactly one empty part")
            {
                auto spl = splitv("");
                REQUIRE(spl.size() == 1);
                REQUIRE(spl[0].empty());
            }
        }
    }

    GIVEN("A string")
    {
        std::string str = "1, 2,3 , 4  ,5 ,,";

        WHEN("splitting with default separator")
        {
            auto spl = splitv(str);
            THEN("should split at whitespaces")
            {
                REQUIRE(spl.size() == 6);
                REQUIRE(spl[0] == "1,");
                REQUIRE(spl[1] == "2,3");
                REQUIRE(spl[2] == ",");
                REQUIRE(spl[3] == "4");
                REQUIRE(spl[4] == ",5");
                REQUIRE(spl[5] == ",,");
            }
        }

        WHEN("splitting a string")
        {
            auto spl = splitv(str, std::regex(" *, *"));

            THEN("should contain the parts")
            {
                REQUIRE(spl.size() == 7);
                for (auto i : range(5ul)) {
                    REQUIRE(spl[i] == std::to_string(i + 1));
                }
                REQUIRE(spl[5].empty());
                REQUIRE(spl[6].empty());
            }
        }

        WHEN("splitting a string with fixed typed parameters")
        {
            int x;
            double y;
            std::string z;
            split("1,2.5,xxx", std::regex(","), x, y, z);
            THEN("should give the correct values")
            {
                REQUIRE(x == 1);
                REQUIRE(y == 2.5);
                REQUIRE(z == "xxx");
            }
        }

        WHEN("splitting a string into a tuple")
        {
            auto spl = split<int, double, std::string>("1,2.5,xxx", std::regex(","));
            THEN("should give the correct results")
            {
                REQUIRE(std::get<0>(spl) == 1);
                REQUIRE(std::get<1>(spl) == 2.5);
                REQUIRE(std::get<2>(spl) == "xxx");
            }
        }
    }
}

SCENARIO("Testing start and end of a string")
{
    GIVEN("A string")
    {
        std::string str = "this is a string";

        THEN("should return true for the correct start") { REQUIRE(starts_with(str, "this")); }

        THEN("should return false for the wrong start") { REQUIRE(!starts_with(str, "xxx")); }

        THEN("should return false for too long starts") { REQUIRE(!starts_with(str, "this is a too long string")); }

        THEN("should return true for the correct end") { REQUIRE(ends_with(str, "string")); }

        THEN("should return false for the wrong end") { REQUIRE(!ends_with(str, "xxx")); }

        THEN("should return false for too long ends") { REQUIRE(!starts_with(str, "this is a too long string")); }
    }
}

SCENARIO("Fixed splitting")
{
    GIVEN("A string")
    {
        WHEN("the string contains enough parts")
        {
            auto parts = split<3>("1 2 3 4 5");
            THEN("the first parts should be correct")
            {
                REQUIRE(parts[0] == "1");
                REQUIRE(parts[1] == "2");
                REQUIRE(parts[2] == "3");
            }
        }

        WHEN("the string does not contain enough parts")
        {
            auto parts = split<5>("1 2 3");
            THEN("the first parts should be correct")
            {
                REQUIRE(parts[0] == "1");
                REQUIRE(parts[1] == "2");
                REQUIRE(parts[2] == "3");
            }

            THEN("the remaining parts should be empty")
            {
                REQUIRE(parts[3].empty());
                REQUIRE(parts[4].empty());
            }
        }
    }
}

SCENARIO("Fixed splitting into tuple")
{
    GIVEN("A string")
    {
        WHEN("the string contains enough parts")
        {
            auto parts = split<int, int, std::string>("1 2 3 4 5");
            THEN("the first parts should be correct")
            {
                REQUIRE(std::get<0>(parts) == 1);
                REQUIRE(std::get<1>(parts) == 2);
                REQUIRE(std::get<2>(parts) == "3");
            }
        }

        WHEN("the string does not contain enough parts")
        {
            auto parts = split<int, int, int, int, int>("1 2 3");
            THEN("the first parts should be correct")
            {
                REQUIRE(std::get<0>(parts) == 1);
                REQUIRE(std::get<1>(parts) == 2);
                REQUIRE(std::get<2>(parts) == 3);
            }

            THEN("the remaining parts should contain the default value")
            {
                REQUIRE(std::get<3>(parts) == int());
                REQUIRE(std::get<4>(parts) == int());
            }
        }
    }
}

SCENARIO("Scan a string")
{
    GIVEN("A long string")
    {
        std::string str = "line 1: a\nline 2:b\nline 3:c\n";

        WHEN("Scanning for a regex")
        {
            auto re = std::regex(R"((\d+)\s*:\s*(\S+))");
            THEN("should iterator over all matches")
            {
                std::vector<std::pair<std::string, std::string>> results;
                for (const auto& m : scan_matches(str, re)) {
                    results.emplace_back(m.str(1), m.str(2));
                }

                REQUIRE(results.size() == 3);
                REQUIRE(results[0].first == "1");
                REQUIRE(results[0].second == "a");
                REQUIRE(results[1].first == "2");
                REQUIRE(results[1].second == "b");
                REQUIRE(results[2].first == "3");
                REQUIRE(results[2].second == "c");
            }
        }

        WHEN("Converting the scan to vector of full match strings")
        {
            auto re = std::regex(R"((\d+)\s*:\s*\S+)");
            auto results = scan(str, re).collect();
            THEN("the parts should be extracted correctly")
            {
                REQUIRE(results[0] == "1: a");
                REQUIRE(results[1] == "2:b");
                REQUIRE(results[2] == "3:c");
            }
        }

        WHEN("Converting the scan to a value vector")
        {
            auto re = std::regex(R"((\d+)\s*:\s*\S+)");
            auto results = scan<int>(str, re).collect();
            THEN("the parts should be extracted correctly")
            {
                REQUIRE(results[0] == 1);
                REQUIRE(results[1] == 2);
                REQUIRE(results[2] == 3);
            }
        }

        WHEN("Converting the scan to a pair vector")
        {
            auto re = std::regex(R"((\d+)\s*:\s*(\S+))");
            auto results = scan<int, std::string>(str, re).collect();
            THEN("the parts should be extracted correctly")
            {
                REQUIRE(results[0].first == 1);
                REQUIRE(results[0].second == "a");
                REQUIRE(results[1].first == 2);
                REQUIRE(results[1].second == "b");
                REQUIRE(results[2].first == 3);
                REQUIRE(results[2].second == "c");
            }
        }

        WHEN("Converting the scan to a tuple vector")
        {
            auto re = std::regex(R"((\d+)\s*(:)\s*(\S+))");
            auto results = scan<int, std::string, std::string>(str, re).collect();
            THEN("the parts should be extracted correctly")
            {
                REQUIRE(std::get<0>(results[0]) == 1);
                REQUIRE(std::get<1>(results[0]) == ":");
                REQUIRE(std::get<2>(results[0]) == "a");
                REQUIRE(std::get<0>(results[1]) == 2);
                REQUIRE(std::get<1>(results[1]) == ":");
                REQUIRE(std::get<2>(results[1]) == "b");
                REQUIRE(std::get<0>(results[2]) == 3);
                REQUIRE(std::get<1>(results[2]) == ":");
                REQUIRE(std::get<2>(results[2]) == "c");
            }
        }
    }

    GIVEN("the documented test string")
    {
        std::string str = "a: 1,2\nb: 3,4\nc: 5,6\n";
        std::regex re(R"((\S+):\s*(\d+)\s*,\s*(\d+))");

        auto r1 = scan(str, re).collect();
        REQUIRE(r1[0] == "a: 1,2");
        REQUIRE(r1[1] == "b: 3,4");
        REQUIRE(r1[2] == "c: 5,6");

        auto r2 = scan<std::string>(str, re).collect();
        REQUIRE(r2[0] == "a");
        REQUIRE(r2[1] == "b");
        REQUIRE(r2[2] == "c");

        auto r3 = scan<std::string, int>(str, re).collect();
        REQUIRE(r3[0].first == "a");
        REQUIRE(r3[0].second == 1);
        REQUIRE(r3[1].first == "b");
        REQUIRE(r3[1].second == 3);
        REQUIRE(r3[2].first == "c");
        REQUIRE(r3[2].second == 5);

        auto r4 = scan<std::string, int, int>(str, re).collect();
        REQUIRE(r4[0] == std::make_tuple("a", 1, 2));
        REQUIRE(r4[1] == std::make_tuple("b", 3, 4));
        REQUIRE(r4[2] == std::make_tuple("c", 5, 6));
    }
}

SCENARIO("Shell escape")
{
    GIVEN("a normal string")
    {
        std::string arg = "something";

        WHEN("shell escaped")
        {
            auto esc = escape_shell_argument(arg);
            THEN("should be enclosed in single quotes") { REQUIRE("'" + arg + "'" == esc); }
        }
    }

    GIVEN("a string with spaces")
    {
        std::string arg = "with spaces";

        WHEN("shell escaped")
        {
            auto esc = escape_shell_argument(arg);
            THEN("should be enclosed in single quotes") { REQUIRE("'" + arg + "'" == esc); }
        }
    }

    GIVEN("a string with single quotes")
    {
        std::string arg = "it's a nice test, isn't it? '''";

        WHEN("shell escaped")
        {
            auto esc = escape_shell_argument(arg);
            THEN("should be enclosed in single quotes with escaped quotes")
            {
                REQUIRE("'it'\\''s a nice test, isn'\\''t it? '\\'''\\'''\\'''" == esc);
            }
        }
    }
}

SCENARIO("Conversion")
{
    GIVEN("A string")
    {
        std::string arg0 = "42";

        WHEN("converted as lvalue")
        {
            THEN("should be converted correctly") { REQUIRE(convert<int>(arg0) == 42); }
        }

        WHEN("converted as rvalue")
        {
            auto arg0_ = arg0;
            auto result = convert<int>(std::move(arg0_));
            THEN("should be converted correctly") { REQUIRE(result == 42); }
        }

        WHEN("converted as const reference")
        {
            const std::string& arg = arg0;
            THEN("should be converted correctly") { REQUIRE(convert<int>(arg) == 42); }
        }
    }
}

Added 3rdparty/util/tests/test_toolstream.cxx.



















































































































































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
/*
 * Copyright (c) 2018 Frank Fischer <frank-fischer@shadow-soft.de>
 *
 * This program is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see  <http://www.gnu.org/licenses/>
 */

#include "catch_amalgamated.hpp"

#include <fifr/util/ToolStream.hxx>

#include <unistd.h>

using namespace fifr::util;

SCENARIO("Input tool stream")
{
    WHEN("Reading from a non-existing tool")
    {
        THEN("An error should be raised")
        {
            itoolstream in("/this/tool/does/not/exists");
            std::string x;
            in >> x;
            REQUIRE(in.fail());
        }
    }

    GIVEN("An valid external tool")
    {
        itoolstream in("/usr/bin/echo", {"Hallo Welt"});
        THEN("is should be good") { REQUIRE(in.good()); }

        WHEN("reading from the tool")
        {
            std::string s;
            std::getline(in, s);

            THEN("it should be good") { REQUIRE(in.good()); }
            THEN("it should not be eof") { REQUIRE(!in.eof()); }
            THEN("The read data should be correct") { REQUIRE(s == "Hallo Welt"); }

            WHEN("reading again")
            {
                std::getline(in, s);
                THEN("it should be eof") { REQUIRE(in.eof()); }
            }

            WHEN("reopening the stream")
            {
                in.open("/usr/bin/echo", {"hello world"});

                std::string s;
                std::getline(in, s);

                THEN("it should read the new data") { REQUIRE(s == "hello world"); }
            }
        }
    }

    WHEN("Reading from a tool with file input")
    {
        std::string filename("/tmp/testXXXXXX");
        int fd = mkstemp(&filename[0]);

        {
            std::ofstream out(filename.c_str());
            out << "Hallo Welt\n";
        }

        itoolstream in("/usr/bin/cat", {}, filename);
        std::string s;
        std::getline(in, s);

        THEN("the read data should be correct") { REQUIRE(s == "Hallo Welt"); }

        close(fd);
        remove(&filename[0]);
    }
}

SCENARIO("Output tool stream")
{
    GIVEN("An external tool")
    {
        std::string filename("/tmp/testXXXXXX");
        int fd = mkstemp(&filename[0]);

        WHEN("writing to the command")
        {
            {
                otoolstream out("/usr/bin/tee", {filename});
                out << "Hello world!" << std::endl;
            }
            THEN("the resulting file should contain the correct text")
            {
                std::ifstream in(filename.c_str());
                std::string s;
                std::getline(in, s);
                REQUIRE(s == "Hello world!");
            }
        }

        close(fd);
        remove(&filename[0]);
    }

    GIVEN("An external tool with a file")
    {
        std::string filename("/tmp/testXXXXXX");
        int fd = mkstemp(&filename[0]);

        WHEN("writing to the command")
        {
            {
                otoolstream out("/usr/bin/tac", {}, {filename});
                out << "Welt" << std::endl << "Hallo" << std::endl;
            }
            THEN("the resulting file should contain the correct text")
            {
                std::ifstream in(filename.c_str());
                std::string s;

                std::getline(in, s);
                REQUIRE(s == "Hallo");

                std::getline(in, s);
                REQUIRE(s == "Welt");
            }
        }

        WHEN("reopening the stream")
        {
            std::string filename2("/tmp/testXXXXXX");
            int fd2 = mkstemp(&filename2[0]);

            {
                otoolstream out("/usr/bin/tac", {}, {filename});
                out << "Welt" << std::endl << "Hallo" << std::endl;
                out.open("/usr/bin/tac", {}, {filename2});
                out << "world" << std::endl << "hello" << std::endl;
            }

            THEN("the first command's output file should contain the correct text")
            {
                std::ifstream in(filename.c_str());
                std::string s;

                std::getline(in, s);
                REQUIRE(s == "Hallo");

                std::getline(in, s);
                REQUIRE(s == "Welt");
            }

            THEN("the second command's output file should contain the correct text")
            {
                std::ifstream in(filename2.c_str());
                std::string s;

                std::getline(in, s);
                REQUIRE(s == "hello");

                std::getline(in, s);
                REQUIRE(s == "world");
            }

            close(fd2);
            remove(&filename2[0]);
        }

        close(fd);
        remove(&filename[0]);
    }
}

Added 3rdparty/util/tests/test_zip.cxx.































































































































































































































































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
/*
 * Copyright (c) 2017, 2019 Frank Fischer <frank-fischer@shadow-soft.de>
 *
 * This program is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see  <http://www.gnu.org/licenses/>
 */

#include "catch_amalgamated.hpp"

#ifdef HAVE_GZIP
#include <fifr/util/AutoZipStream.hxx>
#endif
#ifdef HAVE_BZIP2
#include <fifr/util/BZip2Stream.hxx>
#endif
#include <fifr/util/GZipStream.hxx>

#include <unistd.h>

#include <cstdlib>

using namespace fifr::util;

#ifdef HAVE_GZIP
SCENARIO("gzip")
{
    WHEN("zipping and unzipping file")
    {
        std::string fname("/tmp/testXXXXXX.gz");
        int fd = mkstemps(&fname[0], 3);

        {
            OutputGZipStream fout(fname);
            fout << "Hello World";
        }

        std::string line;
        {
            InputGZipStream fin(fname);
            getline(fin, line);
        }

        THEN("it should return the original text") { REQUIRE(line == "Hello World"); }

        close(fd);
        remove(fname.c_str());
    }
}
#endif

#ifdef HAVE_BZIP2
SCENARIO("bzip2")
{
    WHEN("zipping and unzipping file")
    {
        std::string fname("/tmp/testXXXXXX.bz2");
        int fd = mkstemps(&fname[0], 4);

        {
            OutputBZip2Stream fout(fname);
            fout << "Hello World";
        }

        std::string line;
        {
            InputBZip2Stream fin(fname);
            getline(fin, line);
        }

        THEN("it should return the original text") { REQUIRE(line == "Hello World"); }

        close(fd);
        remove(fname.c_str());
    }
}
#endif

SCENARIO("autozip with gzip")
{
    GIVEN("a file with .gz extension")
    {
        std::string fname("/tmp/testXXXXXX.gz");
        int fd = mkstemps(&fname[0], 3);

        WHEN("zipping and unzipping with auto mode")
        {
            {
                ozipstream fout(fname);
                fout << "Hello World";
            }
            std::string line;
            {
                izipstream fin(fname);
                getline(fin, line);
            }

            THEN("it should return the original text") { REQUIRE(line == "Hello World"); }
        }

#ifdef HAVE_GZIP
        WHEN("zipping with internal")
        {
            {
                ozipstream fout(fname, std::ios::out, ZipMode::Internal);
                fout << "Hello World";
            }

            AND_WHEN("unzipping with external")
            {
                std::string line;
                izipstream fin(fname, std::ios::in, ZipMode::External);
                getline(fin, line);

                THEN("it should return the original text") { REQUIRE(line == "Hello World"); }
            }
        }

        WHEN("zipping with external")
        {
            {
                ozipstream fout(fname, std::ios::out, ZipMode::External);
                fout << "Hello World";
            }

            AND_WHEN("unzipping with internal")
            {
                std::string line;
                izipstream fin(fname, std::ios::in, ZipMode::Internal);
                getline(fin, line);

                THEN("it should return the original text") { REQUIRE(line == "Hello World"); }
            }
        }
#endif

        close(fd);
        remove(fname.c_str());
    }
}

SCENARIO("autozip with bzip2")
{
    GIVEN("a file with .bz2 extension")
    {
        std::string fname("/tmp/testXXXXXX.bz2");
        int fd = mkstemps(&fname[0], 4);

        WHEN("zipping and unzipping with auto mode")
        {
            {
                ozipstream fout(fname);
                fout << "Hello World";
            }
            std::string line;
            {
                izipstream fin(fname);
                getline(fin, line);
            }

            THEN("it should return the original text") { REQUIRE(line == "Hello World"); }
        }

#ifdef HAVE_BZIP2
        WHEN("zipping with internal")
        {
            {
                ozipstream fout(fname, std::ios::out, ZipMode::Internal);
                fout << "Hello World";
            }

            AND_WHEN("unzipping with external")
            {
                std::string line;
                izipstream fin(fname, std::ios::in, ZipMode::External);
                getline(fin, line);

                THEN("it should return the original text") { REQUIRE(line == "Hello World"); }
            }
        }

        WHEN("zipping with external")
        {
            {
                ozipstream fout(fname, std::ios::out, ZipMode::External);
                fout << "Hello World";
            }

            AND_WHEN("unzipping with internal")
            {
                std::string line;
                izipstream fin(fname, std::ios::in, ZipMode::Internal);
                getline(fin, line);

                THEN("it should return the original text") { REQUIRE(line == "Hello World"); }
            }
        }
#endif

        close(fd);
        remove(fname.c_str());
    }
}

SCENARIO("autozip with xz")
{
    GIVEN("a file with .xz extension")
    {
        std::string fname("/tmp/testXXXXXX.xz");
        int fd = mkstemps(&fname[0], 3);

        WHEN("zipping and unzipping with auto mode")
        {
            {
                ozipstream fout(fname);
                fout << "Hello World";
            }
            std::string line;
            {
                izipstream fin(fname);
                getline(fin, line);
            }

            THEN("it should return the original text") { REQUIRE(line == "Hello World"); }
        }

        close(fd);
        remove(fname.c_str());
    }
}