libtorrent::big_number Class Reference

#include <peer_id.hpp>

List of all members.

Public Types

enum  { size = number_size }
typedef const unsigned char * const_iterator
typedef unsigned char * iterator

Public Member Functions

 big_number ()
 big_number (std::string const &s)
 big_number (private_pointer *)
void clear ()
bool is_all_zeros () const
bool operator== (big_number const &n) const
bool operator!= (big_number const &n) const
bool operator< (big_number const &n) const
big_number operator~ ()
big_numberoperator &= (big_number const &n)
big_numberoperator|= (big_number const &n)
unsigned char & operator[] (int i)
unsigned char const & operator[] (int i) const
const_iterator begin () const
const_iterator end () const
iterator begin ()
iterator end ()

Private Types

enum  { number_size = 20 }

Private Attributes

unsigned char m_number [number_size]

Classes

struct  private_pointer


Detailed Description

Definition at line 48 of file peer_id.hpp.


Member Typedef Documentation

typedef const unsigned char* libtorrent::big_number::const_iterator

Definition at line 126 of file peer_id.hpp.

typedef unsigned char* libtorrent::big_number::iterator

Definition at line 127 of file peer_id.hpp.


Member Enumeration Documentation

anonymous enum [private]

Enumerator:
number_size 

Definition at line 53 of file peer_id.hpp.

anonymous enum

Enumerator:
size 

Definition at line 55 of file peer_id.hpp.


Constructor & Destructor Documentation

libtorrent::big_number::big_number (  )  [inline]

Definition at line 57 of file peer_id.hpp.

libtorrent::big_number::big_number ( std::string const &  s  )  [inline]

Definition at line 59 of file peer_id.hpp.

libtorrent::big_number::big_number ( private_pointer  )  [inline]

Definition at line 66 of file peer_id.hpp.


Member Function Documentation

void libtorrent::big_number::clear (  )  [inline]

bool libtorrent::big_number::is_all_zeros (  )  const [inline]

Definition at line 73 of file peer_id.hpp.

References count.

Referenced by libtorrent::identify_client(), and libtorrent::torrent::tracker_response().

bool libtorrent::big_number::operator== ( big_number const &  n  )  const [inline]

Definition at line 78 of file peer_id.hpp.

References m_number.

bool libtorrent::big_number::operator!= ( big_number const &  n  )  const [inline]

Definition at line 83 of file peer_id.hpp.

References m_number.

bool libtorrent::big_number::operator< ( big_number const &  n  )  const [inline]

Definition at line 88 of file peer_id.hpp.

References m_number.

big_number libtorrent::big_number::operator~ (  )  [inline]

Definition at line 98 of file peer_id.hpp.

References m_number.

big_number& libtorrent::big_number::operator &= ( big_number const &  n  )  [inline]

Definition at line 106 of file peer_id.hpp.

References m_number.

big_number& libtorrent::big_number::operator|= ( big_number const &  n  )  [inline]

Definition at line 113 of file peer_id.hpp.

References m_number.

unsigned char& libtorrent::big_number::operator[] ( int  i  )  [inline]

Definition at line 120 of file peer_id.hpp.

unsigned char const& libtorrent::big_number::operator[] ( int  i  )  const [inline]

Definition at line 123 of file peer_id.hpp.

const_iterator libtorrent::big_number::begin (  )  const [inline]

const_iterator libtorrent::big_number::end (  )  const [inline]

iterator libtorrent::big_number::begin (  )  [inline]

Definition at line 132 of file peer_id.hpp.

iterator libtorrent::big_number::end (  )  [inline]

Definition at line 133 of file peer_id.hpp.


Member Data Documentation

unsigned char libtorrent::big_number::m_number[number_size] [private]

Definition at line 137 of file peer_id.hpp.

Referenced by operator &=(), operator!=(), operator<(), operator==(), operator|=(), and operator~().


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

Generated on Sun May 25 00:21:42 2008 by  doxygen 1.5.6