uzuki2
Recovering R lists faithfully from HDF5 or JSON
Loading...
Searching...
No Matches
Public Member Functions | List of all members
uzuki2::Factor Struct Referenceabstract

Interface for a factor. More...

#include <interfaces.hpp>

Inheritance diagram for uzuki2::Factor:
Inheritance graph
[legend]
Collaboration diagram for uzuki2::Factor:
Collaboration graph
[legend]

Public Member Functions

Type type () const
 
virtual void set (size_t i, size_t v)=0
 
virtual void set_level (size_t il, std::string vl)=0
 
- Public Member Functions inherited from uzuki2::Vector
virtual size_t size () const =0
 
virtual void set_name (size_t i, std::string n)=0
 
virtual void set_missing (size_t i)=0
 

Detailed Description

Interface for a factor.

This is considered a "vector" in terms of its indices, not its levels. So, settings like Vector::use_names() and Vector::is_scalar() refer to the underlying integer indices.

Member Function Documentation

◆ set()

virtual void uzuki2::Factor::set ( size_t  i,
size_t  v 
)
pure virtual

Set the value of a factor element.

Parameters
iIndex of a factor element.
vValue of the factor element, as an integer index that references the levels.

◆ set_level()

virtual void uzuki2::Factor::set_level ( size_t  il,
std::string  vl 
)
pure virtual

Set the levels of the factor.

Parameters
ilIndex of the level element.
vlValue of the level element.

◆ type()

Type uzuki2::Factor::type ( ) const
inlinevirtual
Returns
The data type.

Implements uzuki2::Base.


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