libtorrent::storage Class Reference

#include <storage.hpp>

List of all members.

Public Member Functions

 storage (const torrent_info &info, const boost::filesystem::path &path, file_pool &fp)
void swap (storage &)
size_type read (char *buf, int slot, int offset, int size)
void write (const char *buf, int slot, int offset, int size)
bool move_storage (boost::filesystem::path save_path)
void release_files ()
void shuffle ()

Private Attributes

boost::shared_ptr< implm_pimpl

Classes

class  impl


Detailed Description

Definition at line 90 of file storage.hpp.


Constructor & Destructor Documentation

libtorrent::storage::storage ( const torrent_info info,
const boost::filesystem::path &  path,
file_pool fp 
)


Member Function Documentation

void libtorrent::storage::swap ( storage other  ) 

Definition at line 363 of file storage.cpp.

References m_pimpl.

size_type libtorrent::storage::read ( char *  buf,
int  slot,
int  offset,
int  size 
)

void libtorrent::storage::write ( const char *  buf,
int  slot,
int  offset,
int  size 
)

bool libtorrent::storage::move_storage ( boost::filesystem::path  save_path  ) 

void libtorrent::storage::release_files (  ) 

Definition at line 358 of file storage.cpp.

References m_pimpl.

Referenced by libtorrent::piece_manager::impl::release_files(), and run_storage_tests().

void libtorrent::storage::shuffle (  ) 

Definition at line 414 of file storage.cpp.

References asio::placeholders::iterator, m_pimpl, pieces(), read(), and write().


Member Data Documentation

boost::shared_ptr<impl> libtorrent::storage::m_pimpl [private]

Definition at line 120 of file storage.hpp.

Referenced by read(), release_files(), shuffle(), swap(), and write().


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

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