File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ namespace Rcpp {
68
68
* @throw 'not initialized' if object has not been set
69
69
*/
70
70
inline operator SEXP () {
71
- checkIfSet ();
71
+ isSet ();
72
72
return m_sexp;
73
73
}
74
74
@@ -83,7 +83,7 @@ namespace Rcpp {
83
83
}
84
84
85
85
/* *
86
- * boolean test for NULL
86
+ * Boolean test for NULL
87
87
*
88
88
* @throw 'not initialized' if object has not been set
89
89
*/
@@ -93,14 +93,20 @@ namespace Rcpp {
93
93
}
94
94
95
95
/* *
96
- * boolean test for not NULL
96
+ * Boolean test for not NULL
97
97
*
98
98
* @throw 'not initialized' if object has not been set
99
99
*/
100
100
inline bool isNotNull () {
101
101
return ! isNull ();
102
102
}
103
103
104
+ /* *
105
+ * Test function to check if object has been initialized
106
+ *
107
+ */
108
+ inline bool isSet (void ) { return m_set; }
109
+
104
110
private:
105
111
SEXP m_sexp;
106
112
bool m_set;
You can’t perform that action at this time.
0 commit comments