Rcpp Version 0.10.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros
Rcpp::DataFrame Class Reference

#include <DataFrame.h>

Inheritance diagram for Rcpp::DataFrame:
Collaboration diagram for Rcpp::DataFrame:

Public Member Functions

 DataFrame ()
 DataFrame (SEXP x)
 DataFrame (const DataFrame &other)
 DataFrame (const RObject::SlotProxy &proxy)
 DataFrame (const RObject::AttributeProxy &proxy)
DataFrameoperator= (DataFrame &other)
DataFrameoperator= (SEXP x)
 ~DataFrame ()
int nrows () const
- Public Member Functions inherited from Vector< VECSXP >
 Vector ()
 Vector (const Vector &other)
 Vector (SEXP x)
 Vector (const RObject::SlotProxy &proxy)
 Vector (const RObject::AttributeProxy &proxy)
 Vector (const int &size, const stored_type &u)
 Vector (const std::string &st)
 Vector (const int &siz, stored_type(*gen)(void))
 Vector (const int &size)
 Vector (const Dimension &dims)
 Vector (const Dimension &dims, const U &u)
 Vector (const VectorBase< RTYPE, NA, VEC > &other)
 Vector (const int &size, const U &u)
 Vector (const sugar::SingleLogicalResult< NA, T > &obj)
 Vector (const int &siz, stored_type(*gen)(U1), const U1 &u1)
 Vector (const int &siz, stored_type(*gen)(U1, U2), const U1 &u1, const U2 &u2)
 Vector (const int &siz, stored_type(*gen)(U1, U2, U3), const U1 &u1, const U2 &u2, const U3 &u3)
 Vector (InputIterator first, InputIterator last)
 Vector (InputIterator first, InputIterator last, int n)
 Vector (InputIterator first, InputIterator last, Func func)
 Vector (InputIterator first, InputIterator last, Func func, int n)
 ~Vector ()
Vectoroperator= (const Vector &other)
Vectoroperator= (const T &x)
internal::ListInitialization
< iterator, init_type
operator= (init_type x)
R_len_t length () const
R_len_t size () const
size_t offset (const size_t &i, const size_t &j) const
size_t offset (const size_t &i) const
R_len_t offset (const std::string &name) const
void fill (const U &u)
NamesProxy names () const
iterator begin ()
const_iterator begin () const
iterator end ()
const_iterator end () const
Proxy operator[] (int i)
const_Proxy operator[] (int i) const
NameProxy operator[] (const std::string &name)
NameProxy operator[] (const std::string &name) 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
Vectorsort ()
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_vector ()
void set_sexp (SEXP x)
Vectoroperator+= (const VectorBase< RTYPE, true, EXPR_VEC > &rhs)
Vectoroperator+= (const VectorBase< RTYPE, false, EXPR_VEC > &rhs)
bool containsElementNamed (const char *target) const

Static Public Member Functions

static DataFrame create ()
- Static Public Member Functions inherited from Vector< VECSXP >
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, int index, const U &u)
static void replace_element__dispatch (traits::false_type, iterator it, SEXP names, int index, const U &u)
static void replace_element__dispatch (traits::true_type, iterator it, SEXP names, int index, const U &u)
static void replace_element__dispatch__isArgument (traits::false_type, iterator it, SEXP names, int index, const U &u)
static void replace_element__dispatch__isArgument (traits::true_type, iterator it, SEXP names, int index, const U &u)

Private Member Functions

void set_sexp (SEXP x)

Additional Inherited Members

- Public Types inherited from Vector< VECSXP >
typedef traits::r_vector_proxy
< RTYPE >::type 
Proxy
typedef
traits::r_vector_const_proxy
< RTYPE >::type 
const_Proxy
typedef
traits::r_vector_name_proxy
< RTYPE >::type 
NameProxy
typedef traits::r_vector_proxy
< RTYPE >::type 
value_type
typedef
traits::r_vector_iterator
< RTYPE >::type 
iterator
typedef
traits::r_vector_const_iterator
< RTYPE >::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, Vector
Indexer
- Protected Member Functions inherited from Vector< VECSXP >
int * dims () const
void init ()

Detailed Description

Definition at line 30 of file DataFrame.h.

Constructor & Destructor Documentation

Rcpp::DataFrame::DataFrame ( )

Definition at line 1182 of file api.cpp.

Referenced by create().

Rcpp::DataFrame::DataFrame ( SEXP  x)

Definition at line 1183 of file api.cpp.

References set_sexp().

Here is the call graph for this function:

Rcpp::DataFrame::DataFrame ( const DataFrame other)

Definition at line 1186 of file api.cpp.

Rcpp::DataFrame::DataFrame ( const RObject::SlotProxy proxy)

Definition at line 1187 of file api.cpp.

References set_sexp().

Here is the call graph for this function:

Rcpp::DataFrame::DataFrame ( const RObject::AttributeProxy proxy)

Definition at line 1188 of file api.cpp.

References set_sexp().

Here is the call graph for this function:

Rcpp::DataFrame::~DataFrame ( )

Definition at line 1199 of file api.cpp.

Member Function Documentation

static DataFrame Rcpp::DataFrame::create ( )
inlinestatic

Reimplemented from Vector< VECSXP >.

Definition at line 45 of file DataFrame.h.

References DataFrame().

Here is the call graph for this function:

int Rcpp::DataFrame::nrows ( ) const

Definition at line 1209 of file api.cpp.

DataFrame & Rcpp::DataFrame::operator= ( DataFrame other)

Definition at line 1190 of file api.cpp.

References set_sexp().

Here is the call graph for this function:

DataFrame & Rcpp::DataFrame::operator= ( SEXP  x)

Definition at line 1195 of file api.cpp.

References set_sexp().

Here is the call graph for this function:

void Rcpp::DataFrame::set_sexp ( SEXP  x)
private

Definition at line 1200 of file api.cpp.

References Rcpp::internal::convert_using_rfunction(), Vector< VECSXP >::update_vector(), and y.

Referenced by DataFrame(), and operator=().

Here is the call graph for this function:


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