DOKK / manpages / debian 11 / libcommoncpp2-doc / ost_StackPager.3.en
ost::StackPager(3) Library Functions Manual ost::StackPager(3)

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

#include <misc.h>

Inherits ost::MemPager.


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.

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.

Create a lifo pager as a mempager.

Parameters

pagesize for memory allocation

Retrieve next object from stack.

Returns

object.

Purge the stack of all objects and memory allocations.

Push a string onto the stack.

Returns

stack memory location.

Parameters

string pointer.

Push an arbitrary object onto the stack.

Returns

stack memory location.

Parameters

object pointer to data
size of data.

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

Sun Dec 27 2020 GNU CommonC++