Changeset 992

Show
Ignore:
Timestamp:
10/30/08 16:57:39 (2 months ago)
Author:
dutka
Message:

Replaced BOOST shared pointer by internal one. No BOOST dependency anymore.
Make distcheck ok.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/doc/configure.ac

    r966 r992  
    118118 
    119119cat <<EOT > summary 
     120(doc) 
    120121EOT 
    121122cat summary 
  • trunk/gui/config/common.am

    r966 r992  
    3434AM_CXXFLAGS = $(OT_CXXFLAGS) 
    3535 
    36 if WITH_BOOST 
    37 AM_CPPFLAGS += $(BOOST_CPPFLAGS) 
    38 endif 
  • trunk/gui/configure.ac

    r966 r992  
    100100OT_CHECK_DOT 
    101101 
    102 # Check for BOOST 
    103 OT_CHECK_BOOST 
    104  
    105102# Get object default name 
    106103OT_GET_OBJECT_DEFAULT_NAME 
     
    137134test "x$WITH_DOXYGEN" = x1   && sum_doxygen=OK   || sum_doxygen="no * (optional)" 
    138135test "x$WITH_DOT" = x1       && sum_dot=OK       || sum_dot="no * (optional)" 
    139 test "x$WITH_BOOST" = x1     && sum_boost=OK     || sum_dot="no * (MANDATORY)" 
    140136test "x$have_qt" = xyes      && sum_qt=OK        || sum_qt="no * (MANDATORY)" 
    141137 
    142 cat <<EOT > summary 
     138cat <<EOT 
    143139 
    144 (gui) 
    145140Summary: 
    146141======== 
     142EOT 
     143 
     144cat <<EOT > summary 
     145(gui) 
    147146 
    148147 Debug level is ${DEBUG_LEVEL} 
     
    152151  Doxygen              ${sum_doxygen} 
    153152  dot                  ${sum_dot} 
    154   BOOST                ${sum_boost} 
    155153  Qt                   ${sum_qt} 
    156154EOT 
  • trunk/lib/config/common.am

    r966 r992  
    3838AM_CXXFLAGS = $(OT_CXXFLAGS) 
    3939 
    40 if WITH_BOOST 
    41 AM_CPPFLAGS += $(BOOST_CPPFLAGS) 
    42 endif 
     40#endif 
  • trunk/lib/configure.ac

    r990 r992  
    117117#OT_CHECK_R_BITMAP 
    118118 
    119 # Detect XercesC configuration 
    120 #OT_CHECK_XERCESC 
    121  
    122119# Detect libxml2 configuration 
    123120OT_CHECK_LIBXML2 
     
    134131# Check for Threads 
    135132OT_CHECK_THREADS 
    136  
    137 # Check for BOOST 
    138 OT_CHECK_BOOST 
    139133 
    140134# Check for system tools 
     
    151145test x$acx_blas_ok != xyes && AC_MSG_ERROR("BLAS library is mandatory") 
    152146test x$acx_lapack_ok != xyes && AC_MSG_ERROR("LAPACK library is mandatory") 
    153  
    154 # Check for Qt 
    155 #OT_CHECK_QT 
    156147 
    157148# This definition is put here not to disturb the normal process 
     
    325316 
    326317test "x$WITH_R" = x1         && sum_r=OK         || sum_r="no * (MANDATORY)" 
    327 #test "x$WITH_XERCESC" = x1   && sum_xercesc=OK   || sum_xercesc="no * (MANDATORY)" 
    328318test "x$WITH_LIBXML2" = x1   && sum_libxml2=OK   || sum_xercesc="no * (MANDATORY)" 
    329319test "x$WITH_REGEX" = x1     && sum_regex=OK     || sum_regex="no * (MANDATORY)" 
     
    332322test "x$WITH_DOXYGEN" = x1   && sum_doxygen=OK   || sum_doxygen="no * (optional)" 
    333323test "x$WITH_DOT" = x1       && sum_dot=OK       || sum_dot="no * (optional)" 
    334 test "x$WITH_BOOST" = x1     && sum_boost=OK     || sum_boost="no * (MANDATORY)" 
    335324test "x$WITH_THREADS" = x1   && sum_threads=OK   || sum_threads="no (useless)" 
    336 #test "x$have_qt" = xyes      && sum_qt=OK        || sum_qt="no * (MANDATORY)" 
    337  
    338 cat <<EOT > summary 
    339  
    340 (lib) 
     325 
     326cat <<EOT 
     327 
    341328Summary: 
    342329======== 
    343  
     330EOT 
     331 
     332cat <<EOT > summary 
     333 
     334(lib) 
    344335 Debug level is ${DEBUG_LEVEL} 
    345336 
     
    353344  bc                   ${sum_bc} 
    354345  rm                   ${sum_rm} 
    355   BOOST                ${sum_boost} 
    356346  Multithreading       ${sum_threads} 
    357347EOT 
  • trunk/lib/include/Makefile.am

    r990 r992  
    4343        cmp -s OTconfigure_args.hxx OTconfigureArgs.hxx || cp OTconfigure_args.hxx OTconfigureArgs.hxx 
    4444        echo > $< 
     45 
     46DISTCLEANFILES = OTconfigureArgs.hxx OTconfigure_args-stamp 
  • trunk/lib/src/Base/Common/Makefile.am

    r990 r992  
    4141        TypedInterfaceObject.hxx \ 
    4242        TypedCollectionInterfaceObject.hxx \ 
    43         BoostPointerImplementation.hxx \ 
     43        AtomicFunctions.hxx \ 
     44        SharedPointer.hxx \ 
    4445        Lockable.hxx \ 
    4546        Threadable.hxx \ 
  • trunk/lib/src/Base/Common/Pointer.hxx

    r434 r992  
    2828 
    2929#include "OT.hxx" 
    30 #include "BoostPointerImplementation.hxx" 
    31 /* #include "CopyOnWriteBoostPointerImplementation.hxx" */ 
     30#include "SharedPointer.hxx" 
    3231 
    3332namespace OpenTURNS 
     
    5352#else 
    5453      template <class T,  
    55                 template <class> class IMPL = BoostPointerImplementation > 
    56 #endif 
     54                template <class> class IMPL = SharedPointer > 
     55#endif 
     56 
    5757      class Pointer 
    5858      { 
     59 
     60 
     61#ifdef SWIG 
     62        template <class Y> friend class Pointer; 
     63#else 
     64        template <class Y, template <class> class I> friend class Pointer; 
     65#endif 
     66 
    5967      public: 
    6068        /** 
     
    6371         */ 
    6472#ifdef SWIG 
    65         typedef BoostPointerImplementation<T> pointer_type; 
     73        typedef SharedPointer<T> pointer_type; 
    6674#else 
    6775        typedef IMPL<T> pointer_type; 
     
    9098         * by the shared pointer. It MUST NOT be manually deleted 
    9199         */ 
    92         // explicit Pointer(T * ptr) : ptr_(ptr) 
    93100        Pointer(T * ptr) : ptr_(ptr) 
    94101        { 
     
    110117         */ 
    111118        template <class Derived> 
    112         Pointer(const Pointer<Derived> & ref) : ptr_(ref.getImplementation()) 
    113         { 
    114         } 
     119        Pointer(const Pointer<Derived> & ref) : ptr_(ref.ptr_) 
     120        { 
     121        } 
     122 
    115123#ifndef SWIG 
    116124        /** 
     
    122130        Pointer & operator = (const Pointer<Derived> & ref) 
    123131        { 
    124           ptr_ = ref.getImplementation()
     132          ptr_ = ref.ptr_
    125133          return *this; 
    126134        } 
     
    134142        Pointer & assign(const Pointer<Base> & ref) 
    135143        { 
    136           ptr_.assign(ref.getImplementation()); 
     144          ptr_.assign(ref.ptr_); 
    137145          return *this; 
    138146        } 
  • trunk/python/config/common.am

    r966 r992  
    3838AM_CXXFLAGS = $(OT_CXXFLAGS) 
    3939 
    40 if WITH_BOOST 
    41 AM_CPPFLAGS += $(BOOST_CPPFLAGS) 
    42 endif 
  • trunk/python/configure.ac

    r990 r992  
    105105OT_CHECK_DOT 
    106106 
    107 # Check for Qt 
    108 #OT_CHECK_QT 
    109  
    110107# Check for bc tool 
    111108OT_CHECK_BC 
    112  
    113 # Check for BOOST 
    114 OT_CHECK_BOOST 
    115109 
    116110# This definition is put here not to disturb the normal process 
     
    149143test "x$WITH_DOXYGEN" = x1            && sum_doxygen=OK       || sum_doxygen="no * (optional)" 
    150144test "x$WITH_DOT" = x1                && sum_dot=OK           || sum_dot="no * (optional)" 
    151 test "x$WITH_BOOST" = x1              && sum_boost=OK         || sum_boost="no * (MANDATORY)" 
    152 #test "x$have_qt" = xyes               && sum_qt=OK            || sum_qt="no * (MANDATORY)" 
    153145 
    154146 
    155 cat <<EOT > summary 
     147cat <<EOT 
    156148 
    157 (python) 
    158149Summary: 
    159150======== 
     151 
     152EOT 
     153 
     154cat <<EOT > summary 
     155(python) 
    160156 
    161157 Debug level is ${DEBUG_LEVEL} 
     
    170166  Doxygen              ${sum_doxygen} 
    171167  dot                  ${sum_dot} 
    172   BOOST                ${sum_boost} 
    173168EOT 
    174169cat summary 
  • trunk/python/src/Makefile.am

    r990 r992  
    8181        LessOrEqual.i \ 
    8282        Threadable.i \ 
    83         BoostPointerImplementation.i \ 
    8483        PlatformInfo.i \ 
     84        SharedPointer.i \ 
    8585        Pointer.i \ 
    8686        InterfaceObject.i \ 
  • trunk/python/src/ot.i

    r974 r992  
    5151%include Object.i 
    5252%include PersistentObject.i 
     53%include SharedPointer.i 
    5354%include Pointer.i 
    5455%include InterfaceObject.i 
     
    6869%include LessOrEqual.i 
    6970%include Threadable.i 
    70 %include BoostPointerImplementation.i 
    7171%include PlatformInfo.i 
    7272 
  • trunk/validation/configure.ac

    r966 r992  
    9393 
    9494cat <<EOT > summary 
     95(validation) 
    9596EOT 
    9697cat summary