]> Dogcows Code - chaz/yoink/blobdiff - src/cml/quaternion/quaternion_traits.h
extreme refactoring
[chaz/yoink] / src / cml / quaternion / quaternion_traits.h
diff --git a/src/cml/quaternion/quaternion_traits.h b/src/cml/quaternion/quaternion_traits.h
deleted file mode 100644 (file)
index fbf23cf..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-/* -*- C++ -*- ------------------------------------------------------------
-Copyright (c) 2007 Jesse Anders and Demian Nave http://cmldev.net/
-
-The Configurable Math Library (CML) is distributed under the terms of the
-Boost Software License, v1.0 (see cml/LICENSE for details).
-
- *-----------------------------------------------------------------------*/
-/** @file
- *  @brief
- */
-
-#ifndef quaternion_traits_h
-#define quaternion_traits_h
-
-#include <cml/et/traits.h>
-
-namespace cml {
-namespace et {
-
-/** Expression traits for a quaternion<> type. */
-template<typename E, class AT, class OT, class CT>
-struct ExprTraits< cml::quaternion<E,AT,OT,CT> >
-{
-    typedef typename cml::quaternion<E,AT,OT,CT>::expr_type expr_type;
-    typedef typename expr_type::value_type value_type;
-    typedef typename expr_type::expr_reference reference;
-    typedef typename expr_type::expr_const_reference const_reference;
-    typedef typename expr_type::result_tag result_tag;
-    typedef typename expr_type::size_tag size_tag;
-    typedef typename expr_type::assignable_tag assignable_tag;
-    typedef expr_type result_type;
-    typedef expr_leaf_tag node_tag;
-
-    value_type get(const expr_type& v, size_t i) const { return v[i]; }
-    size_t size(const expr_type& v) const { return 4; }
-};
-
-} // namespace et
-} // namespace cml
-
-#endif
-
-// -------------------------------------------------------------------------
-// vim:ft=cpp
This page took 0.020589 seconds and 4 git commands to generate.