Rcpp Version 1.0.9
|
#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 33 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 41 of file Nullable.h.
|
inline |
Template constructor of a Nullable object
Assigns object, and set validator to TRUE
Definition at line 49 of file Nullable.h.
|
inline |
Standard constructor of a Nullable object
SEXP | is stored |
Definition at line 56 of file Nullable.h.
References Rcpp::Nullable< T >::m_set, and Rcpp::Nullable< T >::m_sexp.
|
inline |
Returns m_sexp as a T
Definition at line 129 of file Nullable.h.
References Rcpp::Nullable< T >::get().
|
inlineprivate |
Definition at line 140 of file Nullable.h.
References Rcpp::Nullable< T >::m_set.
Referenced by Rcpp::Nullable< T >::get(), Rcpp::Nullable< T >::isNull(), and Rcpp::Nullable< T >::operator SEXP().
|
inline |
Return a clone of m_sexp as a T
Definition at line 134 of file Nullable.h.
References Rcpp::clone(), and Rcpp::Nullable< T >::get().
|
inline |
get() accessor for object
'not | initialized' if object has not been set |
Definition at line 89 of file Nullable.h.
References Rcpp::Nullable< T >::checkIfSet(), and Rcpp::Nullable< T >::m_sexp.
Referenced by Rcpp::Nullable< T >::as(), and Rcpp::Nullable< T >::clone().
|
inline |
Boolean test for not NULL
'not | initialized' if object has not been set |
Definition at line 116 of file Nullable.h.
References Rcpp::Nullable< T >::isNull().
|
inline |
Boolean test for NULL
'not | initialized' if object has not been set |
Definition at line 106 of file Nullable.h.
References Rcpp::Nullable< T >::checkIfSet(), and Rcpp::Nullable< T >::m_sexp.
Referenced by Rcpp::Nullable< T >::isNotNull().
|
inline |
Test function to check if object has been initialized
Definition at line 124 of file Nullable.h.
References Rcpp::Nullable< T >::m_set.
|
inline |
Boolean test for usability as a T
Definition at line 97 of file Nullable.h.
References Rcpp::Nullable< T >::m_set, and Rcpp::Nullable< T >::m_sexp.
|
inline |
operator SEXP() to return nullable object
'not | initialized' if object has not been set |
Definition at line 79 of file Nullable.h.
References Rcpp::Nullable< T >::checkIfSet(), and Rcpp::Nullable< T >::m_sexp.
|
inline |
Copy constructor for Nullable object
SEXP | is used to update internal copy |
Definition at line 68 of file Nullable.h.
References Rcpp::Nullable< T >::m_set, and Rcpp::Nullable< T >::m_sexp.
|
private |
Definition at line 138 of file Nullable.h.
Referenced by Rcpp::Nullable< T >::checkIfSet(), Rcpp::Nullable< T >::isSet(), Rcpp::Nullable< T >::isUsable(), Rcpp::Nullable< T >::Nullable(), and Rcpp::Nullable< T >::operator=().
|
private |
Definition at line 137 of file Nullable.h.
Referenced by Rcpp::Nullable< T >::get(), Rcpp::Nullable< T >::isNull(), Rcpp::Nullable< T >::isUsable(), Rcpp::Nullable< T >::Nullable(), Rcpp::Nullable< T >::operator SEXP(), and Rcpp::Nullable< T >::operator=().