CXXR (C++ R)
Namespaces | Functions | Variables
VectorBase.cpp File Reference

($Id: VectorBase.cpp 1348 2013-02-25 17:49:03Z arr $)

Implementation of class VectorBase and related functions. More...

#include "CXXR/VectorBase.h"
#include "R_ext/Error.h"
#include "CXXR/IntVector.h"
#include "CXXR/ListVector.h"
#include "CXXR/PairList.h"
#include "CXXR/StringVector.h"
#include "CXXR/Symbol.h"
Include dependency graph for VectorBase.cpp:

Namespaces

namespace  CXXR
 Namespace for the CXXR project.

Functions

Rboolean Rf_isVector (SEXP s)
 Is an RObject a vector?
void SETLENGTH (SEXP x, int v)

Variables

int(* CXXR::ForceNonInline::LENGTHptr )(SEXP x) = LENGTH
void(* CXXR::ForceNonInline::SET_TRUELENGTHptr )(SEXP x, int v) = SET_TRUELENGTH
int(* CXXR::ForceNonInline::TRUELENGTHptr )(SEXP x) = TRUELENGTH

Detailed Description

Implementation of class VectorBase and related functions.


Function Documentation

Rboolean Rf_isVector ( SEXP  s)

Is an RObject a vector?

Vector in this context embraces R matrices and arrays.

Parameters:
sPointer to the RObject to be tested. The pointer may be null, in which case the function returns FALSE.
Returns:
TRUE iff s points to a vector object.
void SETLENGTH ( SEXP  x,
int  v 
)

Set length of vector.

Parameters:
xPointer to a CXXR::VectorBase .
vThe required new length, which must not be greater than the current length.
Deprecated:
May be withdrawn in future. Currently used in library/stats/src/isoreg.c , and possibly in packages.