Rcpp Version 1.0.9
Rcpp::newDateVector Class Reference

#include <newDateVector.h>

Inheritance diagram for Rcpp::newDateVector:
Collaboration diagram for Rcpp::newDateVector:

Public Member Functions

template<int RTYPE, bool NA, typename VEC >
 newDateVector (const VectorBase< RTYPE, NA, VEC > &vec)
 
 newDateVector (SEXP vec)
 
 newDateVector (int n)
 
std::vector< DategetDates () const
 
newDateVectoroperator= (const newDateVector &rhs)
 
- Public Member Functions inherited from Rcpp::Vector< RTYPE, StoragePolicy >
 Vector ()
 
 Vector (const Vector &other)
 
Vectoroperator= (const Vector &rhs)
 
 Vector (SEXP x)
 
template<typename Proxy >
 Vector (const GenericProxy< Proxy > &proxy)
 
 Vector (const no_init_vector &obj)
 
template<typename T >
 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)
 
template<typename T >
 Vector (const T &siz, stored_type(*gen)(void), typename Rcpp::traits::enable_if< traits::is_arithmetic< T >::value, void >::type *=0)
 
template<typename T >
 Vector (T size, typename Rcpp::traits::enable_if< traits::is_arithmetic< T >::value, void >::type *=0)
 
 Vector (const int &size)
 
 Vector (const Dimension &dims)
 
template<typename T >
 Vector (T value, typename Rcpp::traits::enable_if< traits::is_bool< T >::value &&RTYPE==LGLSXP, void >::type *=0)
 
template<typename U >
 Vector (const Dimension &dims, const U &u)
 
template<bool NA, typename VEC >
 Vector (const VectorBase< RTYPE, NA, VEC > &other)
 
template<typename T , typename U >
 Vector (const T &size, const U &u, typename Rcpp::traits::enable_if< traits::is_arithmetic< T >::value, void >::type *=0)
 
template<bool NA, typename T >
 Vector (const sugar::SingleLogicalResult< NA, T > &obj)
 
template<typename T , typename U1 >
 Vector (const T &siz, stored_type(*gen)(U1), const U1 &u1, typename Rcpp::traits::enable_if< traits::is_arithmetic< T >::value, void >::type *=0)
 
template<typename T , typename U1 , typename U2 >
 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)
 
template<typename T , typename U1 , typename U2 , typename U3 >
 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)
 
template<typename InputIterator >
 Vector (InputIterator first, InputIterator last)
 
template<typename InputIterator , typename T >
 Vector (InputIterator first, InputIterator last, T n, typename Rcpp::traits::enable_if< traits::is_arithmetic< T >::value, void >::type *=0)
 
template<typename InputIterator , typename Func >
 Vector (InputIterator first, InputIterator last, Func func)
 
template<typename InputIterator , typename Func , typename T >
 Vector (InputIterator first, InputIterator last, Func func, T n, typename Rcpp::traits::enable_if< traits::is_arithmetic< T >::value, void >::type *=0)
 
template<typename T >
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
 
template<typename U >
void fill (const U &u)
 
iterator begin ()
 
iterator end ()
 
const_iterator begin () const
 
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
 
Proxy operator() (const size_t &i)
 
const_Proxy operator() (const size_t &i) const
 
Proxy at (const size_t &i)
 
const_Proxy at (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)
 
NameProxy operator[] (const std::string &name) const
 
NameProxy operator() (const std::string &name) const
 
 operator RObject () const
 
template<int RHS_RTYPE, bool RHS_NA, typename RHS_T >
SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T > operator[] (const VectorBase< RHS_RTYPE, RHS_NA, RHS_T > &rhs)
 
template<int RHS_RTYPE, bool RHS_NA, typename RHS_T >
const SubsetProxy< RTYPE, StoragePolicy, RHS_RTYPE, RHS_NA, RHS_T > operator[] (const VectorBase< RHS_RTYPE, RHS_NA, RHS_T > &rhs) const
 
Vectorsort (bool decreasing=false)
 
template<typename InputIterator >
void assign (InputIterator first, InputIterator last)
 
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)
 
template<typename T >
iterator insert (iterator position, const T &object)
 
template<typename T >
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)
 
Indexer operator[] (const Range &range)
 
template<typename EXPR_VEC >
Vectoroperator+= (const VectorBase< RTYPE, true, EXPR_VEC > &rhs)
 
template<typename EXPR_VEC >
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::PreserveStorage< Vector< RTYPE, PreserveStorage > >
 PreserveStorage ()
 
 ~PreserveStorage ()
 
void set__ (SEXP x)
 
SEXP get__ () const
 
SEXP invalidate__ ()
 
T & copy__ (const T &other)
 
bool inherits (const char *clazz) const
 
 operator SEXP () const
 
- Public Member Functions inherited from Rcpp::SlotProxyPolicy< Vector< RTYPE, PreserveStorage > >
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< Vector< RTYPE, PreserveStorage > >
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< Vector< RTYPE, PreserveStorage > >
NamesProxy names ()
 
const_NamesProxy names () const
 
- Public Member Functions inherited from Rcpp::RObjectMethods< Vector< RTYPE, PreserveStorage > >
bool isNULL () const
 
int sexp_type () const
 
bool isObject () const
 
bool isS4 () const
 
- Public Member Functions inherited from Rcpp::VectorBase< RTYPE, true, Vector< RTYPE, PreserveStorage > >
Vector< RTYPE, PreserveStorage > & get_ref ()
 
const Vector< RTYPE, PreserveStorage > & 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
 

Private Member Functions

void setClass ()
 

Friends

std::ostream & operator<< (std::ostream &s, const newDateVector d)
 

Additional Inherited Members

- Public Types inherited from Rcpp::Vector< RTYPE, 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, true, Vector< RTYPE, PreserveStorage > >
typedef traits::storage_type< RTYPE >::type stored_type
 
typedef traits::storage_type< RTYPE >::type elem_type
 
typedef iter_base< iter_traits > iterator
 
typedef iter_base< const_iter_traits > const_iterator
 
- Static Public Member Functions inherited from Rcpp::Vector< RTYPE, StoragePolicy >
static stored_type get_na ()
 
static bool is_na (stored_type x)
 
template<typename InputIterator >
static Vector import (InputIterator first, InputIterator last)
 
template<typename InputIterator , typename F >
static Vector import_transform (InputIterator first, InputIterator last, F f)
 
template<typename U >
static void replace_element (iterator it, SEXP names, R_xlen_t index, const U &u)
 
template<typename U >
static void replace_element__dispatch (traits::false_type, iterator it, SEXP names, R_xlen_t index, const U &u)
 
template<typename U >
static void replace_element__dispatch (traits::true_type, iterator it, SEXP names, R_xlen_t index, const U &u)
 
template<typename U >
static void replace_element__dispatch__isArgument (traits::false_type, iterator it, SEXP names, R_xlen_t index, const U &u)
 
template<typename U >
static void replace_element__dispatch__isArgument (traits::true_type, iterator it, SEXP names, R_xlen_t index, const U &u)
 
static Vector create ()
 
- Public Attributes inherited from Rcpp::Vector< RTYPE, StoragePolicy >
traits::r_vector_cache_type< RTYPE, StoragePolicy >::type cache
 
- Protected Member Functions inherited from Rcpp::Vector< RTYPE, StoragePolicy >
int * dims () const
 
void init ()
 

Detailed Description

Definition at line 29 of file newDateVector.h.

Constructor & Destructor Documentation

◆ newDateVector() [1/3]

template<int RTYPE, bool NA, typename VEC >
Rcpp::newDateVector::newDateVector ( const VectorBase< RTYPE, NA, VEC > &  vec)
inline

Definition at line 32 of file newDateVector.h.

References setClass().

Here is the call graph for this function:

◆ newDateVector() [2/3]

Rcpp::newDateVector::newDateVector ( SEXP  vec)
inline

Definition at line 36 of file newDateVector.h.

References setClass().

Here is the call graph for this function:

◆ newDateVector() [3/3]

Rcpp::newDateVector::newDateVector ( int  n)
inline

Definition at line 37 of file newDateVector.h.

References setClass().

Here is the call graph for this function:

Member Function Documentation

◆ getDates()

std::vector<Date> Rcpp::newDateVector::getDates ( ) const
inline

Definition at line 39 of file newDateVector.h.

References Rcpp::Vector< RTYPE, StoragePolicy >::size().

Here is the call graph for this function:

◆ operator=()

newDateVector& Rcpp::newDateVector::operator= ( const newDateVector rhs)
inline

Definition at line 47 of file newDateVector.h.

References Rcpp::Vector< RTYPE, StoragePolicy >::operator=().

Here is the call graph for this function:

◆ setClass()

void Rcpp::newDateVector::setClass ( )
inlineprivate

Definition at line 59 of file newDateVector.h.

Referenced by newDateVector().

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  s,
const newDateVector  d 
)
friend

Definition at line 65 of file newDateVector.h.


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