|
Rcpp Version 1.0.14
|
#include <DottedPairImpl.h>
Public Member Functions | |
| template<typename T > | |
| void | push_back (const T &object) |
| template<typename T > | |
| void | push_front (const T &object) |
| template<typename T > | |
| void | insert (const size_t &index, const T &object) |
| template<typename T > | |
| void | replace (const int &index, const T &object) |
| R_xlen_t | length () const |
| R_xlen_t | size () const |
| void | remove (const size_t &index) |
Friends | |
| template<typename T > | |
| DottedPairImpl & | operator<< (DottedPairImpl &os, const T &t) |
| template<typename T > | |
| DottedPairImpl & | operator>> (const T &t, DottedPairImpl &s) |
Definition at line 24 of file DottedPairImpl.h.
| void Rcpp::DottedPairImpl< CLASS >::insert | ( | const size_t & | index, |
| const T & | object | ||
| ) |
insert an object at the given position, pushing other objects to the tail of the list
| index | index (0-based) where to insert |
| object | object to wrap |
Definition at line 49 of file DottedPairImpl.h.
References Rcpp::as(), Rcpp::grow(), Rcpp::push_front(), and Rcpp::tail().

|
inline |
Definition at line 66 of file DottedPairImpl.h.
References Rcpp::as().

| void Rcpp::DottedPairImpl< CLASS >::push_back | ( | const T & | object | ) |
wraps an object and add it at the end of the pairlist (this require traversing the entire pairlist)
| object | anything that can be wrapped by one of the wrap functions, named objects (instances of traits::named_object<> are treated specially |
Definition at line 32 of file DottedPairImpl.h.
References Rcpp::as(), Rcpp::grow(), and Rcpp::tail().

| void Rcpp::DottedPairImpl< CLASS >::push_front | ( | const T & | object | ) |
wraps an object and add it in front of the pairlist.
| object | anything that can be wrapped by one of the wrap functions, or an object of class Named |
Definition at line 25 of file DottedPairImpl.h.
References Rcpp::as(), and Rcpp::grow().

Remove the element at the given position
| index | position where the element is to be removed |
Definition at line 101 of file DottedPairImpl.h.
References Rcpp::as().

| void Rcpp::DottedPairImpl< CLASS >::replace | ( | const int & | index, |
| const T & | object | ||
| ) |
replaces an element of the list
| index | position |
| object | object that can be wrapped |
Definition at line 80 of file DottedPairImpl.h.
References Rcpp::as(), and Rcpp::pairlist().

|
inline |
Definition at line 70 of file DottedPairImpl.h.
References Rcpp::as().

|
friend |
Definition at line 82 of file DottedPairImpl.h.
|
friend |
Definition at line 88 of file DottedPairImpl.h.