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

FileFragments.hpp File Reference

#include <utility>
#include <stdexcept>
#include <algorithm>
#include <functional>
#include <deque>
#include <list>
#include <set>
#include <limits>
#include "Shareaza.h"
#include "FileFragments/Exception.hpp"
#include "FileFragments/PayloadTraits.hpp"
#include "FileFragments/Fragment.hpp"
#include "FileFragments/List.hpp"
#include "FileFragments/Queue.hpp"
#include "FileFragments/Compatibility.hpp"

Go to the source code of this file.

Namespaces

namespace  FF
namespace  FF::detail

Typedefs

typedef unsigned long long u64
typedef unsigned int u32
typedef unsigned short u16
typedef unsigned char u8
typedef long long i64
typedef int i32
typedef short i16
typedef signed char i8
typedef detail::Fragment<
EmptyType, u64
SimpleFragment
typedef detail::BadFragment<
SimpleFragment
SimpleBadFragment
typedef detail::BadRange<
SimpleFragment
SimpleBadRange
typedef detail::List< SimpleFragmentSimpleFragmentList
typedef detail::Queue SimpleFragmentQueue

Functions

template<class Payload, typename OffsetType>
bool operator== (const Fragment< Payload, OffsetType > &lhs, const Fragment< Payload, OffsetType > &rhs)
template<class ListType>
ListType inverse (const ListType &src)
template<class ListType>
ListType::Iterator largestFragment (ListType &src)
template<class ListType>
ListType::ConstIterator largestFragment (const ListType &src)
template<class ListType>
ListType::Iterator randomFragment (ListType &src)
template<class ListType>
ListType::ConstIterator randomFragment (const ListType &src)
template<class ListType>
bool hasPosition (const ListType &src, typename ListType::FSizeType pos)
template<class ListType>
bool overlaps (const ListType &src, const typename ListType::FragmentType &match)
template<class ListType>
bool overlaps (const ListType &src, const ListType &match)
template<class ListType>
ListType::FSizeType overlappingSum (const ListType &src, const typename ListType::FragmentType &match)
Queue extractRange (Queue &src, const Queue::FragmentType &match)
template<class ListType, class AvailableType>
ListType::FragmentType selectBlock (const ListType &src, typename ListType::FSizeType blockSize, const AvailableType *available)
void SerializeOut (CArchive &ar, const SimpleFragment &out)
SimpleFragment SerializeIn (CArchive &ar, int version)
void SerializeOut1 (CArchive &ar, const SimpleFragmentList &out)
void SerializeIn1 (CArchive &ar, SimpleFragmentList &in, int version)
void SerializeOut2 (CArchive &ar, const SimpleFragmentList &out)
void SerializeIn2 (CArchive &ar, SimpleFragmentList &in, int version)


Typedef Documentation

typedef short i16
 

Definition at line 50 of file FileFragments.hpp.

typedef int i32
 

Definition at line 49 of file FileFragments.hpp.

typedef long long i64
 

Definition at line 48 of file FileFragments.hpp.

typedef signed char i8
 

Definition at line 51 of file FileFragments.hpp.

template FF::SimpleBadFragment
 

Definition at line 1142 of file FileFragments.hpp.

template FF::SimpleBadRange
 

Definition at line 1143 of file FileFragments.hpp.

template FF::SimpleFragment
 

Definition at line 1141 of file FileFragments.hpp.

template FF::SimpleFragmentList
 

Definition at line 1144 of file FileFragments.hpp.

typedef detail::Queue FF::SimpleFragmentQueue
 

Definition at line 1145 of file FileFragments.hpp.

typedef unsigned short u16
 

Definition at line 46 of file FileFragments.hpp.

typedef unsigned int u32
 

Definition at line 45 of file FileFragments.hpp.

typedef unsigned long long u64
 

Definition at line 44 of file FileFragments.hpp.

typedef unsigned char u8
 

Definition at line 47 of file FileFragments.hpp.


Function Documentation

Queue FF::detail::extractRange Queue &  src,
const Queue::FragmentType &  match
[inline]
 

Definition at line 1117 of file FileFragments.hpp.

template<class ListType>
bool FF::detail::hasPosition const ListType &  src,
typename ListType::FSizeType  pos
 

Definition at line 901 of file FileFragments.hpp.

template<class ListType>
ListType FF::detail::inverse const ListType &  src  )  [inline]
 

Definition at line 841 of file FileFragments.hpp.

template<class ListType>
ListType::ConstIterator FF::detail::largestFragment const ListType &  src  )  [inline]
 

Definition at line 874 of file FileFragments.hpp.

template<class ListType>
ListType::Iterator FF::detail::largestFragment ListType &  src  )  [inline]
 

Definition at line 865 of file FileFragments.hpp.

template<class Payload, typename OffsetType>
bool FF::detail::operator== const Fragment< Payload, OffsetType > &  lhs,
const Fragment< Payload, OffsetType > &  rhs
 

Definition at line 407 of file FileFragments.hpp.

template<class ListType>
ListType::FSizeType FF::detail::overlappingSum const ListType &  src,
const typename ListType::FragmentType &  match
 

Definition at line 934 of file FileFragments.hpp.

template<class ListType>
bool FF::detail::overlaps const ListType &  src,
const ListType &  match
 

Definition at line 920 of file FileFragments.hpp.

template<class ListType>
bool FF::detail::overlaps const ListType &  src,
const typename ListType::FragmentType &  match
 

Definition at line 910 of file FileFragments.hpp.

template<class ListType>
ListType::Iterator FF::detail::randomFragment const ListType &  src  )  [inline]
 

Definition at line 892 of file FileFragments.hpp.

template<class ListType>
ListType::Iterator FF::detail::randomFragment ListType &  src  )  [inline]
 

Definition at line 884 of file FileFragments.hpp.

template<class ListType, class AvailableType>
ListType::FragmentType FF::detail::selectBlock const ListType &  src,
typename ListType::FSizeType  blockSize,
const AvailableType *  available
 

Definition at line 1185 of file FileFragments.hpp.

SimpleFragment FF::detail::SerializeIn CArchive &  ar,
int  version
[inline]
 

Definition at line 1250 of file FileFragments.hpp.

void FF::detail::SerializeIn1 CArchive &  ar,
SimpleFragmentList in,
int  version
[inline]
 

Definition at line 1290 of file FileFragments.hpp.

void FF::detail::SerializeIn2 CArchive &  ar,
SimpleFragmentList in,
int  version
[inline]
 

Definition at line 1356 of file FileFragments.hpp.

void FF::detail::SerializeOut CArchive &  ar,
const SimpleFragment out
[inline]
 

Definition at line 1244 of file FileFragments.hpp.

void FF::detail::SerializeOut1 CArchive &  ar,
const SimpleFragmentList out
[inline]
 

Definition at line 1276 of file FileFragments.hpp.

void FF::detail::SerializeOut2 CArchive &  ar,
const SimpleFragmentList out
[inline]
 

Definition at line 1345 of file FileFragments.hpp.


Generated on Thu Dec 15 10:39:56 2005 for Shareaza 2.2.1.0 by  doxygen 1.4.2