Poco::FastInfoset

template < typename T >

class VerbTable

File Information

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

Description

This is a vector class template providing minimal features required for use with a FastInfoset Vocabulary. A special property of this class is that it can grow without the need to reallocate memory for existing elements. Therefore, it is save to keep pointers to objects stored in the vector.

Member Summary

Member Functions: at, empty, operator [], push_back, size

Types

StorageVec

typedef std::vector < std::vector < T > * > StorageVec;

Enumerations

Anonymous

INITIAL_CHUNK_SIZE = 256

Constructors

VerbTable inline

VerbTable();

Creates the VerbTable.

VerbTable inline

VerbTable(
    const VerbTable & vec
);

Creates the VerbTable by copying another one.

Destructor

~VerbTable inline

~VerbTable();

Destroys the VerbTable.

Member Functions

empty inline

bool empty() const;

Returns true iff the VerbTable does not contain any elements.

operator [] inline

const T & operator[] (
    std::size_t index
) const;

Returns the element at the given index.

operator [] inline

T & operator[] (
    std::size_t index
);

Returns the element at the given index.

push_back inline

void push_back(
    const T & value
);

Appends a value to the end of the vector.

Grows the vector if necessary.

size inline

std::size_t size() const;

Returns the size of the vector.

at protected inline

T & at(
    std::size_t index
) const;

Securely control IoT edge devices from anywhere   Connect a Device