Sack Library Documentation
ContentsIndexReferenceHome
PreviousUpNext
sack::containers::PLINKSTACK Structure
C++
typedef struct LinkStack {
  INDEX Top;
  INDEX Cnt;
  _32 Lock;
  _32 Max;
  POINTER pNode[1];
} LINKSTACK, * PLINKSTACK;
Members 
Description 
INDEX Top; 
This is the index of the next pointer to be pushed or popped. If top == 0, the stack is empty, until a pointer is added and top is incremented. 
INDEX Cnt; 
How many pointers the stack can contain. 
_32 Lock; 
thread interlock using InterlockedExchange semaphore. For thread safety. 
_32 Max; 
a defined maximum capacity of stacked values... values beyond this are lost from the bottom 
POINTER pNode[1]; 
Reserved data portion that stores the pointers. 

This is a stack that contains pointers to user objects.

This is a stack 'by reference'. When extended, the stack will occupy different memory, care must be taken to not duplicate pointers to this stack.

Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at support@toolsfactory.com.
Copyright (c) 2000+. All rights reserved.
What do you think about this topic? Send feedback!