Identifier namespace
Namespace containing factory functions for code identifiers.
Provides convenient factory functions for creating colored, bold identifiers for different code elements (classes, namespaces, functions).
Functions
- auto Class(const std::string& id) -> IdentifierT<CyanT>
- Creates a class name identifier.
- auto Namespace(const std::string& id) -> IdentifierT<CyanT>
- Creates a namespace identifier.
- auto Function(const std::string& id) -> IdentifierT<ResetT>
- Creates a function name identifier.
Function documentation
IdentifierT<CyanT> Rodin:: Alert:: Identifier:: Class(const std::string& id)
Creates a class name identifier.
| Parameters | |
|---|---|
| id | The class name. |
| Returns | Cyan-colored, bold identifier for the class. |
Creates an identifier formatted for class names using cyan color and bold text.
IdentifierT<CyanT> Rodin:: Alert:: Identifier:: Namespace(const std::string& id)
Creates a namespace identifier.
| Parameters | |
|---|---|
| id | The namespace name. |
| Returns | Cyan-colored, bold identifier for the namespace. |
Creates an identifier formatted for namespace names using cyan color and bold text.
IdentifierT<ResetT> Rodin:: Alert:: Identifier:: Function(const std::string& id)
Creates a function name identifier.
| Parameters | |
|---|---|
| id | The function name. |
| Returns | Default-colored, bold identifier for the function. |
Creates an identifier formatted for function names using the default terminal color and bold text.