YAPOG  0.0.1
Yet Another Pokemon Online Game
yap::collection::Array< T > Class Template Reference

Wrapper for std::vector. More...

#include <Array.hpp>

Inheritance diagram for yap::collection::Array< T >:
Collaboration diagram for yap::collection::Array< T >:

List of all members.

Public Types

typedef T DataType
typedef std::vector< DataTypeInnerType
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 > &copy)
 Constructs an Array from another one with the same size and a copy of each element of the source Array.
Arrayoperator= (const Array< T > &copy)
 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_

Detailed Description

template<typename T>
class yap::collection::Array< T >

Wrapper for std::vector.

Definition at line 14 of file Array.hpp.


Member Typedef Documentation

template<typename T>
typedef InnerType::const_iterator yap::collection::Array< T >::ConstItType

Definition at line 22 of file Array.hpp.

template<typename T>
typedef T yap::collection::Array< T >::DataType

Definition at line 18 of file Array.hpp.

template<typename T>
typedef std::vector<DataType> yap::collection::Array< T >::InnerType

Definition at line 19 of file Array.hpp.

template<typename T>
typedef InnerType::iterator yap::collection::Array< T >::ItType

Definition at line 21 of file Array.hpp.

template<typename T>
typedef InnerType::size_type yap::collection::Array< T >::SizeType

Definition at line 20 of file Array.hpp.


Constructor & Destructor Documentation

template<typename T >
yap::collection::Array< T >::Array ( )
inline

Constructs an empty Array.

Definition at line 11 of file Array.hxx.

template<typename T>
yap::collection::Array< T >::Array ( SizeType  capacity,
const T &  value 
)
inline

Definition at line 17 of file Array.hxx.

template<typename T>
yap::collection::Array< T >::Array ( const Array< T > &  copy)
inline

Constructs an Array from another one with the same size and a copy of each element of the source Array.

Parameters:
copySource Array for the copy.

Definition at line 23 of file Array.hxx.


Member Function Documentation

template<typename T>
void yap::collection::Array< T >::Add ( const T &  data)
inline

Definition at line 88 of file Array.hxx.

Here is the caller graph for this function:

template<typename T>
void yap::collection::Array< T >::Add ( const Array< T > &  data)
inline

Definition at line 94 of file Array.hxx.

Here is the call graph for this function:

template<typename T >
Array< T >::ItType yap::collection::Array< T >::begin ( )
inline

Definition at line 40 of file Array.hxx.

Here is the caller graph for this function:

template<typename T >
Array< T >::ConstItType yap::collection::Array< T >::begin ( ) const
inline

Definition at line 46 of file Array.hxx.

template<typename T >
Array< T >::ItType yap::collection::Array< T >::Begin ( )
inline

Definition at line 52 of file Array.hxx.

Here is the caller graph for this function:

template<typename T >
Array< T >::ConstItType yap::collection::Array< T >::Begin ( ) const
inline

Definition at line 58 of file Array.hxx.

template<typename T >
void yap::collection::Array< T >::Clear ( )
inline

Definition at line 142 of file Array.hxx.

Here is the caller graph for this function:

template<typename T>
bool yap::collection::Array< T >::Contains ( const T &  data) const
inline

Definition at line 106 of file Array.hxx.

template<typename T>
bool yap::collection::Array< T >::Contains ( const Array< T > &  data) const
inline

Definition at line 112 of file Array.hxx.

template<typename T >
Array< T >::SizeType yap::collection::Array< T >::Count ( ) const
inline

Definition at line 154 of file Array.hxx.

Here is the caller graph for this function:

template<typename T >
Array< T >::ItType yap::collection::Array< T >::end ( )
inline

Definition at line 64 of file Array.hxx.

Here is the caller graph for this function:

template<typename T >
Array< T >::ConstItType yap::collection::Array< T >::end ( ) const
inline

Definition at line 70 of file Array.hxx.

template<typename T >
Array< T >::ItType yap::collection::Array< T >::End ( )
inline

Definition at line 76 of file Array.hxx.

Here is the caller graph for this function:

template<typename T >
Array< T >::ConstItType yap::collection::Array< T >::End ( ) const
inline

Definition at line 82 of file Array.hxx.

template<typename T>
void yap::collection::Array< T >::Insert ( ItType  index,
const T &  data 
)
inline

Definition at line 100 of file Array.hxx.

template<typename T >
bool yap::collection::Array< T >::IsEmpty ( ) const
inline

Definition at line 148 of file Array.hxx.

Here is the caller graph for this function:

template<typename T>
Array< T > & yap::collection::Array< T >::operator= ( const Array< T > &  copy)
inline

Copies the source Array to this Array.

Parameters:
copySource Array for the copy.

Definition at line 29 of file Array.hxx.

template<typename T>
const T& yap::collection::Array< T >::operator[] ( SizeType  index) const
template<typename T>
T& yap::collection::Array< T >::operator[] ( SizeType  index)
template<typename T>
void yap::collection::Array< T >::Remove ( const T &  data)
inline

Definition at line 122 of file Array.hxx.

Here is the caller graph for this function:

template<typename T >
void yap::collection::Array< T >::RemoveBack ( )
inline

Definition at line 133 of file Array.hxx.

Here is the caller graph for this function:


Member Data Documentation

template<typename T>
InnerType yap::collection::Array< T >::data_
private

Definition at line 68 of file Array.hpp.


The documentation for this class was generated from the following files: