Rcpp Version 1.1.2
Loading...
Searching...
No Matches
Rcpp::DataFrame_Impl< StoragePolicy > Class Template Reference

#include <DataFrame.h>

Inheritance diagram for Rcpp::DataFrame_Impl< StoragePolicy >:
Collaboration diagram for Rcpp::DataFrame_Impl< StoragePolicy >:

Public Types

typedef Vector< VECSXP, StoragePolicy > Parent
Public Types inherited from Rcpp::Vector< VECSXP, StoragePolicy >
typedef StoragePolicy< VectorStorage
typedef traits::r_vector_proxy< RTYPE, StoragePolicy >::type Proxy
typedef traits::r_vector_const_proxy< RTYPE, StoragePolicy >::type const_Proxy
typedef traits::r_vector_name_proxy< RTYPE, StoragePolicy >::type NameProxy
typedef traits::r_vector_proxy< RTYPE, StoragePolicy >::type value_type
typedef traits::r_vector_iterator< RTYPE, StoragePolicy >::type iterator
typedef traits::r_vector_const_iterator< RTYPE, StoragePolicy >::type const_iterator
typedef traits::init_type< RTYPE >::type init_type
typedef traits::r_vector_element_converter< RTYPE >::type converter_type
typedef traits::storage_type< RTYPE >::type stored_type
typedef internal::RangeIndexer< RTYPE, true, VectorIndexer
Public Types inherited from Rcpp::VectorBase< RTYPE, na, VECTOR >
typedef traits::storage_type< RTYPE >::type stored_type
typedef traits::storage_type< RTYPE >::type elem_type
typedef iter_base< iter_traitsiterator
typedef iter_base< const_iter_traitsconst_iterator

Public Member Functions

 DataFrame_Impl ()
 DataFrame_Impl (SEXP x)
 DataFrame_Impl (const DataFrame_Impl &other)
template<typename T>
 DataFrame_Impl (const T &obj)
DataFrame_Imploperator= (DataFrame_Impl &other)
DataFrame_Imploperator= (SEXP x)
R_xlen_t nrow () const
template<typename T>
void push_back (const T &object)
template<typename T>
void push_back (const T &object, const std::string &name)
template<typename T>
void push_front (const T &object)
template<typename T>
void push_front (const T &object, const std::string &name)
R_xlen_t nrows () const
R_xlen_t rows () const
R_xlen_t ncol () const
R_xlen_t cols () const
Public Member Functions inherited from Rcpp::Vector< VECSXP, StoragePolicy >
 Vector ()
 Vector (const Vector &other)
Vectoroperator= (const Vector &rhs)
 Vector (SEXP x)
 Vector (const GenericProxy< Proxy > &proxy)
 Vector (const no_init_vector &obj)
 Vector (const T &size, const stored_type &u, typename Rcpp::traits::enable_if< traits::is_arithmetic< T >::value, void >::type *=0)
 Vector (const int &size, const stored_type &u)
 Vector (const std::string &st)
 Vector (const char *st)
 Vector (const T &siz, stored_type(*gen)(void), typename Rcpp::traits::enable_if< traits::is_arithmetic< T >::value, void >::type *=0)
 Vector (T size, typename Rcpp::traits::enable_if< traits::is_arithmetic< T >::value, void >::type *=0)
 Vector (const int &size)
 Vector (const Dimension &dims)
 Vector (T value, typename Rcpp::traits::enable_if< traits::is_bool< T >::value &&RTYPE==LGLSXP, void >::type *=0)
 Vector (const Dimension &dims, const U &u)
 Vector (const VectorBase< RTYPE, NA, VEC > &other)
 Vector (const T &size, const U &u, typename Rcpp::traits::enable_if< traits::is_arithmetic< T >::value, void >::type *=0)
 Vector (const sugar::SingleLogicalResult< NA, T > &obj)
 Vector (const T &siz, stored_type(*gen)(U1), const U1 &u1, typename Rcpp::traits::enable_if< traits::is_arithmetic< T >::value, void >::type *=0)
 Vector (const T &siz, stored_type(*gen)(U1, U2), const U1 &u1, const U2 &u2, typename Rcpp::traits::enable_if< traits::is_arithmetic< T >::value, void >::type *=0)
 Vector (const T &siz, stored_type(*gen)(U1, U2, U3), const U1 &u1, const U2 &u2, const U3 &u3, typename Rcpp::traits::enable_if< traits::is_arithmetic< T >::value, void >::type *=0)
 Vector (InputIterator first, InputIterator last)
 Vector (InputIterator first, InputIterator last, T n, typename Rcpp::traits::enable_if< traits::is_arithmetic< T >::value, void >::type *=0)
 Vector (InputIterator first, InputIterator last, Func func)
 Vector (InputIterator first, InputIterator last, Func func, T n, typename Rcpp::traits::enable_if< traits::is_arithmetic< T >::value, void >::type *=0)
 Vector (std::initializer_list< init_type > list)
Vectoroperator= (const T &x)
R_xlen_t length () const
R_xlen_t size () const
R_xlen_t offset (const int &i, const int &j) const
R_xlen_t offset (const R_xlen_t &i) const
R_xlen_t offset (const std::string &name) const
void fill (const U &u)
iterator begin ()
iterator end ()
const_iterator begin () const
const_iterator end () const
const_iterator cbegin () const
const_iterator cend () const
Proxy operator[] (R_xlen_t i)
const_Proxy operator[] (R_xlen_t i) const
std::enable_if< std::is_integral< T >::value &&!std::is_same< T, R_xlen_t >::value, Proxy >::type operator[] (T i)
std::enable_if< std::is_integral< T >::value &&!std::is_same< T, R_xlen_t >::value, const_Proxy >::type operator[] (T i) const
Proxy operator() (const size_t &i)
const_Proxy operator() (const size_t &i) const
Proxy at (const size_t &i)
const_Proxy at (const size_t &i) const
Proxy operator() (const size_t &i, const size_t &j)
const_Proxy operator() (const size_t &i, const size_t &j) const
NameProxy operator[] (const std::string &name)
NameProxy operator() (const std::string &name)
NameProxy operator[] (const std::string &name) const
NameProxy operator() (const std::string &name) const
 operator RObject () const
SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T > operator[] (const VectorBase< RHS_RTYPE, RHS_NA, RHS_T > &rhs)
const SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T > operator[] (const VectorBase< RHS_RTYPE, RHS_NA, RHS_T > &rhs) const
Vectorsort (bool decreasing=false)
void assign (InputIterator first, InputIterator last)
void push_back (const T &object)
void push_back (const T &object, const std::string &name)
void push_front (const T &object)
void push_front (const T &object, const std::string &name)
iterator insert (iterator position, const T &object)
iterator insert (int position, const T &object)
iterator erase (int position)
iterator erase (iterator position)
iterator erase (int first, int last)
iterator erase (iterator first, iterator last)
void update (SEXP)
Indexer operator[] (const Range &range)
Vectoroperator+= (const VectorBase< RTYPE, true, EXPR_VEC > &rhs)
Vectoroperator+= (const VectorBase< RTYPE, false, EXPR_VEC > &rhs)
bool containsElementNamed (const char *target) const
R_xlen_t findName (const std::string &name) const
SEXP eval () const
SEXP eval (SEXP env) const
Public Member Functions inherited from Rcpp::SlotProxyPolicy< CLASS >
SlotProxy slot (const std::string &name)
const_SlotProxy slot (const std::string &name) const
bool hasSlot (const std::string &name) const
Public Member Functions inherited from Rcpp::AttributeProxyPolicy< CLASS >
AttributeProxy attr (const std::string &name)
const_AttributeProxy attr (const std::string &name) const
std::vector< std::string > attributeNames () const
bool hasAttribute (const std::string &attr) const
Public Member Functions inherited from Rcpp::NamesProxyPolicy< CLASS >
NamesProxy names ()
const_NamesProxy names () const
Public Member Functions inherited from Rcpp::RObjectMethods< Class >
bool isNULL () const
int sexp_type () const
bool isObject () const
bool isS4 () const
Public Member Functions inherited from Rcpp::VectorBase< RTYPE, na, VECTOR >
VECTOR & get_ref ()
const VECTOR & get_ref () const
stored_type operator[] (R_xlen_t i) const
R_xlen_t size () const
const_iterator begin () const
const_iterator end () const
const_iterator cbegin () const
const_iterator cend () const

Static Public Member Functions

static DataFrame_Impl create ()
template<typename... T>
static DataFrame_Impl create (const T &... args)
Static Public Member Functions inherited from Rcpp::Vector< VECSXP, StoragePolicy >
static stored_type get_na ()
static bool is_na (stored_type x)
static Vector import (InputIterator first, InputIterator last)
static Vector import_transform (InputIterator first, InputIterator last, F f)
static void replace_element (iterator it, SEXP names, R_xlen_t index, const U &u)
static void replace_element__dispatch (traits::false_type, iterator it, SEXP names, R_xlen_t index, const U &u)
static void replace_element__dispatch (traits::true_type, iterator it, SEXP names, R_xlen_t index, const U &u)
static void replace_element__dispatch__isArgument (traits::false_type, iterator it, SEXP names, R_xlen_t index, const U &u)
static void replace_element__dispatch__isArgument (traits::true_type, iterator it, SEXP names, R_xlen_t index, const U &u)
static Vector create ()
static Vector create (const T &... t)

Private Member Functions

void set__ (SEXP x)
void set_type_after_push ()

Static Private Member Functions

static DataFrame_Impl from_list (Parent obj)

Additional Inherited Members

Public Attributes inherited from Rcpp::Vector< VECSXP, StoragePolicy >
traits::r_vector_cache_type< RTYPE, StoragePolicy >::type cache
Protected Member Functions inherited from Rcpp::Vector< VECSXP, StoragePolicy >
int * dims () const
void init ()

Detailed Description

template<template< class > class StoragePolicy>
class Rcpp::DataFrame_Impl< StoragePolicy >

Definition at line 37 of file DataFrame.h.

Member Typedef Documentation

◆ Parent

template<template< class > class StoragePolicy>
typedef Vector<VECSXP, StoragePolicy> Rcpp::DataFrame_Impl< StoragePolicy >::Parent

Definition at line 39 of file DataFrame.h.

Constructor & Destructor Documentation

◆ DataFrame_Impl() [1/4]

template<template< class > class StoragePolicy>
Rcpp::DataFrame_Impl< StoragePolicy >::DataFrame_Impl ( )
inline

◆ DataFrame_Impl() [2/4]

template<template< class > class StoragePolicy>
Rcpp::DataFrame_Impl< StoragePolicy >::DataFrame_Impl ( SEXP x)
inline

Definition at line 42 of file DataFrame.h.

◆ DataFrame_Impl() [3/4]

template<template< class > class StoragePolicy>
Rcpp::DataFrame_Impl< StoragePolicy >::DataFrame_Impl ( const DataFrame_Impl< StoragePolicy > & other)
inline

Definition at line 45 of file DataFrame.h.

◆ DataFrame_Impl() [4/4]

template<template< class > class StoragePolicy>
template<class T>
Rcpp::DataFrame_Impl< StoragePolicy >::DataFrame_Impl ( const T & obj)

Definition at line 25 of file DataFrame.h.

References set__(), and Rcpp::wrap().

Here is the call graph for this function:

Member Function Documentation

◆ cols()

template<template< class > class StoragePolicy>
R_xlen_t Rcpp::DataFrame_Impl< StoragePolicy >::cols ( ) const
inline

Definition at line 106 of file DataFrame.h.

◆ create() [1/2]

template<template< class > class StoragePolicy>
DataFrame_Impl Rcpp::DataFrame_Impl< StoragePolicy >::create ( )
inlinestatic

Definition at line 108 of file DataFrame.h.

◆ create() [2/2]

template<template< class > class StoragePolicy>
template<typename... T>
DataFrame_Impl Rcpp::DataFrame_Impl< StoragePolicy >::create ( const T &... args)
inlinestatic

Definition at line 112 of file DataFrame.h.

◆ from_list()

template<template< class > class StoragePolicy>
DataFrame_Impl Rcpp::DataFrame_Impl< StoragePolicy >::from_list ( Parent obj)
inlinestaticprivate

Definition at line 151 of file DataFrame.h.

Referenced by Rcpp::DataFrame_Impl< PreserveStorage >::create().

◆ ncol()

template<template< class > class StoragePolicy>
R_xlen_t Rcpp::DataFrame_Impl< StoragePolicy >::ncol ( ) const
inline

Definition at line 105 of file DataFrame.h.

◆ nrow()

template<template< class > class StoragePolicy>
R_xlen_t Rcpp::DataFrame_Impl< StoragePolicy >::nrow ( ) const
inline

◆ nrows()

template<template< class > class StoragePolicy>
R_xlen_t Rcpp::DataFrame_Impl< StoragePolicy >::nrows ( ) const
inline

Definition at line 102 of file DataFrame.h.

◆ operator=() [1/2]

template<template< class > class StoragePolicy>
DataFrame_Impl & Rcpp::DataFrame_Impl< StoragePolicy >::operator= ( DataFrame_Impl< StoragePolicy > & other)
inline

Definition at line 52 of file DataFrame.h.

◆ operator=() [2/2]

template<template< class > class StoragePolicy>
DataFrame_Impl & Rcpp::DataFrame_Impl< StoragePolicy >::operator= ( SEXP x)
inline

Definition at line 57 of file DataFrame.h.

◆ push_back() [1/2]

template<template< class > class StoragePolicy>
template<typename T>
void Rcpp::DataFrame_Impl< StoragePolicy >::push_back ( const T & object)
inline

Definition at line 78 of file DataFrame.h.

◆ push_back() [2/2]

template<template< class > class StoragePolicy>
template<typename T>
void Rcpp::DataFrame_Impl< StoragePolicy >::push_back ( const T & object,
const std::string & name )
inline

Definition at line 84 of file DataFrame.h.

◆ push_front() [1/2]

template<template< class > class StoragePolicy>
template<typename T>
void Rcpp::DataFrame_Impl< StoragePolicy >::push_front ( const T & object)
inline

Definition at line 90 of file DataFrame.h.

◆ push_front() [2/2]

template<template< class > class StoragePolicy>
template<typename T>
void Rcpp::DataFrame_Impl< StoragePolicy >::push_front ( const T & object,
const std::string & name )
inline

Definition at line 96 of file DataFrame.h.

◆ rows()

template<template< class > class StoragePolicy>
R_xlen_t Rcpp::DataFrame_Impl< StoragePolicy >::rows ( ) const
inline

Definition at line 103 of file DataFrame.h.

◆ set__()

◆ set_type_after_push()

template<template< class > class StoragePolicy>
void Rcpp::DataFrame_Impl< StoragePolicy >::set_type_after_push ( )
inlineprivate

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