#include <key.hh>
Collaboration diagram for oln::utils::key:
Public Types | |
typedef ntg::int_u8 | value_type |
Used data type. | |
Public Member Functions | |
key (const std::vector< value_type > &data) | |
Constructor used to initialize the key. | |
key (const value_type *data) | |
Constructor used to initialize the key. | |
value_type & | operator[] (unsigned i) |
[] operator. | |
const value_type & | operator[] (unsigned i) const |
[] operator. | |
bool | operator== (const key &k) |
Check equality between two keys. | |
bool | operator!= (const key &k) |
Check whether two key are different. | |
Protected Attributes | |
value_type | data_ [16] |
Internal data. | |
Friends | |
std::ostream & | operator<< (std::ostream &stream, const key &k) |
Write of representation of the key on a stream. |
Object to have a nice representation of a MD5 result.
Definition at line 41 of file key.hh.
oln::utils::key::key | ( | const std::vector< value_type > & | data | ) | [inline, explicit] |
oln::utils::key::key | ( | const value_type * | data | ) | [inline, explicit] |
key::value_type & oln::utils::key::operator[] | ( | unsigned | i | ) | [inline] |
const key::value_type & oln::utils::key::operator[] | ( | unsigned | i | ) | const [inline] |
bool oln::utils::key::operator== | ( | const key & | k | ) | [inline] |
bool oln::utils::key::operator!= | ( | const key & | k | ) | [inline] |
std::ostream& operator<< | ( | std::ostream & | stream, | |
const key & | k | |||
) | [friend] |
Write of representation of the key on a stream.
stream Stream to put the key on. k Key to represent.
Definition at line 104 of file key.hh.
00105 { 00106 stream << "{"; 00107 for (unsigned i = 0; i < 15; ++i) 00108 stream << "0x" << std::hex << k[i] << ", "; 00109 stream << "0x" << std::hex << k[15] << "}"; 00110 return stream; 00111 }