Givaro 4.2.1
List0< T > Class Template Reference

ListO. More...

#include <givlist0.h>

Data Structures

class  Iterator
 
struct  node
 

Public Member Functions

 List0 ()
 
 List0 (const List0< T > &p)
 
 ~List0 ()
 
void destroy ()
 
List0< T > & copy (const List0< T > &p)
 
List0< T > & logcopy (const List0< T > &p)
 
List0< T > & operator= (const List0< T > &p)
 
int is_empty () const
 
size_t size () const
 
void insertlast (const T &)
 
void insertfirst (const T &)
 
int getlast (T &item) const
 
int getfirst (T &item) const
 
int getrmvlast (T &item)
 
int getrmvfirst (T &item)
 

Protected Attributes

size_t _size
 
node_head
 
node_queue
 

Friends

class Iterator
 

Detailed Description

template<class T>
class Givaro::List0< T >

ListO.

Constructor & Destructor Documentation

◆ List0() [1/2]

template<class T>
List0 ( )
inline

◆ List0() [2/2]

template<class T>
List0 ( const List0< T > & p)
inline

◆ ~List0()

template<class T>
~List0 ( )
inline

Member Function Documentation

◆ destroy()

template<class T>
void destroy ( )
inline

◆ copy()

template<class T>
List0< T > & copy ( const List0< T > & p)
inline

◆ logcopy()

template<class T>
List0< T > & logcopy ( const List0< T > & p)
inline

◆ operator=()

template<class T>
List0< T > & operator= ( const List0< T > & p)
inline

◆ is_empty()

template<class T>
int is_empty ( ) const
inline

◆ size()

template<class T>
size_t size ( ) const
inline

◆ insertlast()

template<class T>
void insertlast ( const T & val)

◆ insertfirst()

template<class T>
void insertfirst ( const T & val)

◆ getlast()

template<class T>
int getlast ( T & item) const

◆ getfirst()

template<class T>
int getfirst ( T & item) const

◆ getrmvlast()

template<class T>
int getrmvlast ( T & item)

◆ getrmvfirst()

template<class T>
int getrmvfirst ( T & item)

Friends And Related Symbol Documentation

◆ Iterator

template<class T>
friend class Iterator
friend

Field Documentation

◆ _size

template<class T>
size_t _size
protected

◆ _head

template<class T>
node* _head
protected

◆ _queue

template<class T>
node* _queue
protected

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