Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Loading...
Searching...
No Matches
backward::SourceFile Class Reference

#include <ogdf/lib/backward/backward.hpp>

Classes

struct  not_isempty
 
struct  not_isspace
 

Public Types

using lines_t = std::vector< std::pair< unsigned, std::string > >
 

Public Member Functions

 SourceFile ()
 
 SourceFile (const SourceFile &from)
 
 SourceFile (const std::string &path)
 
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)
 
void swap (SourceFile &b)
 

Private Attributes

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

Detailed Description

Definition at line 1485 of file backward.hpp.

Member Typedef Documentation

◆ lines_t

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

Definition at line 1487 of file backward.hpp.

Constructor & Destructor Documentation

◆ SourceFile() [1/3]

backward::SourceFile::SourceFile ( )
inline

Definition at line 1489 of file backward.hpp.

◆ SourceFile() [2/3]

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

Definition at line 1490 of file backward.hpp.

◆ SourceFile() [3/3]

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

Definition at line 1580 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 1547 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 1493 of file backward.hpp.

◆ is_open()

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

Definition at line 1491 of file backward.hpp.

◆ operator=()

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

Definition at line 1584 of file backward.hpp.

◆ swap()

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

Definition at line 1568 of file backward.hpp.

Member Data Documentation

◆ _file

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

Definition at line 1593 of file backward.hpp.


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