strstack Class Reference

A stack to store strings. More...

#include <mempool.h>

Collaboration diagram for strstack:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 strstack (int bs=1000)
 ~strstack ()
const char * push (const char *s)
const char * pop ()
const char * top ()
void stat ()
int used ()
int wasted ()


Detailed Description

A stack to store strings.

The stack is composed of

Definition at line 112 of file mempool.h.


Constructor & Destructor Documentation

strstack::strstack ( int  bs = 1000  ) 

Definition at line 216 of file mempool.cpp.

strstack::~strstack (  ) 

Definition at line 377 of file mempool.cpp.

References NULL.


Member Function Documentation

const char * strstack::pop (  ) 

Definition at line 291 of file mempool.cpp.

const char * strstack::push ( const char *  s  ) 

Definition at line 247 of file mempool.cpp.

Referenced by dictionary::dictionary(), dictionary::encode(), and dictionary::load().

Here is the caller graph for this function:

void strstack::stat (  ) 

Definition at line 237 of file mempool.cpp.

References VERBOSE.

const char * strstack::top (  ) 

Definition at line 337 of file mempool.cpp.

int strstack::used (  )  [inline]

Definition at line 136 of file mempool.h.

Referenced by dictionary::stat().

Here is the caller graph for this function:

int strstack::wasted (  )  [inline]

Definition at line 140 of file mempool.h.


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

Generated on Thu Jul 6 00:32:02 2017 for Moses by  doxygen 1.5.9