Rcpp Version 1.0.9
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)
 
int 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)
 
int nrows () const
 
int 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)
 
 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)
 
Vectoroperator= (const Vector &rhs)
 
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 ()
 
const_iterator begin () const
 
iterator end ()
 
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
 
NameProxy operator[] (const std::string &name)
 
NameProxy operator[] (const std::string &name) 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
 
Indexer operator[] (const Range &range)
 
Proxy operator() (const size_t &i)
 
const_Proxy operator() (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) const
 
Proxy at (const size_t &i)
 
const_Proxy at (const size_t &i) const
 
 operator RObject () 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)
 
Vectoroperator+= (const VectorBase< RTYPE, true, EXPR_VEC > &rhs)
 
Vectoroperator+= (const VectorBase< RTYPE, false, EXPR_VEC > &rhs)
 
bool containsElementNamed (const char *target) const
 
int 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 ()
 
- 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 ()
 

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 38 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 40 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 43 of file DataFrame.h.

References Rcpp::DataFrame_Impl< StoragePolicy >::set__().

Here is the call graph for this function:

◆ DataFrame_Impl() [3/4]

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

Definition at line 46 of file DataFrame.h.

References Rcpp::DataFrame_Impl< StoragePolicy >::set__().

Here is the call graph for this function:

◆ 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 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 115 of file DataFrame.h.

References Rcpp::Vector< VECSXP, StoragePolicy >::length().

Here is the call graph for this function:

◆ create()

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

Definition at line 117 of file DataFrame.h.

References Rcpp::DataFrame_Impl< StoragePolicy >::DataFrame_Impl().

Here is the call graph for this function:

◆ from_list()

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

◆ ncol()

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

Definition at line 114 of file DataFrame.h.

References Rcpp::Vector< VECSXP, StoragePolicy >::length().

Here is the call graph for this function:

◆ nrow()

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

◆ nrows()

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

Definition at line 111 of file DataFrame.h.

References Rcpp::DataFrame_Impl< StoragePolicy >::nrow().

Here is the call graph for this function:

◆ operator=() [1/2]

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

Definition at line 53 of file DataFrame.h.

References Rcpp::DataFrame_Impl< StoragePolicy >::set__().

Here is the call graph for this function:

◆ operator=() [2/2]

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

Definition at line 58 of file DataFrame.h.

References Rcpp::DataFrame_Impl< StoragePolicy >::set__().

Here is the call graph for this function:

◆ 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 87 of file DataFrame.h.

References Rcpp::Vector< VECSXP, StoragePolicy >::push_back(), and Rcpp::DataFrame_Impl< StoragePolicy >::set_type_after_push().

Here is the call graph for this function:

◆ 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 93 of file DataFrame.h.

References Rcpp::Vector< VECSXP, StoragePolicy >::push_back(), and Rcpp::DataFrame_Impl< StoragePolicy >::set_type_after_push().

Here is the call graph for this function:

◆ 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 99 of file DataFrame.h.

References Rcpp::Vector< VECSXP, StoragePolicy >::push_front(), and Rcpp::DataFrame_Impl< StoragePolicy >::set_type_after_push().

Here is the call graph for this function:

◆ 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 105 of file DataFrame.h.

References Rcpp::Vector< VECSXP, StoragePolicy >::push_front(), and Rcpp::DataFrame_Impl< StoragePolicy >::set_type_after_push().

Here is the call graph for this function:

◆ rows()

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

Definition at line 112 of file DataFrame.h.

References Rcpp::DataFrame_Impl< StoragePolicy >::nrow().

Here is the call graph for this function:

◆ set__()

template<template< class > class StoragePolicy>
void Rcpp::DataFrame_Impl< StoragePolicy >::set__ ( SEXP  x)
inlineprivate

◆ 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 file: