casa
5.7.0-16
|
Doubly linked list. More...
#include <List.h>
Public Types | |
enum | { ListVersion } |
List version. More... | |
Public Member Functions | |
List () | |
Creates an empty list. More... | |
List (const List< t > &other) | |
Copy Semantics. More... | |
List (const List< t > *other) | |
List< t > & | operator= (const List< t > &other) |
List< t > & | operator= (const List< t > *other) |
~List () | |
display 4 More... | |
uInt | len () const |
Returns the length of the list. More... | |
Public Member Functions inherited from casacore::NoticeSource | |
NoticeSource () | |
virtual | ~NoticeSource () |
void | notify (const Notice ¬e) |
Sends the note to all NoticeTarget s in the target list. More... | |
Protected Member Functions | |
virtual void | added (Link< t > *, Link< t > *) |
Updates the extreme pointers, head or tail under the appropriate conditions. More... | |
virtual void | removed (Link< t > *, Link< t > *, Link< t > *) |
Protected Attributes | |
Link< t > * | head |
Link< t > * | tail |
uInt | length |
Friends | |
class | ConstListIter< t > |
class | ListIter< t > |
Doubly linked list.
Public interface
This class is a container which by itself has little functionality because the iteration functionality is contained in the iterator classes, ListIter and ConstListIterr. These iterator classes allow traversal, insertion into list, and removal from the list.
This group of classes, List and iterators, was designed to allow multiple iterators to manipulate a list at the same time. However, if only one iterator is required the simple example below shows how a simple list can be created and used without complication. The more complete example below demonstrates all of the functionality of the List classes.
The output from this example looks like:
len=4 pos=4 89 10 8 2
anonymous enum |
|
inline |
casacore::List< t >::List | ( | const List< t > & | other | ) |
Copy Semantics.
casacore::List< t >::List | ( | const List< t > * | other | ) |
casacore::List< t >::~List | ( | ) |
display 4
Destructs the list.
|
protectedvirtual |
Updates the extreme pointers, head or tail under the appropriate conditions.
|
inline |
Returns the length of the list.
Definition at line 213 of file List.h.
Referenced by ConstMirPolSetup::getCorrCount(), MirPolRecps::getPolCount(), and MirSource::offSource().
List<t>& casacore::List< t >::operator= | ( | const List< t > & | other | ) |
List<t>& casacore::List< t >::operator= | ( | const List< t > * | other | ) |
|
protectedvirtual |
|
friend |
|
protected |
|
protected |
Definition at line 223 of file List.h.
Referenced by casacore::List< MirFreqSetup * >::len().
|
protected |