Immutable except for fc::from_variant.
More...
#include <name.hpp>
|
struct | fc::reflector< name > |
|
void | fc::from_variant (const fc::variant &v, sysio::chain::name &check) |
|
std::ostream & | operator<< (std::ostream &out, const name &n) |
|
constexpr bool | operator< (const name &a, const name &b) |
|
constexpr bool | operator> (const name &a, const name &b) |
|
constexpr bool | operator<= (const name &a, const name &b) |
|
constexpr bool | operator>= (const name &a, const name &b) |
|
constexpr bool | operator== (const name &a, const name &b) |
|
constexpr bool | operator!= (const name &a, const name &b) |
|
constexpr bool | operator== (const name &a, uint64_t b) |
|
constexpr bool | operator!= (const name &a, uint64_t b) |
|
Definition at line 43 of file name.hpp.
◆ name() [1/3]
sysio::chain::name::name |
( |
std::string_view | str | ) |
|
|
inlineexplicit |
◆ name() [2/3]
◆ name() [3/3]
sysio::chain::name::name |
( |
| ) |
|
|
constexprdefault |
◆ empty()
bool sysio::chain::name::empty |
( |
| ) |
const |
|
inlineconstexpr |
◆ good()
bool sysio::chain::name::good |
( |
| ) |
const |
|
inlineconstexpr |
Definition at line 54 of file name.hpp.
constexpr bool empty() const
◆ operator bool()
sysio::chain::name::operator bool |
( |
| ) |
const |
|
inlineexplicitconstexpr |
◆ to_string()
std::string sysio::chain::name::to_string |
( |
| ) |
const |
Definition at line 19 of file name.cpp.
19 {
20 static const char* charmap = ".12345abcdefghijklmnopqrstuvwxyz";
21
22 std::string
str(13,
'.');
23
25 for(
uint32_t i = 0; i <= 12; ++i ) {
26 char c = charmap[tmp & (i == 0 ? 0x0f : 0x1f)];
28 tmp >>= (i == 0 ? 4 : 5);
29 }
30
31 boost::algorithm::trim_right_if( str, []( char c ){ return c == '.'; } );
33 }
unsigned __int64 uint64_t
◆ to_uint64_t()
uint64_t sysio::chain::name::to_uint64_t |
( |
| ) |
const |
|
inlineconstexpr |
◆ fc::from_variant
◆ fc::reflector< name >
◆ operator!= [1/2]
Definition at line 72 of file name.hpp.
72{
return a.value != b.value; }
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
◆ operator!= [2/2]
Definition at line 75 of file name.hpp.
75{
return a.value != b; }
◆ operator<
bool operator< |
( |
const name & | a, |
|
|
const name & | b ) |
|
friend |
Definition at line 67 of file name.hpp.
67{
return a.value < b.value; }
◆ operator<<
std::ostream & operator<< |
( |
std::ostream & | out, |
|
|
const name & | n ) |
|
friend |
Definition at line 63 of file name.hpp.
63 {
64 return out << n.to_string();
65 }
◆ operator<=
bool operator<= |
( |
const name & | a, |
|
|
const name & | b ) |
|
friend |
Definition at line 69 of file name.hpp.
69{
return a.value <= b.value; }
◆ operator== [1/2]
bool operator== |
( |
const name & | a, |
|
|
const name & | b ) |
|
friend |
Definition at line 71 of file name.hpp.
71{
return a.value == b.value; }
◆ operator== [2/2]
Definition at line 74 of file name.hpp.
74{
return a.value == b; }
◆ operator>
bool operator> |
( |
const name & | a, |
|
|
const name & | b ) |
|
friend |
Definition at line 68 of file name.hpp.
68{
return a.value > b.value; }
◆ operator>=
bool operator>= |
( |
const name & | a, |
|
|
const name & | b ) |
|
friend |
Definition at line 70 of file name.hpp.
70{
return a.value >= b.value; }
The documentation for this struct was generated from the following files: