Rcpp Version 1.1.2
Loading...
Searching...
No Matches
Rcpp::PreserveStorage< CLASS > Class Template Reference

#include <PreserveStorage.h>

Inheritance diagram for Rcpp::PreserveStorage< CLASS >:

Public Member Functions

 PreserveStorage ()
 ~PreserveStorage ()
void set__ (SEXP x)
SEXP get__ () const
SEXP invalidate__ ()
template<typename T>
T & copy__ (const T &other)
bool inherits (const char *clazz) const
 operator SEXP () const

Private Attributes

SEXP data
SEXP token

Detailed Description

template<typename CLASS>
class Rcpp::PreserveStorage< CLASS >

Definition at line 28 of file PreserveStorage.h.

Constructor & Destructor Documentation

◆ PreserveStorage()

template<typename CLASS>
Rcpp::PreserveStorage< CLASS >::PreserveStorage ( )
inline

Definition at line 31 of file PreserveStorage.h.

References data, and token.

◆ ~PreserveStorage()

template<typename CLASS>
Rcpp::PreserveStorage< CLASS >::~PreserveStorage ( )
inline

Definition at line 33 of file PreserveStorage.h.

References data, Rcpp::Rcpp_PreciousRelease(), and token.

Here is the call graph for this function:

Member Function Documentation

◆ copy__()

template<typename CLASS>
template<typename T>
T & Rcpp::PreserveStorage< CLASS >::copy__ ( const T & other)
inline

Definition at line 64 of file PreserveStorage.h.

References set__().

Referenced by Rcpp::XPtr< Class >::operator=(), and Rcpp::XPtr< Class >::XPtr().

Here is the call graph for this function:

◆ get__()

◆ inherits()

template<typename CLASS>
bool Rcpp::PreserveStorage< CLASS >::inherits ( const char * clazz) const
inline

Definition at line 71 of file PreserveStorage.h.

References data.

◆ invalidate__()

template<typename CLASS>
SEXP Rcpp::PreserveStorage< CLASS >::invalidate__ ( )
inline

Definition at line 55 of file PreserveStorage.h.

References data, Rcpp::Rcpp_PreciousRelease(), and token.

Here is the call graph for this function:

◆ operator SEXP()

template<typename CLASS>
Rcpp::PreserveStorage< CLASS >::operator SEXP ( ) const
inline

Definition at line 75 of file PreserveStorage.h.

References data.

◆ set__()

template<typename CLASS>
void Rcpp::PreserveStorage< CLASS >::set__ ( SEXP x)
inline

Definition at line 39 of file PreserveStorage.h.

References data, Rcpp::Rcpp_PreciousPreserve(), Rcpp::Rcpp_PreciousRelease(), and token.

Referenced by Rcpp::XPtr< Class >::checked_set(), copy__(), and Rcpp::XPtr< Class >::XPtr().

Here is the call graph for this function:

Member Data Documentation

◆ data

template<typename CLASS>
SEXP Rcpp::PreserveStorage< CLASS >::data
private

◆ token

template<typename CLASS>
SEXP Rcpp::PreserveStorage< CLASS >::token
private

Definition at line 79 of file PreserveStorage.h.

Referenced by invalidate__(), PreserveStorage(), set__(), and ~PreserveStorage().


The documentation for this class was generated from the following file: