Adaptive Framework  0.9.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Macros | Functions
afw_stack.h File Reference

Adaptive Framework stack support. More...

#include "afw_interface.h"

Go to the source code of this file.

Macros

#define afw_stack_create(typedef_name, initial_count, maximum_count, create_subpool_pool, p, xctx)
 Create a stack for the specified typedef. More...
 
#define afw_stack_release(instance, xctx)   afw_stack_release_impl( &((instance)->pub), xctx)
 Release stack implementation. More...
 
#define afw_stack_copy(instance, count, ptr, p, xctx)   afw_stack_copy_impl( &((instance)->pub), count, ptr, p, xctx)
 Copy stack. More...
 
#define afw_stack_copy_and_release(instance, count, ptr, p, xctx)
 Copy and release stack. More...
 
#define afw_stack_is_empty(instance)    ((instance)->top < (instance)->first)
 Determine is a stack is empty. More...
 
#define afw_stack_pop(instance, xctx)
 Decrement stack->top to location of previous entry. More...
 
#define afw_stack_count(instance, xctx)    ((instance)->top + 1 - (instance)->first))
 Number of entries in stack. More...
 
#define afw_stack_push(instance, xctx)
 Increment stack->top to location of next entry and returns *top. More...
 
#define afw_stack_push_direct(instance, xctx)
 Increment stack->top to location of next entry and returns top. More...
 
#define afw_stack_push_and_get_entry(instance, entry, xctx)
 Increment stack->top to location of next entry and get entry. More...
 
#define afw_stack_set_empty(instance)    (instance)->top = ((instance)->first) - 1
 Increment stack->top to location of next entry. More...
 

Functions

afw_stack_tafw_stack_create_impl (afw_size_t entry_size, afw_size_t initial_count, afw_size_t maximum_count, afw_boolean_t create_subpool_pool, const afw_pool_t *p, afw_xctx_t *xctx)
 Create a stack implementation. More...
 
void afw_stack_release_impl (afw_stack_t *instance, afw_xctx_t *xctx)
 Release stack implementation. More...
 
void afw_stack_copy_impl (afw_stack_t *instance, afw_size_t *count, const void ***ptr, const afw_pool_t *p, afw_xctx_t *xctx)
 Copy stack implementation. More...
 
void afw_stack_extend_impl (afw_stack_t *instance, afw_xctx_t *xctx)
 Extend stack implementation. More...
 
 afw_stack_internal_set_qualifier_stack (afw_xctx_t *xctx)
 
 afw_stack_internal_set_evaluation_stack (afw_xctx_t *xctx)
 

Detailed Description

Adaptive Framework stack support.

Definition in file afw_stack.h.