Defined in header <cparse/Generator.hh>

Generator();                              // (1)

Generator( Generator const& ) = delete;   // (2)
Generator( Generator&& ) = delete;        // (3)
  1. Default constructor. Empty body — the subclass is expected to initialise its own stream, indentor and any grammar-driven state in its own constructor.
  2. Copy construction is deleted.
  3. Move construction is deleted.

Parameters

None.

Exceptions

Does not throw.

Notes

The class is abstract — direct instantiation fails at compile time because six methods are = 0 (getStream, getIndentor, generate, openNamespaceScope, closeNamespaceScope, getNamespacePath).

Copy and move are deleted because a Generator typically owns an output stream and a namespace stack. Sharing or transferring these mid-emission has no meaningful semantics.

See also