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

list.h File Reference


Detailed Description

Inkscape::Util::List - managed linked list

Authors: MenTaLguY <mental@rydia.net>

Copyright (C) 2004 MenTaLguY

Released under GNU GPL, read the file 'COPYING' for more information

Definition in file list.h.

#include <cstddef>
#include <iterator>
#include "gc-managed.h"
#include "util/reference.h"

Go to the source code of this file.

Namespaces

namespace  Inkscape
namespace  Inkscape::Util

Classes

class  Inkscape::Util::List< T >
class  Inkscape::Util::List< T & >
 Helper template. More...
class  Inkscape::Util::List< T const >
 Helper template. More...
struct  Inkscape::Util::ListCell< T >
 Generic ListCell for Inkscape::Util::List. More...
class  Inkscape::Util::MutableList< T >

Functions

template<typename T>
MutableList< T > Inkscape::Util::cons (typename Traits::Reference< T >::RValue first, MutableList< T > const &rest)
 Creates a (non-empty) linked list whose tail can be exchanged for another.
template<typename T>
List< T > Inkscape::Util::cons (typename Traits::Reference< T >::RValue first, List< T > const &rest)
 Creates a (non-empty) linked list.
template<typename T>
List< T >::reference Inkscape::Util::first (List< T > const &list)
 Returns the first value in a linked list.
template<typename T>
bool Inkscape::Util::is_empty (List< T > const &list)
 Returns true if the given list is empty.
template<typename T>
MutableList< T > & Inkscape::Util::rest (MutableList< T > const &list)
 Returns a reference to the remainder of a linked list after the first element.
template<typename T>
List< T > const & Inkscape::Util::rest (List< T > const &list)
 Returns the remainder of a linked list after the first element.
template<typename T>
MutableList< T > const & Inkscape::Util::set_rest (MutableList< T > const &list, MutableList< T > const &rest)
 Sets a new tail for an existing linked list.


Generated by  Doxygen 1.6.0   Back to index