Public Member Functions | Private Types | Private Attributes | Friends | List of all members
osl::hash::HashKeyStack Class Reference

#include <hashKeyStack.h>

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 std::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

◆ vector_t

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

Definition at line 13 of file hashKeyStack.h.

Constructor & Destructor Documentation

◆ HashKeyStack()

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

Definition at line 7 of file hashKeyStack.cc.

References ~HashKeyStack().

◆ ~HashKeyStack()

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

Definition at line 13 of file hashKeyStack.cc.

References push().

Referenced by HashKeyStack().

Member Function Documentation

◆ clear()

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

Definition at line 21 of file hashKeyStack.h.

Referenced by osl::RepetitionCounter::clear().

◆ dump()

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

Definition at line 24 of file hashKeyStack.cc.

Referenced by push(), and size().

◆ empty()

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

Definition at line 29 of file hashKeyStack.h.

Referenced by osl::RepetitionCounter::isConsistent().

◆ pop()

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

◆ push()

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

Definition at line 18 of file hashKeyStack.cc.

References dump().

Referenced by osl::RepetitionCounter::push(), and ~HashKeyStack().

◆ size()

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

Definition at line 30 of file hashKeyStack.h.

References dump(), and operator==.

Referenced by osl::RepetitionCounter::order(), osl::RepetitionCounter::pop(), and top().

◆ top()

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

Friends And Related Function Documentation

◆ operator==

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

Definition at line 36 of file hashKeyStack.cc.

Referenced by size().

Member Data Documentation

◆ data

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

Definition at line 14 of file hashKeyStack.h.

Referenced by osl::hash::operator==().


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