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

#include <Set.hpp>

Collaboration diagram for yap::collection::Set< T, C >:

List of all members.

Public Types

typedef T DataType
typedef C ComparatorType
typedef std::set< DataType,
ComparatorType
InnerType
typedef InnerType::size_type SizeType
typedef InnerType::iterator ItType
typedef InnerType::const_iterator ConstItType

Public Member Functions

 Set ()
 Set (const Set< T, C > &copy)
Setoperator= (const Set< T, C > &copy)
ItType begin ()
ConstItType begin () const
ItType Begin ()
ConstItType Begin () const
ItType end ()
ConstItType end () const
ItType End ()
ConstItType End () const
bool Add (const T &data)
void Add (const Set< T, C > &data)
bool Contains (const T &data) const
bool Contains (const Set< T, C > &data) const
bool Remove (const T &data)
void Clear ()
bool IsEmpty () const
SizeType Count () const

Private Attributes

InnerType data_

Detailed Description

template<typename T, typename C = std::less<T>>
class yap::collection::Set< T, C >

Definition at line 16 of file Set.hpp.


Member Typedef Documentation

template<typename T, typename C = std::less<T>>
typedef C yap::collection::Set< T, C >::ComparatorType

Definition at line 21 of file Set.hpp.

template<typename T, typename C = std::less<T>>
typedef InnerType::const_iterator yap::collection::Set< T, C >::ConstItType

Definition at line 25 of file Set.hpp.

template<typename T, typename C = std::less<T>>
typedef T yap::collection::Set< T, C >::DataType

Definition at line 20 of file Set.hpp.

template<typename T, typename C = std::less<T>>
typedef std::set<DataType, ComparatorType> yap::collection::Set< T, C >::InnerType

Definition at line 22 of file Set.hpp.

template<typename T, typename C = std::less<T>>
typedef InnerType::iterator yap::collection::Set< T, C >::ItType

Definition at line 24 of file Set.hpp.

template<typename T, typename C = std::less<T>>
typedef InnerType::size_type yap::collection::Set< T, C >::SizeType

Definition at line 23 of file Set.hpp.


Constructor & Destructor Documentation

template<typename T , typename C >
yap::collection::Set< T, C >::Set ( )
inline

Definition at line 11 of file Set.hxx.

template<typename T, typename C>
yap::collection::Set< T, C >::Set ( const Set< T, C > &  copy)
inline

Definition at line 17 of file Set.hxx.


Member Function Documentation

template<typename T, typename C >
bool yap::collection::Set< T, C >::Add ( const T &  data)
inline

Definition at line 82 of file Set.hxx.

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

Definition at line 88 of file Set.hxx.

Here is the call graph for this function:

template<typename T , typename C >
Set< T, C >::ItType yap::collection::Set< T, C >::begin ( )
inline

Definition at line 34 of file Set.hxx.

template<typename T , typename C >
Set< T, C >::ConstItType yap::collection::Set< T, C >::begin ( ) const
inline

Definition at line 40 of file Set.hxx.

template<typename T , typename C >
Set< T, C >::ItType yap::collection::Set< T, C >::Begin ( )
inline

Definition at line 46 of file Set.hxx.

Here is the caller graph for this function:

template<typename T , typename C >
Set< T, C >::ConstItType yap::collection::Set< T, C >::Begin ( ) const
inline

Definition at line 52 of file Set.hxx.

template<typename T , typename C >
void yap::collection::Set< T, C >::Clear ( )
inline

Definition at line 116 of file Set.hxx.

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

Definition at line 94 of file Set.hxx.

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

Definition at line 100 of file Set.hxx.

template<typename T , typename C >
Set< T, C >::SizeType yap::collection::Set< T, C >::Count ( ) const
inline

Definition at line 128 of file Set.hxx.

template<typename T , typename C >
Set< T, C >::ItType yap::collection::Set< T, C >::end ( )
inline

Definition at line 58 of file Set.hxx.

template<typename T , typename C >
Set< T, C >::ConstItType yap::collection::Set< T, C >::end ( ) const
inline

Definition at line 64 of file Set.hxx.

template<typename T , typename C >
Set< T, C >::ItType yap::collection::Set< T, C >::End ( )
inline

Definition at line 70 of file Set.hxx.

Here is the caller graph for this function:

template<typename T , typename C >
Set< T, C >::ConstItType yap::collection::Set< T, C >::End ( ) const
inline

Definition at line 76 of file Set.hxx.

template<typename T , typename C >
bool yap::collection::Set< T, C >::IsEmpty ( ) const
inline

Definition at line 122 of file Set.hxx.

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

Definition at line 23 of file Set.hxx.

template<typename T, typename C >
bool yap::collection::Set< T, C >::Remove ( const T &  data)
inline

Definition at line 110 of file Set.hxx.


Member Data Documentation

template<typename T, typename C = std::less<T>>
InnerType yap::collection::Set< T, C >::data_
private

Definition at line 58 of file Set.hpp.


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