mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-29 08:00:56 -04:00
made some journal accessor methods constant
This commit is contained in:
parent
4c7ae3d1ff
commit
f55da17933
@ -27,17 +27,17 @@ namespace MWDialogue
|
|||||||
mEntries.push_back (entry.mInfoId);
|
mEntries.push_back (entry.mInfoId);
|
||||||
}
|
}
|
||||||
|
|
||||||
Topic::TEntryIter Topic::begin()
|
Topic::TEntryIter Topic::begin() const
|
||||||
{
|
{
|
||||||
return mEntries.begin();
|
return mEntries.begin();
|
||||||
}
|
}
|
||||||
|
|
||||||
Topic::TEntryIter Topic::end()
|
Topic::TEntryIter Topic::end() const
|
||||||
{
|
{
|
||||||
return mEntries.end();
|
return mEntries.end();
|
||||||
}
|
}
|
||||||
|
|
||||||
JournalEntry Topic::getEntry (const std::string& infoId)
|
JournalEntry Topic::getEntry (const std::string& infoId) const
|
||||||
{
|
{
|
||||||
return JournalEntry (mTopic, infoId);
|
return JournalEntry (mTopic, infoId);
|
||||||
}
|
}
|
||||||
|
@ -34,13 +34,15 @@ namespace MWDialogue
|
|||||||
///
|
///
|
||||||
/// \note Redundant entries are ignored.
|
/// \note Redundant entries are ignored.
|
||||||
|
|
||||||
TEntryIter begin();
|
std::string const & getName () const { return mTopic; }
|
||||||
|
|
||||||
|
TEntryIter begin() const;
|
||||||
///< Iterator pointing to the begin of the journal for this topic.
|
///< Iterator pointing to the begin of the journal for this topic.
|
||||||
|
|
||||||
TEntryIter end();
|
TEntryIter end() const;
|
||||||
///< Iterator pointing past the end of the journal for this topic.
|
///< Iterator pointing past the end of the journal for this topic.
|
||||||
|
|
||||||
JournalEntry getEntry (const std::string& infoId);
|
JournalEntry getEntry (const std::string& infoId) const;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user