Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

backward::SnippetFactory Class Reference

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

Public Types

using lines_t = SourceFile::lines_t
 

Public Member Functions

lines_t get_coalesced_snippet (const std::string &filename, unsigned line_a, unsigned line_b, unsigned context_size)
 
lines_t get_combined_snippet (const std::string &filename_a, unsigned line_a, const std::string &filename_b, unsigned line_b, unsigned context_size)
 
lines_t get_snippet (const std::string &filename, unsigned line_start, unsigned context_size)
 

Private Types

using src_files_t = details::hashtable< std::string, SourceFile >::type
 

Private Member Functions

SourceFileget_src_file (const std::string &filename)
 

Private Attributes

src_files_t _src_files
 

Detailed Description

Definition at line 1601 of file backward.hpp.

Member Typedef Documentation

◆ lines_t

◆ src_files_t

Definition at line 1648 of file backward.hpp.

Member Function Documentation

◆ get_coalesced_snippet()

lines_t backward::SnippetFactory::get_coalesced_snippet ( const std::string &  filename,
unsigned  line_a,
unsigned  line_b,
unsigned  context_size 
)
inline

Definition at line 1627 of file backward.hpp.

◆ get_combined_snippet()

lines_t backward::SnippetFactory::get_combined_snippet ( const std::string &  filename_a,
unsigned  line_a,
const std::string &  filename_b,
unsigned  line_b,
unsigned  context_size 
)
inline

Definition at line 1613 of file backward.hpp.

◆ get_snippet()

lines_t backward::SnippetFactory::get_snippet ( const std::string &  filename,
unsigned  line_start,
unsigned  context_size 
)
inline

Definition at line 1605 of file backward.hpp.

◆ get_src_file()

SourceFile& backward::SnippetFactory::get_src_file ( const std::string &  filename)
inlineprivate

Definition at line 1651 of file backward.hpp.

Member Data Documentation

◆ _src_files

src_files_t backward::SnippetFactory::_src_files
private

Definition at line 1649 of file backward.hpp.


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