Rcpp Version 1.1.2
Loading...
Searching...
No Matches
Rcpp::internal::const_string_proxy< RTYPE, StoragePolicy > Class Template Reference

#include <const_string_proxy.h>

Collaboration diagram for Rcpp::internal::const_string_proxy< RTYPE, StoragePolicy >:

Public Types

typedef ::Rcpp::Vector< RTYPE, StoragePolicy > VECTOR
typedef const char * iterator
typedef const char & reference

Public Member Functions

 const_string_proxy ()
 const_string_proxy (const VECTOR &v, R_xlen_t index_)
 const_string_proxy (SEXP x)
 const_string_proxy (const const_string_proxy &other)
void import (const const_string_proxy &other)
 operator SEXP () const
 operator char * () const
void move (R_xlen_t n)
SEXP get () const
iterator begin () const
iterator end () const
R_xlen_t size () const
bool empty () const
reference operator[] (R_xlen_t n)
bool operator== (const char *other)
bool operator!= (const char *other)
bool operator== (const const_string_proxy &other)
bool operator!= (const const_string_proxy &other)
bool operator== (SEXP other) const
bool operator!= (SEXP other) const

Public Attributes

const VECTORparent
R_xlen_t index

Static Private Attributes

static std::string buffer

Friends

template<int RT, template< class > class StoragePolicy_>
std::ostream & operator<< (std::ostream &os, const const_string_proxy< RT, StoragePolicy_ > &proxy)
template<int RT, template< class > class StoragePolicy_>
std::string operator+ (const std::string &x, const const_string_proxy< RT, StoragePolicy_ > &proxy)

Detailed Description

template<int RTYPE, template< class > class StoragePolicy>
class Rcpp::internal::const_string_proxy< RTYPE, StoragePolicy >

Definition at line 29 of file const_string_proxy.h.

Member Typedef Documentation

◆ iterator

template<int RTYPE, template< class > class StoragePolicy>
typedef const char* Rcpp::internal::const_string_proxy< RTYPE, StoragePolicy >::iterator

Definition at line 33 of file const_string_proxy.h.

◆ reference

template<int RTYPE, template< class > class StoragePolicy>
typedef const char& Rcpp::internal::const_string_proxy< RTYPE, StoragePolicy >::reference

Definition at line 34 of file const_string_proxy.h.

◆ VECTOR

template<int RTYPE, template< class > class StoragePolicy>
typedef ::Rcpp::Vector<RTYPE, StoragePolicy> Rcpp::internal::const_string_proxy< RTYPE, StoragePolicy >::VECTOR

Definition at line 32 of file const_string_proxy.h.

Constructor & Destructor Documentation

◆ const_string_proxy() [1/4]

template<int RTYPE, template< class > class StoragePolicy>
Rcpp::internal::const_string_proxy< RTYPE, StoragePolicy >::const_string_proxy ( )
inline

Definition at line 36 of file const_string_proxy.h.

◆ const_string_proxy() [2/4]

template<int RTYPE, template< class > class StoragePolicy>
Rcpp::internal::const_string_proxy< RTYPE, StoragePolicy >::const_string_proxy ( const VECTOR & v,
R_xlen_t index_ )
inline

Creates a proxy

Parameters
vreference to the associated character vector
indexindex

Definition at line 44 of file const_string_proxy.h.

◆ const_string_proxy() [3/4]

template<int RTYPE, template< class > class StoragePolicy>
Rcpp::internal::const_string_proxy< RTYPE, StoragePolicy >::const_string_proxy ( SEXP x)
inline

Definition at line 46 of file const_string_proxy.h.

◆ const_string_proxy() [4/4]

template<int RTYPE, template< class > class StoragePolicy>
Rcpp::internal::const_string_proxy< RTYPE, StoragePolicy >::const_string_proxy ( const const_string_proxy< RTYPE, StoragePolicy > & other)
inline

Definition at line 51 of file const_string_proxy.h.

Member Function Documentation

◆ begin()

◆ empty()

template<int RTYPE, template< class > class StoragePolicy>
bool Rcpp::internal::const_string_proxy< RTYPE, StoragePolicy >::empty ( ) const
inline

Definition at line 97 of file const_string_proxy.h.

◆ end()

template<int RTYPE, template< class > class StoragePolicy>
iterator Rcpp::internal::const_string_proxy< RTYPE, StoragePolicy >::end ( ) const
inline

Definition at line 95 of file const_string_proxy.h.

◆ get()

◆ import()

template<int RTYPE, template< class > class StoragePolicy>
void Rcpp::internal::const_string_proxy< RTYPE, StoragePolicy >::import ( const const_string_proxy< RTYPE, StoragePolicy > & other)
inline

Definition at line 54 of file const_string_proxy.h.

◆ move()

template<int RTYPE, template< class > class StoragePolicy>
void Rcpp::internal::const_string_proxy< RTYPE, StoragePolicy >::move ( R_xlen_t n)
inline

Definition at line 88 of file const_string_proxy.h.

◆ operator char *()

template<int RTYPE, template< class > class StoragePolicy>
Rcpp::internal::const_string_proxy< RTYPE, StoragePolicy >::operator char * ( ) const
inline

rhs use. Retrieves the current value of the element this proxy refers to and convert it to a C string

Definition at line 72 of file const_string_proxy.h.

◆ operator SEXP()

template<int RTYPE, template< class > class StoragePolicy>
Rcpp::internal::const_string_proxy< RTYPE, StoragePolicy >::operator SEXP ( ) const
inline

rhs use. Retrieves the current value of the element this proxy refers to.

Definition at line 63 of file const_string_proxy.h.

◆ operator!=() [1/3]

template<int RTYPE, template< class > class StoragePolicy>
bool Rcpp::internal::const_string_proxy< RTYPE, StoragePolicy >::operator!= ( const char * other)
inline

Definition at line 103 of file const_string_proxy.h.

◆ operator!=() [2/3]

template<int RTYPE, template< class > class StoragePolicy>
bool Rcpp::internal::const_string_proxy< RTYPE, StoragePolicy >::operator!= ( const const_string_proxy< RTYPE, StoragePolicy > & other)
inline

Definition at line 110 of file const_string_proxy.h.

◆ operator!=() [3/3]

template<int RTYPE, template< class > class StoragePolicy>
bool Rcpp::internal::const_string_proxy< RTYPE, StoragePolicy >::operator!= ( SEXP other) const
inline

Definition at line 118 of file const_string_proxy.h.

◆ operator==() [1/3]

template<int RTYPE, template< class > class StoragePolicy>
bool Rcpp::internal::const_string_proxy< RTYPE, StoragePolicy >::operator== ( const char * other)
inline

Definition at line 100 of file const_string_proxy.h.

◆ operator==() [2/3]

template<int RTYPE, template< class > class StoragePolicy>
bool Rcpp::internal::const_string_proxy< RTYPE, StoragePolicy >::operator== ( const const_string_proxy< RTYPE, StoragePolicy > & other)
inline

Definition at line 107 of file const_string_proxy.h.

◆ operator==() [3/3]

template<int RTYPE, template< class > class StoragePolicy>
bool Rcpp::internal::const_string_proxy< RTYPE, StoragePolicy >::operator== ( SEXP other) const
inline

Definition at line 114 of file const_string_proxy.h.

◆ operator[]()

template<int RTYPE, template< class > class StoragePolicy>
reference Rcpp::internal::const_string_proxy< RTYPE, StoragePolicy >::operator[] ( R_xlen_t n)
inline

Definition at line 98 of file const_string_proxy.h.

◆ size()

template<int RTYPE, template< class > class StoragePolicy>
R_xlen_t Rcpp::internal::const_string_proxy< RTYPE, StoragePolicy >::size ( ) const
inline

◆ operator+

template<int RTYPE, template< class > class StoragePolicy>
template<int RT, template< class > class StoragePolicy_>
std::string operator+ ( const std::string & x,
const const_string_proxy< RT, StoragePolicy_ > & proxy )
friend

◆ operator<<

template<int RTYPE, template< class > class StoragePolicy>
template<int RT, template< class > class StoragePolicy_>
std::ostream & operator<< ( std::ostream & os,
const const_string_proxy< RT, StoragePolicy_ > & proxy )
friend

Prints the element this proxy refers to to an output stream

Member Data Documentation

◆ buffer

template<int RTYPE, template< class > class StoragePolicy>
std::string Rcpp::internal::const_string_proxy< RTYPE, StoragePolicy >::buffer
staticprivate

Definition at line 123 of file const_string_proxy.h.

◆ index

template<int RTYPE, template< class > class StoragePolicy>
R_xlen_t Rcpp::internal::const_string_proxy< RTYPE, StoragePolicy >::index

Definition at line 87 of file const_string_proxy.h.

◆ parent

template<int RTYPE, template< class > class StoragePolicy>
const VECTOR* Rcpp::internal::const_string_proxy< RTYPE, StoragePolicy >::parent

Definition at line 86 of file const_string_proxy.h.


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