Cerata
A library to generate structural hardware designs
cerata::vhdl::Identifier Class Reference

A VHDL Identifier convenience structure. More...

#include <identifier.h>

Public Member Functions

 Identifier (std::initializer_list< std::string > parts, std::optional< char > sep='_')
 Construct an identifier from a bunch of strings.
 
 Identifier (std::deque< std::string > parts, std::optional< char > sep='_')
 Construct an identifier from a bunch of strings.
 
Identifierappend (const std::string &part)
 Append a part to the Identifier.
 
Identifierprepend (const std::string &part)
 Append a part to the Identifier.
 
Identifieroperator+= (const std::string &rhs)
 Append a part to the Identifier. More...
 
Identifier operator+ (const std::string &rhs) const
 Create a copy and add a new part to the Identifier.
 
std::string ToString () const
 Return a human-readable string of the identifier.
 

Detailed Description

A VHDL Identifier convenience structure.

Definition at line 30 of file identifier.h.

Member Function Documentation

◆ operator+=()

Identifier & cerata::vhdl::Identifier::operator+= ( const std::string &  rhs)

Append a part to the Identifier.

Parameters
rhs
Returns

Definition at line 65 of file identifier.cc.


The documentation for this class was generated from the following files: