logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

Author

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

GNU CommonC++                                    Sun Dec 27 2020                              ost::StackPager(3)

Constructor & Destructor Documentation

ost::StackPager::StackPager(size_tpagesize)
       Create a lifo pager as a mempager.

       Parameterspagesize for memory allocation

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.

Member Function Documentation

void*ost::StackPager::pull(void)
       Retrieve next object from stack.

       Returns
           object.

   voidost::StackPager::purge(void)
       Purge the stack of all objects and memory allocations.

   void*ost::StackPager::push(constchar*string)
       Push a string onto the stack.

       Returns
           stack memory location.

       Parametersstring pointer.

   void*ost::StackPager::push(constvoid*object,size_tsize)
       Push an arbitrary object onto the stack.

       Returns
           stack memory location.

       Parametersobject pointer to data
           size of data.

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.

   PublicMemberFunctionsStackPager (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.

   AdditionalInheritedMembers

See Also