libtorrent::piece_picker::piece_pos Struct Reference

List of all members.

Public Types

enum  { we_have_index = 0x3ffff }

Public Member Functions

 piece_pos ()
 piece_pos (int peer_count_, int index_)
int priority (int limit) const
bool ordered (int limit) const
bool operator!= (piece_pos p) const
bool operator== (piece_pos p) const

Public Attributes

unsigned peer_count: 11
unsigned downloading: 1
unsigned filtered: 1
unsigned index: 19


Detailed Description

Definition at line 233 of file piece_picker.hpp.


Member Enumeration Documentation

anonymous enum

Enumerator:
we_have_index 

Definition at line 255 of file piece_picker.hpp.


Constructor & Destructor Documentation

libtorrent::piece_picker::piece_pos::piece_pos (  )  [inline]

Definition at line 235 of file piece_picker.hpp.

libtorrent::piece_picker::piece_pos::piece_pos ( int  peer_count_,
int  index_ 
) [inline]

Definition at line 236 of file piece_picker.hpp.


Member Function Documentation

int libtorrent::piece_picker::piece_pos::priority ( int  limit  )  const [inline]

bool libtorrent::piece_picker::piece_pos::ordered ( int  limit  )  const [inline]

bool libtorrent::piece_picker::piece_pos::operator!= ( piece_pos  p  )  const [inline]

Definition at line 267 of file piece_picker.hpp.

References index, index, and peer_count.

bool libtorrent::piece_picker::piece_pos::operator== ( piece_pos  p  )  const [inline]

Definition at line 270 of file piece_picker.hpp.

References index, index, and peer_count.


Member Data Documentation

Definition at line 247 of file piece_picker.hpp.

Referenced by operator!=(), and operator==().


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

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