libart-paperback 0.1.0-a.1.20260122225059.e5fea306241a
PDF (1.4) library for C++
boolean.hxx
1#ifndef art__paperback__carousel__boolean_hxx_
2#define art__paperback__carousel__boolean_hxx_
3
4#include <art/paperback/types.hxx>
5#include <art/paperback/forward.hxx>
6
7#include <art/paperback/carousel/object-model.hxx>
8
10{
11
12 /// Represents a COS boolean.
13 ///
14 class Boolean
16 {
17 public:
18 /// Constructor.
19 ///
20 Boolean();
21
22 /// Constructor.
23 ///
24 Boolean(bool);
25
26 /// Constructor.
27 ///
28 Boolean(Boolean const&);
29
30 /// Constructor.
31 ///
33
34 /// Destructor.
35 ///
36 ~Boolean() noexcept;
37
38 /// Access boolean.
39 ///
40 bool const&
41 operator*() const;
42
43 /// Assignment.
44 ///
45 Boolean&
46 operator=(Boolean const&);
47
48 /// Assignment.
49 ///
50 Boolean&
52
53 /// Comparison.
54 ///
55 bool
56 operator==(Boolean const&) const;
57
58 /// Comparison.
59 ///
60 bool
61 operator!=(Boolean const&) const;
62
63 private:
64 bool _data{};
65
66 };
67
68} // namespace Art::Paperback::Carousel
69
70#endif
bool const & operator*() const
Access boolean.
Definition boolean.cxx:31
Boolean()
Constructor.
Definition boolean.cxx:7
Boolean & operator=(Boolean const &)
Assignment.
Definition boolean.cxx:38
~Boolean() noexcept
Destructor.
Definition boolean.cxx:26
bool operator!=(Boolean const &) const
Comparison.
Definition boolean.cxx:67
bool operator==(Boolean const &) const
Comparison.
Definition boolean.cxx:60
Base class for value types.
Definition object-model.hxx:295
COS file format implementation namespace.
Definition array.cxx:6