#include <ngcbLIST.hpp>
Public Member Functions | |
| ngcbLIST () | |
| List constructor. | |
| ngcbLIST (void *newItem, unsigned long int id) | |
| Item constructor. | |
| virtual | ~ngcbLIST () |
| Destructor. | |
| ngcbLIST * | First () const |
| Return list entry point. | |
| unsigned long int | Id () const |
| Get identifier. | |
| int | IsEmpty () const |
| Check, if list is empty. | |
| size_t | Size () const |
| Get current list size. | |
| void | Clear () |
| Clear list. | |
| void | Add (void *newItem, unsigned long int id) |
| Add item to list. | |
| void | Remove (unsigned long int id) |
| Remove item from list. | |
| void * | PopFront () |
| Remove first item from list. | |
| void | Add (unsigned long int newItem, unsigned long int id) |
| Add unsigned long scalar item. | |
| void | Add (long int newItem, unsigned long int id) |
| Add signed long scalar item. | |
| void | Add (unsigned int newItem, unsigned long int id) |
| Add unsigned scalar item. | |
| void | Add (int newItem, unsigned long int id) |
| Add signed scalar item. | |
| void | Add (void *newItem, void *id) |
| Add item by reference. | |
| void | Add (void *newItem) |
| Add item by self reference. | |
| void | Remove (void *listItem) |
| Remove referenced item from list. | |
| void * | Get (void *listItem) const |
| Get referenced item from list. | |
| void * | Get (unsigned long int id) const |
| Get item from list. | |
| int | GetScalar (unsigned long int *scalar, unsigned long int id) const |
| Get unsigned long scalar item from list. | |
| int | GetScalar (long int *scalar, unsigned long int id) const |
| Get signed long scalar item from list. | |
| int | GetScalar (unsigned int *scalar, unsigned long int id) const |
| Get unsigned scalar item from list. | |
| int | GetScalar (int *scalar, unsigned long int id) const |
| Get signed scalar item from list. | |
| void | Print (FILE *s) const |
| Print list to stream (debugging function) | |
Public Attributes | |
| void * | item |
| Item. | |
| ngcbLIST * | next |
| Next item. | |
Recursive list class
| ngcbLIST::ngcbLIST | ( | ) |
List constructor.
| ngcbLIST::ngcbLIST | ( | void * | newItem, |
| unsigned long int | id ) |
Item constructor.
|
virtual |
Destructor.
| void ngcbLIST::Add | ( | int | newItem, |
| unsigned long int | id ) |
Add signed scalar item.
| void ngcbLIST::Add | ( | long int | newItem, |
| unsigned long int | id ) |
Add signed long scalar item.
| void ngcbLIST::Add | ( | unsigned int | newItem, |
| unsigned long int | id ) |
Add unsigned scalar item.
| void ngcbLIST::Add | ( | unsigned long int | newItem, |
| unsigned long int | id ) |
Add unsigned long scalar item.
| void ngcbLIST::Add | ( | void * | newItem | ) |
Add item by self reference.
| void ngcbLIST::Add | ( | void * | newItem, |
| unsigned long int | id ) |
Add item to list.
| void ngcbLIST::Add | ( | void * | newItem, |
| void * | id ) |
Add item by reference.
| void ngcbLIST::Clear | ( | ) |
Clear list.
| ngcbLIST * ngcbLIST::First | ( | ) | const |
Return list entry point.
| void * ngcbLIST::Get | ( | unsigned long int | id | ) | const |
Get item from list.
| void * ngcbLIST::Get | ( | void * | listItem | ) | const |
Get referenced item from list.
| int ngcbLIST::GetScalar | ( | int * | scalar, |
| unsigned long int | id ) const |
Get signed scalar item from list.
| int ngcbLIST::GetScalar | ( | long int * | scalar, |
| unsigned long int | id ) const |
Get signed long scalar item from list.
| int ngcbLIST::GetScalar | ( | unsigned int * | scalar, |
| unsigned long int | id ) const |
Get unsigned scalar item from list.
| int ngcbLIST::GetScalar | ( | unsigned long int * | scalar, |
| unsigned long int | id ) const |
Get unsigned long scalar item from list.
| unsigned long int ngcbLIST::Id | ( | ) | const |
Get identifier.
| int ngcbLIST::IsEmpty | ( | ) | const |
Check, if list is empty.
| void * ngcbLIST::PopFront | ( | ) |
Remove first item from list.
| void ngcbLIST::Print | ( | FILE * | s | ) | const |
Print list to stream (debugging function)
| void ngcbLIST::Remove | ( | unsigned long int | id | ) |
Remove item from list.
| void ngcbLIST::Remove | ( | void * | listItem | ) |
Remove referenced item from list.
| size_t ngcbLIST::Size | ( | ) | const |
Get current list size.
| void* ngcbLIST::item |
Item.
| ngcbLIST* ngcbLIST::next |
Next item.