CXXR (C++ R) API
Namespaces | Typedefs | Functions
ListVector.h File Reference

($Id: ListVector.h 1351 2013-03-08 15:12:28Z arr $)

Class CXXR::ListVector and associated C interface. More...

#include "CXXR/VectorBase.h"
#include "CXXR/FixedVector.hpp"
#include "CXXR/SEXP_downcast.hpp"
Include dependency graph for ListVector.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  CXXR
 Namespace for the CXXR project.

Typedefs

typedef FixedVector< RHandle
<>, VECSXP
CXXR::ListVector
 General vector of RHandle<RObject>.

Functions

SEXP SET_VECTOR_ELT (SEXP x, int i, SEXP v)
 Set element of CXXR::ListVector.
SEXP VECTOR_ELT (SEXP x, int i)
 Examine element of CXXR::ListVector.

Detailed Description

Class CXXR::ListVector and associated C interface.

(ListVector implements VECSXP.)


Function Documentation

SEXP SET_VECTOR_ELT ( SEXP  x,
int  i,
SEXP  v 
)

Set element of CXXR::ListVector.

Parameters:
xPointer to a CXXR::ListVector.
iIndex of the required element. There is no bounds checking.
vPointer, possibly null, to CXXR::RObject representing the new value.
Returns:
The new value v.
SEXP VECTOR_ELT ( SEXP  x,
int  i 
)
inline

Examine element of CXXR::ListVector.

Parameters:
xNon-null pointer to a CXXR::ListVector .
iIndex of the required element. There is no bounds checking.
Returns:
The value of the i 'th element.