Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r57918 - in sandbox/numeric_bindings/boost/numeric/bindings: . detail
From: rutger_at_[hidden]
Date: 2009-11-25 03:09:19


Author: rutger
Date: 2009-11-25 03:09:18 EST (Wed, 25 Nov 2009)
New Revision: 57918
URL: http://svn.boost.org/trac/boost/changeset/57918

Log:
rename of matrix/row size accessors

Added:
   sandbox/numeric_bindings/boost/numeric/bindings/num_columns.hpp
      - copied unchanged from r57900, /sandbox/numeric_bindings/boost/numeric/bindings/matrix_num_columns.hpp
   sandbox/numeric_bindings/boost/numeric/bindings/num_rows.hpp
      - copied unchanged from r57900, /sandbox/numeric_bindings/boost/numeric/bindings/matrix_num_rows.hpp
Removed:
   sandbox/numeric_bindings/boost/numeric/bindings/matrix_num_columns.hpp
   sandbox/numeric_bindings/boost/numeric/bindings/matrix_num_rows.hpp
Text files modified:
   sandbox/numeric_bindings/boost/numeric/bindings/detail/adaptor.hpp | 8 +++++++-
   1 files changed, 7 insertions(+), 1 deletions(-)

Modified: sandbox/numeric_bindings/boost/numeric/bindings/detail/adaptor.hpp
==============================================================================
--- sandbox/numeric_bindings/boost/numeric/bindings/detail/adaptor.hpp (original)
+++ sandbox/numeric_bindings/boost/numeric/bindings/detail/adaptor.hpp 2009-11-25 03:09:18 EST (Wed, 25 Nov 2009)
@@ -43,6 +43,8 @@
         typename boost::enable_if< is_adaptable<T> >::type >:
     adaptor< typename boost::remove_const<T>::type, T > {};
 
+
+
 template< typename T, typename Key >
 struct property_has_key: mpl::has_key< typename adaptor_access<T>::property_map, Key > {};
 
@@ -51,12 +53,16 @@
     typedef typename mpl::at< typename adaptor_access<T>::property_map, Key >::type type;
 };
 
+template< typename T, typename Key, typename Value >
+struct is_same_at {
+};
+
 } // detail
 } // bindings
 } // numeric
 } // boost
 
-// Include support for POD types
+// include support for POD types
 #include <boost/numeric/bindings/detail/pod.hpp>
 
 #endif

Deleted: sandbox/numeric_bindings/boost/numeric/bindings/matrix_num_columns.hpp
==============================================================================
--- sandbox/numeric_bindings/boost/numeric/bindings/matrix_num_columns.hpp 2009-11-25 03:09:18 EST (Wed, 25 Nov 2009)
+++ (empty file)
@@ -1,36 +0,0 @@
-//
-// Copyright (c) 2009 Rutger ter Borg
-//
-// Distributed under the Boost Software License, Version 1.0.
-// (See accompanying file LICENSE_1_0.txt or copy at
-// http://www.boost.org/LICENSE_1_0.txt)
-//
-
-#ifndef BOOST_NUMERIC_BINDINGS_MATRIX_NUM_COLUMNS_HPP
-#define BOOST_NUMERIC_BINDINGS_MATRIX_NUM_COLUMNS_HPP
-
-#include <boost/numeric/bindings/size.hpp>
-
-namespace boost {
-namespace numeric {
-namespace bindings {
-namespace result_of {
-
-template< typename T >
-struct num_columns {
- typedef typename result_of::size<T,2>::type type;
-};
-
-} // namespace result_of
-
-template< typename T >
-inline typename result_of::num_columns<T>::type num_columns( T const& t ) {
- return size<2>( t );
-}
-
-} // bindings
-} // numeric
-} // boost
-
-#endif
-

Deleted: sandbox/numeric_bindings/boost/numeric/bindings/matrix_num_rows.hpp
==============================================================================
--- sandbox/numeric_bindings/boost/numeric/bindings/matrix_num_rows.hpp 2009-11-25 03:09:18 EST (Wed, 25 Nov 2009)
+++ (empty file)
@@ -1,37 +0,0 @@
-//
-// Copyright (c) 2009 Rutger ter Borg
-//
-// Distributed under the Boost Software License, Version 1.0.
-// (See accompanying file LICENSE_1_0.txt or copy at
-// http://www.boost.org/LICENSE_1_0.txt)
-//
-
-#ifndef BOOST_NUMERIC_BINDINGS_MATRIX_NUM_ROWS_HPP
-#define BOOST_NUMERIC_BINDINGS_MATRIX_NUM_ROWS_HPP
-
-#include <boost/numeric/bindings/size.hpp>
-
-namespace boost {
-namespace numeric {
-namespace bindings {
-
-namespace result_of {
-
-template< typename T >
-struct num_rows {
- typedef typename result_of::size<T,1>::type type;
-};
-
-} // namespace result_of
-
-template< typename T >
-inline typename result_of::num_rows<T>::type num_rows( T const& t ) {
- return size<1>( t );
-}
-
-} // bindings
-} // numeric
-} // boost
-
-#endif
-


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk