12#error This is a C++ include file and cannot be used from plain C
45 ngcbLIST(
void *newItem,
unsigned long int id);
54 unsigned long int Id()
const;
66 void Add(
void *newItem,
unsigned long int id);
69 void Remove(
unsigned long int id);
75 void Add(
unsigned long int newItem,
unsigned long int id);
78 void Add(
long int newItem,
unsigned long int id);
81 void Add(
unsigned int newItem,
unsigned long int id);
84 void Add(
int newItem,
unsigned long int id);
87 void Add(
void *newItem,
void *
id);
90 void Add(
void *newItem);
93 void Remove(
void *listItem);
96 void *
Get(
void *listItem)
const;
99 void *
Get(
unsigned long int id)
const;
102 int GetScalar(
unsigned long int *scalar,
unsigned long int id)
const;
105 int GetScalar(
long int *scalar,
unsigned long int id)
const;
108 int GetScalar(
unsigned int *scalar,
unsigned long int id)
const;
111 int GetScalar(
int *scalar,
unsigned long int id)
const;
114 void Print(FILE *s)
const;
122 unsigned long int id_;
void * item
Item.
Definition ngcbLIST.hpp:36
virtual ~ngcbLIST()
Destructor.
Definition ngcbLIST.cpp:26
int IsEmpty() const
Check, if list is empty.
Definition ngcbLIST.cpp:35
unsigned long int Id() const
Get identifier.
Definition ngcbLIST.cpp:33
void Remove(unsigned long int id)
Remove item from list.
Definition ngcbLIST.cpp:60
int GetScalar(unsigned long int *scalar, unsigned long int id) const
Get unsigned long scalar item from list.
Definition ngcbLIST.cpp:146
void * PopFront()
Remove first item from list.
Definition ngcbLIST.cpp:77
void * Get(void *listItem) const
Get referenced item from list.
Definition ngcbLIST.cpp:131
void Add(void *newItem, unsigned long int id)
Add item to list.
Definition ngcbLIST.cpp:50
void Print(FILE *s) const
Print list to stream (debugging function)
Definition ngcbLIST.cpp:202
ngcbLIST()
List constructor.
Definition ngcbLIST.cpp:14
void Clear()
Clear list.
Definition ngcbLIST.cpp:39
size_t Size() const
Get current list size.
Definition ngcbLIST.cpp:37
ngcbLIST * First() const
Return list entry point.
Definition ngcbLIST.cpp:31
ngcbLIST * next
Next item.
Definition ngcbLIST.hpp:39