Skip to content

Commit a86a462

Browse files
committed
OUT -> RESULT_TYPE (closes #153)
1 parent 6250fb9 commit a86a462

16 files changed

+3519
-3501
lines changed

ChangeLog

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
2014-07-09 Kevin Ushey <kevinushey@gmail.com>
2+
3+
* inst/include/Rcpp/Language.h: OUT -> RESULT_TYPE
4+
* inst/include/Rcpp/generated/InternalFunction__ctors.h: Idem
5+
* inst/include/Rcpp/module/Module_generated_CppFunction.h: Idem
6+
* inst/include/Rcpp/module/Module_generated_CppMethod.h: Idem
7+
* inst/include/Rcpp/module/Module_generated_Pointer_CppMethod.h: Idem
8+
* inst/include/Rcpp/module/Module_generated_Pointer_method.h: Idem
9+
* inst/include/Rcpp/module/Module_generated_function.h: Idem
10+
* inst/include/Rcpp/module/Module_generated_get_signature.h: Idem
11+
* inst/include/Rcpp/module/Module_generated_method.h: Idem
12+
* inst/include/Rcpp/module/get_return_type.h: Idem
13+
* inst/include/Rcpp/sugar/block/SugarBlock_1.h: Idem
14+
* inst/include/Rcpp/sugar/block/SugarBlock_2.h: Idem
15+
* inst/include/Rcpp/sugar/block/SugarBlock_3.h: Idem
16+
* inst/include/Rcpp/sugar/block/SugarMath.h: Idem
17+
* inst/include/Rcpp/sugar/functions/complex.h: Idem
18+
119
2014-07-08 Dirk Eddelbuettel <edd@debian.org>
220

321
* inst/include/Rcpp/InternalFunction.h: Add missing update(SEXP) method

inst/include/Rcpp/Language.h

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -160,50 +160,50 @@ namespace Rcpp{
160160

161161
typedef Language_Impl<PreserveStorage> Language ;
162162

163-
template <typename OUT=SEXP>
163+
template <typename RESULT_TYPE=SEXP>
164164
class fixed_call {
165165
public:
166-
typedef OUT result_type ;
166+
typedef RESULT_TYPE result_type ;
167167

168168
fixed_call( Language call_ ) : call(call_){}
169169
fixed_call( Function fun ) : call(fun){}
170170

171-
OUT operator()(){
172-
return as<OUT>( call.eval() ) ;
171+
RESULT_TYPE operator()(){
172+
return as<RESULT_TYPE>( call.eval() ) ;
173173
}
174174

175175
private:
176176
Language call ;
177177
} ;
178178

179-
template <typename T, typename OUT = SEXP>
180-
class unary_call : public std::unary_function<T,OUT> {
179+
template <typename T, typename RESULT_TYPE = SEXP>
180+
class unary_call : public std::unary_function<T,RESULT_TYPE> {
181181
public:
182182
unary_call( Language call_ ) : call(call_), proxy(call_,1) {}
183183
unary_call( Language call_, int index ) : call(call_), proxy(call_,index){}
184184
unary_call( Function fun ) : call( fun, R_NilValue), proxy(call,1) {}
185185

186-
OUT operator()( const T& object ){
186+
RESULT_TYPE operator()( const T& object ){
187187
proxy = object ;
188-
return as<OUT>( call.eval() ) ;
188+
return as<RESULT_TYPE>( call.eval() ) ;
189189
}
190190

191191
private:
192192
Language call ;
193193
Language::Proxy proxy ;
194194
} ;
195195

196-
template <typename T1, typename T2, typename OUT = SEXP>
197-
class binary_call : public std::binary_function<T1,T2,OUT> {
196+
template <typename T1, typename T2, typename RESULT_TYPE = SEXP>
197+
class binary_call : public std::binary_function<T1,T2,RESULT_TYPE> {
198198
public:
199199
binary_call( Language call_ ) : call(call_), proxy1(call_,1), proxy2(call_,2) {}
200200
binary_call( Language call_, int index1, int index2 ) : call(call_), proxy1(call_,index1), proxy2(call_,index2){}
201201
binary_call( Function fun) : call(fun, R_NilValue, R_NilValue), proxy1(call,1), proxy2(call,2){}
202202

203-
OUT operator()( const T1& o1, const T2& o2 ){
203+
RESULT_TYPE operator()( const T1& o1, const T2& o2 ){
204204
proxy1 = o1 ;
205205
proxy2 = o2 ;
206-
return as<OUT>( call.eval() ) ;
206+
return as<RESULT_TYPE>( call.eval() ) ;
207207
}
208208

209209
private:

inst/include/Rcpp/generated/InternalFunction__ctors.h

Lines changed: 198 additions & 198 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)