| config.h | | config.h | |
| | | | |
| skipping to change at line 15 | | skipping to change at line 15 | |
| */ | | */ | |
| | | | |
| /* This file is automatically processed by configure. */ | | /* This file is automatically processed by configure. */ | |
| | | | |
| #ifndef CUTL_DETAILS_CONFIG_H | | #ifndef CUTL_DETAILS_CONFIG_H | |
| #define CUTL_DETAILS_CONFIG_H | | #define CUTL_DETAILS_CONFIG_H | |
| | | | |
| /* #undef LIBCUTL_DISABLE_THREADS */ | | /* #undef LIBCUTL_DISABLE_THREADS */ | |
| /* #undef LIBCUTL_STATIC_LIB */ | | /* #undef LIBCUTL_STATIC_LIB */ | |
| /* #undef LIBCUTL_EXTERNAL_BOOST */ | | /* #undef LIBCUTL_EXTERNAL_BOOST */ | |
|
| | | /* #undef LIBCUTL_EXTERNAL_EXPAT */ | |
| | | #define LIBCUTL_BYTEORDER 1234 | |
| | | | |
| #endif /* CUTL_DETAILS_CONFIG_H */ | | #endif /* CUTL_DETAILS_CONFIG_H */ | |
| | | | |
End of changes. 1 change blocks. |
| 0 lines changed or deleted | | 2 lines changed or added | |
|
| graph.hxx | | graph.hxx | |
| | | | |
| skipping to change at line 89 | | skipping to change at line 89 | |
| new_node (A0 const&, A1 const&, A2 const&, A3 const&, A4 const&, | | new_node (A0 const&, A1 const&, A2 const&, A3 const&, A4 const&, | |
| A5 const&, A6 const&, A7 const&, A8 const&); | | A5 const&, A6 const&, A7 const&, A8 const&); | |
| | | | |
| template <typename T, typename A0, typename A1, typename A2, | | template <typename T, typename A0, typename A1, typename A2, | |
| typename A3, typename A4, typename A5, typename A6, | | typename A3, typename A4, typename A5, typename A6, | |
| typename A7, typename A8, typename A9> | | typename A7, typename A8, typename A9> | |
| T& | | T& | |
| new_node (A0 const&, A1 const&, A2 const&, A3 const&, A4 const&, | | new_node (A0 const&, A1 const&, A2 const&, A3 const&, A4 const&, | |
| A5 const&, A6 const&, A7 const&, A8 const&, A9 const&); | | A5 const&, A6 const&, A7 const&, A8 const&, A9 const&); | |
| | | | |
|
| | | // Non-const versions. | |
| | | // | |
| | | template <typename T, typename A0> | |
| | | T& | |
| | | new_node (A0&); | |
| | | | |
| | | template <typename T, typename A0, typename A1> | |
| | | T& | |
| | | new_node (A0&, A1&); | |
| | | | |
| | | template <typename T, typename A0, typename A1, typename A2> | |
| | | T& | |
| | | new_node (A0&, A1&, A2&); | |
| | | | |
| public: | | public: | |
| template <typename T, typename L, typename R> | | template <typename T, typename L, typename R> | |
| T& | | T& | |
| new_edge (L&, R&); | | new_edge (L&, R&); | |
| | | | |
| template <typename T, typename L, typename R, | | template <typename T, typename L, typename R, | |
| typename A0> | | typename A0> | |
| T& | | T& | |
| new_edge (L&, R&, A0 const&); | | new_edge (L&, R&, A0 const&); | |
| | | | |
| | | | |
End of changes. 1 change blocks. |
| 0 lines changed or deleted | | 14 lines changed or added | |
|
| graph.txx | | graph.txx | |
| | | | |
| skipping to change at line 154 | | skipping to change at line 154 | |
| A4 const& a4, A5 const& a5, A6 const& a6, A7 const& a7, | | A4 const& a4, A5 const& a5, A6 const& a6, A7 const& a7, | |
| A8 const& a8, A9 const& a9) | | A8 const& a8, A9 const& a9) | |
| { | | { | |
| shared_ptr<T> node ( | | shared_ptr<T> node ( | |
| new (shared) T (a0, a1, a2, a3, a4, a5, a6, a7, a8, a9)); | | new (shared) T (a0, a1, a2, a3, a4, a5, a6, a7, a8, a9)); | |
| nodes_[node.get ()] = node; | | nodes_[node.get ()] = node; | |
| | | | |
| return *node; | | return *node; | |
| } | | } | |
| | | | |
|
| | | // Non-const versions. | |
| | | // | |
| | | template <typename N, typename E> | |
| | | template <typename T, typename A0> | |
| | | T& graph<N, E>:: | |
| | | new_node (A0& a0) | |
| | | { | |
| | | shared_ptr<T> node (new (shared) T (a0)); | |
| | | nodes_[node.get ()] = node; | |
| | | | |
| | | return *node; | |
| | | } | |
| | | | |
| | | template <typename N, typename E> | |
| | | template <typename T, typename A0, typename A1> | |
| | | T& graph<N, E>:: | |
| | | new_node (A0& a0, A1& a1) | |
| | | { | |
| | | shared_ptr<T> node (new (shared) T (a0, a1)); | |
| | | nodes_[node.get ()] = node; | |
| | | | |
| | | return *node; | |
| | | } | |
| | | | |
| | | template <typename N, typename E> | |
| | | template <typename T, typename A0, typename A1, typename A2> | |
| | | T& graph<N, E>:: | |
| | | new_node (A0& a0, A1& a1, A2& a2) | |
| | | { | |
| | | shared_ptr<T> node (new (shared) T (a0, a1, a2)); | |
| | | nodes_[node.get ()] = node; | |
| | | | |
| | | return *node; | |
| | | } | |
| | | | |
| // Edges. | | // Edges. | |
| // | | // | |
| | | | |
| template <typename N, typename E> | | template <typename N, typename E> | |
| template <typename T, typename L, typename R> | | template <typename T, typename L, typename R> | |
| T& graph<N, E>:: | | T& graph<N, E>:: | |
| new_edge (L& l, R& r) | | new_edge (L& l, R& r) | |
| { | | { | |
| shared_ptr<T> edge (new (shared) T); | | shared_ptr<T> edge (new (shared) T); | |
| edges_[edge.get ()] = edge; | | edges_[edge.get ()] = edge; | |
| | | | |
End of changes. 1 change blocks. |
| 0 lines changed or deleted | | 35 lines changed or added | |
|
| path.txx | | path.txx | |
| | | | |
| skipping to change at line 67 | | skipping to change at line 67 | |
| // Weed out paths like ".txt" and "/.txt" | | // Weed out paths like ".txt" and "/.txt" | |
| // | | // | |
| if (i > 1 && !traits::is_separator (path_[i - 2])) | | if (i > 1 && !traits::is_separator (path_[i - 2])) | |
| { | | { | |
| return basic_path (path_.c_str (), i - 1); | | return basic_path (path_.c_str (), i - 1); | |
| } | | } | |
| else | | else | |
| return *this; | | return *this; | |
| } | | } | |
| | | | |
|
| | | #ifdef _WIN32 | |
| | | template <typename C> | |
| | | typename basic_path<C>::string_type basic_path<C>:: | |
| | | posix_string () const | |
| | | { | |
| | | if (absolute ()) | |
| | | throw invalid_basic_path<C> (path_); | |
| | | | |
| | | string_type r (path_); | |
| | | | |
| | | // Translate Windows-style separators to the POSIX ones. | |
| | | // | |
| | | for (size_type i (0), n (r.size ()); i != n; ++i) | |
| | | if (r[i] == '\\') | |
| | | r[i] = '/'; | |
| | | | |
| | | return r; | |
| | | } | |
| | | #endif | |
| | | | |
| template <typename C> | | template <typename C> | |
| basic_path<C>& basic_path<C>:: | | basic_path<C>& basic_path<C>:: | |
| operator/= (basic_path<C> const& r) | | operator/= (basic_path<C> const& r) | |
| { | | { | |
| if (r.absolute ()) | | if (r.absolute ()) | |
| throw invalid_basic_path<C> (r.path_); | | throw invalid_basic_path<C> (r.path_); | |
| | | | |
| if (path_.empty () || r.path_.empty ()) | | if (path_.empty () || r.path_.empty ()) | |
| { | | { | |
| path_ += r.path_; | | path_ += r.path_; | |
| | | | |
End of changes. 1 change blocks. |
| 0 lines changed or deleted | | 20 lines changed or added | |
|