Struct IncreasingIdGenerator

Struct Documentation

struct IncreasingIdGenerator

Generates identifiers consisting of a optional prefix and an integer in increasing value.

Public Functions

explicit IncreasingIdGenerator(std::string prefix = "", size_t initial_value = 0) noexcept

Creates a generator from a given start value and a prefix

Parameters:
  • prefix – prefix for the generated ids

  • initial_value – initial value of the counter

Throws:

ParsingError – if the prefix is not a valid blank node identifier

BlankNode generate(storage::DynNodeStoragePtr node_storage) noexcept