($Id: PairList.cpp 1351 2013-03-08 15:12:28Z arr $)
Class CXXR::PairList and associated C interface.
More...
#include "CXXR/PairList.h"
#include <iostream>
#include "localization.h"
#include "R_ext/Error.h"
Namespaces |
namespace | CXXR |
| Namespace for the CXXR project.
|
Detailed Description
Class CXXR::PairList and associated C interface.
Function Documentation
Rboolean IS_ACTIVE_BINDING |
( |
SEXP |
b | ) |
|
Is a Binding active?
- Parameters:
-
b | Pointer to a ConsCell object (checked). If b points to any type of ConsCell other than a PairList, the function returns FALSE. Otherwise b should point to a PairList object representing a Frame::Binding (e.g. because it was produced using Frame::asPairList() ). |
- Returns:
- true iff this is an active Binding.
SEXP Rf_allocList |
( |
unsigned int |
n | ) |
|
Create a CXXR::PairList of a specified length.
This constructor creates a CXXR::PairList with a specified number of elements. On creation, each element has null 'car' and 'tag'.
- Parameters:
-
n | Number of elements required in the list. |
- Returns:
- The constructed list, or a null pointer if n is zero.
Creates a CXXR::PairList with a specified car and tail.
This function protects its arguments from the garbage collector.
- Parameters:
-
cr | Pointer to the 'car' of the element to be created. |
tl | Pointer to the 'tail' of the element to be created, which must be of a CXXR::PairList type (checked). |
- Returns:
- Pointer to the constructed list.
Set the 'car' value of the fifth element of list.
- Parameters:
-
x | Pointer to a CXXR::ConsCell with at least four successors (checked). |
y | Pointer a CXXR::RObject representing the new value of the fifth element of the list. |
- Returns:
- y.
Set the 'car' value of the fourth element of list.
- Parameters:
-
x | Pointer to a CXXR::ConsCell with at least three successors (checked). |
y | Pointer a CXXR::RObject representing the new value of the fourth element of the list. |
- Returns:
- y.
Set the 'car' value of the third element of list.
- Parameters:
-
x | Pointer to a CXXR::ConsCell with at least two successors (checked). |
y | Pointer a CXXR::RObject representing the new value of the third element of the list. |
- Returns:
- y.
Set the 'car' value of the second element of list.
- Parameters:
-
x | Pointer to a CXXR::ConsCell with at least one successor (checked). |
y | Pointer a CXXR::RObject representing the new value of the second element of the list. |
- Returns:
- y.