Cerata
A library to generate structural hardware designs
|
A block of code. More...
#include <block.h>
Public Member Functions | |
Block (int indent=0) | |
Block constructor. | |
std::vector< size_t > | GetAlignments () const |
Return the alignment for each line. | |
Block & | Reverse () |
Return the block in reverse. | |
Block & | AppendBlankLineIfNotEmpty () |
Append a blank line if the block is not empty. | |
Block & | Sort (std::optional< char > c=std::nullopt) |
Sort the lines in the block. Supply a character to stop sorting per line after encountering the character. More... | |
std::string | ToString () const |
Return this block as a single string. | |
Public Attributes | |
std::vector< Line > | lines |
Lines in the blocks. | |
int | indent = 0 |
Indenting level of the block. | |
Block & cerata::vhdl::Block::Sort | ( | std::optional< char > | c = std::nullopt | ) |