Tree Compression with Top Trees Revisited
Public Member Functions | List of all members
LabelsT< Value > Struct Template Referenceabstract

A label interface (pure virtual) More...

#include <Labels.h>

Inheritance diagram for LabelsT< Value >:
Inheritance graph
[legend]

Public Member Functions

virtual const Value & operator[] (uint index) const =0
 
virtual void set (uint id, const Value &value)=0
 

Detailed Description

template<typename Value>
struct LabelsT< Value >

A label interface (pure virtual)

Definition at line 12 of file Labels.h.

Member Function Documentation

template<typename Value>
virtual const Value& LabelsT< Value >::operator[] ( uint  index) const
pure virtual

Access operator

Parameters
indexthe index of the label to look up
Returns
the label value for the given index

Implemented in Labels< Value >, Labels< std::string >, RandomLabels< RNG >, IdLabels, and FakeLabels< Value >.

template<typename Value>
virtual void LabelsT< Value >::set ( uint  id,
const Value &  value 
)
pure virtual

Set a label

Parameters
idthe index of the label to set
valuethe value to set the label to

Implemented in Labels< Value >, Labels< std::string >, RandomLabels< RNG >, IdLabels, and FakeLabels< Value >.


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