LRDE Tiger Compiler
1.34a $Id: 7fef12e1f5fa43449d667a0eec1d837c40fc1202 $
|
#include <list.hh>
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. | |
list & | append (const list &l) |
Append l into this. | |
list & | operator+= (const list &l) |
Append l into this and return it.. | |
list & | operator-= (const Ident_ &data) |
Remove data from this. data must be part of this. |
Public Attributes | |
T | elements |
STL member. |
typedef std::list<Ident_> misc::list< Ident_ >::super_type |
Super class type.
misc::list< T >::list | ( | ) |
misc::list< T >::list | ( | const T & | t1 | ) |
Build a one-element list.
misc::list< T >::list | ( | const T & | t1, |
const T & | t2 | ||
) |
Build a two-element list.
misc::list< Ident_ >::list | ( | const Ident_ & | t1, |
const list< Ident_ > & | l2 | ||
) |
Concat an element and a list.
misc::list< T >::list | ( | InputIterator | f, |
InputIterator | l | ||
) |
Buid a list from 2 iterators.
Build a list from another container.
|
virtual |
misc::list< Ident_ >::list | ( | const T & | t1, |
const list< T > & | l2 | ||
) |
|
inline |
Append l into this.
|
virtual |
Print the list onto ostr.
bool misc::list< T >::has | ( | const T & | data | ) | const |
References misc::find().
Referenced by misc::operator%().
|
inline |
Concatenate this and l.
|
inline |
Append l into this and return it..
|
inline |
Remove data from this. data must be part of this.
References misc::find(), misc::has(), and precondition.
|
inherited |
STL member.