| 951 | // initialize altrep, altvec, altreal, and altinteger methods |
| 952 | template <typename AltrepClass> |
| 953 | void InitAltrepMethods(R_altrep_class_t class_t, DllInfo* dll) { |
| 954 | R_set_altrep_Length_method(class_t, AltrepClass::Length); |
| 955 | R_set_altrep_Inspect_method(class_t, AltrepClass::Inspect); |
| 956 | R_set_altrep_Duplicate_method(class_t, AltrepClass::Duplicate); |
| 957 | R_set_altrep_Serialized_state_method(class_t, AltrepClass::Serialized_state); |
| 958 | R_set_altrep_Unserialize_method(class_t, AltrepClass::Unserialize); |
| 959 | R_set_altrep_Coerce_method(class_t, AltrepClass::Coerce); |
| 960 | } |
| 961 | |
| 962 | template <typename AltrepClass> |
| 963 | void InitAltvecMethods(R_altrep_class_t class_t, DllInfo* dll) { |
nothing calls this directly
no outgoing calls
no test coverage detected