35 bool hasKeyword(
const std::string& keyword )
const;
44 size_t numKeywords(
const std::string& keyword)
const;
45 const std::vector<DeckKeywordConstPtr>&
getKeywordList(
const std::string& keyword)
const;
50 std::vector<DeckKeywordConstPtr>::const_iterator
begin()
const;
51 std::vector<DeckKeywordConstPtr>::const_iterator
end()
const;
54 template <
class Keyword>
59 template <
class Keyword>
61 return getkeyword( Keyword::keywordName , index );
64 template <
class Keyword>
69 template <
class Keyword>
79 std::vector<DeckKeywordConstPtr> m_emptyList;
80 std::vector<DeckKeywordConstPtr> m_keywordList;
81 std::map<std::string, std::vector<DeckKeywordConstPtr> > m_keywordMap;
82 std::map<const DeckKeyword *, size_t> m_keywordIndex;
void addKeyword(DeckKeywordConstPtr keyword)
std::vector< DeckKeywordConstPtr >::const_iterator end() const
DeckKeywordConstPtr getKeyword() const
Definition: Deck.hpp:65
std::shared_ptr< UnitSystem > m_activeUnits
Definition: Deck.hpp:76
std::shared_ptr< const DeckKeyword > DeckKeywordConstPtr
Definition: DeckKeyword.hpp:71
size_t numKeywords(const std::string &keyword) const
bool hasKeyword() const
Definition: Deck.hpp:55
std::shared_ptr< const Deck > DeckConstPtr
Definition: Deck.hpp:86
std::shared_ptr< UnitSystem > m_defaultUnits
Definition: Deck.hpp:75
std::vector< DeckKeywordConstPtr >::const_iterator begin() const
const std::vector< DeckKeywordConstPtr > & getKeywordList() const
Definition: Deck.hpp:70
std::shared_ptr< UnitSystem > getDefaultUnitSystem() const
std::shared_ptr< UnitSystem > getActiveUnitSystem() const
size_t getKeywordIndex(DeckKeywordConstPtr keyword) const
std::shared_ptr< Deck > DeckPtr
Definition: Deck.hpp:85
DeckKeywordConstPtr getKeyword(size_t index) const
Definition: Deck.hpp:60