GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> EFC / V4-5-0 > efcprint / rad750
#include <PBI/Attribute.h>
Classes | |
struct | _TFC_prjNode |
Defines the control structure needed to maintain a node on a projection list. More... | |
struct | _TFC_prjList |
Defines the control structure needed to describe the head of a projection list. More... | |
Typedefs | |
typedef struct _TFC_prjList | TFC_prjList |
Typedef for struct _TFC_prjList. | |
typedef struct _TFC_prjNode | TFC_prjNode |
Typedef for struct _TFC_prjNode. | |
Functions | |
static __inline void | TFC__prjListAppend (TFC_prjList *dst, TFC_prjList *src) ATTR_UNUSED_OK |
Appends the src list members to the dst list. | |
static __inline void | TFC__prjListDestroy (TFC_prjList *list) ATTR_UNUSED_OK |
Destroys the data structures associate with the list. | |
static __inline int | TFC__prjListEmpty (TFC_prjList *list) ATTR_UNUSED_OK |
Returns non zero if the list is empty list. | |
static __inline int | TFC__prjListIsLast (const TFC_prjList *list, const TFC_prjNode *node) ATTR_UNUSED_OK |
Returns a whether a this is the last node in the list. | |
static __inline void | TFC__prjListInit (TFC_prjList *list) ATTR_UNUSED_OK |
Initializes a list (singly linked list) to an empty list. | |
static __inline TFC_prjNode * | TFC__prjListInsert (TFC_prjList *list, TFC_prjNode *node) ATTR_UNUSED_OK |
Adds a node to the tail of a previously initialized list. | |
static __inline TFC_prjNode * | TFC__prjListJam (TFC_prjList *list, TFC_prjNode *node) ATTR_UNUSED_OK |
Adds a node to the head of a previously initialized list. | |
static __inline TFC_prjNode * | TFC__prjListPrevious (const TFC_prjList *list, const TFC_prjNode *node) ATTR_UNUSED_OK |
Returns the previous node list or NULL if the first node. | |
static __inline void | TFC__prjListPrepend (TFC_prjList *dst, TFC_prjList *src) ATTR_UNUSED_OK |
Prepends the src list members to the dst list. | |
static __inline TFC_prjNode * | TFC__prjListNext (const TFC_prjList *list, const TFC_prjNode *node) ATTR_UNUSED_OK |
Returns the next node or NULL if the last node. | |
static __inline TFC_prjNode * | TFC__prjListRemove (TFC_prjList *list) ATTR_UNUSED_OK |
Removes the node from the head of a previously initialized list.. An empty list returns NULL as its node. | |
static __inline TFC_prjNode * | TFC__prjListUnlink (const TFC_prjNode *node, TFC_prjNode *predecessor) ATTR_UNUSED_OK |
Removes the specified node from the list. | |
static __inline TFC_prjNode * | TFC__prjListFirst (const TFC_prjList *list) ATTR_UNUSED_OK |
Returns a pointer to the first node in the list. | |
static __inline TFC_prjNode * | TFC__prjListLast (const TFC_prjList *list) ATTR_UNUSED_OK |
Returns a pointer to the last node in the list. |
CVS $Id: TFC_prjList.h,v 1.2 2011/03/27 04:55:29 russell Exp $
static __inline void TFC__prjListAppend | ( | TFC_prjList * | dst, | |
TFC_prjList * | src | |||
) | [static] |
Appends the src list members to the dst list.
dst | A previously initialized list acting as the destination | |
src | A previously initialized list acting as the source |
References _TFC_prjNode::blnk, _TFC_prjNode::flnk, and _TFC_prjList::node.
static __inline void TFC__prjListDestroy | ( | TFC_prjList * | list | ) | [static] |
Destroys the data structures associate with the list.
list | Pointer to the list to destroy. |
static __inline int TFC__prjListEmpty | ( | TFC_prjList * | list | ) | [static] |
Returns non zero if the list is empty list.
list | Pointer to the list to initialize. |
References _TFC_prjNode::flnk, and _TFC_prjList::node.
static __inline TFC_prjNode * TFC__prjListFirst | ( | const TFC_prjList * | list | ) | [static] |
Returns a pointer to the first node in the list.
list | The list |
References _TFC_prjNode::flnk, and _TFC_prjList::node.
static __inline void TFC__prjListInit | ( | TFC_prjList * | list | ) | [static] |
Initializes a list (singly linked list) to an empty list.
list | Pointer to the list to initialize. |
References _TFC_prjNode::blnk, _TFC_prjNode::flnk, and _TFC_prjList::node.
static __inline TFC_prjNode * TFC__prjListInsert | ( | TFC_prjList * | list, | |
TFC_prjNode * | node | |||
) | [static] |
Adds a node to the tail of a previously initialized list.
list | A previously initialized list. | |
node | The node to add at the tail of the mode |
References _TFC_prjNode::blnk, _TFC_prjNode::flnk, and _TFC_prjList::node.
static __inline int TFC__prjListIsLast | ( | const TFC_prjList * | list, | |
const TFC_prjNode * | node | |||
) | [static] |
Returns a whether a this is the last node in the list.
0,is | not the last node in the list | |
0,is | the last node in the list |
list | The list | |
node | The node to check |
References _TFC_prjList::node.
static __inline TFC_prjNode * TFC__prjListJam | ( | TFC_prjList * | list, | |
TFC_prjNode * | node | |||
) | [static] |
Adds a node to the head of a previously initialized list.
list | A previously initialized list. | |
node | The node to add. |
References _TFC_prjNode::flnk, and _TFC_prjList::node.
static __inline TFC_prjNode * TFC__prjListLast | ( | const TFC_prjList * | list | ) | [static] |
Returns a pointer to the last node in the list.
list | The list |
References _TFC_prjNode::blnk, and _TFC_prjList::node.
static __inline TFC_prjNode * TFC__prjListNext | ( | const TFC_prjList * | list, | |
const TFC_prjNode * | node | |||
) | [static] |
Returns the next node or NULL if the last node.
list | A previously initialized list. | |
node | The current node |
References _TFC_prjNode::flnk, and _TFC_prjList::node.
static __inline void TFC__prjListPrepend | ( | TFC_prjList * | dst, | |
TFC_prjList * | src | |||
) | [static] |
Prepends the src list members to the dst list.
dst | A previously initialized list acting as the destination | |
src | A previously initialized list acting as the source |
References _TFC_prjNode::blnk, _TFC_prjNode::flnk, and _TFC_prjList::node.
static __inline TFC_prjNode * TFC__prjListPrevious | ( | const TFC_prjList * | list, | |
const TFC_prjNode * | node | |||
) | [static] |
Returns the previous node list or NULL if the first node.
list | A previously initialized list. | |
node | The current node |
References _TFC_prjList::node.
static __inline TFC_prjNode * TFC__prjListRemove | ( | TFC_prjList * | list | ) | [static] |
Removes the node from the head of a previously initialized list.. An empty list returns NULL as its node.
list | A previously initialized list. |
References _TFC_prjNode::blnk, _TFC_prjNode::flnk, and _TFC_prjList::node.
static __inline TFC_prjNode * TFC__prjListUnlink | ( | const TFC_prjNode * | node, | |
TFC_prjNode * | predecessor | |||
) | [static] |
Removes the specified node from the list.
node | The node to unlink from the list | |
predecessor | The predecessor node. |
References _TFC_prjNode::flnk.