Rcpp Version 0.12.12
solaris.h
Go to the documentation of this file.
1 // Copyright (C) 2014 Romain Francois
2 
3 #ifndef Rcpp__platform__solaris_h
4 #define Rcpp__platform__solaris_h
5 
6 #ifdef __SUNPRO_CC
7 
8 namespace Rcpp{
9 namespace traits{
10 
11  template <typename T> struct is_convertible< std::list<T>, SEXP> : public false_type{} ;
12  template <typename T> struct is_convertible< std::set<T>, SEXP> : public false_type{} ;
13  template <typename T> struct is_convertible< std::vector<T>, SEXP> : public false_type{} ;
14  template <typename T> struct is_convertible< std::deque<T>, SEXP> : public false_type{} ;
15 
16  template <typename KEY, typename VALUE>
17  struct is_convertible< std::map<KEY,VALUE>, SEXP> : public false_type{} ;
18 
19  template <typename KEY, typename VALUE>
20  struct is_convertible< std::multimap<KEY,VALUE>, SEXP> : public false_type{} ;
21 
22  template <> struct is_convertible<Range,SEXP> : public false_type{} ;
23 
24  #if !defined(RCPP_NO_SUGAR)
25  template <int RTYPE, bool NA, typename T>
26  struct is_convertible< sugar::Minus_Vector_Primitive< RTYPE, NA, T >, SEXP> : public false_type{} ;
27 
28  template <int RTYPE, bool NA, typename T>
29  struct is_convertible< sugar::Plus_Vector_Primitive< RTYPE, NA, T >, SEXP> : public false_type{} ;
30 
31  template <int RTYPE, bool LHS_NA, typename LHS_T, bool RHS_NA, typename RHS_T >
32  struct is_convertible< sugar::Plus_Vector_Vector< RTYPE, LHS_NA, LHS_T, RHS_NA, RHS_T >, SEXP> : public false_type{} ;
33 
34  template <int RTYPE, bool LHS_NA, typename LHS_T, bool RHS_NA, typename RHS_T >
35  struct is_convertible< sugar::Minus_Vector_Vector< RTYPE, LHS_NA, LHS_T, RHS_NA, RHS_T >, SEXP> : public false_type{} ;
36 
37  template <int RTYPE, bool LHS_NA, typename LHS_T, bool RHS_NA, typename RHS_T >
38  struct is_convertible< sugar::Times_Vector_Vector< RTYPE, LHS_NA, LHS_T, RHS_NA, RHS_T >, SEXP> : public false_type{} ;
39 
40  template <int RTYPE, bool LHS_NA, typename LHS_T, bool RHS_NA, typename RHS_T >
41  struct is_convertible< sugar::Divides_Vector_Vector< RTYPE, LHS_NA, LHS_T, RHS_NA, RHS_T >, SEXP> : public false_type{} ;
42 
43  template <
44  int RTYPE,
45  bool COND_NA, typename COND_T,
46  bool RHS_NA , typename RHS_T
47  >
48  struct is_convertible< sugar::IfElse_Primitive_Vector<RTYPE,COND_NA,COND_T,RHS_NA,RHS_T> , SEXP > : public false_type{} ;
49 
50  template <
51  int RTYPE,
52  bool COND_NA, typename COND_T
53  >
54  struct is_convertible< sugar::IfElse_Primitive_Primitive<RTYPE,COND_NA,COND_T>, SEXP > : public false_type{} ;
55 
56  #endif
57 
58  template <int RTYPE>
59  struct is_convertible< MatrixRow<RTYPE>, SEXP> : public false_type{} ;
60 
61  template <int RTYPE>
62  struct is_convertible< MatrixColumn<RTYPE>, SEXP> : public false_type{} ;
63 
64 }
65 }
66 
67 
68 #endif
69 
70 #endif
integral_constant< bool, false > false_type
Definition: swap.h:25
Rcpp API.
Definition: algo.h:28