![]() |
YAPOG
0.0.1
Yet Another Pokemon Online Game
|
Wrapper for std::vector. More...
#include <Array.hpp>
Public Types | |
| typedef T | DataType |
| typedef std::vector< DataType > | InnerType |
| typedef InnerType::size_type | SizeType |
| typedef InnerType::iterator | ItType |
| typedef InnerType::const_iterator | ConstItType |
Public Member Functions | |
| Array () | |
| Constructs an empty Array. | |
| Array (SizeType capacity, const T &value) | |
| Array (const Array< T > ©) | |
| Constructs an Array from another one with the same size and a copy of each element of the source Array. | |
| Array & | operator= (const Array< T > ©) |
| Copies the source Array to this Array. | |
| ItType | begin () |
| ConstItType | begin () const |
| ItType | Begin () |
| ConstItType | Begin () const |
| ItType | end () |
| ConstItType | end () const |
| ItType | End () |
| ConstItType | End () const |
| void | Add (const T &data) |
| void | Add (const Array< T > &data) |
| void | Insert (ItType index, const T &data) |
| bool | Contains (const T &data) const |
| bool | Contains (const Array< T > &data) const |
| void | Remove (const T &data) |
| void | RemoveBack () |
| void | Clear () |
| bool | IsEmpty () const |
| SizeType | Count () const |
| const T & | operator[] (SizeType index) const |
| T & | operator[] (SizeType index) |
Private Attributes | |
| InnerType | data_ |
Wrapper for std::vector.
| typedef InnerType::const_iterator yap::collection::Array< T >::ConstItType |
| typedef T yap::collection::Array< T >::DataType |
| typedef std::vector<DataType> yap::collection::Array< T >::InnerType |
| typedef InnerType::iterator yap::collection::Array< T >::ItType |
| typedef InnerType::size_type yap::collection::Array< T >::SizeType |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| const T& yap::collection::Array< T >::operator[] | ( | SizeType | index | ) | const |
| T& yap::collection::Array< T >::operator[] | ( | SizeType | index | ) |
|
inline |
|
inline |
|
private |