13#error This is a C++ include file and cannot be used from plain C
46 ngcbLIST(
void *newItem,
unsigned long int id);
55 unsigned long int Id()
const;
67 void Add(
void *newItem,
unsigned long int id);
70 void Remove(
unsigned long int id);
76 void Add(
unsigned long int newItem,
unsigned long int id);
79 void Add(
long int newItem,
unsigned long int id);
82 void Add(
unsigned int newItem,
unsigned long int id);
85 void Add(
int newItem,
unsigned long int id);
88 void Add(
void *newItem,
void *
id);
91 void Add(
void *newItem);
94 void Remove(
void *listItem);
97 void *
Get(
void *listItem)
const;
100 void *
Get(
unsigned long int id)
const;
103 int GetScalar(
unsigned long int *scalar,
unsigned long int id)
const;
106 int GetScalar(
long int *scalar,
unsigned long int id)
const;
109 int GetScalar(
unsigned int *scalar,
unsigned long int id)
const;
112 int GetScalar(
int *scalar,
unsigned long int id)
const;
115 void Print(FILE *s)
const;
123 unsigned long int id_;
void * item
Item.
Definition ngcbLIST.hpp:37
virtual ~ngcbLIST()
Destructor.
Definition ngcbLIST.cpp:27
int IsEmpty() const
Check, if list is empty.
Definition ngcbLIST.cpp:36
unsigned long int Id() const
Get identifier.
Definition ngcbLIST.cpp:34
void Remove(unsigned long int id)
Remove item from list.
Definition ngcbLIST.cpp:61
int GetScalar(unsigned long int *scalar, unsigned long int id) const
Get unsigned long scalar item from list.
Definition ngcbLIST.cpp:147
void * PopFront()
Remove first item from list.
Definition ngcbLIST.cpp:78
void * Get(void *listItem) const
Get referenced item from list.
Definition ngcbLIST.cpp:132
void Add(void *newItem, unsigned long int id)
Add item to list.
Definition ngcbLIST.cpp:51
void Print(FILE *s) const
Print list to stream (debugging function)
Definition ngcbLIST.cpp:203
ngcbLIST()
List constructor.
Definition ngcbLIST.cpp:15
void Clear()
Clear list.
Definition ngcbLIST.cpp:40
size_t Size() const
Get current list size.
Definition ngcbLIST.cpp:38
ngcbLIST * First() const
Return list entry point.
Definition ngcbLIST.cpp:32
ngcbLIST * next
Next item.
Definition ngcbLIST.hpp:40