Tree Compression with Top Trees Revisited
Public Member Functions | Public Attributes | List of all members
FakeLabels< Value > Struct Template Reference

Dummy labels that always return the same value for each index. More...

#include <Labels.h>

Inheritance diagram for FakeLabels< Value >:
Inheritance graph
[legend]
Collaboration diagram for FakeLabels< Value >:
Collaboration graph
[legend]

Public Member Functions

 FakeLabels (Value retval)
 
const Value & operator[] (uint index) const
 always return the dummy value on access More...
 
void set (uint id, const Value &value)
 this does nothing More...
 

Public Attributes

Value retval
 

Detailed Description

template<typename Value>
struct FakeLabels< Value >

Dummy labels that always return the same value for each index.

Definition at line 25 of file Labels.h.

Constructor & Destructor Documentation

template<typename Value >
FakeLabels< Value >::FakeLabels ( Value  retval)
inline

Definition at line 26 of file Labels.h.

Member Function Documentation

template<typename Value >
const Value& FakeLabels< Value >::operator[] ( uint  index) const
inlinevirtual

always return the dummy value on access

Implements LabelsT< Value >.

Definition at line 29 of file Labels.h.

template<typename Value >
void FakeLabels< Value >::set ( uint  id,
const Value &  value 
)
inlinevirtual

this does nothing

Implements LabelsT< Value >.

Definition at line 35 of file Labels.h.

Member Data Documentation

template<typename Value >
Value FakeLabels< Value >::retval

Definition at line 38 of file Labels.h.


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