 |
Cerata
A library to generate structural hardware designs
|
15 #include "cerata/vhdl/identifier.h"
25 for (
const auto &p : parts_) {
28 if (p != parts_.back()) {
36 Identifier::Identifier(std::initializer_list<std::string> parts, std::optional<char> sep) : separator_(std::move(sep)) {
37 for (
const auto &p : parts) {
42 Identifier::Identifier(std::deque<std::string> parts, std::optional<char> sep) : separator_(std::move(sep)) {
43 parts_ = std::move(parts);
48 parts_.push_back(part);
55 parts_.push_front(part);
Identifier & prepend(const std::string &part)
Append a part to the Identifier.
Identifier operator+(const std::string &rhs) const
Create a copy and add a new part to the Identifier.
Identifier & append(const std::string &part)
Append a part to the Identifier.
std::string ToString() const
Return a human-readable string of the identifier.
Identifier & operator+=(const std::string &rhs)
Append a part to the Identifier.
A VHDL Identifier convenience structure.
Contains everything related to the VHDL back-end.