rds2cpp
Read and write RDS/RDA files in C++
Loading...
Searching...
No Matches
rds2cpp::PairListElement Struct Reference

Element of a PairList. More...

#include <RObject.hpp>

Public Member Functions

 PairListElement ()=default
 
 PairListElement (std::unique_ptr< RObject > value)
 
 PairListElement (SymbolIndex tag, std::unique_ptr< RObject > value)
 

Public Attributes

std::optional< SymbolIndextag
 
std::unique_ptr< RObjectvalue
 

Detailed Description

Element of a PairList.

Constructor & Destructor Documentation

◆ PairListElement() [1/3]

rds2cpp::PairListElement::PairListElement ( )
default

Default constructor.

◆ PairListElement() [2/3]

rds2cpp::PairListElement::PairListElement ( std::unique_ptr< RObject > value)
inline

Construct an untagged element.

Parameters
valueValue of the element.

◆ PairListElement() [3/3]

rds2cpp::PairListElement::PairListElement ( SymbolIndex tag,
std::unique_ptr< RObject > value )
inline

Construct a tagged element.

Parameters
tagTag of the element.
valueValue of the element.

Member Data Documentation

◆ tag

std::optional<SymbolIndex> rds2cpp::PairListElement::tag

Tag (a.k.a., name) of the pairlist element. If unset, this element is untagged.

◆ value

std::unique_ptr<RObject> rds2cpp::PairListElement::value

Value of the element.


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