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

Interface for lists. More...

#include <interfaces.hpp>

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

Public Member Functions

Type type () const
 
virtual size_t size () const =0
 
virtual void set (size_t i, std::shared_ptr< Base > v)=0
 
virtual void set_name (size_t i, std::string n)=0
 

Detailed Description

Interface for lists.

Member Function Documentation

◆ set()

virtual void uzuki2::List::set ( size_t  i,
std::shared_ptr< Base v 
)
pure virtual

Set an element of the list.

Parameters
iIndex of the list element.
vValue of the list element.

◆ set_name()

virtual void uzuki2::List::set_name ( size_t  i,
std::string  n 
)
pure virtual

Set the name of an element of the list. This should only be called if this List instance was constructed with support for names.

Parameters
iIndex of a list element.
nName for the list element.

◆ size()

virtual size_t uzuki2::List::size ( ) const
pure virtual
Returns
Length of the list.

◆ type()

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

Implements uzuki2::Base.


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