gtopt/label_maker.hpp file

Generates LP column/row name strings honoring LpNamesLevel.

LabelMaker is the single place in gtopt where LP column/row name strings are produced. It consumes SparseCol / SparseRow directly (their class_name / variable_name / variable_uid / context metadata fields) and returns empty strings when naming is disabled so callers never need to guard label calls.

Naming semantics (LpNamesLevel):

  • none: no labels at all (default, lowest memory)
  • all: all column + row labels + name-to-index maps; duplicates throw

LabelMaker is a value type (1 byte). Copy it freely; it carries no mutable buffers. It is constructed at the specific call sites that need names (lp_debug, lp_file) and handed to LinearProblem and travels with FlatLinearProblem into LinearInterface.

Namespaces

namespace gtopt

Classes

class gtopt::LabelMaker