libassa
3.5.1
|
#include <Repository.h>
Public Types | |
typedef T * | value_type |
typedef size_t | size_type |
typedef std::vector< value_type > | list_t |
typedef std::vector< value_type >::iterator | iterator |
typedef std::vector< value_type >::const_iterator | const_iterator |
Public Member Functions | |
Repository () | |
Constructor. More... | |
virtual | ~Repository () |
Destructor. More... | |
iterator | begin () |
Get iterator to the first element of the repository. More... | |
const_iterator | begin () const |
Get constant iterator to the first element of the repository. More... | |
iterator | end () |
Get iterator to the end of the repository. More... | |
const_iterator | end () const |
Get constant iterator to the end of the repository. More... | |
bool | empty () const |
Return true if repository is empty. More... | |
size_type | size () const |
Return number of elements in the repository. More... | |
void | push_back (const value_type &x_) |
Add new element to the repository. More... | |
void | erase (iterator position_) |
Remove element at the position_ iterator. More... | |
bool | erase (const value_type &x_) |
Remove element. More... | |
void | clear () |
Empty repository. More... | |
Private Attributes | |
list_t * | m_collection |
Definition at line 33 of file Repository.h.
typedef std::vector<value_type>::const_iterator ASSA::Repository< T >::const_iterator |
Definition at line 41 of file Repository.h.
typedef std::vector<value_type>::iterator ASSA::Repository< T >::iterator |
Definition at line 40 of file Repository.h.
typedef std::vector<value_type> ASSA::Repository< T >::list_t |
Definition at line 39 of file Repository.h.
typedef size_t ASSA::Repository< T >::size_type |
Definition at line 37 of file Repository.h.
typedef T* ASSA::Repository< T >::value_type |
Definition at line 36 of file Repository.h.
|
inline |
Constructor.
Definition at line 45 of file Repository.h.
References ASSA::Repository< T >::m_collection.
|
inlinevirtual |
Destructor.
Definition at line 50 of file Repository.h.
References ASSA::Repository< T >::clear(), and ASSA::Repository< T >::m_collection.
|
inline |
Get iterator to the first element of the repository.
Definition at line 55 of file Repository.h.
References ASSA::Repository< T >::m_collection.
Referenced by ASSA::Repository< T >::erase().
|
inline |
Get constant iterator to the first element of the repository.
Definition at line 58 of file Repository.h.
References ASSA::Repository< T >::m_collection.
|
inline |
Empty repository.
Definition at line 90 of file Repository.h.
References ASSA::Repository< T >::m_collection.
Referenced by ASSA::Repository< T >::~Repository().
|
inline |
Return true if repository is empty.
Definition at line 67 of file Repository.h.
References ASSA::Repository< T >::m_collection.
|
inline |
Get iterator to the end of the repository.
Definition at line 61 of file Repository.h.
References ASSA::Repository< T >::m_collection.
Referenced by ASSA::Repository< T >::erase().
|
inline |
Get constant iterator to the end of the repository.
Definition at line 64 of file Repository.h.
References ASSA::Repository< T >::m_collection.
|
inline |
Remove element.
Definition at line 81 of file Repository.h.
References ASSA::Repository< T >::begin(), ASSA::Repository< T >::end(), and ASSA::Repository< T >::erase().
|
inline |
Remove element at the position_ iterator.
Definition at line 76 of file Repository.h.
References ASSA::Repository< T >::m_collection.
Referenced by ASSA::Repository< T >::erase().
|
inline |
Add new element to the repository.
Definition at line 73 of file Repository.h.
References ASSA::Repository< T >::m_collection.
|
inline |
Return number of elements in the repository.
Definition at line 70 of file Repository.h.
References ASSA::Repository< T >::m_collection.
|
private |
Definition at line 95 of file Repository.h.
Referenced by ASSA::Repository< T >::begin(), ASSA::Repository< T >::clear(), ASSA::Repository< T >::empty(), ASSA::Repository< T >::end(), ASSA::Repository< T >::erase(), ASSA::Repository< T >::push_back(), ASSA::Repository< T >::Repository(), ASSA::Repository< T >::size(), and ASSA::Repository< T >::~Repository().