The Container Interface
[The Container Class]


Data Structures

struct  Cmaid_Container_Interface
 The Container Interface structure The container interface is the case interface for all containers. More...

Defines

#define CMAID_CONTAINER_INTERFACE(i)   ((const Cmaid_Container_Interface *)(i))
 Typecast a pointer to a Cmaid_Container_Interface pointer.
#define CMAID_CONTAINER_FUNC(c)   ((c)->interface)

Typedefs

typedef int(* Cmaid_Container_Count_Cb )(const Cmaid_Container *c)
typedef int(* Cmaid_Container_Empty_Is_Cb )(const Cmaid_Container *c)
typedef void(* Cmaid_Container_Clear_Cb )(Cmaid_Container *c)
typedef void(* Cmaid_Container_Iter_Attach_Cb )(Cmaid_Container *c, Cmaid_Iter *it)
typedef void(* Cmaid_Container_Iter_Detach_Cb )(Cmaid_Container *c, Cmaid_Iter *it)
typedef void(* Cmaid_Container_Destroy_Cb )(Cmaid_Container *c)
typedef void(* Cmaid_Container_Node_Free_Cb )(Cmaid_Container *c, void *node)
typedef struct
Cmaid_Container_Interface 
Cmaid_Container_Interface

Detailed Description

You only have to deal with the interface structure directly, if you are going to write an implementation of the interface. Else you can safely ignore this.

Define Documentation

#define CMAID_CONTAINER_FUNC (  )     ((c)->interface)

Macro to access the cache interface.


Typedef Documentation

A type definition to shorten the definition of the clear callback.

typedef int(* Cmaid_Container_Count_Cb)(const Cmaid_Container *c)

A type definition to shorten the definition of the count callback.

A type definition to shorten the definition of the destroy callback.

typedef int(* Cmaid_Container_Empty_Is_Cb)(const Cmaid_Container *c)

A type definition to shorten the definition of the empty_is callback.

Type definition for the container interface

A type definition to shorten the definition of the iter_attach callback.

A type definition to shorten the definition of the iter_detach callback.

typedef void(* Cmaid_Container_Node_Free_Cb)(Cmaid_Container *c, void *node)

A type definition to shorten the definition of the node free callback.


Generated on Wed Aug 5 00:20:49 2009 for Cmaid by  doxygen 1.5.8