1#ifndef UZUKI2_INTERFACES_HPP
2#define UZUKI2_INTERFACES_HPP
44 return (t >= 0 && t < LIST);
72 virtual size_t size ()
const = 0;
81 virtual void set_name(
size_t i, std::string n) = 0;
105 virtual void set(
size_t i, int32_t v) = 0;
122 virtual void set(
size_t i,
double v) = 0;
139 virtual void set(
size_t i, std::string v) = 0;
169 virtual void set(
size_t i,
bool v) = 0;
189 virtual void set(
size_t i,
size_t v) = 0;
231 virtual size_t size()
const = 0;
239 virtual void set(
size_t i, std::shared_ptr<Base> v) = 0;
248 virtual void set_name(
size_t i, std::string n) = 0;
Parse an R list from a HDF5 or JSON file.
Definition parse_json.hpp:29
Type
Definition interfaces.hpp:28
bool is_vector(Type t)
Definition interfaces.hpp:43
Base interface for all R objects.
Definition interfaces.hpp:50
virtual Type type() const =0
Interface for a boolean vector.
Definition interfaces.hpp:158
virtual void set(size_t i, bool v)=0
Type type() const
Definition interfaces.hpp:159
Interface for unsupported objects.
Definition interfaces.hpp:214
Type type() const
Definition interfaces.hpp:215
Interface for a factor.
Definition interfaces.hpp:178
virtual void set_level(size_t il, std::string vl)=0
Type type() const
Definition interfaces.hpp:179
virtual void set(size_t i, size_t v)=0
Interface for integer vectors.
Definition interfaces.hpp:94
Type type() const
Definition interfaces.hpp:95
virtual void set(size_t i, int32_t v)=0
Interface for lists.
Definition interfaces.hpp:223
virtual void set_name(size_t i, std::string n)=0
virtual void set(size_t i, std::shared_ptr< Base > v)=0
Type type() const
Definition interfaces.hpp:224
virtual size_t size() const =0
Representation of R's NULL.
Definition interfaces.hpp:203
Type type() const
Definition interfaces.hpp:204
Interface for a double-precision vector.
Definition interfaces.hpp:111
Type type() const
Definition interfaces.hpp:112
virtual void set(size_t i, double v)=0
Interface for a string vector.
Definition interfaces.hpp:128
Format
Definition interfaces.hpp:148
Type type() const
Definition interfaces.hpp:129
virtual void set(size_t i, std::string v)=0
Interface for vector-like objects.
Definition interfaces.hpp:68
virtual void set_name(size_t i, std::string n)=0
virtual void set_missing(size_t i)=0
virtual size_t size() const =0