Rcpp Version 1.0.9
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< T >
NamesProxy names ()
 
const_NamesProxy names () const
 
- Public Member Functions inherited from Rcpp::AttributeProxyPolicy< T >
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::RObjectMethods< 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 26 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 34 of file ListOf.h.

◆ iterator

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

Definition at line 33 of file ListOf.h.

Constructor & Destructor Documentation

◆ ListOf() [1/4]

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

Definition at line 36 of file ListOf.h.

◆ ListOf() [2/4]

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

Definition at line 38 of file ListOf.h.

References Rcpp::Vector< RTYPE, StoragePolicy >::begin(), Rcpp::Vector< RTYPE, StoragePolicy >::end(), and Rcpp::ListOf< T >::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 43 of file ListOf.h.

References Rcpp::Vector< RTYPE, StoragePolicy >::begin(), Rcpp::Vector< RTYPE, StoragePolicy >::end(), and Rcpp::ListOf< T >::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 47 of file ListOf.h.

Member Function Documentation

◆ begin() [1/2]

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

Definition at line 82 of file ListOf.h.

References Rcpp::Vector< RTYPE, StoragePolicy >::begin(), and Rcpp::ListOf< T >::list.

Here is the call graph for this function:

◆ begin() [2/2]

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

Definition at line 90 of file ListOf.h.

References Rcpp::Vector< RTYPE, StoragePolicy >::begin(), and Rcpp::ListOf< T >::list.

Here is the call graph for this function:

◆ end() [1/2]

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

Definition at line 86 of file ListOf.h.

References Rcpp::Vector< RTYPE, StoragePolicy >::end(), and Rcpp::ListOf< T >::list.

Here is the call graph for this function:

◆ end() [2/2]

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

Definition at line 94 of file ListOf.h.

References Rcpp::Vector< RTYPE, StoragePolicy >::end(), and Rcpp::ListOf< T >::list.

Here is the call graph for this function:

◆ get()

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

Definition at line 102 of file ListOf.h.

References Rcpp::ListOf< T >::list.

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

◆ operator List()

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

Definition at line 108 of file ListOf.h.

References Rcpp::ListOf< T >::list.

◆ operator SEXP()

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

Definition at line 107 of file ListOf.h.

References Rcpp::ListOf< T >::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 49 of file ListOf.h.

References Rcpp::ListOf< T >::list.

◆ operator=() [2/2]

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

Definition at line 57 of file ListOf.h.

References Rcpp::ListOf< T >::list.

◆ operator[]() [1/4]

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

Definition at line 72 of file ListOf.h.

References Rcpp::Vector< RTYPE, StoragePolicy >::findName(), and Rcpp::ListOf< T >::list.

Here is the call graph for this function:

◆ operator[]() [2/4]

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

Definition at line 76 of file ListOf.h.

References Rcpp::Vector< RTYPE, StoragePolicy >::findName(), and Rcpp::ListOf< T >::list.

Here is the call graph for this function:

◆ operator[]() [3/4]

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

Definition at line 64 of file ListOf.h.

References Rcpp::ListOf< T >::list.

◆ operator[]() [4/4]

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

Definition at line 68 of file ListOf.h.

References Rcpp::ListOf< T >::list.

◆ size()

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

Definition at line 98 of file ListOf.h.

References Rcpp::ListOf< T >::list, and Rcpp::Vector< RTYPE, StoragePolicy >::size().

Here is the call graph for this function:

Member Data Documentation

◆ list


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