Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

StateMap< T > Class Template Reference

Map of positions; handles rotations. More...

#include <StateDB.hpp>

List of all members.

Public Member Functions

 StateMap ()
 ~StateMap ()
bool Exists (const HexState &state) const
T & operator[] (const HexState &state)
std::size_t Size () const

Private Attributes

std::map< hash_t, T > m_map

Detailed Description

template<class T>
class StateMap< T >

Map of positions; handles rotations.

Definition at line 248 of file StateDB.hpp.


Constructor & Destructor Documentation

template<class T >
StateMap< T >::StateMap (  )  [inline]

Definition at line 266 of file StateDB.hpp.

template<class T >
StateMap< T >::~StateMap (  )  [inline]

Definition at line 271 of file StateDB.hpp.


Member Function Documentation

template<class T >
bool StateMap< T >::Exists ( const HexState state  )  const [inline]

Definition at line 276 of file StateDB.hpp.

References _BEGIN_BENZENE_NAMESPACE_::GetHash(), and StateMap< T >::m_map.

template<class T >
T & StateMap< T >::operator[] ( const HexState state  )  [inline]

Definition at line 282 of file StateDB.hpp.

References _BEGIN_BENZENE_NAMESPACE_::GetHash(), and StateMap< T >::m_map.

template<class T >
std::size_t StateMap< T >::Size (  )  const [inline]

Definition at line 288 of file StateDB.hpp.

References StateMap< T >::m_map.


Member Data Documentation

template<class T>
std::map<hash_t, T> StateMap< T >::m_map [private]

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


6 Jan 2011 Doxygen 1.6.3