Add conversion for backwards links
[dueringa_WikiWalker.git] / inc / Walker.h
blob5b98fee8d667d28073ae5ac0c3333d90fb654624
1 //! \file Walker.h
3 #ifndef WIKIWALKER_WALKER_H
4 #define WIKIWALKER_WALKER_H
6 #include "ArticleCollection.h"
8 namespace WikiWalker
10 //! Base class for article analyzers
11 class Walker
13 public:
14 /*! get the ArticleCollection with stored articles
15 * \returns const reference to collection with stored reference
16 * \todo looks code-smelly, is this really neccessary?
18 const CollectionUtils::ArticleCollection& collection() const
20 return articleSet_;
23 //! virtual base class destructor
24 virtual ~Walker() = default;
26 protected:
27 //! article collection, used as cache, for walked articles
28 CollectionUtils::ArticleCollection articleSet_;
30 } // namespace WikiWalker
31 #endif // WIKIWALKER_WALKER_H