ACE_Malloc_LIFO_Iterator_T<, ACE_LOCK, ACE_CB > Class Template ReferenceLIFO iterator for names stored in Malloc'd memory. More...
Collaboration diagram for ACE_Malloc_LIFO_Iterator_T<, ACE_LOCK, ACE_CB >:
Detailed Descriptiontemplate<ACE_MEM_POOL_1, class ACE_LOCK, class ACE_CB>
LIFO iterator for names stored in Malloc'd memory.
|
typedef ACE_CB::ACE_Name_Node ACE_Malloc_LIFO_Iterator_T<, ACE_LOCK, ACE_CB >::NAME_NODE |
typedef ACE_CB::ACE_Malloc_Header ACE_Malloc_LIFO_Iterator_T<, ACE_LOCK, ACE_CB >::MALLOC_HEADER |
ACE_Malloc_LIFO_Iterator_T<, ACE_LOCK, ACE_CB >::ACE_Malloc_LIFO_Iterator_T | ( | ACE_Malloc_T< ACE_MEM_POOL_2, ACE_LOCK, ACE_CB > & | malloc, | |
const char * | name = 0 | |||
) | [inline] |
If name = 0 it will iterate through everything else only through those entries whose name match.
ACE_Malloc_LIFO_Iterator_T<, ACE_LOCK, ACE_CB >::~ACE_Malloc_LIFO_Iterator_T | ( | void | ) | [inline] |
Destructor.
int ACE_Malloc_LIFO_Iterator_T<, ACE_LOCK, ACE_CB >::done | ( | void | ) | const [inline] |
Returns 1 when all items have been seen, else 0.
int ACE_Malloc_LIFO_Iterator_T<, ACE_LOCK, ACE_CB >::next | ( | void *& | next_entry | ) | [inline] |
Pass back the next entry in the set that hasn't yet been visited. Returns 0 when all items have been seen, else 1.
int ACE_Malloc_LIFO_Iterator_T<, ACE_LOCK, ACE_CB >::next | ( | void *& | next_entry, | |
const char *& | name | |||
) | [inline] |
Pass back the next entry (and the name associated with it) in the set that hasn't yet been visited. Returns 0 when all items have been seen, else 1.
int ACE_Malloc_LIFO_Iterator_T<, ACE_LOCK, ACE_CB >::advance | ( | void | ) | [inline] |
Move forward by one element in the set. Returns 0 when all the items in the set have been seen, else 1.
void ACE_Malloc_LIFO_Iterator_T<, ACE_LOCK, ACE_CB >::dump | ( | void | ) | const [inline] |
Dump the state of an object.
ACE_Malloc_LIFO_Iterator_T<, ACE_LOCK, ACE_CB >::ACE_ALLOC_HOOK_DECLARE |
Declare the dynamic allocation hooks.
ACE_Malloc_T<ACE_MEM_POOL_2, ACE_LOCK, ACE_CB>& ACE_Malloc_LIFO_Iterator_T<, ACE_LOCK, ACE_CB >::malloc_ [private] |
Malloc we are iterating over.
NAME_NODE* ACE_Malloc_LIFO_Iterator_T<, ACE_LOCK, ACE_CB >::curr_ [private] |
Keeps track of how far we've advanced...
ACE_Read_Guard<ACE_LOCK> ACE_Malloc_LIFO_Iterator_T<, ACE_LOCK, ACE_CB >::guard_ [private] |
Lock Malloc for the lifetime of the iterator.
const char* ACE_Malloc_LIFO_Iterator_T<, ACE_LOCK, ACE_CB >::name_ [private] |
Name that we are searching for.