libart-paperback 0.1.0-a.1.20260122225059.e5fea306241a
PDF (1.4) library for C++
integer.hxx
1#ifndef art__paperback__carousel__integer_hxx_
2#define art__paperback__carousel__integer_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 integer.
13 ///
14 class Integer
16 {
17 public:
18 /// Constructor.
19 ///
20 Integer(int64_t);
21
22 /// Constructor.
23 ///
24 Integer(Integer const&);
25
26 /// Constructor.
27 ///
29
30 /// Destructor.
31 ///
32 ~Integer() noexcept;
33
34 /// Access integer.
35 ///
36 int64_t const&
37 operator*() const;
38
39 /// Assignment.
40 ///
41 Integer&
42 operator=(Integer const&);
43
44 /// Assignment.
45 ///
46 Integer&
48
49 /// Comparison.
50 ///
51 bool
52 operator==(Integer const&) const;
53
54 /// Comparison.
55 ///
56 bool
57 operator!=(Integer const&) const;
58
59 private:
60 int64_t _data{};
61
62 };
63
64} // namespace Art::Paperback::Carousel
65
66#endif
~Integer() noexcept
Destructor.
Definition integer.cxx:22
bool operator!=(Integer const &) const
Comparison.
Definition integer.cxx:67
Integer & operator=(Integer const &)
Assignment.
Definition integer.cxx:34
int64_t const & operator*() const
Access integer.
Definition integer.cxx:27
Integer(int64_t)
Constructor.
Definition integer.cxx:7
bool operator==(Integer const &) const
Comparison.
Definition integer.cxx:60
Base class for value types.
Definition object-model.hxx:295
COS file format implementation namespace.
Definition array.cxx:6