 |
Cerata
A library to generate structural hardware designs
|
23 #include "cerata/utils.h"
34 Identifier(std::initializer_list<std::string> parts, std::optional<char> sep =
'_');
36 explicit Identifier(std::deque<std::string> parts, std::optional<char> sep =
'_');
46 [[nodiscard]] std::string
ToString()
const;
49 std::optional<char> separator_ =
'_';
51 std::deque<std::string> parts_;
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.