All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Private Types | Private Attributes | Friends | List of all members
osl::hash::HashKeyStack Class Reference

#include <hashKeyStack.h>

Collaboration diagram for osl::hash::HashKeyStack:
Collaboration graph
[legend]

Public Member Functions

 HashKeyStack (size_t capacity=0)
 
 ~HashKeyStack ()
 
void push (const HashKey &)
 
void pop ()
 
void clear ()
 
const HashKeytop (size_t n=0) const
 
bool empty () const
 
size_t size () const
 
void dump () const
 

Private Types

typedef vector< HashKeyvector_t
 

Private Attributes

vector_t data
 

Friends

bool operator== (const HashKeyStack &, const HashKeyStack &)
 

Detailed Description

Definition at line 11 of file hashKeyStack.h.

Member Typedef Documentation

typedef vector<HashKey> osl::hash::HashKeyStack::vector_t
private

Definition at line 13 of file hashKeyStack.h.

Constructor & Destructor Documentation

osl::hash::HashKeyStack::HashKeyStack ( size_t  capacity = 0)
explicit

Definition at line 8 of file hashKeyStack.cc.

osl::hash::HashKeyStack::~HashKeyStack ( )

Definition at line 14 of file hashKeyStack.cc.

Member Function Documentation

void osl::hash::HashKeyStack::clear ( )
inline

Definition at line 21 of file hashKeyStack.h.

References data.

void osl::hash::HashKeyStack::dump ( ) const

Definition at line 25 of file hashKeyStack.cc.

bool osl::hash::HashKeyStack::empty ( ) const
inline

Definition at line 29 of file hashKeyStack.h.

References data.

void osl::hash::HashKeyStack::pop ( )
inline

Definition at line 20 of file hashKeyStack.h.

References data.

void osl::hash::HashKeyStack::push ( const HashKey key)

Definition at line 19 of file hashKeyStack.cc.

size_t osl::hash::HashKeyStack::size ( ) const
inline

Definition at line 30 of file hashKeyStack.h.

References data.

Referenced by top().

const HashKey& osl::hash::HashKeyStack::top ( size_t  n = 0) const
inline

Definition at line 23 of file hashKeyStack.h.

References data, and size().

Referenced by osl::game_playing::SpeculativeSearchPlayer::selectBestMove().

Friends And Related Function Documentation

bool operator== ( const HashKeyStack ,
const HashKeyStack  
)
friend

Member Data Documentation

vector_t osl::hash::HashKeyStack::data
private

Definition at line 14 of file hashKeyStack.h.

Referenced by clear(), empty(), pop(), size(), and top().


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