[Rprotobuf-commits] r645 - pkg/src
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Mon Dec 30 22:04:25 CET 2013
Author: murray
Date: 2013-12-30 22:04:24 +0100 (Mon, 30 Dec 2013)
New Revision: 645
Modified:
pkg/src/ConnectionCopyingInputStream.h
pkg/src/ConnectionCopyingOutputStream.h
pkg/src/RconnectionCopyingInputStream.h
Log:
Whitespace change only (clang-format).
* 'namespace{' -> 'namespace {'
* No indentation from namespace level.
* 4 space indentation level.
No diff visible with svn diff -x -w
Modified: pkg/src/ConnectionCopyingInputStream.h
===================================================================
--- pkg/src/ConnectionCopyingInputStream.h 2013-12-30 21:02:17 UTC (rev 644)
+++ pkg/src/ConnectionCopyingInputStream.h 2013-12-30 21:04:24 UTC (rev 645)
@@ -1,26 +1,26 @@
#ifndef RPROTOBUF_ConnectionCopyingInputStream_H
#define RPROTOBUF_ConnectionCopyingInputStream_H
-namespace rprotobuf{
+namespace rprotobuf {
- class ConnectionCopyingInputStream : public GPB::io::CopyingInputStream {
- public:
- ConnectionCopyingInputStream( SEXP con );
- int Read(void * buffer, int size) ;
-
- private:
- /*
- the actual connection object from R
- it is protected by the external pointer that
- wraps the ConnectionInputStream, which is the only
- thing that uses this class, so we don't need to take
- care of GC here
- */
- SEXP con ;
-
- Rcpp::Function readBin ;
-} ;
+class ConnectionCopyingInputStream : public GPB::io::CopyingInputStream {
+ public:
+ ConnectionCopyingInputStream(SEXP con);
+ int Read(void* buffer, int size);
-} // namespace rprotobuf
+ private:
+ /*
+ the actual connection object from R
+ it is protected by the external pointer that
+ wraps the ConnectionInputStream, which is the only
+ thing that uses this class, so we don't need to take
+ care of GC here
+ */
+ SEXP con;
+ Rcpp::Function readBin;
+};
+
+} // namespace rprotobuf
+
#endif
Modified: pkg/src/ConnectionCopyingOutputStream.h
===================================================================
--- pkg/src/ConnectionCopyingOutputStream.h 2013-12-30 21:02:17 UTC (rev 644)
+++ pkg/src/ConnectionCopyingOutputStream.h 2013-12-30 21:04:24 UTC (rev 645)
@@ -1,26 +1,26 @@
#ifndef RPROTOBUF_ConnectionCopyingOutputStream_H
#define RPROTOBUF_ConnectionCopyingOutputStream_H
-namespace rprotobuf{
+namespace rprotobuf {
- class ConnectionCopyingOutputStream : public GPB::io::CopyingOutputStream {
- public:
- ConnectionCopyingOutputStream( SEXP con );
- bool Write(const void * buffer, int size) ;
-
- private:
- /*
- the actual connection object from R
- it is protected by the external pointer that
- wraps the ConnectionInputStream, which is the only
- thing that uses this class, so we don't need to take
- care of GC here
- */
- SEXP con ;
-
- Rcpp::Function writeBin ;
-} ;
+class ConnectionCopyingOutputStream : public GPB::io::CopyingOutputStream {
+ public:
+ ConnectionCopyingOutputStream(SEXP con);
+ bool Write(const void* buffer, int size);
-} // namespace rprotobuf
+ private:
+ /*
+ the actual connection object from R
+ it is protected by the external pointer that
+ wraps the ConnectionInputStream, which is the only
+ thing that uses this class, so we don't need to take
+ care of GC here
+ */
+ SEXP con;
+ Rcpp::Function writeBin;
+};
+
+} // namespace rprotobuf
+
#endif
Modified: pkg/src/RconnectionCopyingInputStream.h
===================================================================
--- pkg/src/RconnectionCopyingInputStream.h 2013-12-30 21:02:17 UTC (rev 644)
+++ pkg/src/RconnectionCopyingInputStream.h 2013-12-30 21:04:24 UTC (rev 645)
@@ -1,20 +1,20 @@
#ifndef RPROTOBUF_RconnectionCopyingInputStream_H
#define RPROTOBUF_RconnectionCopyingInputStream_H
-namespace rprotobuf{
+namespace rprotobuf {
- class RconnectionCopyingInputStream : public GPB::io::CopyingInputStream {
- public:
- RconnectionCopyingInputStream( int id );
-
- int Read(void * buffer, int size) ;
- bool Failure() { return(failure); }
-
- private:
- int connection_id ;
- bool failure;
-} ;
+class RconnectionCopyingInputStream : public GPB::io::CopyingInputStream {
+ public:
+ RconnectionCopyingInputStream(int id);
-} // namespace rprotobuf
+ int Read(void* buffer, int size);
+ bool Failure() { return (failure); }
+ private:
+ int connection_id;
+ bool failure;
+};
+
+} // namespace rprotobuf
+
#endif
More information about the Rprotobuf-commits
mailing list