LRDE Tiger Compiler  1.34a $Id: 7fef12e1f5fa43449d667a0eec1d837c40fc1202 $
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
misc::list< Ident_ > Class Template Reference

#include <list.hh>

Inheritance diagram for misc::list< Ident_ >:
Collaboration diagram for misc::list< Ident_ >:

Public Types

typedef std::list< Ident_ > super_type
 Super class type.

Public Member Functions

virtual std::ostream & dump (std::ostream &ostr) const
 Print the list onto ostr.
template<class T>
 list (const T &t1, const list< T > &l2)
Constructors and destructor.

Build an empty list.

 list ()
 list (const Ident_ &t1)
 Build a one-element list.
 list (const Ident_ &t1, const Ident_ &t2)
 Build a two-element list.
 list (const Ident_ &t1, const list &l2)
 Concat an element and a list.
template<class InputIterator >
 list (InputIterator f, InputIterator l)
 Buid a list from 2 iterators.
template<class C >
 list (const C &c)
 Build a list from another container.
virtual ~list ()
Content management.

Is data part of this list?

bool has (const Ident_ &data) const
list operator+ (const list &l) const
 Concatenate this and l.
listappend (const list &l)
 Append l into this.
listoperator+= (const list &l)
 Append l into this and return it..
listoperator-= (const Ident_ &data)
 Remove data from this. data must be part of this.

Public Attributes

elements
 STL member.

Member Typedef Documentation

template<class Ident_>
typedef std::list<Ident_> misc::list< Ident_ >::super_type

Super class type.

Constructor & Destructor Documentation

template<class T >
misc::list< T >::list ( )
template<class T>
misc::list< T >::list ( const T &  t1)

Build a one-element list.

template<class T>
misc::list< T >::list ( const T &  t1,
const T &  t2 
)

Build a two-element list.

template<class Ident_>
misc::list< Ident_ >::list ( const Ident_ &  t1,
const list< Ident_ > &  l2 
)

Concat an element and a list.

template<class T >
template<class InputIterator >
misc::list< T >::list ( InputIterator  f,
InputIterator  l 
)

Buid a list from 2 iterators.

template<class T >
template<class C >
misc::list< T >::list ( const C &  c)

Build a list from another container.

template<class T >
misc::list< T >::~list ( )
virtual
template<class Ident_>
template<class T>
misc::list< Ident_ >::list ( const T &  t1,
const list< T > &  l2 
)

Member Function Documentation

template<class Ident_>
list< T > & misc::list< T >::append ( const list< Ident_ > &  l)
inline

Append l into this.

template<class T >
std::ostream & misc::list< T >::dump ( std::ostream &  ostr) const
virtual

Print the list onto ostr.

template<class T>
bool misc::list< T >::has ( const T &  data) const

References misc::find().

Referenced by misc::operator%().

template<class Ident_>
list< T > misc::list< T >::operator+ ( const list< Ident_ > &  l) const
inline

Concatenate this and l.

template<class Ident_>
list< T > & misc::list< T >::operator+= ( const list< Ident_ > &  l)
inline

Append l into this and return it..

template<class T>
list< T > & misc::list< T >::operator-= ( const T &  data)
inline

Remove data from this. data must be part of this.

References misc::find(), misc::has(), and precondition.

Member Data Documentation

template<typename T>
T std::list< T >::elements
inherited

STL member.


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