34 std::string
generate(
const std::string &title);
40 int reserve(
const std::string &anchor);
54 std::unique_ptr<Private>
p;
bool isGenerated(const std::string &anchor) const
Returns true iff anchor is one of the generated anchors.
static AnchorGenerator & instance()
Returns the singleton instance.
static std::string addPrefixIfNeeded(const std::string &anchor)
std::string generate(const std::string &title)
generates an anchor for a section with title.
int reserve(const std::string &anchor)
Reserves a non-generated anchor.
static bool looksGenerated(const std::string &anchor)
Returns true if anchor is a potentially generated anchor.
std::unique_ptr< Private > p
#define NON_COPYABLE(cls)
Macro to help implementing the rule of 5 for a non-copyable & movable class.