Public Member Functions | Public Attributes | List of all members
stan::io::preproc_event Struct Reference

#include "stan/io/program_reader.hpp"

Public Member Functions

 preproc_event (int concat_line_num, int line_num, const std::string &action, const std::string &path)
 
void print (std::ostream &out)
 

Public Attributes

int concat_line_num_
 
int line_num_
 
std::string action_
 
std::string path_
 

Detailed Description

Structure to hold preprocessing events, which consist of (a) line number in concatenated program after includes, (b) line number in the stream from which the text is read, (c) a string-based action, and (d) a path to the current file.

Definition at line 26 of file program_reader.hpp.

Constructor & Destructor Documentation

stan::io::preproc_event::preproc_event ( int  concat_line_num,
int  line_num,
const std::string &  action,
const std::string &  path 
)
inline

Definition at line 32 of file program_reader.hpp.

Referenced by stan::io::program_reader::read().

34  : concat_line_num_(concat_line_num), line_num_(line_num),
35  action_(action), path_(path) { }
const std::string path
Definition: plot_BEN.C:43

Member Function Documentation

void stan::io::preproc_event::print ( std::ostream &  out)
inline

Definition at line 37 of file program_reader.hpp.

37  {
38  out << "(" << concat_line_num_ << ", " << line_num_
39  << ", " << action_ << ", " << path_ << ")";
40  }

Member Data Documentation

std::string stan::io::preproc_event::action_

Definition at line 29 of file program_reader.hpp.

Referenced by stan::io::program_reader::trace().

int stan::io::preproc_event::concat_line_num_

Definition at line 27 of file program_reader.hpp.

Referenced by stan::io::program_reader::trace().

int stan::io::preproc_event::line_num_

Definition at line 28 of file program_reader.hpp.

Referenced by stan::io::program_reader::trace().

std::string stan::io::preproc_event::path_

Definition at line 30 of file program_reader.hpp.


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