Classes | Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
backward::SourceFile Class Reference

#include <backward.hpp>

Classes

struct  not_isempty
 
struct  not_isspace
 

Public Types

typedef std::vector< std::pair< unsigned, std::string > > lines_t
 

Public Member Functions

lines_t get_lines (unsigned line_start, unsigned line_count)
 
lines_tget_lines (unsigned line_start, unsigned line_count, lines_t &lines)
 
bool is_open () const
 
SourceFileoperator= (const SourceFile &from)
 
 SourceFile ()
 
 SourceFile (const SourceFile &from)
 
 SourceFile (const std::string &path)
 
void swap (SourceFile &b)
 

Private Member Functions

const std::vector< std::string > & get_paths_from_env_variable ()
 
std::vector< std::string > get_paths_from_env_variable_impl ()
 

Private Attributes

details::handle< std::ifstream *, details::default_delete< std::ifstream * > > _file
 

Detailed Description

Definition at line 3404 of file backward.hpp.

Member Typedef Documentation

◆ lines_t

typedef std::vector<std::pair<unsigned, std::string> > backward::SourceFile::lines_t

Definition at line 3406 of file backward.hpp.

Constructor & Destructor Documentation

◆ SourceFile() [1/3]

backward::SourceFile::SourceFile ( )
inline

Definition at line 3408 of file backward.hpp.

◆ SourceFile() [2/3]

backward::SourceFile::SourceFile ( const std::string &  path)
inline

Definition at line 3409 of file backward.hpp.

◆ SourceFile() [3/3]

backward::SourceFile::SourceFile ( const SourceFile from)
inlineexplicit

Definition at line 3505 of file backward.hpp.

Member Function Documentation

◆ get_lines() [1/2]

lines_t backward::SourceFile::get_lines ( unsigned  line_start,
unsigned  line_count 
)
inline

Definition at line 3477 of file backward.hpp.

◆ get_lines() [2/2]

lines_t& backward::SourceFile::get_lines ( unsigned  line_start,
unsigned  line_count,
lines_t lines 
)
inline

Definition at line 3427 of file backward.hpp.

◆ get_paths_from_env_variable()

const std::vector<std::string>& backward::SourceFile::get_paths_from_env_variable ( )
inlineprivate

Definition at line 3529 of file backward.hpp.

◆ get_paths_from_env_variable_impl()

std::vector<std::string> backward::SourceFile::get_paths_from_env_variable_impl ( )
inlineprivate

Definition at line 3520 of file backward.hpp.

◆ is_open()

bool backward::SourceFile::is_open ( ) const
inline

Definition at line 3425 of file backward.hpp.

◆ operator=()

SourceFile& backward::SourceFile::operator= ( const SourceFile from)
inline

Definition at line 3509 of file backward.hpp.

◆ swap()

void backward::SourceFile::swap ( SourceFile b)
inline

Definition at line 3496 of file backward.hpp.

Member Data Documentation

◆ _file

details::handle<std::ifstream *, details::default_delete<std::ifstream *> > backward::SourceFile::_file
private

Definition at line 3518 of file backward.hpp.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:51