Skip to content

NameGenerator

Synopsis

Declared in <src/midend/programTransformation/astOutlining/NameGenerator.hh>

class [[visibility("default")]] NameGenerator;

Member Functions

Name Description
NameGenerator
NameGenerator(size_t first_id = 1); [constructor]
Constructors
~NameGenerator
virtual ~NameGenerator(); [destructor] [virtual]
Destructor
current
virtual std::string current(std::string full_file_name = ""); [virtual]
Returns the current name, based on the current ID number.
id
size_t id(std::string full_file_name = "");
Returns the current ID number.
next
std::string next(std::string full_file_name = "");
Returns the next name, updating the current ID number.
prefix
std::string prefix() const;
Returns the prefix.
suffix
std::string suffix() const;
Returns the suffix.

Private Data Members

Name Description
cur_id_
first_id_
prefix_ Name prefix.
suffix_ Name suffix.

Created with MrDocs