[Rcpp-commits] r1003 - pkg/RcppGSL/inst/include
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Tue Apr 6 09:19:00 CEST 2010
Author: romain
Date: 2010-04-06 09:18:55 +0200 (Tue, 06 Apr 2010)
New Revision: 1003
Added:
pkg/RcppGSL/inst/include/RcppGSLForward.h
Modified:
pkg/RcppGSL/inst/include/RcppGSL.h
Log:
separating the forward declarations from the implementations
Modified: pkg/RcppGSL/inst/include/RcppGSL.h
===================================================================
--- pkg/RcppGSL/inst/include/RcppGSL.h 2010-04-06 03:35:33 UTC (rev 1002)
+++ pkg/RcppGSL/inst/include/RcppGSL.h 2010-04-06 07:18:55 UTC (rev 1003)
@@ -20,27 +20,10 @@
#ifndef RCPPGSL__RCPPGSL_H
#define RCPPGSL__RCPPGSL_H
-#include <RcppCommon.h>
-#include <gsl/gsl_vector.h>
-
-/* forward declarations */
-namespace Rcpp{
- template <> SEXP wrap( const gsl_vector& ) ;
-}
-
-/* implementations */
+#include <RcppGSLForward.h>
#include <Rcpp.h>
namespace Rcpp{
-
-// namespace RcppGSL{
-//
-// template <typename T> struct gsl_vector_type_traits ;
-// template <> struct gsl_vector_type_traits<gsl_vector> {
-// typedef double type ;
-// } ;
-//
-// } // namespace RcppGSL
template <> SEXP wrap( const gsl_vector& x){
return wrap( x.data, x.data + x.size ) ;
Added: pkg/RcppGSL/inst/include/RcppGSLForward.h
===================================================================
--- pkg/RcppGSL/inst/include/RcppGSLForward.h (rev 0)
+++ pkg/RcppGSL/inst/include/RcppGSLForward.h 2010-04-06 07:18:55 UTC (rev 1003)
@@ -0,0 +1,31 @@
+// RcppGSL.h: Rcpp/GSL glue
+//
+// Copyright (C) 2010 Romain Francois and Dirk Eddelbuettel
+//
+// This file is part of RcppGSL.
+//
+// RcppGSL is free software: you can redistribute it and/or modify it
+// under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 2 of the License, or
+// (at your option) any later version.
+//
+// RcppGSL is distributed in the hope that it will be useful, but
+// WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with RcppGSL. If not, see <http://www.gnu.org/licenses/>.
+
+#ifndef RCPPGSL__RCPPGSLFORWARD_H
+#define RCPPGSL__RCPPGSLFORWARD_H
+
+#include <RcppCommon.h>
+#include <gsl/gsl_vector.h>
+
+/* forward declarations */
+namespace Rcpp{
+ template <> SEXP wrap( const gsl_vector& ) ;
+}
+
+#endif
More information about the Rcpp-commits
mailing list