#include <CID.h>

Public Types | |
| enum | { SIZE = 192 / 8 } |
| enum | { BASE32_SIZE = 39 } |
Public Member Functions | |
| CID (const CID &rhs) | |
| CID (const std::string &base32) | |
| CID (const uint8_t *data) | |
| CID () | |
| const uint8_t * | data () const |
| bool | isZero () const |
| bool | operator< (const CID &rhs) const |
| CID & | operator= (const CID &rhs) |
| bool | operator== (const CID &rhs) const |
| std::string & | toBase32 (std::string &tmp) const |
| std::string | toBase32 () const |
| size_t | toHash () const |
Static Public Member Functions | |
| static CID | generate () |
Private Attributes | |
| union { | |
| uint8_t cid [SIZE] | |
| size_t cidHash | |
| }; | |
Definition at line 27 of file CID.h.
| adchpp::CID::CID | ( | ) | [inline] |
Definition at line 32 of file CID.h.
References cid.
Referenced by generate().

| adchpp::CID::CID | ( | const uint8_t * | data | ) | [inline, explicit] |
| adchpp::CID::CID | ( | const std::string & | base32 | ) | [inline, explicit] |
Definition at line 34 of file CID.h.
References cid, and adchpp::Encoder::fromBase32().

| const uint8_t* adchpp::CID::data | ( | ) | const [inline] |
Definition at line 46 of file CID.h.
References cid.
Referenced by generate(), and adchpp::ClientManager::verifyCID().

| static CID adchpp::CID::generate | ( | ) | [inline, static] |
Definition at line 50 of file CID.h.
References CID(), data(), adchpp::Util::rand(), and SIZE.
Referenced by adchpp::Bot::Bot().


| bool adchpp::CID::isZero | ( | ) | const [inline] |
| bool adchpp::CID::operator< | ( | const CID & | rhs | ) | const [inline] |
| bool adchpp::CID::operator== | ( | const CID & | rhs | ) | const [inline] |
| std::string& adchpp::CID::toBase32 | ( | std::string & | tmp | ) | const [inline] |
Definition at line 43 of file CID.h.
References cid, and toBase32().

| std::string adchpp::CID::toBase32 | ( | ) | const [inline] |
Definition at line 42 of file CID.h.
References cid.
Referenced by toBase32().

| size_t adchpp::CID::toHash | ( | ) | const [inline] |
Definition at line 45 of file CID.h.
Referenced by std::hash< adchpp::CID >::operator()().

union { ... } [private] |
| uint8_t adchpp::CID::cid[SIZE] |
Definition at line 60 of file CID.h.
Referenced by CID(), data(), isZero(), operator<(), operator=(), operator==(), toBase32(), and toHash().
| size_t adchpp::CID::cidHash |
1.6.3