Fri Aug 24 02:28:04 2007

Asterisk developer's documentation


__ao2_iterator Struct Reference

#include <astobj2.h>


Data Fields

int bucket
ao2_container * c
uint c_version
int flags
void * obj
uint version


Detailed Description

You are not supposed to know the internals of an iterator! We would like the iterator to be opaque, unfortunately its size needs to be known if we want to store it around without too much trouble. Anyways... The iterator has a pointer to the container, and a flags field specifying various things e.g. whether the container should be locked or not while navigating on it. The iterator "points" to the current object, which is identified by three values:

Definition at line 513 of file astobj2.h.


Field Documentation

int bucket

current bucket

Definition at line 520 of file astobj2.h.

Referenced by ao2_iterator_next().

ao2_container* c

the container

Definition at line 515 of file astobj2.h.

Referenced by ao2_iterator_init(), and ao2_iterator_next().

uint c_version

container version

Definition at line 522 of file astobj2.h.

Referenced by ao2_iterator_next().

int flags

operation flags

Definition at line 517 of file astobj2.h.

Referenced by ao2_iterator_next().

void* obj

pointer to the current object

Definition at line 524 of file astobj2.h.

Referenced by ao2_iterator_next().

uint version

container version when the object was created

Definition at line 526 of file astobj2.h.

Referenced by ao2_iterator_next().


The documentation for this struct was generated from the following file:
Generated on Fri Aug 24 02:28:04 2007 for Asterisk - the Open Source PBX by  doxygen 1.5.1