[Rcpp-commits] r4495 - in pkg/Rcpp: . inst/include/Rcpp/vector

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Mon Sep 16 15:20:11 CEST 2013


Author: romain
Date: 2013-09-16 15:20:11 +0200 (Mon, 16 Sep 2013)
New Revision: 4495

Modified:
   pkg/Rcpp/ChangeLog
   pkg/Rcpp/DESCRIPTION
   pkg/Rcpp/inst/include/Rcpp/vector/Vector.h
Log:
added Vector(const char*) ctor

Modified: pkg/Rcpp/ChangeLog
===================================================================
--- pkg/Rcpp/ChangeLog	2013-09-16 12:06:41 UTC (rev 4494)
+++ pkg/Rcpp/ChangeLog	2013-09-16 13:20:11 UTC (rev 4495)
@@ -8,7 +8,9 @@
         std::deque, and std::list so that we use their faster range constructor when 
         we can, and so let the STL optimize how data is copied
         * include/Rcpp/api/meat/export.h : Implementation of the above
-
+        * include/Rcpp/vector/Vector.h : added Vector( const char* ) ctor
+        * DESCRIPTION : bump to 0.10.4.5 (for RcppExtras)
+        
 2013-09-15  Dirk Eddelbuettel  <edd at debian.org>
 
 	* inst/include/Rcpp/InputParameter.h (Rcpp): Add 'const' case

Modified: pkg/Rcpp/DESCRIPTION
===================================================================
--- pkg/Rcpp/DESCRIPTION	2013-09-16 12:06:41 UTC (rev 4494)
+++ pkg/Rcpp/DESCRIPTION	2013-09-16 13:20:11 UTC (rev 4495)
@@ -1,6 +1,6 @@
 Package: Rcpp
 Title: Seamless R and C++ Integration
-Version: 0.10.4.4
+Version: 0.10.4.5
 Date: $Date$
 Author: Dirk Eddelbuettel and Romain Francois, with contributions 
  by Douglas Bates, John Chambers and JJ Allaire

Modified: pkg/Rcpp/inst/include/Rcpp/vector/Vector.h
===================================================================
--- pkg/Rcpp/inst/include/Rcpp/vector/Vector.h	2013-09-16 12:06:41 UTC (rev 4494)
+++ pkg/Rcpp/inst/include/Rcpp/vector/Vector.h	2013-09-16 13:20:11 UTC (rev 4495)
@@ -87,6 +87,11 @@
         RCPP_DEBUG_2( "Vector<%d>( const std::string& = %s )", RTYPE, st.c_str() )
         update_vector();
     }
+    Vector( const char* st ) : RObject( internal::vector_from_string<RTYPE>(st) ){
+        RCPP_DEBUG_2( "Vector<%d>( const std::string& = %s )", RTYPE, st.c_str() )
+        update_vector();
+    }
+	
 	Vector( const int& siz, stored_type (*gen)(void) ) : RObject(Rf_allocVector( RTYPE, siz)) {
         RCPP_DEBUG_2( "Vector<%d>( const int& siz = %s, stored_type (*gen)(void) )", RTYPE, siz )
         update_vector() ;



More information about the Rcpp-commits mailing list