Public Member Functions | Private Member Functions | Friends
ILList Class Reference

Template class for intrusive linked lists. More...

Inheritance diagram for ILList:
Inheritance graph
[legend]

Public Member Functions

 ILList ()
 Null construct. More...
 
 ILList (T *a)
 Construct given initial T. More...
 
 ILList (Istream &)
 Construct from Istream. More...
 
 ILList (const ILList< LListBase, T > &)
 Construct as copy. More...
 
template<class CloneArg >
 ILList (const ILList< LListBase, T > &lst, const CloneArg &cloneArg)
 Copy constructor with additional argument for clone. More...
 
template<class INew >
 ILList (Istream &, const INew &)
 Construct from Istream using given Istream constructor class. More...
 
 ~ILList ()
 Destructor. More...
 
bool eraseHead ()
 Remove the head element specified from the list and delete it. More...
 
bool erase (T *p)
 Remove the specified element from the list and delete it. More...
 
void clear ()
 Clear the contents of the list. More...
 
void transfer (ILList< LListBase, T > &)
 Transfer the contents of the argument into this List. More...
 
void operator= (const ILList< LListBase, T > &)
 

Private Member Functions

template<class INew >
void read (Istream &, const INew &)
 Read from Istream using given Istream constructor class. More...
 

Friends

Istreamoperator>> (Istream &, ILList< LListBase, T > &)
 Read List from Istream, discarding contents of existing List. More...
 

Detailed Description

Template class for intrusive linked lists.

Source files

Definition at line 50 of file ILList.H.

Constructor & Destructor Documentation

◆ ILList() [1/6]

ILList ( )
inline

Null construct.

Definition at line 80 of file ILList.H.

◆ ILList() [2/6]

ILList ( T a)
inline

Construct given initial T.

Definition at line 84 of file ILList.H.

◆ ILList() [3/6]

ILList ( Istream )

Construct from Istream.

◆ ILList() [4/6]

ILList ( const ILList< LListBase, T > &  )

Construct as copy.

◆ ILList() [5/6]

ILList ( const ILList< LListBase, T > &  lst,
const CloneArg &  cloneArg 
)

Copy constructor with additional argument for clone.

Definition at line 50 of file ILList.C.

◆ ILList() [6/6]

ILList ( Istream is,
const INew iNew 
)

Construct from Istream using given Istream constructor class.

Definition at line 131 of file ILListIO.C.

◆ ~ILList()

~ILList ( )

Destructor.

Definition at line 72 of file ILList.C.

Member Function Documentation

◆ read()

void read ( Istream is,
const INew iNew 
)
private

Read from Istream using given Istream constructor class.

Definition at line 34 of file ILListIO.C.

◆ eraseHead()

bool eraseHead ( )

Remove the head element specified from the list and delete it.

Definition at line 81 of file ILList.C.

◆ erase()

bool erase ( T p)

Remove the specified element from the list and delete it.

Definition at line 96 of file ILList.C.

◆ clear()

void clear ( )

Clear the contents of the list.

Definition at line 112 of file ILList.C.

◆ transfer()

void transfer ( ILList< LListBase, T > &  lst)

Transfer the contents of the argument into this List.

and annul the argument list.

Definition at line 125 of file ILList.C.

◆ operator=()

void operator= ( const ILList< LListBase, T > &  lst)

Definition at line 135 of file ILList.C.

Friends And Related Function Documentation

◆ operator>>

Istream& operator>> ( Istream ,
ILList< LListBase, T > &   
)
friend

Read List from Istream, discarding contents of existing List.


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