Rcpp Version 1.0.9
|
#include <const_string_proxy.h>
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 VECTOR * | parent |
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) |
Definition at line 29 of file const_string_proxy.h.
typedef const char* Rcpp::internal::const_string_proxy< RTYPE, StoragePolicy >::iterator |
Definition at line 33 of file const_string_proxy.h.
typedef const char& Rcpp::internal::const_string_proxy< RTYPE, StoragePolicy >::reference |
Definition at line 34 of file const_string_proxy.h.
typedef ::Rcpp::Vector<RTYPE, StoragePolicy> Rcpp::internal::const_string_proxy< RTYPE, StoragePolicy >::VECTOR |
Definition at line 32 of file const_string_proxy.h.
|
inline |
Definition at line 36 of file const_string_proxy.h.
|
inline |
Creates a proxy
v | reference to the associated character vector |
index | index |
Definition at line 44 of file const_string_proxy.h.
|
inline |
Definition at line 46 of file const_string_proxy.h.
References Rcpp::internal::const_string_proxy< RTYPE, StoragePolicy >::parent.
|
inline |
Definition at line 51 of file const_string_proxy.h.
|
inline |
Definition at line 94 of file const_string_proxy.h.
References Rcpp::internal::const_string_proxy< RTYPE, StoragePolicy >::index, and Rcpp::internal::const_string_proxy< RTYPE, StoragePolicy >::parent.
Referenced by Rcpp::internal::const_string_proxy< RTYPE, StoragePolicy >::empty(), Rcpp::internal::const_string_proxy< RTYPE, StoragePolicy >::end(), Rcpp::internal::const_string_proxy< RTYPE, StoragePolicy >::operator!=(), Rcpp::internal::operator<(), Rcpp::internal::operator<=(), Rcpp::internal::const_string_proxy< RTYPE, StoragePolicy >::operator==(), Rcpp::internal::operator>(), Rcpp::internal::operator>=(), Rcpp::internal::const_string_proxy< RTYPE, StoragePolicy >::operator[](), and Rcpp::internal::const_string_proxy< RTYPE, StoragePolicy >::size().
|
inline |
Definition at line 97 of file const_string_proxy.h.
References Rcpp::internal::const_string_proxy< RTYPE, StoragePolicy >::begin().
|
inline |
Definition at line 95 of file const_string_proxy.h.
References Rcpp::internal::const_string_proxy< RTYPE, StoragePolicy >::begin(), and Rcpp::internal::const_string_proxy< RTYPE, StoragePolicy >::size().
|
inline |
Definition at line 90 of file const_string_proxy.h.
References Rcpp::internal::const_string_proxy< RTYPE, StoragePolicy >::index, and Rcpp::internal::const_string_proxy< RTYPE, StoragePolicy >::parent.
Referenced by Rcpp::internal::const_string_proxy< RTYPE, StoragePolicy >::operator char *(), Rcpp::internal::const_string_proxy< RTYPE, StoragePolicy >::operator SEXP(), Rcpp::String::operator!=(), Rcpp::internal::const_string_proxy< RTYPE, StoragePolicy >::operator!=(), Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::operator=(), Rcpp::String::operator==(), and Rcpp::internal::const_string_proxy< RTYPE, StoragePolicy >::operator==().
|
inline |
Definition at line 54 of file const_string_proxy.h.
References Rcpp::internal::const_string_proxy< RTYPE, StoragePolicy >::index, and Rcpp::internal::const_string_proxy< RTYPE, StoragePolicy >::parent.
|
inline |
Definition at line 88 of file const_string_proxy.h.
References Rcpp::internal::const_string_proxy< RTYPE, StoragePolicy >::index.
|
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.
References Rcpp::internal::const_string_proxy< RTYPE, StoragePolicy >::get().
|
inline |
rhs use. Retrieves the current value of the element this proxy refers to.
Definition at line 63 of file const_string_proxy.h.
References Rcpp::internal::const_string_proxy< RTYPE, StoragePolicy >::get().
|
inline |
Definition at line 103 of file const_string_proxy.h.
References Rcpp::internal::const_string_proxy< RTYPE, StoragePolicy >::begin().
|
inline |
Definition at line 110 of file const_string_proxy.h.
References Rcpp::internal::const_string_proxy< RTYPE, StoragePolicy >::begin().
|
inline |
Definition at line 118 of file const_string_proxy.h.
References Rcpp::internal::const_string_proxy< RTYPE, StoragePolicy >::get().
|
inline |
Definition at line 100 of file const_string_proxy.h.
References Rcpp::internal::const_string_proxy< RTYPE, StoragePolicy >::begin().
|
inline |
Definition at line 107 of file const_string_proxy.h.
References Rcpp::internal::const_string_proxy< RTYPE, StoragePolicy >::begin().
|
inline |
Definition at line 114 of file const_string_proxy.h.
References Rcpp::internal::const_string_proxy< RTYPE, StoragePolicy >::get().
|
inline |
Definition at line 98 of file const_string_proxy.h.
References Rcpp::internal::const_string_proxy< RTYPE, StoragePolicy >::begin().
|
inline |
Definition at line 96 of file const_string_proxy.h.
References Rcpp::internal::const_string_proxy< RTYPE, StoragePolicy >::begin().
Referenced by Rcpp::internal::const_string_proxy< RTYPE, StoragePolicy >::end().
|
friend |
|
friend |
Prints the element this proxy refers to to an output stream
|
staticprivate |
Definition at line 123 of file const_string_proxy.h.
R_xlen_t Rcpp::internal::const_string_proxy< RTYPE, StoragePolicy >::index |
Definition at line 87 of file const_string_proxy.h.
Referenced by Rcpp::internal::const_string_proxy< RTYPE, StoragePolicy >::begin(), Rcpp::internal::const_string_proxy< RTYPE, StoragePolicy >::get(), Rcpp::internal::const_string_proxy< RTYPE, StoragePolicy >::import(), and Rcpp::internal::const_string_proxy< RTYPE, StoragePolicy >::move().
const VECTOR* Rcpp::internal::const_string_proxy< RTYPE, StoragePolicy >::parent |
Definition at line 86 of file const_string_proxy.h.
Referenced by Rcpp::internal::const_string_proxy< RTYPE, StoragePolicy >::begin(), Rcpp::internal::const_string_proxy< RTYPE, StoragePolicy >::const_string_proxy(), Rcpp::internal::const_string_proxy< RTYPE, StoragePolicy >::get(), and Rcpp::internal::const_string_proxy< RTYPE, StoragePolicy >::import().