pointer.h

00001 /***************************************************************************
00002  *   clipsmm C++ wrapper for the CLIPS c library                           *
00003  *   Copyright (C) 2006 by Rick L. Vinyard, Jr.                            *
00004  *   rvinyard@cs.nmsu.edu                                                  *
00005  *                                                                         *
00006  *   This program is free software; you can redistribute it and/or modify  *
00007  *   it under the terms of version 2 of the GNU General Public License as  *
00008  *   published by the Free Software Foundation.                            *
00009  *                                                                         *
00010  *   This program is distributed in the hope that it will be useful,       *
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00013  *   GNU General Public License for more details.                          *
00014  *                                                                         *
00015  *   You should have received a copy of the GNU Lesser General Public      *
00016  *   License along with this library; if not, write to the                 *
00017  *   Free Software Foundation, Inc.,                                       *
00018  *   51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA              *
00019  ***************************************************************************/
00020 #include <clipsmm/clipsmm-config.h>
00021 
00022 #ifndef CLIPSPOINTER
00023 #define CLIPSPOINTER
00024   // Headers for smart pointers
00025   #ifdef CLIPSMM_USE_BOOST_SMART_POINTER
00026     #include <boost/shared_ptr.hpp>
00027     #define CLIPSPointer boost::shared_ptr
00028   #else
00029     #include <typeinfo>
00030     #include <memory>
00031     #include <functional>
00032     #include <bits/concurrence.h>
00033     #include <ext/mt_allocator.h>
00034     #include <tr1/boost_shared_ptr.h>
00035     #define CLIPSPointer std::tr1::shared_ptr
00036   #endif
00037 #endif

Generated on Sun Nov 12 11:55:35 2006 by  doxygen 1.5.1