Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r53070 - sandbox/numeric_bindings/boost/numeric/bindings/mumps
From: karl.meerbergen_at_[hidden]
Date: 2009-05-17 04:08:11


Author: karlmeerbergen
Date: 2009-05-17 04:08:08 EDT (Sun, 17 May 2009)
New Revision: 53070
URL: http://svn.boost.org/trac/boost/changeset/53070

Log:
excluded assignment and copy constructor

Text files modified:
   sandbox/numeric_bindings/boost/numeric/bindings/mumps/mumps_driver_4_8_0.hpp | 53 ++++++++++++++++++++++-----------------
   1 files changed, 30 insertions(+), 23 deletions(-)

Modified: sandbox/numeric_bindings/boost/numeric/bindings/mumps/mumps_driver_4_8_0.hpp
==============================================================================
--- sandbox/numeric_bindings/boost/numeric/bindings/mumps/mumps_driver_4_8_0.hpp (original)
+++ sandbox/numeric_bindings/boost/numeric/bindings/mumps/mumps_driver_4_8_0.hpp 2009-05-17 04:08:08 EDT (Sun, 17 May 2009)
@@ -176,31 +176,38 @@
   // Generic MUMPS data for any value_type
   //
   template <typename M>
- struct mumps
- : detail::mumps_type< typename boost::numeric::bindings::traits::sparse_matrix_traits<M>::value_type >::type
+ class mumps
+ : public detail::mumps_type< typename boost::numeric::bindings::traits::sparse_matrix_traits<M>::value_type >::type
   {
- typedef typename boost::numeric::bindings::traits::sparse_matrix_traits<M>::value_type value_type ;
- typedef typename detail::mumps_type< typename boost::numeric::bindings::traits::sparse_matrix_traits<M>::value_type >::type c_struct_type ;
+ public:
+ typedef typename boost::numeric::bindings::traits::sparse_matrix_traits<M>::value_type value_type ;
+ typedef typename detail::mumps_type< typename boost::numeric::bindings::traits::sparse_matrix_traits<M>::value_type >::type c_struct_type ;
+
+ //
+ // Initialize MUMPS solver
+ // Pass a communicator (comm=-987654 means choose default)
+ // Pass 'par': default = 1: host is involved in factorization
+ //
+ mumps( int comm_fortran=-987654, int par=1 )
+ {
+ this->job = -1 ;
+ this->par = par ;
+ this->comm_fortran = comm_fortran ;
+ this->sym = detail::mumps_sym< typename boost::numeric::bindings::traits::sparse_matrix_traits<M>::matrix_structure >::value ;
+ detail::mumps_call<value_type>() ( *this ) ;
+ }
+
+ // Destroy the solver
+ ~mumps() {
+ this->job = -2 ;
+ detail::mumps_call<value_type>() ( *this ) ;
+ }
+
+ private:
+ // Disable assignment and Copy Constructor
+ mumps& operator=( mumps const& that ) { return *this ; }
 
- //
- // Initialize MUMPS solver
- // Pass a communicator (comm=-987654 means choose default)
- // Pass 'par': default = 1: host is involved in factorization
- //
- mumps( int comm_fortran=-987654, int par=1 )
- {
- this->job = -1 ;
- this->par = par ;
- this->comm_fortran = comm_fortran ;
- this->sym = detail::mumps_sym< typename boost::numeric::bindings::traits::sparse_matrix_traits<M>::matrix_structure >::value ;
- detail::mumps_call<value_type>() ( *this ) ;
- }
-
- // Destroy the solver
- ~mumps() {
- this->job = -2 ;
- detail::mumps_call<value_type>() ( *this ) ;
- }
+ mumps( mumps const& that ) {}
   } ;
 
 


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