[Rprotobuf-commits] r614 - pkg/src

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Sat Dec 28 00:31:27 CET 2013


Author: murray
Date: 2013-12-28 00:31:27 +0100 (Sat, 28 Dec 2013)
New Revision: 614

Modified:
   pkg/src/wrapper_MethodDescriptor.cpp
Log:
Whitespace change only.

Use consistent indentation and spacing around paramters.  Enforced by:

clang-format -style="{BasedOnStyle: google, IndentWidth: 4}" -i *.cpp
 


Modified: pkg/src/wrapper_MethodDescriptor.cpp
===================================================================
--- pkg/src/wrapper_MethodDescriptor.cpp	2013-12-27 22:24:03 UTC (rev 613)
+++ pkg/src/wrapper_MethodDescriptor.cpp	2013-12-27 23:31:27 UTC (rev 614)
@@ -1,52 +1,63 @@
 #include "rprotobuf.h"
 #include "RcppMacros.h"
 
-namespace rprotobuf{
+namespace rprotobuf {
 
 #undef METHOD
-#define METHOD(__NAME__) RCPP_PP_CAT(MethodDescriptor__,__NAME__)
+#define METHOD(__NAME__) RCPP_PP_CAT(MethodDescriptor__, __NAME__)
 
-RPB_XP_METHOD_0( METHOD(as_character)     , GPB::MethodDescriptor    , DebugString)
+RPB_XP_METHOD_0(METHOD(as_character), GPB::MethodDescriptor, DebugString)
 
-RPB_FUNCTION_1(S4_Message, METHOD(as_Message), Rcpp::XPtr<GPB::MethodDescriptor> d ){
-	GPB::MethodDescriptorProto* message = new GPB::MethodDescriptorProto() ; 
-	d->CopyTo( message ); 
-	return S4_Message( message ) ;
+RPB_FUNCTION_1(S4_Message, METHOD(as_Message),
+               Rcpp::XPtr<GPB::MethodDescriptor> d) {
+    GPB::MethodDescriptorProto* message = new GPB::MethodDescriptorProto();
+    d->CopyTo(message);
+    return S4_Message(message);
 }
-	
-RPB_FUNCTION_1( S4_FileDescriptor, METHOD(fileDescriptor), Rcpp::XPtr<GPB::MethodDescriptor> desc){
-	return S4_FileDescriptor( desc->service()->file() ); 
+
+RPB_FUNCTION_1(S4_FileDescriptor, METHOD(fileDescriptor),
+               Rcpp::XPtr<GPB::MethodDescriptor> desc) {
+    return S4_FileDescriptor(desc->service()->file());
 }
-	
-RPB_FUNCTION_1( S4_Descriptor, METHOD(input_type) , Rcpp::XPtr<GPB::MethodDescriptor> method){
-	return method->input_type() ;
+
+RPB_FUNCTION_1(S4_Descriptor, METHOD(input_type),
+               Rcpp::XPtr<GPB::MethodDescriptor> method) {
+    return method->input_type();
 }
-RPB_FUNCTION_1( S4_Descriptor, METHOD(output_type), Rcpp::XPtr<GPB::MethodDescriptor> method){
-	return method->output_type() ;
+RPB_FUNCTION_1(S4_Descriptor, METHOD(output_type),
+               Rcpp::XPtr<GPB::MethodDescriptor> method) {
+    return method->output_type();
 }
 
-RPB_FUNCTION_1( S4_Message, get_method_input_prototype, Rcpp::XPtr<GPB::MethodDescriptor> method ){
-	const GPB::Descriptor* desc = method->input_type();
-	return S4_Message( PROTOTYPE( desc ) ) ;
+RPB_FUNCTION_1(S4_Message, get_method_input_prototype,
+               Rcpp::XPtr<GPB::MethodDescriptor> method) {
+    const GPB::Descriptor* desc = method->input_type();
+    return S4_Message(PROTOTYPE(desc));
 }
 
-RPB_FUNCTION_1( S4_Message, get_method_output_prototype, Rcpp::XPtr<GPB::MethodDescriptor> method ){
-	const GPB::Descriptor* desc = method->output_type();
-	return S4_Message( PROTOTYPE( desc ) ) ;
+RPB_FUNCTION_1(S4_Message, get_method_output_prototype,
+               Rcpp::XPtr<GPB::MethodDescriptor> method) {
+    const GPB::Descriptor* desc = method->output_type();
+    return S4_Message(PROTOTYPE(desc));
 }
 
-RPB_FUNCTION_2(bool, valid_input_message, Rcpp::XPtr<GPB::MethodDescriptor> method, Rcpp::XPtr<GPB::Message> message){
-	return message->GetDescriptor() == method->input_type() ;
+RPB_FUNCTION_2(bool, valid_input_message,
+               Rcpp::XPtr<GPB::MethodDescriptor> method,
+               Rcpp::XPtr<GPB::Message> message) {
+    return message->GetDescriptor() == method->input_type();
 }
 
-RPB_FUNCTION_2(bool, valid_output_message, Rcpp::XPtr<GPB::MethodDescriptor> method, Rcpp::XPtr<GPB::Message> message){
-	return message->GetDescriptor() == method->output_type() ;
+RPB_FUNCTION_2(bool, valid_output_message,
+               Rcpp::XPtr<GPB::MethodDescriptor> method,
+               Rcpp::XPtr<GPB::Message> message) {
+    return message->GetDescriptor() == method->output_type();
 }
 
-RPB_FUNCTION_2( std::string, METHOD(name), Rcpp::XPtr<GPB::MethodDescriptor> d, bool full){
-	return full ? d->full_name() : d->name() ;
+RPB_FUNCTION_2(std::string, METHOD(name), Rcpp::XPtr<GPB::MethodDescriptor> d,
+               bool full) {
+    return full ? d->full_name() : d->name();
 }
 
 #undef METHOD
 
-} // namespace rprotobuf
+}  // namespace rprotobuf



More information about the Rprotobuf-commits mailing list