NameGenerator¶
Synopsis¶
Declared in <src/midend/programTransformation/astOutlining/NameGenerator.hh>
class [[visibility("default")]] NameGenerator; Member Functions¶
| Name | Description |
|---|---|
NameGeneratorNameGenerator(size_t first_id = 1); [constructor] | Constructors |
~NameGeneratorvirtual ~NameGenerator(); [destructor] [virtual] | Destructor |
currentvirtual std::string current(std::string full_file_name = ""); [virtual] | Returns the current name, based on the current ID number. |
idsize_t id(std::string full_file_name = ""); | Returns the current ID number. |
nextstd::string next(std::string full_file_name = ""); | Returns the next name, updating the current ID number. |
prefixstd::string prefix() const; | Returns the prefix. |
suffixstd::string suffix() const; | Returns the suffix. |
Private Data Members¶
| Name | Description |
|---|---|
cur_id_ | |
first_id_ | |
prefix_ | Name prefix. |
suffix_ | Name suffix. |
Created with MrDocs