12 template<
class ItemType>
40 bool add(
const ItemType& newEntry);
47 bool contains(
const ItemType& anEntry)
const;
55 std::vector<ItemType>
toVector()
const;
Bag()
Definition: Bag.cpp:10
bool add(const ItemType &newEntry)
Definition: Bag.cpp:27
std::vector< ItemType > toVector() const
Definition: Bag.cpp:100
~Bag()
Definition: Bag.cpp:116
void clear()
Definition: Bag.cpp:40
int size() const
Definition: Bag.cpp:15
int getFrequencyOf(const ItemType &anEntry) const
Definition: Bag.cpp:80
bool contains(const ItemType &anEntry) const
Definition: Bag.cpp:74
bool isEmpty() const
Definition: Bag.cpp:21