Poco::FastInfoset

template < class T >

class MapVocabulary

File Information

Library: FastInfoset
Package: FastInfoset
Header: Poco/FastInfoset/MapVocabulary.h

Description

An implementation of Vocabulary using a map.

Inheritance

Direct Base Classes: Vocabulary < T >

All Base Classes: Vocabulary < T >

Member Summary

Member Functions: clone, empty, exists, index, size, subtract, value

Types

ConstIterator

typedef typename Data::const_iterator ConstIterator;

Data

typedef std::map < T, Poco::UInt32 > Data;

Iterator

typedef typename Data::iterator Iterator;

Constructors

MapVocabulary inline

explicit MapVocabulary(
    std::size_t sizeHint = 0
);

Creates the MapVocabulary.

Destructor

~MapVocabulary inline

~MapVocabulary();

Destroys the MapVocabulary.

Member Functions

clone inline

Vocabulary < T > * clone() const;

empty inline

bool empty() const;

exists inline

Poco::UInt32 exists(
    const T & value,
    bool & valueExisted
) const;

index inline

Poco::UInt32 index(
    const T & value,
    bool & valueExisted
);

size inline

std::size_t size() const;

subtract inline

Vocabulary < T > * subtract(
    const Vocabulary < T > & voc
) const;

value inline

const T & value(
    Poco::UInt32 idx
) const;

Returns the value for the given index. Throws an exception if the idx is out of range.

Securely control IoT edge devices from anywhere   Connect a Device