Poster of Linux kernelThe best gift for a Linux geek
ost::StackPager

ost::StackPager

Section: C Library Functions (3) Updated: 16 Feb 2010
Local index Up
 

NAME

ost::StackPager -

The StackPager provides a repository to stash and retrieve working data in last-in-first-out order.

 

SYNOPSIS


#include <misc.h>

Inherits ost::MemPager.  

Classes


struct frame
 

Public Member Functions


StackPager (size_t pagesize)
Create a lifo pager as a mempager.
void * push (const void *object, size_t size)
Push an arbitrary object onto the stack.
void * push (const char *string)
Push a string onto the stack.
void * pull (void)
Retrieve next object from stack.
void purge (void)
Purge the stack of all objects and memory allocations.  

Detailed Description

The StackPager provides a repository to stash and retrieve working data in last-in-first-out order.

The use of a mempager to support it's operation allows storage of arbitrary sized objects with no fixed limit.

Author:

David Sugar <dyfet@ostel.com> last in first out object pager.

 

Constructor & Destructor Documentation

 

ost::StackPager::StackPager (size_t pagesize)

Create a lifo pager as a mempager. Parameters:

pagesize for memory allocation

 

Member Function Documentation

 

void* ost::StackPager::pull (void)

Retrieve next object from stack. Returns:

object.

 

void ost::StackPager::purge (void)

Purge the stack of all objects and memory allocations.

Reimplemented from ost::MemPager.  

void* ost::StackPager::push (const char * string)

Push a string onto the stack. Returns:

stack memory location.

Parameters:

string pointer.

 

void* ost::StackPager::push (const void * object, size_t size)

Push an arbitrary object onto the stack. Returns:

stack memory location.

Parameters:

object pointer to data
size of data.

 

Author

Generated automatically by Doxygen for GNU CommonC++ from the source code.


 

Index

NAME
SYNOPSIS
Classes
Public Member Functions
Detailed Description
Constructor & Destructor Documentation
ost::StackPager::StackPager (size_t pagesize)
Member Function Documentation
void* ost::StackPager::pull (void)
void ost::StackPager::purge (void)
void* ost::StackPager::push (const char * string)
void* ost::StackPager::push (const void * object, size_t size)
Author

This document was created by man2html, using the manual pages.
Time: 21:51:52 GMT, April 16, 2011