Rcpp Version 1.1.2
Loading...
Searching...
No Matches
Rcpp::newDatetimeVector Class Reference

#include <newDatetimeVector.h>

Inheritance diagram for Rcpp::newDatetimeVector:
Collaboration diagram for Rcpp::newDatetimeVector:

Public Member Functions

 newDatetimeVector (const char *tz="")
template<int RTYPE, bool NA, typename VEC>
 newDatetimeVector (const VectorBase< RTYPE, NA, VEC > &other, const char *tz="")
 newDatetimeVector (SEXP vec, const char *tz="")
 newDatetimeVector (int n, const char *tz="")
std::vector< DatetimegetDatetimes () const
newDatetimeVectoroperator= (const newDatetimeVector &rhs)
Public Member Functions inherited from Rcpp::Vector< REALSXP >
 Vector ()
 Vector (const Vector &other)
Vectoroperator= (const Vector &rhs)
 Vector (SEXP x)
 Vector (const GenericProxy< Proxy > &proxy)
 Vector (const no_init_vector &obj)
 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)
 Vector (const T &siz, stored_type(*gen)(void), typename Rcpp::traits::enable_if< traits::is_arithmetic< T >::value, void >::type *=0)
 Vector (T size, typename Rcpp::traits::enable_if< traits::is_arithmetic< T >::value, void >::type *=0)
 Vector (const int &size)
 Vector (const Dimension &dims)
 Vector (T value, typename Rcpp::traits::enable_if< traits::is_bool< T >::value &&RTYPE==LGLSXP, void >::type *=0)
 Vector (const Dimension &dims, const U &u)
 Vector (const VectorBase< RTYPE, NA, VEC > &other)
 Vector (const T &size, const U &u, typename Rcpp::traits::enable_if< traits::is_arithmetic< T >::value, void >::type *=0)
 Vector (const sugar::SingleLogicalResult< NA, T > &obj)
 Vector (const T &siz, stored_type(*gen)(U1), const U1 &u1, typename Rcpp::traits::enable_if< traits::is_arithmetic< T >::value, void >::type *=0)
 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)
 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)
 Vector (InputIterator first, InputIterator last)
 Vector (InputIterator first, InputIterator last, T n, typename Rcpp::traits::enable_if< traits::is_arithmetic< T >::value, void >::type *=0)
 Vector (InputIterator first, InputIterator last, Func func)
 Vector (InputIterator first, InputIterator last, Func func, T n, typename Rcpp::traits::enable_if< traits::is_arithmetic< T >::value, void >::type *=0)
 Vector (std::initializer_list< init_type > list)
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
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
std::enable_if< std::is_integral< T >::value &&!std::is_same< T, R_xlen_t >::value, Proxy >::type operator[] (T i)
std::enable_if< std::is_integral< T >::value &&!std::is_same< T, R_xlen_t >::value, const_Proxy >::type operator[] (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
SubsetProxy< RTYPE, PreserveStorage, RHS_RTYPE, RHS_NA, RHS_T > operator[] (const VectorBase< RHS_RTYPE, RHS_NA, RHS_T > &rhs)
const SubsetProxy< RTYPE, PreserveStorage, RHS_RTYPE, RHS_NA, RHS_T > operator[] (const VectorBase< RHS_RTYPE, RHS_NA, RHS_T > &rhs) const
Vectorsort (bool decreasing=false)
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 (SEXP)
Indexer operator[] (const Range &range)
Vectoroperator+= (const VectorBase< RTYPE, true, EXPR_VEC > &rhs)
Vectoroperator+= (const VectorBase< RTYPE, false, EXPR_VEC > &rhs)
bool containsElementNamed (const char *target) const
R_xlen_t 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)
bool hasSlot (const std::string &name) const
Public Member Functions inherited from Rcpp::AttributeProxyPolicy< Vector< RTYPE, PreserveStorage > >
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::NamesProxyPolicy< Vector< RTYPE, PreserveStorage > >
NamesProxy names ()
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 ()
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 (const char *tz)

Friends

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

Additional Inherited Members

Public Types inherited from Rcpp::Vector< REALSXP >
typedef PreserveStorage< VectorStorage
typedef traits::r_vector_proxy< RTYPE, PreserveStorage >::type Proxy
typedef traits::r_vector_const_proxy< RTYPE, PreserveStorage >::type const_Proxy
typedef traits::r_vector_name_proxy< RTYPE, PreserveStorage >::type NameProxy
typedef traits::r_vector_proxy< RTYPE, PreserveStorage >::type value_type
typedef traits::r_vector_iterator< RTYPE, PreserveStorage >::type iterator
typedef traits::r_vector_const_iterator< RTYPE, PreserveStorage >::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< REALSXP >
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, R_xlen_t index, const U &u)
static void replace_element__dispatch (traits::false_type, iterator it, SEXP names, R_xlen_t index, const U &u)
static void replace_element__dispatch (traits::true_type, iterator it, SEXP names, R_xlen_t index, const U &u)
static void replace_element__dispatch__isArgument (traits::false_type, iterator it, SEXP names, R_xlen_t index, const U &u)
static void replace_element__dispatch__isArgument (traits::true_type, iterator it, SEXP names, R_xlen_t index, const U &u)
static Vector create ()
static Vector create (const T &... t)
Public Attributes inherited from Rcpp::Vector< REALSXP >
traits::r_vector_cache_type< RTYPE, PreserveStorage >::type cache
Protected Member Functions inherited from Rcpp::Vector< REALSXP >
int * dims () const
void init ()

Detailed Description

Definition at line 29 of file newDatetimeVector.h.

Constructor & Destructor Documentation

◆ newDatetimeVector() [1/4]

Rcpp::newDatetimeVector::newDatetimeVector ( const char * tz = "")
inline

Definition at line 31 of file newDatetimeVector.h.

References setClass().

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

Here is the call graph for this function:

◆ newDatetimeVector() [2/4]

template<int RTYPE, bool NA, typename VEC>
Rcpp::newDatetimeVector::newDatetimeVector ( const VectorBase< RTYPE, NA, VEC > & other,
const char * tz = "" )
inline

Definition at line 36 of file newDatetimeVector.h.

References setClass().

Here is the call graph for this function:

◆ newDatetimeVector() [3/4]

Rcpp::newDatetimeVector::newDatetimeVector ( SEXP vec,
const char * tz = "" )
inline

Definition at line 41 of file newDatetimeVector.h.

References setClass().

Here is the call graph for this function:

◆ newDatetimeVector() [4/4]

Rcpp::newDatetimeVector::newDatetimeVector ( int n,
const char * tz = "" )
inline

Definition at line 46 of file newDatetimeVector.h.

References setClass().

Here is the call graph for this function:

Member Function Documentation

◆ getDatetimes()

std::vector< Datetime > Rcpp::newDatetimeVector::getDatetimes ( ) const
inline

Definition at line 51 of file newDatetimeVector.h.

References Rcpp::Vector< REALSXP >::size().

Here is the call graph for this function:

◆ operator=()

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

◆ setClass()

void Rcpp::newDatetimeVector::setClass ( const char * tz)
inlineprivate

◆ operator<<

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

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