summaryrefslogtreecommitdiff
path: root/src/AdaptiveFileAllocationIterator.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-11-14 07:17:55 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-11-14 07:17:55 +0000
commit1372ac51ade17bc27126449bf29f99c6c2cf7703 (patch)
tree974a54b86b20555c8822f651c7b3a53c0a072df3 /src/AdaptiveFileAllocationIterator.h
parent93e5dbed325f29c1bf867a2847d3b839d545cfb2 (diff)
2010-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Added .cc file for classes/structs that only provided by header file. Defined non-POD classes' ctor, dtor in .cc file. Moved implementation code in header file to .cc file for major classes/strucsts.
Diffstat (limited to 'src/AdaptiveFileAllocationIterator.h')
-rw-r--r--src/AdaptiveFileAllocationIterator.h14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/AdaptiveFileAllocationIterator.h b/src/AdaptiveFileAllocationIterator.h
index cac27bc3..ac7d22a4 100644
--- a/src/AdaptiveFileAllocationIterator.h
+++ b/src/AdaptiveFileAllocationIterator.h
@@ -64,19 +64,9 @@ public:
virtual bool finished();
- virtual off_t getCurrentLength()
- {
- if(!allocator_) {
- return offset_;
- } else {
- return allocator_->getCurrentLength();
- }
- }
+ virtual off_t getCurrentLength();
- virtual uint64_t getTotalLength()
- {
- return totalLength_;
- }
+ virtual uint64_t getTotalLength();
};
} // namespace aria2