Version: SMASH-3.1
smash::Line Struct Reference

#include <inputfunctions.h>

Line consists of a line number and the contents of that line.

Definition at line 23 of file inputfunctions.h.

Public Member Functions

 Line ()=default
 Initialize line with empty string and number. More...
 
 Line (int n, std::string &&t)
 Initialize a line with line number n and text t. More...
 

Public Attributes

int number
 Line number. More...
 
std::string text
 Line content. More...
 

Constructor & Destructor Documentation

◆ Line() [1/2]

smash::Line::Line ( )
default

Initialize line with empty string and number.

◆ Line() [2/2]

smash::Line::Line ( int  n,
std::string &&  t 
)
inline

Initialize a line with line number n and text t.

Definition at line 27 of file inputfunctions.h.

27 : number(n), text(std::move(t)) {}
constexpr int n
Neutron.
int number
Line number.
std::string text
Line content.

Member Data Documentation

◆ number

int smash::Line::number

Line number.

Definition at line 29 of file inputfunctions.h.

◆ text

std::string smash::Line::text

Line content.

Definition at line 31 of file inputfunctions.h.


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