Logo Search packages:      
Sourcecode: inkscape version File versions  Download package

Inkscape::Util::MutableList< T > Class Template Reference

#include <list.h>

Inheritance diagram for Inkscape::Util::MutableList< T >:

Inkscape::Util::List< T >

List of all members.

Detailed Description

template<typename T>
class Inkscape::Util::MutableList< T >

Generic MutableList.

Like a linked list, but one whose tail can be exchanged for another later by using set_rest() or assignment through rest() as an lvalue. It's otherwise identical to the "non-mutable" form.

As with List, you can create an empty list like so:


Definition at line 208 of file list.h.

Public Types

typedef Traits::Reference
< value_type >::RValue 
typedef Traits::Reference
< value_type >::Pointer 
typedef Traits::Reference
< value_type >::LValue 
typedef T value_type

Public Member Functions

 MutableList (typename List< T >::const_reference value, MutableList const &next=MutableList())
reference operator* () const
MutableList operator++ (int)
MutableListoperator++ ()
pointer operator-> () const


reference first (List const &)
 Returns the first value in a linked list.
bool is_empty (List const &)
 Returns true if the given list is empty.
List const & rest (List const &)
 Returns the remainder of a linked list after the first element.
MutableListrest (MutableList const &)
 Returns a reference to the remainder of a linked list after the first element.
MutableList const & set_rest (MutableList const &, MutableList const &)
 Sets a new tail for an existing linked list.

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

Generated by  Doxygen 1.6.0   Back to index