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

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

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

#include "CXXR/VectorBase.h"
#include "R_ext/Arith.h"
#include "CXXR/FixedVector.hpp"
#include "CXXR/SEXP_downcast.hpp"
Include dependency graph for LogicalVector.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 CXXR::FixedVector< int,
LGLSXP
CXXR::LogicalVector
 Vector of truth values.

Functions

Rboolean Rf_isLogical (SEXP s)
int * LOGICAL (SEXP x)
SEXP Rf_mkFalse ()
 Create a unit-length LogicalVector containing FALSE.
SEXP Rf_mkTrue ()
 Create a unit-length LogicalVector containing TRUE.

Detailed Description

Class CXXR::LogicalVector and associated C interface.


Function Documentation

int* LOGICAL ( SEXP  x)
inline
Parameters:
xPointer to a CXXR::LogicalVector (checked).
Returns:
Pointer to element 0 of x .
Rboolean Rf_isLogical ( SEXP  s)
inline
Parameters:
sPointer to a CXXR::RObject.
Returns:
TRUE iff the CXXR::RObject pointed to by s is a logical vector.
SEXP Rf_mkFalse ( )

Create a unit-length LogicalVector containing FALSE.

Returns:
a unit-length LogicalVector containing FALSE.
SEXP Rf_mkTrue ( )

Create a unit-length LogicalVector containing TRUE.

Returns:
a unit-length LogicalVector containing TRUE.