diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-02-08 15:53:45 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-02-08 15:53:45 +0000 |
| commit | 1b7c1982896dba1d38e1fe84ba9660996607f5f9 (patch) | |
| tree | d12047cb37ded1e18d4d5b97844412538beb19ff /src/MultiFileAllocationIterator.h | |
| parent | d82e183d346375ac8a58a298a58728be615f947e (diff) | |
2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Removed "using namespace std;" from all sources. Appended std::
prefix to c++
standard classes.
Included string.h where mem* function are used.
Diffstat (limited to 'src/MultiFileAllocationIterator.h')
| -rw-r--r-- | src/MultiFileAllocationIterator.h | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/src/MultiFileAllocationIterator.h b/src/MultiFileAllocationIterator.h index a9b4aa8a..4e79b599 100644 --- a/src/MultiFileAllocationIterator.h +++ b/src/MultiFileAllocationIterator.h @@ -36,23 +36,25 @@ #define _D_MULTI_FILE_ALLOCATION_ITERATOR_H_ #include "FileAllocationIterator.h" +#include <deque> + +namespace aria2 { class MultiDiskAdaptor; class DiskWriterEntry; -typedef SharedHandle<DiskWriterEntry> DiskWriterEntryHandle; -typedef deque<DiskWriterEntryHandle> DiskWriterEntries; class SingleFileAllocationIterator; -typedef SharedHandle<SingleFileAllocationIterator> SingleFileAllocationIteratorHandle; class MultiFileAllocationIterator:public FileAllocationIterator { private: MultiDiskAdaptor* _diskAdaptor; - DiskWriterEntries _entries; - SingleFileAllocationIteratorHandle _fileAllocationIterator; + std::deque<SharedHandle<DiskWriterEntry> > _entries; + SharedHandle<SingleFileAllocationIterator> _fileAllocationIterator; int64_t _offset; - DiskWriterEntries makeDiskWriterEntries(const DiskWriterEntries& srcEntries, int32_t pieceLength) const; + std::deque<SharedHandle<DiskWriterEntry> > + makeDiskWriterEntries(const std::deque<SharedHandle<DiskWriterEntry> >& srcEntries, + int32_t pieceLength) const; public: MultiFileAllocationIterator(MultiDiskAdaptor* diskAdaptor); @@ -66,9 +68,11 @@ public: virtual int64_t getTotalLength(); - const DiskWriterEntries& getDiskWriterEntries() const; + const std::deque<SharedHandle<DiskWriterEntry> >& getDiskWriterEntries() const; }; typedef SharedHandle<MultiFileAllocationIterator> MultiFileAllocationIteratorHandle; +} // namespace aria2 + #endif // _D_MULTI_FILE_ALLOCATION_ITERATOR_H_ |
