Rcpp Version 0.12.12
Rcpp::internal::const_string_proxy< RTYPE > Class Template Reference

#include <00_forward_proxy.h>

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

Public Types

typedef ::Rcpp::Vector< RTYPE > 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>
std::ostream & operator<< (std::ostream &os, const const_string_proxy< RT > &proxy)
 
template<int RT>
std::string operator+ (const std::string &x, const const_string_proxy< RT > &proxy)
 

Detailed Description

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

Definition at line 29 of file 00_forward_proxy.h.

Member Typedef Documentation

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

Definition at line 32 of file const_string_proxy.h.

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

Definition at line 33 of file const_string_proxy.h.

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

Definition at line 31 of file const_string_proxy.h.

Constructor & Destructor Documentation

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

Definition at line 35 of file const_string_proxy.h.

template<int RTYPE>
Rcpp::internal::const_string_proxy< RTYPE >::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 43 of file const_string_proxy.h.

template<int RTYPE>
Rcpp::internal::const_string_proxy< RTYPE >::const_string_proxy ( SEXP  x)
inline
template<int RTYPE>
Rcpp::internal::const_string_proxy< RTYPE >::const_string_proxy ( const const_string_proxy< RTYPE > &  other)
inline

Definition at line 50 of file const_string_proxy.h.

Member Function Documentation

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

Definition at line 96 of file const_string_proxy.h.

References Rcpp::internal::const_string_proxy< RTYPE >::begin().

Here is the call graph for this function:

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

Definition at line 94 of file const_string_proxy.h.

References Rcpp::internal::const_string_proxy< RTYPE >::begin(), and Rcpp::internal::const_string_proxy< RTYPE >::size().

Here is the call graph for this function:

template<int RTYPE>
SEXP Rcpp::internal::const_string_proxy< RTYPE >::get ( ) const
inline

Definition at line 89 of file const_string_proxy.h.

Referenced by Rcpp::String::operator!=(), and Rcpp::String::operator==().

template<int RTYPE>
void Rcpp::internal::const_string_proxy< RTYPE >::import ( const const_string_proxy< RTYPE > &  other)
inline
template<int RTYPE>
void Rcpp::internal::const_string_proxy< RTYPE >::move ( R_xlen_t  n)
inline

Definition at line 87 of file const_string_proxy.h.

template<int RTYPE>
Rcpp::internal::const_string_proxy< RTYPE >::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 71 of file const_string_proxy.h.

References Rcpp::internal::const_string_proxy< RTYPE >::operator+.

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

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

Definition at line 62 of file const_string_proxy.h.

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

Definition at line 102 of file const_string_proxy.h.

References Rcpp::internal::const_string_proxy< RTYPE >::begin().

Here is the call graph for this function:

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

Definition at line 109 of file const_string_proxy.h.

References Rcpp::internal::const_string_proxy< RTYPE >::begin().

Here is the call graph for this function:

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

Definition at line 117 of file const_string_proxy.h.

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

Definition at line 99 of file const_string_proxy.h.

References Rcpp::internal::const_string_proxy< RTYPE >::begin().

Here is the call graph for this function:

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

Definition at line 106 of file const_string_proxy.h.

References Rcpp::internal::const_string_proxy< RTYPE >::begin().

Here is the call graph for this function:

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

Definition at line 113 of file const_string_proxy.h.

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

Definition at line 97 of file const_string_proxy.h.

References Rcpp::internal::const_string_proxy< RTYPE >::begin().

Here is the call graph for this function:

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

Definition at line 95 of file const_string_proxy.h.

References Rcpp::internal::const_string_proxy< RTYPE >::begin().

Referenced by Rcpp::internal::const_string_proxy< RTYPE >::end().

Here is the call graph for this function:

Friends And Related Function Documentation

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

Prints the element this proxy refers to to an output stream

Member Data Documentation

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

Definition at line 122 of file const_string_proxy.h.


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