|
Rcpp Version 1.1.2
|
#include <Nullable.h>
Public Member Functions | |
| Nullable () | |
| Nullable (const T &t) | |
| Nullable (SEXP t) | |
| Nullable & | operator= (SEXP sexp) |
| operator SEXP () const | |
| SEXP | get () const |
| bool | isUsable () const |
| bool | isNull () const |
| bool | isNotNull () const |
| bool | isSet (void) const |
| T | as () |
| T | clone () const |
Private Member Functions | |
| void | checkIfSet (void) const |
Private Attributes | |
| SEXP | m_sexp |
| bool | m_set |
Definition at line 32 of file Nullable.h.
|
inline |
Empty no-argument constructor of a Nullable object
Assigns (R's) NULL value, and sets validator to FALSE
Definition at line 40 of file Nullable.h.
|
inline |
Template constructor of a Nullable object
Assigns object, and set validator to TRUE
Definition at line 48 of file Nullable.h.
|
inline |
Standard constructor of a Nullable object
| SEXP | is stored |
Definition at line 55 of file Nullable.h.
|
inline |
Returns m_sexp as a T
Definition at line 140 of file Nullable.h.
|
inlineprivate |
Definition at line 151 of file Nullable.h.
Referenced by Rcpp::Nullable< Vector< REALSXP > >::get(), Rcpp::Nullable< Vector< REALSXP > >::isNull(), and Rcpp::Nullable< Vector< REALSXP > >::operator SEXP().
|
inline |
Return a clone of m_sexp as a T
Definition at line 145 of file Nullable.h.
|
inline |
get() accessor for object
| 'not | initialized' if object has not been set |
Definition at line 100 of file Nullable.h.
Referenced by Rcpp::Nullable< Vector< REALSXP > >::as(), and Rcpp::Nullable< Vector< REALSXP > >::clone().
|
inline |
Boolean test for not NULL
| 'not | initialized' if object has not been set |
Definition at line 127 of file Nullable.h.
|
inline |
Boolean test for NULL
| 'not | initialized' if object has not been set |
Definition at line 117 of file Nullable.h.
Referenced by Rcpp::Nullable< Vector< REALSXP > >::isNotNull().
|
inline |
Test function to check if object has been initialized
Definition at line 135 of file Nullable.h.
|
inline |
Boolean test for usability as a T
Definition at line 108 of file Nullable.h.
|
inline |
operator SEXP() to return nullable object
| 'not | initialized' if object has not been set |
Definition at line 78 of file Nullable.h.
|
inline |
Copy constructor for Nullable object
| SEXP | is used to update internal copy |
Definition at line 67 of file Nullable.h.
|
private |
Definition at line 149 of file Nullable.h.
|
private |
Definition at line 148 of file Nullable.h.