Poco::FastInfoset

template < class T >

class HashVocabulary

File Information

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

Description

An implementation of Vocabulary using a hash table.

Inheritance

Direct Base Classes: Vocabulary < T >

All Base Classes: Vocabulary < T >

Member Summary

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

Types

HashTableVector

typedef std::vector < Poco::UInt32 > HashTableVector;

ValueHashFunction

typedef HashFunction < T > ValueHashFunction;

Constructors

HashVocabulary inline

HashVocabulary(
    std::size_t hashTableSize = 32749
);

Creates the HashVocabulary.

HashVocabulary protected inline

HashVocabulary(
    const HashVocabulary & voc
);

Destructor

~HashVocabulary inline

~HashVocabulary();

Destroys the HashVocabulary.

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 > & other
) const;

value inline

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

find protected inline

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

insert protected inline

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

Securely control IoT edge devices from anywhere   Connect a Device