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

Inkscape::Util Namespace Reference


Detailed Description

Miscellaneous supporting code.

This namespace contains miscellaneous low-level code: an implementation of garbage-collected lists, tuples, generic pointer iterators and length unit handling.


Classes

struct  Chained
struct  EnumData
class  EnumDataConverter
class  FixedPoint
class  ForwardPointerIterator
class  ForwardPointerIterator< BaseType const, Strategy >
class  GListConstIterator< T * >
class  GListIterator< T * >
class  GSListConstIterator< T * >
class  GSListIterator< T * >
struct  Interruptible
class  List
class  List< T & >
 Helper template. More...
class  List< T const >
 Helper template. More...
struct  ListCell
 Generic ListCell for Inkscape::Util::List. More...
class  ListContainer
struct  LogicalOr
class  MutableList
class  ptr_shared
struct  Reverse
struct  ReverseInterruptible
struct  Tuple
struct  Tuple< A, B, C, D, E, void >
struct  Tuple< A, B, C, D, void, void >
struct  Tuple< A, B, C, void, void, void >
struct  Tuple< A, B, void, void, void, void >
struct  Tuple< A, void, void, void, void, void >
struct  Tuple< void, void, void, void, void, void >
class  Unit
class  UnitsSAXHandler
class  UnitTable

Enumerations

enum  UnitType {
  UNIT_TYPE_DIMENSIONLESS, UNIT_TYPE_LINEAR, UNIT_TYPE_LINEAR_SCALED, UNIT_TYPE_RADIAL,
  UNIT_TYPE_TIME, UNIT_TYPE_FONT_HEIGHT, UNIT_TYPE_QTY, UNIT_TYPE_NONE = -1
}

Functions

template<typename T>
MutableList< T > 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 > cons (typename Traits::Reference< T >::RValue first, List< T > const &rest)
 Creates a (non-empty) linked list.
template<typename T1, typename T2>
ptr_shared< T1 > dynamic_cast_shared (ptr_shared< T2 > const &ref)
const Glib::ustring empty_string ("")
template<typename T, typename UnaryPredicate>
Traits::ListCopy< List< T >
>::ResultList 
filter_list (UnaryPredicate p, List< T > const &list)
template<typename InputIterator, typename UnaryPredicate>
Traits::ListCopy
< InputIterator >::ResultList 
filter_list (UnaryPredicate p, InputIterator start, InputIterator end)
template<typename T>
List< T >::reference first (List< T > const &list)
 Returns the first value in a linked list.
ptr_shared< char > format (char const *format,...) G_GNUC_PRINTF(1
template<typename T>
bool is_empty (List< T > const &list)
 Returns true if the given list is empty.
template<typename T1, typename T2, typename UnaryFunction>
MutableList< T1 > map_list (UnaryFunction f, List< T2 > list)
template<typename T, typename InputIterator, typename UnaryFunction>
MutableList< T > map_list (UnaryFunction f, InputIterator start, InputIterator end)
template<typename T, typename UnaryFunction>
List< T > map_list_in_place (UnaryFunction f, List< T > start, List< T > end=List< T >())
template<typename T, unsigned int precision>
double operator* (double a, FixedPoint< T, precision > b)
template<typename T, unsigned int precision>
float operator* (float a, FixedPoint< T, precision > b)
template<typename T, unsigned int precision>
FixedPoint< T, precision > operator* (unsigned int a, FixedPoint< T, precision > b)
template<typename T, unsigned int precision>
FixedPoint< T, precision > operator* (int a, FixedPoint< T, precision > b)
template<typename T, unsigned int precision>
FixedPoint< T, precision > operator* (unsigned short a, FixedPoint< T, precision > b)
template<typename T, unsigned int precision>
FixedPoint< T, precision > operator* (short a, FixedPoint< T, precision > b)
template<typename T, unsigned int precision>
FixedPoint< T, precision > operator* (unsigned char a, FixedPoint< T, precision > b)
template<typename T, unsigned int precision>
FixedPoint< T, precision > operator* (char a, FixedPoint< T, precision > b)
template<typename T1, typename T2>
ptr_shared< T1 > reinterpret_cast_shared (ptr_shared< T2 > const &ref)
template<typename T>
ptr_shared< T > reshare (T const *obj)
template<typename T>
MutableList< T > & 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 & rest (List< T > const &list)
 Returns the remainder of a linked list after the first element.
template<typename T>
Traits::ListCopy< List< T >
>::ResultList 
reverse_list (List< T > const &list)
template<typename InputIterator>
Traits::ListCopy
< InputIterator >::ResultList 
reverse_list (InputIterator start, InputIterator end)
template<typename T>
MutableList< T > reverse_list_in_place (MutableList< T > start, MutableList< T > end=MutableList< T >())
double round_to_lower_multiple_plus (double x, double const c1, double const c0)
double round_to_nearest_multiple_plus (double x, double const c1, double const c0)
double round_to_upper_multiple_plus (double x, double const c1, double const c0)
template<typename T>
MutableList< T > const & set_rest (MutableList< T > const &list, MutableList< T > const &rest)
 Sets a new tail for an existing linked list.
template<typename T>
ptr_shared< T > share (T const *obj)
ptr_shared< char > share_static_string (char const *string)
ptr_shared< char > share_string (char const *string, std::size_t length)
ptr_shared< char > share_string (char const *string)
template<typename T>
ptr_shared< T > share_unsafe (T const *obj)
template<typename T1, typename T2>
ptr_shared< T1 > static_cast_shared (ptr_shared< T2 > const &ref)
double triangle_area (Geom::Point p1, Geom::Point p2, Geom::Point p3)
Tuple tuple ()
template<typename A>
Tuple< A > tuple (typename Traits::Reference< A >::RValue a)
template<typename A, typename B>
Tuple< A, B > tuple (typename Traits::Reference< A >::RValue a, typename Traits::Reference< B >::RValue b)
template<typename A, typename B, typename C>
Tuple< A, B, C > tuple (typename Traits::Reference< A >::RValue a, typename Traits::Reference< B >::RValue b, typename Traits::Reference< C >::RValue c)
template<typename A, typename B, typename C, typename D>
Tuple< A, B, C, D > tuple (typename Traits::Reference< A >::RValue a, typename Traits::Reference< B >::RValue b, typename Traits::Reference< C >::RValue c, typename Traits::Reference< D >::RValue d)
template<typename A, typename B, typename C, typename D, typename E>
Tuple< A, B, C, D, E > tuple (typename Traits::Reference< A >::RValue a, typename Traits::Reference< B >::RValue b, typename Traits::Reference< C >::RValue c, typename Traits::Reference< D >::RValue d, typename Traits::Reference< E >::RValue e)
template<typename A, typename B, typename C, typename D, typename E, typename F>
Tuple< A, B, C, D, E, F > tuple (typename Traits::Reference< A >::RValue a, typename Traits::Reference< B >::RValue b, typename Traits::Reference< C >::RValue c, typename Traits::Reference< D >::RValue d, typename Traits::Reference< E >::RValue e, typename Traits::Reference< F >::RValue f)
ptr_shared< char > vformat (char const *format, va_list args)


Generated by  Doxygen 1.6.0   Back to index