CXXR (C++ R)
Static Public Member Functions
CXXR::VectorOps::CopyLayoutAttributes Struct Reference

Control attribute copying for unary functions. More...

#include <UnaryFunction.hpp>

List of all members.

Static Public Member Functions

static void copyAttributes (VectorBase *to, const VectorBase *from)
 Copy 'names', 'dim' and 'dimnames' attributes.

Detailed Description

Control attribute copying for unary functions.

VectorOps::UnaryFunction takes as a template parameter an AttributeCopier class which determines which attributes are copied from the input vector to the output vector.

This class is a possible value of the AttributeCopier parameter, and its behaviour is to copy the 'names', 'dim' and 'dimnames' attributes if present.


Member Function Documentation

void CopyLayoutAttributes::copyAttributes ( VectorBase to,
const VectorBase from 
)
static

Copy 'names', 'dim' and 'dimnames' attributes.

Parameters:
toNon-null pointer to the vector to which attributes are to be copied.
fromNon-null pointer to the vector from which attributes are to be copied.

The documentation for this struct was generated from the following files: