4 #include "WalkerException.h"
7 size_t Article::getNumLinks() const
9 if(!analyzed
&& !links
.size()) {
10 throw WalkerException("Article not analyzed yet!");
16 Article::ArticleLinkConstIterator
Article::linkBegin() const
18 return links
.cbegin();
21 Article::ArticleLinkConstIterator
Article::linkEnd() const
26 bool Article::addLink(Article
* article
)
28 auto pos
= find(links
.begin(), links
.end(), article
);
30 if(pos
!= links
.end()) {
34 links
.push_back(article
);
40 void Article::setAnalyzed(bool analyzedState
) {
41 analyzed
= analyzedState
;
44 bool Article::isAnalyzed() const {
48 void Article::setMarked(bool _marked
) {
52 bool Article::isMarked() const {