ITS
asn_SET_OF.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define A_SET_OF(type)
 
#define ASN_SET_ADD(headptr, ptr)   asn_set_add((headptr), (ptr))
 
#define _A_SET_FROM_VOID(ptr)   ((asn_anonymous_set_ *)(ptr))
 
#define _A_CSET_FROM_VOID(ptr)   ((const asn_anonymous_set_ *)(ptr))
 

Functions

int asn_set_add (void *asn_set_of_x, void *ptr)
 
void asn_set_del (void *asn_set_of_x, int number, int _do_free)
 
void asn_set_empty (void *asn_set_of_x)
 
typedef A_SET_OF (void) asn_anonymous_set_
 

Macro Definition Documentation

◆ _A_CSET_FROM_VOID

#define _A_CSET_FROM_VOID (   ptr)    ((const asn_anonymous_set_ *)(ptr))

Definition at line 56 of file asn_SET_OF.h.

Referenced by SET_OF_constraint(), and SET_OF_print().

◆ _A_SET_FROM_VOID

#define _A_SET_FROM_VOID (   ptr)    ((asn_anonymous_set_ *)(ptr))

◆ A_SET_OF

#define A_SET_OF (   type)
Value:
struct { \
type **array; \
int count; /* Meaningful size */ \
int size; /* Allocated size */ \
void (*free)(type *); \
}

Definition at line 12 of file asn_SET_OF.h.

◆ ASN_SET_ADD

#define ASN_SET_ADD (   headptr,
  ptr 
)    asn_set_add((headptr), (ptr))

Definition at line 20 of file asn_SET_OF.h.

Referenced by SET_OF_decode_ber(), SET_OF_decode_uper(), and SET_OF_decode_xer().

Function Documentation

◆ A_SET_OF()

typedef A_SET_OF ( void  )

◆ asn_set_add()

int asn_set_add ( void *  asn_set_of_x,
void *  ptr 
)

Definition at line 13 of file asn_SET_OF.c.

References _A_SET_FROM_VOID, and REALLOC.

◆ asn_set_del()

void asn_set_del ( void *  asn_set_of_x,
int  number,
int  _do_free 
)

Definition at line 43 of file asn_SET_OF.c.

References _A_SET_FROM_VOID.

◆ asn_set_empty()

void asn_set_empty ( void *  asn_set_of_x)

Definition at line 71 of file asn_SET_OF.c.

References _A_SET_FROM_VOID, and FREEMEM.

Referenced by SET_OF_free().

Here is the caller graph for this function: