Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
fc::unsigned_int Struct Reference

#include <varint.hpp>

Public Member Functions

 unsigned_int (uint32_t v=0)
 
template<typename T >
 unsigned_int (T v)
 
 operator uint32_t () const
 
unsigned_intoperator= (int32_t v)
 

Public Attributes

uint32_t value
 

Friends

bool operator== (const unsigned_int &i, const uint32_t &v)
 
bool operator== (const uint32_t &i, const unsigned_int &v)
 
bool operator== (const unsigned_int &i, const unsigned_int &v)
 
bool operator!= (const unsigned_int &i, const uint32_t &v)
 
bool operator!= (const uint32_t &i, const unsigned_int &v)
 
bool operator!= (const unsigned_int &i, const unsigned_int &v)
 
bool operator< (const unsigned_int &i, const uint32_t &v)
 
bool operator< (const uint32_t &i, const unsigned_int &v)
 
bool operator< (const unsigned_int &i, const unsigned_int &v)
 
bool operator>= (const unsigned_int &i, const uint32_t &v)
 
bool operator>= (const uint32_t &i, const unsigned_int &v)
 
bool operator>= (const unsigned_int &i, const unsigned_int &v)
 

Detailed Description

Definition at line 6 of file varint.hpp.

Constructor & Destructor Documentation

◆ unsigned_int() [1/2]

fc::unsigned_int::unsigned_int ( uint32_t v = 0)
inline

Definition at line 7 of file varint.hpp.

7:value(v){}
uint32_t value
Definition varint.hpp:17

◆ unsigned_int() [2/2]

template<typename T >
fc::unsigned_int::unsigned_int ( T v)
inline

Definition at line 10 of file varint.hpp.

10:value(v){}

Member Function Documentation

◆ operator uint32_t()

fc::unsigned_int::operator uint32_t ( ) const
inline

Definition at line 12 of file varint.hpp.

12{ return value; }

◆ operator=()

unsigned_int & fc::unsigned_int::operator= ( int32_t v)
inline

Definition at line 15 of file varint.hpp.

15{ value = v; return *this; }

Friends And Related Symbol Documentation

◆ operator!= [1/3]

bool operator!= ( const uint32_t & i,
const unsigned_int & v )
friend

Definition at line 24 of file varint.hpp.

24{ return i != v.value; }

◆ operator!= [2/3]

bool operator!= ( const unsigned_int & i,
const uint32_t & v )
friend

Definition at line 23 of file varint.hpp.

23{ return i.value != v; }

◆ operator!= [3/3]

bool operator!= ( const unsigned_int & i,
const unsigned_int & v )
friend

Definition at line 25 of file varint.hpp.

25{ return i.value != v.value; }

◆ operator< [1/3]

bool operator< ( const uint32_t & i,
const unsigned_int & v )
friend

Definition at line 28 of file varint.hpp.

28{ return i < v.value; }

◆ operator< [2/3]

bool operator< ( const unsigned_int & i,
const uint32_t & v )
friend

Definition at line 27 of file varint.hpp.

27{ return i.value < v; }

◆ operator< [3/3]

bool operator< ( const unsigned_int & i,
const unsigned_int & v )
friend

Definition at line 29 of file varint.hpp.

29{ return i.value < v.value; }

◆ operator== [1/3]

bool operator== ( const uint32_t & i,
const unsigned_int & v )
friend

Definition at line 20 of file varint.hpp.

20{ return i == v.value; }

◆ operator== [2/3]

bool operator== ( const unsigned_int & i,
const uint32_t & v )
friend

Definition at line 19 of file varint.hpp.

19{ return i.value == v; }

◆ operator== [3/3]

bool operator== ( const unsigned_int & i,
const unsigned_int & v )
friend

Definition at line 21 of file varint.hpp.

21{ return i.value == v.value; }

◆ operator>= [1/3]

bool operator>= ( const uint32_t & i,
const unsigned_int & v )
friend

Definition at line 32 of file varint.hpp.

32{ return i >= v.value; }

◆ operator>= [2/3]

bool operator>= ( const unsigned_int & i,
const uint32_t & v )
friend

Definition at line 31 of file varint.hpp.

31{ return i.value >= v; }

◆ operator>= [3/3]

bool operator>= ( const unsigned_int & i,
const unsigned_int & v )
friend

Definition at line 33 of file varint.hpp.

33{ return i.value >= v.value; }

Member Data Documentation

◆ value

uint32_t fc::unsigned_int::value

Definition at line 17 of file varint.hpp.


The documentation for this struct was generated from the following file: