Rcpp Version 1.1.2
Loading...
Searching...
No Matches
Rcpp::ListOf< T > Class Template Reference

#include <ListOf.h>

Inheritance diagram for Rcpp::ListOf< T >:
Collaboration diagram for Rcpp::ListOf< T >:

Public Types

typedef traits::r_vector_iterator< VECSXP >::type iterator
typedef traits::r_vector_const_iterator< VECSXP >::type const_iterator

Public Member Functions

 ListOf ()
 ListOf (SEXP data_)
template<typename U>
 ListOf (const U &data_)
 ListOf (const ListOf &other)
ListOfoperator= (const ListOf &other)
template<typename U>
ListOfoperator= (const U &other)
ChildVector< T > operator[] (R_xlen_t i)
const ChildVector< T > operator[] (R_xlen_t i) const
ChildVector< T > operator[] (const std::string &str)
const ChildVector< T > operator[] (const std::string &str) const
iterator begin ()
iterator end ()
const_iterator begin () const
const_iterator end () const
R_xlen_t size () const
List get () const
 operator SEXP () const
 operator List () const
Public Member Functions inherited from Rcpp::NamesProxyPolicy< ListOf< T > >
NamesProxy names ()
Public Member Functions inherited from Rcpp::AttributeProxyPolicy< ListOf< T > >
AttributeProxy attr (const std::string &name)
std::vector< std::string > attributeNames () const
bool hasAttribute (const std::string &attr) const
Public Member Functions inherited from Rcpp::RObjectMethods< ListOf< T > >
bool isNULL () const
int sexp_type () const
bool isObject () const
bool isS4 () const

Private Attributes

List list

Detailed Description

template<typename T>
class Rcpp::ListOf< T >

Definition at line 27 of file ListOf.h.

Member Typedef Documentation

◆ const_iterator

template<typename T>
typedef traits::r_vector_const_iterator<VECSXP>::type Rcpp::ListOf< T >::const_iterator

Definition at line 35 of file ListOf.h.

◆ iterator

template<typename T>
typedef traits::r_vector_iterator<VECSXP>::type Rcpp::ListOf< T >::iterator

Definition at line 34 of file ListOf.h.

Constructor & Destructor Documentation

◆ ListOf() [1/4]

template<typename T>
Rcpp::ListOf< T >::ListOf ( )
inline

Definition at line 37 of file ListOf.h.

References list.

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

◆ ListOf() [2/4]

template<typename T>
Rcpp::ListOf< T >::ListOf ( SEXP data_)
inline

Definition at line 39 of file ListOf.h.

References Rcpp::as(), and list.

Here is the call graph for this function:

◆ ListOf() [3/4]

template<typename T>
template<typename U>
Rcpp::ListOf< T >::ListOf ( const U & data_)
inline

Definition at line 44 of file ListOf.h.

References Rcpp::as(), and list.

Here is the call graph for this function:

◆ ListOf() [4/4]

template<typename T>
Rcpp::ListOf< T >::ListOf ( const ListOf< T > & other)
inline

Definition at line 48 of file ListOf.h.

References list, and ListOf().

Here is the call graph for this function:

Member Function Documentation

◆ begin() [1/2]

template<typename T>
iterator Rcpp::ListOf< T >::begin ( )
inline

Definition at line 83 of file ListOf.h.

References list.

◆ begin() [2/2]

template<typename T>
const_iterator Rcpp::ListOf< T >::begin ( ) const
inline

Definition at line 91 of file ListOf.h.

References list.

◆ end() [1/2]

template<typename T>
iterator Rcpp::ListOf< T >::end ( )
inline

Definition at line 87 of file ListOf.h.

References list.

◆ end() [2/2]

template<typename T>
const_iterator Rcpp::ListOf< T >::end ( ) const
inline

Definition at line 95 of file ListOf.h.

References list.

◆ get()

template<typename T>
List Rcpp::ListOf< T >::get ( ) const
inline

Definition at line 103 of file ListOf.h.

References list.

Referenced by Rcpp::lapply(), and Rcpp::sapply().

◆ operator List()

template<typename T>
Rcpp::ListOf< T >::operator List ( ) const
inline

Definition at line 109 of file ListOf.h.

References list.

◆ operator SEXP()

template<typename T>
Rcpp::ListOf< T >::operator SEXP ( ) const
inline

Definition at line 108 of file ListOf.h.

References list, and Rcpp::wrap().

Here is the call graph for this function:

◆ operator=() [1/2]

template<typename T>
ListOf & Rcpp::ListOf< T >::operator= ( const ListOf< T > & other)
inline

Definition at line 50 of file ListOf.h.

References list, and ListOf().

Here is the call graph for this function:

◆ operator=() [2/2]

template<typename T>
template<typename U>
ListOf & Rcpp::ListOf< T >::operator= ( const U & other)
inline

Definition at line 58 of file ListOf.h.

References Rcpp::as(), list, and ListOf().

Here is the call graph for this function:

◆ operator[]() [1/4]

template<typename T>
ChildVector< T > Rcpp::ListOf< T >::operator[] ( const std::string & str)
inline

Definition at line 73 of file ListOf.h.

References list.

◆ operator[]() [2/4]

template<typename T>
const ChildVector< T > Rcpp::ListOf< T >::operator[] ( const std::string & str) const
inline

Definition at line 77 of file ListOf.h.

References list.

◆ operator[]() [3/4]

template<typename T>
ChildVector< T > Rcpp::ListOf< T >::operator[] ( R_xlen_t i)
inline

Definition at line 65 of file ListOf.h.

References list.

◆ operator[]() [4/4]

template<typename T>
const ChildVector< T > Rcpp::ListOf< T >::operator[] ( R_xlen_t i) const
inline

Definition at line 69 of file ListOf.h.

References list.

◆ size()

template<typename T>
R_xlen_t Rcpp::ListOf< T >::size ( ) const
inline

Definition at line 99 of file ListOf.h.

References list.

Member Data Documentation

◆ list


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