libUTL++
Uint.h
1 #pragma once
2 
4 
5 #include <libutl/Integer.h>
6 
8 
9 UTL_NS_BEGIN;
10 
12 
13 template <class T>
14 class Integer;
15 
17 
25 
27 class Uint : public Integer<uint64_t>
28 {
31 
32 public:
38  : Integer<uint64_t>(i)
39  {
40  }
41 
46  Uint(const String& str)
47  {
48  set(str);
49  }
50 
51  void serialize(Stream& stream, uint_t io, uint_t mode = ser_default);
52 };
53 
55 
56 UTL_NS_END;
#define UTL_CLASS_DEFID
Default init() and deInit() (which are merely place-holders).
Definition: macros.h:532
void serialize(bool &b, Stream &stream, uint_t io, uint_t mode=ser_default)
Serialize a boolean.
default representation (via getSerializeMode())
Definition: util.h:75
#define UTL_CLASS_DECL(DC, BC)
Declaration of standard UTL++ functionality for a non-template class.
Definition: macros.h:688
Uint(uint64_t i)
Constructor.
Definition: Uint.h:37
Character string.
Definition: String.h:31
Integer value.
Definition: Integer.h:23
unsigned long uint64_t
Unsigned 64-bit integer.
Definition: types.h:154
64-bit unsigned integer.
Definition: Uint.h:27
Uint(const String &str)
Constructor.
Definition: Uint.h:46
unsigned int uint_t
Unsigned integer.
Definition: types.h:59
Stream I/O abstraction.
Definition: Stream.h:68