C++Cast-class: Enumeration for types of C++ casting/coercion

C++Cast-classR Documentation

Enumeration for types of C++ casting/coercion

Description

The C++Cast and C++CastValues provide the definition for a collection of related enumerated constants that allow the R programmer to identify different types of casting of C++ references to another class. There are four types of casting in C++ as opposed to just one in C. These are static, dynamic, reinterpret and const. These have different characteristics including run-time coercion rather than compile-time knowledge.

This class and EnumDef prvide the definitions so that we can use either the names or numerical values when idenifying a type of cast.

Slots

.Data:

Object of class "integer"

Extends

Class "EnumValue", directly. Class "SymbolicConstant", by class "EnumValue", distance 2. Class "EnumerationValue", by class "EnumValue", distance 2. Class "integer", by class "EnumValue", distance 3. Class "vector", by class "EnumValue", distance 4. Class "numeric", by class "EnumValue", distance 4. Class "data.frameRowLabels", by class "EnumValue", distance 4.

Methods

coerce

signature(from = "character", to = "C++Cast"):

coerce

signature(from = "numeric", to = "C++Cast"):

Author(s)

Duncan Temple Lang

References

C++ Programmers Reference

Examples

showClass("C++Cast")

as(1, "C++Cast")
as("static", "C++Cast")

omegahat/RAutoGenRunTime documentation built on Jan. 12, 2023, 9:19 p.m.