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

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

#include <Fragment.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 detail::Fragment< Payload, OffsetType >


Member Typedef Documentation

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

Definition at line 35 of file Fragment.hpp.

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

Definition at line 32 of file Fragment.hpp.

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

Definition at line 34 of file Fragment.hpp.

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

Definition at line 33 of file Fragment.hpp.


Constructor & Destructor Documentation

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

Definition at line 36 of file Fragment.hpp.

References CShareazaApp::Message(), MSG_ERROR, detail::Fragment< Payload, OffsetType >::range_, and theApp.

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

Definition at line 53 of file Fragment.hpp.

References CShareazaApp::Message(), MSG_ERROR, detail::Fragment< Payload, OffsetType >::range_, and theApp.

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

Definition at line 72 of file Fragment.hpp.

References CShareazaApp::Message(), MSG_ERROR, detail::Fragment< Payload, OffsetType >::range_, and theApp.

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

Definition at line 91 of file Fragment.hpp.


Member Function Documentation

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

Definition at line 96 of file Fragment.hpp.

References detail::Fragment< Payload, OffsetType >::range_.

Referenced by detail::Queue::erase(), detail::extractRange(), detail::PayloadTraits< EmptyType >::mergeAndReplace(), detail::operator==(), and detail::Fragment< Payload, OffsetType >::size().

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

Definition at line 97 of file Fragment.hpp.

References detail::Fragment< Payload, OffsetType >::range_.

Referenced by detail::Queue::erase(), detail::extractRange(), detail::PayloadTraits< EmptyType >::mergeAndReplace(), detail::operator==(), and detail::Fragment< Payload, OffsetType >::size().

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

Definition at line 99 of file Fragment.hpp.

References detail::Fragment< Payload, OffsetType >::size().

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

Definition at line 98 of file Fragment.hpp.

References detail::Fragment< Payload, OffsetType >::begin(), and detail::Fragment< Payload, OffsetType >::end().

Referenced by detail::Fragment< Payload, OffsetType >::length().

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

Definition at line 101 of file Fragment.hpp.


Member Data Documentation

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

Definition at line 104 of file Fragment.hpp.

Referenced by detail::Fragment< Payload, OffsetType >::begin(), detail::Fragment< Payload, OffsetType >::end(), and detail::Fragment< Payload, OffsetType >::Fragment().


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