template<class T> class adevs::Bag

The Bag class is (almost) a model of a STL Multiple Associative Container.

Public Methods

[more] Bag()
[more] Bag(const Bag<T>& src)
[more]const Bag<T> & operator=(const Bag<T>& src)
[more]unsigned count(const T& a) const
[more]unsigned size() const
[more]bool empty() const
[more]iterator begin() const
[more]iterator end() const
[more]void erase(const T& k)
[more]void erase(iterator p)
[more]void clear()
[more]iterator find(const T& k) const
[more]void insert(const T& t)
[more] ~Bag()

Public Members

class iterator
[more]typedef iterator const_iterator


Documentation

The Bag class is (almost) a model of a STL Multiple Associative Container. This implementation is optimized for use by the simulation engine. It does not satisfy the STL complexity requirements. Neither does it implement the full set of required methods, but those methods that are implemented conform to the standard (sans the complexity requirement).
otypedef iterator const_iterator

o Bag()

o Bag(const Bag<T>& src)

oconst Bag<T> & operator=(const Bag<T>& src)

ounsigned count(const T& a) const

ounsigned size() const

obool empty() const

oiterator begin() const

oiterator end() const

ovoid erase(const T& k)

ovoid erase(iterator p)

ovoid clear()

oiterator find(const T& k) const

ovoid insert(const T& t)

o ~Bag()


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.