|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r59116 - in sandbox/numeric_bindings/libs/numeric/bindings/tools: . templates
From: rutger_at_[hidden]
Date: 2010-01-18 04:06:16
Author: rutger
Date: 2010-01-18 04:06:12 EST (Mon, 18 Jan 2010)
New Revision: 59116
URL: http://svn.boost.org/trac/boost/changeset/59116
Log:
more updates of value to value_type (in docs, etc.)
Text files modified:
sandbox/numeric_bindings/libs/numeric/bindings/tools/bindings.py | 2 +-
sandbox/numeric_bindings/libs/numeric/bindings/tools/blas_generator.py | 4 ++--
sandbox/numeric_bindings/libs/numeric/bindings/tools/lapack_generator.py | 4 ++--
sandbox/numeric_bindings/libs/numeric/bindings/tools/netlib.py | 10 +++-------
sandbox/numeric_bindings/libs/numeric/bindings/tools/templates/blas.qbk | 4 ++--
sandbox/numeric_bindings/libs/numeric/bindings/tools/templates/lapack.qbk | 4 ++--
6 files changed, 12 insertions(+), 16 deletions(-)
Modified: sandbox/numeric_bindings/libs/numeric/bindings/tools/bindings.py
==============================================================================
--- sandbox/numeric_bindings/libs/numeric/bindings/tools/bindings.py (original)
+++ sandbox/numeric_bindings/libs/numeric/bindings/tools/bindings.py 2010-01-18 04:06:12 EST (Mon, 18 Jan 2010)
@@ -328,7 +328,7 @@
# Generate the call to the value_tye meta-func
#
def value_type( arg ):
- return 'typename bindings::value_type< ' + arg + ' >::type'
+ return 'typename $NAMESPACEvalue_type< ' + arg + ' >::type'
#
# Search replace stuff for handling exceptional cases through the
Modified: sandbox/numeric_bindings/libs/numeric/bindings/tools/blas_generator.py
==============================================================================
--- sandbox/numeric_bindings/libs/numeric/bindings/tools/blas_generator.py (original)
+++ sandbox/numeric_bindings/libs/numeric/bindings/tools/blas_generator.py 2010-01-18 04:06:12 EST (Mon, 18 Jan 2010)
@@ -275,8 +275,8 @@
arg_right = info_map[ subroutine ][ 'argument_map' ][ arg_B ][ 'code' ][ 'level_1_static_assert' ]
if arg_left != None and arg_right != None:
assert_line = 'BOOST_STATIC_ASSERT( (is_same< ' + \
- 'typename remove_const< typename bindings::value_type< ' + arg_left + ' >::type >::type, ' + \
- 'typename remove_const< typename bindings::value_type< ' + arg_right + ' >::type >::type' \
+ 'typename remove_const< typename $NAMESPACEvalue_type< ' + arg_left + ' >::type >::type, ' + \
+ 'typename remove_const< typename $NAMESPACEvalue_type< ' + arg_right + ' >::type >::type' \
' >::value) );'
if not has_comment:
#level1_static_assert_list += [ '// Here, we assert... ' ]
Modified: sandbox/numeric_bindings/libs/numeric/bindings/tools/lapack_generator.py
==============================================================================
--- sandbox/numeric_bindings/libs/numeric/bindings/tools/lapack_generator.py (original)
+++ sandbox/numeric_bindings/libs/numeric/bindings/tools/lapack_generator.py 2010-01-18 04:06:12 EST (Mon, 18 Jan 2010)
@@ -256,8 +256,8 @@
for arg_B in static_asserts[1:]:
print "Adding static assert for argA", arg_A, " argb", arg_B
assert_line = 'BOOST_STATIC_ASSERT( (boost::is_same< ' + \
- 'typename remove_const< typename bindings::value_type< ' + info_map[ subroutine ][ 'argument_map' ][ arg_A ][ 'code' ][ 'level_1_static_assert' ] + ' >::type >::type, ' + \
- 'typename remove_const< typename bindings::value_type< ' + info_map[ subroutine ][ 'argument_map' ][ arg_B ][ 'code' ][ 'level_1_static_assert' ] + ' >::type >::type' \
+ 'typename remove_const< typename $NAMESPACEvalue_type< ' + info_map[ subroutine ][ 'argument_map' ][ arg_A ][ 'code' ][ 'level_1_static_assert' ] + ' >::type >::type, ' + \
+ 'typename remove_const< typename $NAMESPACEvalue_type< ' + info_map[ subroutine ][ 'argument_map' ][ arg_B ][ 'code' ][ 'level_1_static_assert' ] + ' >::type >::type' \
' >::value) );'
level1_static_assert_list += [ assert_line ]
Modified: sandbox/numeric_bindings/libs/numeric/bindings/tools/netlib.py
==============================================================================
--- sandbox/numeric_bindings/libs/numeric/bindings/tools/netlib.py (original)
+++ sandbox/numeric_bindings/libs/numeric/bindings/tools/netlib.py 2010-01-18 04:06:12 EST (Mon, 18 Jan 2010)
@@ -145,17 +145,13 @@
if properties[ 'type' ] == 'vector' or properties[ 'type' ] == 'matrix':
if properties[ 'value_type' ][ 0:7] == 'COMPLEX' or \
properties[ 'value_type' ] == 'DOUBLE COMPLEX':
- #result = 'detail::complex_ptr(' + name.lower() + ')'
- #result = 'bindings::detail::void_ptr(' + name.lower() + ')'
result = '' + name.lower() + ''
else:
result = name.lower()
elif properties[ 'type' ] == 'scalar':
if properties[ 'value_type' ][ 0:7] == 'COMPLEX' or \
properties[ 'value_type' ] == 'DOUBLE COMPLEX':
- #result = 'detail::complex_ptr(&' + name.lower() + ')'
result = '&' + name.lower() + ''
- #result = 'bindings::detail::void_ptr(&' + name.lower() + ')'
else:
result = '&' + name.lower()
@@ -549,7 +545,7 @@
min_workspace_call = min_workspace_call_type( name, properties, arg_map )
if min_workspace_call == None:
min_workspace_call = '$CALL_MIN_SIZE'
- result = 'bindings::detail::array< ' + workspace_type( name, properties ) + ' >' + \
+ result = '$NAMESPACEdetail::array< ' + workspace_type( name, properties ) + ' >' + \
' tmp_' + name.lower() + '( min_size_' + name.lower() + '( ' + min_workspace_call + ' ) );'
return result
@@ -559,10 +555,10 @@
if 'workspace' in properties[ 'io' ]:
if properties.has_key( 'workspace_query_by' ):
if properties['value_type'] == 'INTEGER':
- result = 'bindings::detail::array< ' + workspace_type( name, properties ) + ' >' + \
+ result = '$NAMESPACEdetail::array< ' + workspace_type( name, properties ) + ' >' + \
' tmp_' + name.lower() + '( opt_size_' + name.lower() + ' );'
else:
- result = 'bindings::detail::array< ' + workspace_type( name, properties ) + ' >' + \
+ result = '$NAMESPACEdetail::array< ' + workspace_type( name, properties ) + ' >' + \
' tmp_' + name.lower() + '( traits::detail::to_int( opt_size_' + name.lower() + ' ) );'
return result
Modified: sandbox/numeric_bindings/libs/numeric/bindings/tools/templates/blas.qbk
==============================================================================
--- sandbox/numeric_bindings/libs/numeric/bindings/tools/templates/blas.qbk (original)
+++ sandbox/numeric_bindings/libs/numeric/bindings/tools/templates/blas.qbk 2010-01-18 04:06:12 EST (Mon, 18 Jan 2010)
@@ -14,8 +14,8 @@
The selection of the BLAS routine is done during compile-time,
and is determined by the type of values contained in type `$FIRST_TYPENAME`.
-The type of values is obtained through the `value` meta-function
- `typename value<$FIRST_TYPENAME>::type`.
+The type of values is obtained through the `value_type` meta-function
+ `typename value_type<$FIRST_TYPENAME>::type`.
Table X below illustrates to which specific routine this dispatching will take place.
[table Dispatching of $groupname.
Modified: sandbox/numeric_bindings/libs/numeric/bindings/tools/templates/lapack.qbk
==============================================================================
--- sandbox/numeric_bindings/libs/numeric/bindings/tools/templates/lapack.qbk (original)
+++ sandbox/numeric_bindings/libs/numeric/bindings/tools/templates/lapack.qbk 2010-01-18 04:06:12 EST (Mon, 18 Jan 2010)
@@ -14,8 +14,8 @@
The selection of the LAPACK routine is done during compile-time,
and is determined by the type of values contained in type `$FIRST_TYPENAME`.
-The type of values is obtained through the `value` meta-function
- `typename value<$FIRST_TYPENAME>::type`.
+The type of values is obtained through the `value_type` meta-function
+ `typename value_type<$FIRST_TYPENAME>::type`.
The dispatching table below illustrates to which specific routine
the code path will be generated.
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