CXXR (C++ R)
Classes | Namespaces | Functions
ElementTraits.hpp File Reference

($Id: ElementTraits.hpp 1375 2013-04-15 17:16:50Z arr $)

Namespace encapsulating traits of R vector element types. More...

#include <boost/mpl/bool.hpp>
#include "CXXR/GCNode.hpp"
Include dependency graph for ElementTraits.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  CXXR::ElementTraits::Data< T >
 Information about the data payload. More...
struct  CXXR::ElementTraits::DetachReferents< T >
 Function object for detaching referents. More...
struct  CXXR::ElementTraits::HasReferents< T >
 Do elements of this type refer to GCNode objects? More...
struct  CXXR::ElementTraits::MustConstruct< T >
 Do elements of this type require construction? More...
struct  CXXR::ElementTraits::MustDestruct< T >
 Does this type have a destructor? More...
struct  CXXR::ElementTraits::Serialize< T >
 Function object for serialization/deserialization. More...
struct  CXXR::ElementTraits::VisitReferents< T >
 Function object for visiting referents. More...
struct  CXXR::ElementTraits::NAFunc< T >
 Function object to generate 'not available' value. More...
struct  CXXR::ElementTraits::IsNA< T >
 Function object for testing 'not available' status. More...

Namespaces

namespace  CXXR
 Namespace for the CXXR project.
namespace  CXXR::ElementTraits
 Namespace encapsulating traits of R vector element types.

Functions

template<typename T >
const ElementTraits::Data< T >
::type & 
CXXR::ElementTraits::data (const T &t)
 Access the data payload of an R vector element.
template<typename T >
bool CXXR::ElementTraits::hasDistinctNA ()
 Does a type have a distinct 'not available' value?
template<typename T >
bool CXXR::isNA (const T &t)
 Does a value represent a distinct 'not available' status?
template<typename T >
const T & CXXR::NA ()
 Value to be used if 'not available'.

Detailed Description

Namespace encapsulating traits of R vector element types.