mirror of
https://github.com/KingDuckZ/dindexer.git
synced 2025-02-20 12:14:55 +00:00
Make DirIterator forward only
This commit is contained in:
parent
32d32f63cb
commit
2a7b8437ed
2 changed files with 1 additions and 13 deletions
|
@ -28,7 +28,7 @@ namespace mchlib {
|
||||||
class SetListingView;
|
class SetListingView;
|
||||||
|
|
||||||
namespace implem {
|
namespace implem {
|
||||||
class DirIterator : public boost::iterator_facade<DirIterator, FileRecordData, boost::random_access_traversal_tag> {
|
class DirIterator : public boost::iterator_facade<DirIterator, FileRecordData, boost::forward_traversal_tag> {
|
||||||
friend class mchlib::SetListingView;
|
friend class mchlib::SetListingView;
|
||||||
friend class boost::iterator_core_access;
|
friend class boost::iterator_core_access;
|
||||||
typedef boost::iterator_facade<DirIterator, FileRecordData, boost::random_access_traversal_tag> base_class;
|
typedef boost::iterator_facade<DirIterator, FileRecordData, boost::random_access_traversal_tag> base_class;
|
||||||
|
@ -43,8 +43,6 @@ namespace mchlib {
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void increment ( void );
|
void increment ( void );
|
||||||
void decrement ( void );
|
|
||||||
void advance ( std::size_t parAdvance );
|
|
||||||
difference_type distance_to ( const DirIterator& parOther ) const;
|
difference_type distance_to ( const DirIterator& parOther ) const;
|
||||||
bool equal ( const DirIterator& parOther ) const;
|
bool equal ( const DirIterator& parOther ) const;
|
||||||
reference dereference ( void ) const;
|
reference dereference ( void ) const;
|
||||||
|
|
|
@ -84,16 +84,6 @@ namespace mchlib {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
void DirIterator::decrement() {
|
|
||||||
assert(false); //TODO: write implementation
|
|
||||||
--m_current;
|
|
||||||
}
|
|
||||||
|
|
||||||
void DirIterator::advance (std::size_t parAdvance) {
|
|
||||||
assert(false); //TODO: remove
|
|
||||||
m_current += parAdvance;
|
|
||||||
}
|
|
||||||
|
|
||||||
auto DirIterator::distance_to (const DirIterator& parOther) const -> difference_type {
|
auto DirIterator::distance_to (const DirIterator& parOther) const -> difference_type {
|
||||||
assert(false); //TODO: write implementation
|
assert(false); //TODO: write implementation
|
||||||
return std::distance(m_current, parOther.m_current);
|
return std::distance(m_current, parOther.m_current);
|
||||||
|
|
Loading…
Add table
Reference in a new issue