Pretty Diagnostics
Create your own pretty diagnostics
Loading...
Searching...
No Matches
pretty_diagnostics::LineGroup Class Reference

A set of labels that belong to the same 1-based line number. More...

#include <report.hpp>

Public Member Functions

 LineGroup (size_t line_number, std::set< Label > labels)
 Constructs a group for a single line and its labels. More...
 
size_t line_number () const
 Returns the 1-based line number. More...
 
const std::set< Label > & labels () const
 Returns the set of labels for this line. More...
 
std::set< Label > & labels ()
 Returns the set of labels for this line. More...
 

Detailed Description

A set of labels that belong to the same 1-based line number.

Constructor & Destructor Documentation

◆ LineGroup()

pretty_diagnostics::LineGroup::LineGroup ( size_t  line_number,
std::set< Label labels 
)

Constructs a group for a single line and its labels.

Parameters
line_number1-based line number
labelsLabels associated with this line

Member Function Documentation

◆ labels() [1/2]

std::set< Label > & pretty_diagnostics::LineGroup::labels ( )
inline

Returns the set of labels for this line.

Returns
Reference to labels

◆ labels() [2/2]

const std::set< Label > & pretty_diagnostics::LineGroup::labels ( ) const
inline

Returns the set of labels for this line.

Returns
Const reference to labels

◆ line_number()

size_t pretty_diagnostics::LineGroup::line_number ( ) const
inline

Returns the 1-based line number.

Returns
1-based line number of this group

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