Givaro
Data Structures | Public Member Functions | Protected Attributes | Friends
List0< T > Class Template Reference

ListO. More...

#include <givlist0.h>

+ Collaboration diagram for List0< T >:

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]

List0
inline

◆ List0() [2/2]

List0 ( const List0< T > &  p)
inline

◆ ~List0()

~List0
inline

Member Function Documentation

◆ destroy()

void destroy
inline

◆ copy()

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

◆ logcopy()

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

◆ operator=()

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

◆ is_empty()

int is_empty
inline

◆ size()

size_t size
inline

◆ insertlast()

void insertlast ( const T &  val)

◆ insertfirst()

void insertfirst ( const T &  val)

◆ getlast()

int getlast ( T &  item) const

◆ getfirst()

int getfirst ( T &  item) const

◆ getrmvlast()

int getrmvlast ( T &  item)

◆ getrmvfirst()

int getrmvfirst ( T &  item)

Friends And Related Function Documentation

◆ Iterator

friend class Iterator
friend

Field Documentation

◆ _size

size_t _size
protected

◆ _head

node* _head
protected

◆ _queue

node* _queue
protected

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