diff options
| author | Krzysztof Kosi??ski <tweenk.pl@gmail.com> | 2010-03-14 23:58:16 +0000 |
|---|---|---|
| committer | Krzysztof KosiĆski <tweenk.pl@gmail.com> | 2010-03-14 23:58:16 +0000 |
| commit | bf83d5a03bf856e34bd0a6e2656a5b2dcfe8aafb (patch) | |
| tree | 89db1a5074e284c958cf693302beaaafb086b702 /src/traits | |
| parent | Translations. Polish translation update. (diff) | |
| download | inkscape-bf83d5a03bf856e34bd0a6e2656a5b2dcfe8aafb.tar.gz inkscape-bf83d5a03bf856e34bd0a6e2656a5b2dcfe8aafb.zip | |
Move around files to remove some vanity directories.
Also remove the obsolete IDL file stub.
(bzr r9194)
Diffstat (limited to 'src/traits')
| -rw-r--r-- | src/traits/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | src/traits/Makefile_insert | 5 | ||||
| -rw-r--r-- | src/traits/copy.h | 48 | ||||
| -rw-r--r-- | src/traits/function.h | 122 | ||||
| -rw-r--r-- | src/traits/list-copy.h | 45 | ||||
| -rw-r--r-- | src/traits/makefile.in | 17 | ||||
| -rw-r--r-- | src/traits/reference.h | 49 |
7 files changed, 0 insertions, 288 deletions
diff --git a/src/traits/CMakeLists.txt b/src/traits/CMakeLists.txt deleted file mode 100644 index 791f9cd85..000000000 --- a/src/traits/CMakeLists.txt +++ /dev/null @@ -1,2 +0,0 @@ -SET(traits_SRC -) diff --git a/src/traits/Makefile_insert b/src/traits/Makefile_insert deleted file mode 100644 index 4290ac2dd..000000000 --- a/src/traits/Makefile_insert +++ /dev/null @@ -1,5 +0,0 @@ - -traits/all: - -traits/clean: - diff --git a/src/traits/copy.h b/src/traits/copy.h deleted file mode 100644 index 27038ff2d..000000000 --- a/src/traits/copy.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Inkscape::Traits::Copy - traits class to determine types to use when copying - * - * Authors: - * MenTaLguY <mental@rydia.net> - * - * Copyright (C) 2004 MenTaLguY - * - * Released under GNU GPL, read the file 'COPYING' for more information - */ - -#ifndef SEEN_INKSCAPE_TRAITS_COPY_H -#define SEEN_INKSCAPE_TRAITS_COPY_H - -namespace Inkscape { - -namespace Traits { - -template <typename T> -struct Copy { - typedef T Type; -}; - -template <typename T> -struct Copy<T const> { - typedef T Type; -}; - -template <typename T> -struct Copy<T &> { - typedef T &Type; -}; - -} - -} - -#endif -/* - Local Variables: - mode:c++ - c-file-style:"stroustrup" - c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +)) - indent-tabs-mode:nil - fill-column:99 - End: -*/ -// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 : diff --git a/src/traits/function.h b/src/traits/function.h deleted file mode 100644 index d0dd5d87c..000000000 --- a/src/traits/function.h +++ /dev/null @@ -1,122 +0,0 @@ -/* - * Inkscape::Traits::Function - traits class for C++ "functors" - * - * Authors: - * MenTaLguY <mental@rydia.net> - * - * Copyright (C) 2004 MenTaLguY - * - * Released under GNU GPL, read the file 'COPYING' for more information - */ - -#ifndef SEEN_INKSCAPE_TRAITS_FUNCTION_H -#define SEEN_INKSCAPE_TRAITS_FUNCTION_H - -namespace Inkscape { - -namespace Traits { - -template <typename F> struct Function; - -template <typename R> -struct Function<R (*)()> { - typedef R Result; - - typedef void Arg0; - typedef void Arg1; - typedef void Arg2; - typedef void Arg3; - typedef void Arg4; - typedef void Arg5; -}; - -template <typename R, typename A0> -struct Function<R (*)(A0)> { - typedef R Result; - - typedef A0 Arg0; - typedef void Arg1; - typedef void Arg2; - typedef void Arg3; - typedef void Arg4; - typedef void Arg5; -}; - -template <typename R, typename A0, typename A1> -struct Function<R (*)(A0, A1)> { - typedef R Result; - - typedef A0 Arg0; - typedef A1 Arg1; - typedef void Arg2; - typedef void Arg3; - typedef void Arg4; - typedef void Arg5; -}; - -template <typename R, typename A0, typename A1, typename A2> -struct Function<R (*)(A0, A1, A2)> { - typedef R Result; - - typedef A0 Arg0; - typedef A1 Arg1; - typedef A2 Arg2; - typedef void Arg3; - typedef void Arg4; - typedef void Arg5; -}; - -template <typename R, typename A0, typename A1, typename A2, - typename A3> -struct Function<R (*)(A0, A1, A2, A3)> { - typedef R Result; - - typedef A0 Arg0; - typedef A1 Arg1; - typedef A2 Arg2; - typedef A3 Arg3; - typedef void Arg4; - typedef void Arg5; -}; - -template <typename R, typename A0, typename A1, typename A2, - typename A3, typename A4> -struct Function<R (*)(A0, A1, A2, A3, A4)> { - typedef R Result; - - typedef A0 Arg0; - typedef A1 Arg1; - typedef A2 Arg2; - typedef A3 Arg3; - typedef A4 Arg4; - typedef void Arg5; -}; - -template <typename R, typename A0, typename A1, typename A2, - typename A3, typename A4, typename A5> -struct Function<R (*)(A0, A1, A2, A3, A4, A5)> { - typedef R Result; - - typedef A0 Arg0; - typedef A1 Arg1; - typedef A2 Arg2; - typedef A3 Arg3; - typedef A4 Arg4; - typedef A5 Arg5; -}; - -} - -} - -#endif -/* - Local Variables: - mode:c++ - c-file-style:"stroustrup" - c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +)) - indent-tabs-mode:nil - fill-column:99 - End: -*/ -// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 : diff --git a/src/traits/list-copy.h b/src/traits/list-copy.h deleted file mode 100644 index 9d99c4f29..000000000 --- a/src/traits/list-copy.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Inkscape::Traits::ListCopy - helper traits class for copying lists - * - * Authors: - * MenTaLguY <mental@rydia.net> - * - * Copyright (C) 2004 MenTaLguY - * - * Released under GNU GPL, read the file 'COPYING' for more information - */ - -#ifndef SEEN_INKSCAPE_TRAITS_LIST_COPY_H -#define SEEN_INKSCAPE_TRAITS_LIST_COPY_H - -#include <iterator> -#include "traits/copy.h" -#include "util/list.h" - -namespace Inkscape { - -namespace Traits { - -template <typename InputIterator> -struct ListCopy { - typedef typename Copy< - typename std::iterator_traits<InputIterator>::value_type - >::Type ResultValue; - typedef typename Util::MutableList<ResultValue> ResultList; -}; - -} - -} - -#endif -/* - Local Variables: - mode:c++ - c-file-style:"stroustrup" - c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +)) - indent-tabs-mode:nil - fill-column:99 - End: -*/ -// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 : diff --git a/src/traits/makefile.in b/src/traits/makefile.in deleted file mode 100644 index c0f07d432..000000000 --- a/src/traits/makefile.in +++ /dev/null @@ -1,17 +0,0 @@ -# Convenience stub makefile to call the real Makefile. - -@SET_MAKE@ - -OBJEXT = @OBJEXT@ - -# Explicit so that it's the default rule. -all: - cd .. && $(MAKE) traits/all - -clean %.a %.$(OBJEXT): - cd .. && $(MAKE) traits/$@ - -.PHONY: all clean - -.SUFFIXES: -.SUFFIXES: .a .$(OBJEXT) diff --git a/src/traits/reference.h b/src/traits/reference.h deleted file mode 100644 index 199ae8929..000000000 --- a/src/traits/reference.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Inkscape::Traits::Reference - traits class for dealing with reference types - * - * Authors: - * MenTaLguY <mental@rydia.net> - * - * Copyright (C) 2004 MenTaLguY - * - * Released under GNU GPL, read the file 'COPYING' for more information - */ - -#ifndef SEEN_INKSCAPE_TRAITS_REFERENCE_H -#define SEEN_INKSCAPE_TRAITS_REFERENCE_H - -namespace Inkscape { - -namespace Traits { - -template <typename T> -struct Reference { - typedef T const &RValue; - typedef T &LValue; - typedef T *Pointer; - typedef T const *ConstPointer; -}; - -template <typename T> -struct Reference<T &> { - typedef T &RValue; - typedef T &LValue; - typedef T *Pointer; - typedef T const *ConstPointer; -}; - -} - -} - -#endif -/* - Local Variables: - mode:c++ - c-file-style:"stroustrup" - c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +)) - indent-tabs-mode:nil - fill-column:99 - End: -*/ -// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 : |
