Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

FF::detail::Fragment< Payload, OffsetType > Class Template Reference

#include <FileFragments.hpp>

List of all members.

Public Types

typedef Payload PayloadType
typedef PayloadTraits< PayloadTypeTraits
typedef OffsetType SizeType
typedef BadFragment< FragmentBadFragmentException

Public Member Functions

 Fragment (SizeType begin, SizeType end, const PayloadType &payload=PayloadType())
 Fragment (::std::pair< SizeType, SizeType > range, const PayloadType &payload=PayloadType())
 Fragment (const Fragment &other, SizeType begin, SizeType end)
template<class OtherPayload, typename OtherOffsetType>
 Fragment (const Fragment< OtherPayload, OtherOffsetType > &other, const PayloadType &payload=PayloadType())
SizeType begin () const
SizeType end () const
SizeType size () const
SizeType length () const
const PayloadTypevalue () const

Private Attributes

::std::pair< SizeType, SizeTyperange_

template<class Payload, typename OffsetType>
class FF::detail::Fragment< Payload, OffsetType >


Member Typedef Documentation

template<class Payload, typename OffsetType>
typedef BadFragment< Fragment > FF::detail::Fragment< Payload, OffsetType >::BadFragmentException
 

Definition at line 330 of file FileFragments.hpp.

template<class Payload, typename OffsetType>
typedef Payload FF::detail::Fragment< Payload, OffsetType >::PayloadType
 

Definition at line 327 of file FileFragments.hpp.

template<class Payload, typename OffsetType>
typedef OffsetType FF::detail::Fragment< Payload, OffsetType >::SizeType
 

Definition at line 329 of file FileFragments.hpp.

template<class Payload, typename OffsetType>
typedef PayloadTraits< PayloadType > FF::detail::Fragment< Payload, OffsetType >::Traits
 

Definition at line 328 of file FileFragments.hpp.


Constructor & Destructor Documentation

template<class Payload, typename OffsetType>
FF::detail::Fragment< Payload, OffsetType >::Fragment SizeType  begin,
SizeType  end,
const PayloadType payload = PayloadType()
[inline]
 

Definition at line 331 of file FileFragments.hpp.

template<class Payload, typename OffsetType>
FF::detail::Fragment< Payload, OffsetType >::Fragment ::std::pair< SizeType, SizeType range,
const PayloadType payload = PayloadType()
[inline]
 

Definition at line 348 of file FileFragments.hpp.

template<class Payload, typename OffsetType>
FF::detail::Fragment< Payload, OffsetType >::Fragment const Fragment< Payload, OffsetType > &  other,
SizeType  begin,
SizeType  end
[inline]
 

Definition at line 367 of file FileFragments.hpp.

template<class Payload, typename OffsetType>
template<class OtherPayload, typename OtherOffsetType>
FF::detail::Fragment< Payload, OffsetType >::Fragment const Fragment< OtherPayload, OtherOffsetType > &  other,
const PayloadType payload = PayloadType()
[inline]
 

Definition at line 386 of file FileFragments.hpp.


Member Function Documentation

template<class Payload, typename OffsetType>
SizeType FF::detail::Fragment< Payload, OffsetType >::begin  )  const [inline]
 

Definition at line 391 of file FileFragments.hpp.

Referenced by CDownloadWithFile::GetFragment(), CDownloadTransferED2K::SelectFragment(), CDownloadTransferBT::SelectFragment(), and CFragmentedFile::WriteRange().

template<class Payload, typename OffsetType>
SizeType FF::detail::Fragment< Payload, OffsetType >::end  )  const [inline]
 

Definition at line 392 of file FileFragments.hpp.

Referenced by CDownloadWithFile::GetFragment(), CDownloadTransferED2K::SelectFragment(), CDownloadTransferBT::SelectFragment(), and CFragmentedFile::WriteRange().

template<class Payload, typename OffsetType>
SizeType FF::detail::Fragment< Payload, OffsetType >::length  )  const [inline]
 

Definition at line 394 of file FileFragments.hpp.

Referenced by CDownloadWithFile::GetFragment(), CDownloadTransferED2K::SelectFragment(), and CDownloadTransferBT::SelectFragment().

template<class Payload, typename OffsetType>
SizeType FF::detail::Fragment< Payload, OffsetType >::size  )  const [inline]
 

Definition at line 393 of file FileFragments.hpp.

template<class Payload, typename OffsetType>
const PayloadType& FF::detail::Fragment< Payload, OffsetType >::value  )  const [inline]
 

Definition at line 396 of file FileFragments.hpp.


Member Data Documentation

template<class Payload, typename OffsetType>
::std::pair< SizeType, SizeType > FF::detail::Fragment< Payload, OffsetType >::range_ [private]
 

Definition at line 399 of file FileFragments.hpp.


The documentation for this class was generated from the following file:
Generated on Thu Dec 15 10:40:15 2005 for Shareaza 2.2.1.0 by  doxygen 1.4.2