# define mx_atom(a,d,s)
Construct an MX_ATOM
This macro constructs a MX_ATOM which is a base object for reference counting.
(../include/deds/atom.h)
(library deds : module atom)
# define mx_delete(a)
Destroy an MX_ATOM
This macro causes an object to be marked for destruction. If no locks (MX_LOCK)
or references (MX_REF) exist for this object then the object is destroyed and
if appropitae the memory is released.
(../include/deds/atom.h)
(library deds : module atom)
# define mx_locked(a)
Find out if an object is locked or not
(../include/deds/atom.h)
(library deds : module atom)
# define mx_lock(l,a)
Construct a MX_LOCK
This macro creates a lock for an object derived from MX_ATOM. The locked
MX_ATOM is guaranteed not to be deleted while a valid lock exists.
(../include/deds/atom.h)
(library deds : module atom)
unsigned mx_lastlock(const MX_LOCK* lock)
Find out if a lock is the last one of an object
(../include/deds/atom.h)
(library deds : module atom)
# define mx_ref(r,t)
Construct a MX_REF
The macro constructs a MX_REF to an object.
(../include/deds/atom.h)
(library deds : module atom)
# define mx_unref(r)
Destruct a MX_REF
The macro destroys a MX_REF to an object. The object may
be deleted in the dereference, see the mx_unlock() macro.
(../include/deds/atom.h)
(library deds : module atom)
# define mx_rectatom(r,d,s)
Construct a MX_RECTATOM
(../include/deds/rectatom.h)
(library deds : module rectatom)
#define mx_vector(mxvect)
Construct a MX_VECTOR
This macro constructs a MX_VECTOR object. This must be called first before any other mx_vector_* functions are called.
MX_VECTOR is correctly initialized with a 0 bit pattern. So static
MX_VECTOR are correctly initialized and dont necessarily need a call to the
constructor.
(../include/deds/vector.h)
(library deds : module vector)
#define mx_vector_free(mxvect)
Destruct a MX_VECTOR
This macro destroys an MX_VECTOR object by releasing any memory
that has been allocated. It should be the last call to any mx_vector_*
functions. Access of the MX_VECTOR object after destruction should not be done.
(../include/deds/vector.h)
(library deds : module vector)
#define mx_vector_at(mxvect, mxn)
Return an element from a MX_VECTOR at a specific index
This macro returns elements from a MX_VECTOR at a specific index.
It is safer than accessing the underlying pointer because it wont allow
access outside the correct range for the vector.
(../include/deds/vector.h)
(library deds : module vector)
#define mx_vector_back(mxvect)
Return the last element from a MX_VECTOR
This macro returns the last element from a MX_VECTOR.
(../include/deds/vector.h)
(library deds : module vector)
#define mx_vector_begin(mxvect)
Pointer to first element
This macro returns a pointer to the first data element in the MX_VECTOR object.
If the MX_VECTOR contains no data elements then 0 is returned.
(../include/deds/vector.h)
(library deds : module vector)
#define mx_vector_capacity(mxvect)
Capacity
This macro returns the capacity of an MX_VECTOR object. This is the
number of elements that the vector can contain without reqriring any internal
memory management.
(../include/deds/vector.h)
(library deds : module vector)
#define mx_vector_clear(mxvect)
Clear
This macro deletes all the objects from a MX_VECTOR
(../include/deds/vector.h)
(library deds : module vector)
#define mx_vector_empty(mxvect)
Empty
This macro deletes all the objects from a MX_VECTOR
(../include/deds/vector.h)
(library deds : module vector)
Generated by MXDOC 2.2 on Sun Feb 4 15:16:26 2007