ngc 1.5.0
 
Loading...
Searching...
No Matches
ngcbLIST Class Reference

#include <ngcbLIST.hpp>

Public Member Functions

 ngcbLIST ()
 List constructor.
 
 ngcbLIST (void *newItem, unsigned long int id)
 Item constructor.
 
virtual ~ngcbLIST ()
 Destructor.
 
ngcbLISTFirst () 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.
 
ngcbLISTnext
 Next item.
 

Detailed Description

Recursive list class

Constructor & Destructor Documentation

◆ ngcbLIST() [1/2]

ngcbLIST::ngcbLIST ( )

List constructor.

◆ ngcbLIST() [2/2]

ngcbLIST::ngcbLIST ( void * newItem,
unsigned long int id )

Item constructor.

◆ ~ngcbLIST()

ngcbLIST::~ngcbLIST ( )
virtual

Destructor.

Member Function Documentation

◆ Add() [1/7]

void ngcbLIST::Add ( int newItem,
unsigned long int id )

Add signed scalar item.

◆ Add() [2/7]

void ngcbLIST::Add ( long int newItem,
unsigned long int id )

Add signed long scalar item.

◆ Add() [3/7]

void ngcbLIST::Add ( unsigned int newItem,
unsigned long int id )

Add unsigned scalar item.

◆ Add() [4/7]

void ngcbLIST::Add ( unsigned long int newItem,
unsigned long int id )

Add unsigned long scalar item.

◆ Add() [5/7]

void ngcbLIST::Add ( void * newItem)

Add item by self reference.

◆ Add() [6/7]

void ngcbLIST::Add ( void * newItem,
unsigned long int id )

Add item to list.

◆ Add() [7/7]

void ngcbLIST::Add ( void * newItem,
void * id )

Add item by reference.

◆ Clear()

void ngcbLIST::Clear ( )

Clear list.

◆ First()

ngcbLIST * ngcbLIST::First ( ) const

Return list entry point.

◆ Get() [1/2]

void * ngcbLIST::Get ( unsigned long int id) const

Get item from list.

◆ Get() [2/2]

void * ngcbLIST::Get ( void * listItem) const

Get referenced item from list.

◆ GetScalar() [1/4]

int ngcbLIST::GetScalar ( int * scalar,
unsigned long int id ) const

Get signed scalar item from list.

◆ GetScalar() [2/4]

int ngcbLIST::GetScalar ( long int * scalar,
unsigned long int id ) const

Get signed long scalar item from list.

◆ GetScalar() [3/4]

int ngcbLIST::GetScalar ( unsigned int * scalar,
unsigned long int id ) const

Get unsigned scalar item from list.

◆ GetScalar() [4/4]

int ngcbLIST::GetScalar ( unsigned long int * scalar,
unsigned long int id ) const

Get unsigned long scalar item from list.

◆ Id()

unsigned long int ngcbLIST::Id ( ) const

Get identifier.

◆ IsEmpty()

int ngcbLIST::IsEmpty ( ) const

Check, if list is empty.

◆ PopFront()

void * ngcbLIST::PopFront ( )

Remove first item from list.

◆ Print()

void ngcbLIST::Print ( FILE * s) const

Print list to stream (debugging function)

◆ Remove() [1/2]

void ngcbLIST::Remove ( unsigned long int id)

Remove item from list.

◆ Remove() [2/2]

void ngcbLIST::Remove ( void * listItem)

Remove referenced item from list.

◆ Size()

size_t ngcbLIST::Size ( ) const

Get current list size.

Member Data Documentation

◆ item

void* ngcbLIST::item

Item.

◆ next

ngcbLIST* ngcbLIST::next

Next item.


The documentation for this class was generated from the following files: