diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2009-01-24 09:00:36 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2009-01-24 09:00:36 +0000 |
| commit | 8ca9db9f3ee007d40b85339f81a39ea3c1a22616 (patch) | |
| tree | 70ad188c3350794c2ed42cdc817cda8cd51fc03b /src/FileAllocationMan.h | |
| parent | ea370b864e5ebffa71d8d21d2cf0835c5780cd3c (diff) | |
2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Replaced FileAllocationMan with
SequentialPicker<FileAllocationEntry>.
* src/BtCheckIntegrityEntry.cc
* src/ConsoleStatCalc.cc
* src/DownloadEngine.cc
* src/DownloadEngine.h
* src/DownloadEngineFactory.cc
* src/FileAllocationCommand.cc
* src/FileAllocationDispatcherCommand.cc
* src/FileAllocationMan.h
* src/Makefile.am
* src/SequentialPicker.h
* src/StatCalc.h
* src/StreamCheckIntegrityEntry.cc
* test/Makefile.am
* test/SequentialPickerTest.cc
Diffstat (limited to 'src/FileAllocationMan.h')
| -rw-r--r-- | src/FileAllocationMan.h | 29 |
1 files changed, 2 insertions, 27 deletions
diff --git a/src/FileAllocationMan.h b/src/FileAllocationMan.h index a13b7693..5244d581 100644 --- a/src/FileAllocationMan.h +++ b/src/FileAllocationMan.h @@ -36,38 +36,13 @@ #define _D_FILE_ALLOCATION_MAN_H_ #include "common.h" -#include "SharedHandle.h" -#include <deque> +#include "SequentialPicker.h" namespace aria2 { class FileAllocationEntry; -class FileAllocationMan { -private: - std::deque<SharedHandle<FileAllocationEntry> > _fileAllocationEntries; - SharedHandle<FileAllocationEntry> _currentFileAllocationEntry; -public: - FileAllocationMan(); - - ~FileAllocationMan(); - - bool isFileAllocationBeingExecuted() const; - - SharedHandle<FileAllocationEntry> getCurrentFileAllocationEntry(); - - void markCurrentFileAllocationEntryDone(); - - bool nextFileAllocationEntryExists() const; - - SharedHandle<FileAllocationEntry> popNextFileAllocationEntry(); - - void pushFileAllocationEntry(const SharedHandle<FileAllocationEntry>& entry); - - size_t countFileAllocationEntryInQueue() const; -}; - -typedef SharedHandle<FileAllocationMan> FileAllocationManHandle; +typedef SequentialPicker<FileAllocationEntry> FileAllocationMan; } // namespace aria2 |
