Tatooine
Public Member Functions | Private Attributes | List of all members
tatooine::gl::include_tree Struct Reference

#include <includetree.h>

Collaboration diagram for tatooine::gl::include_tree:
[legend]

Public Member Functions

auto line_number () const
 
auto line_number () -> auto &
 
auto num_lines () const
 
auto num_lines () -> auto &
 
auto path () const -> auto const &
 
auto path () -> auto &
 
auto nested_include_trees () const -> auto const &
 
auto nested_include_trees () -> auto &
 
auto parent () const -> auto const &
 
auto has_parent () const -> bool
 
 include_tree ()
 
 include_tree (std::size_t line_number, std::size_t num_lines, std::filesystem::path const &path, std::list< include_tree > const &nested_include_trees, include_tree const &parent)
 
 include_tree (std::size_t line_number, std::size_t num_lines, std::filesystem::path const &path, std::list< include_tree > const &nested_include_trees)
 
 include_tree (std::size_t line_number, std::size_t num_lines, std::filesystem::path const &path)
 
 include_tree (std::size_t line_number, std::size_t num_lines, std::filesystem::path const &path, include_tree const &parent)
 
auto parse_line (std::size_t n) const -> std::pair< include_tree const &, std::size_t >
 returns file and line number More...
 
auto num_lines_with_includes () const -> std::size_t
 
auto print (std::size_t indent=0) const -> void
 

Private Attributes

int m_line_number
 
std::size_t m_num_lines
 
std::filesystem::path m_path
 
std::list< include_treem_nested_include_trees
 
include_tree const * m_parent
 

Constructor & Destructor Documentation

◆ include_tree() [1/5]

◆ include_tree() [2/5]

tatooine::gl::include_tree::include_tree ( std::size_t  line_number,
std::size_t  num_lines,
std::filesystem::path const &  path,
std::list< include_tree > const &  nested_include_trees,
include_tree const &  parent 
)
inline

◆ include_tree() [3/5]

tatooine::gl::include_tree::include_tree ( std::size_t  line_number,
std::size_t  num_lines,
std::filesystem::path const &  path,
std::list< include_tree > const &  nested_include_trees 
)
inline

◆ include_tree() [4/5]

tatooine::gl::include_tree::include_tree ( std::size_t  line_number,
std::size_t  num_lines,
std::filesystem::path const &  path 
)
inline

◆ include_tree() [5/5]

tatooine::gl::include_tree::include_tree ( std::size_t  line_number,
std::size_t  num_lines,
std::filesystem::path const &  path,
include_tree const &  parent 
)
inline

Member Function Documentation

◆ has_parent()

auto tatooine::gl::include_tree::has_parent ( ) const -> bool
inline

◆ line_number() [1/2]

auto tatooine::gl::include_tree::line_number ( ) -> auto&
inline

◆ line_number() [2/2]

auto tatooine::gl::include_tree::line_number ( ) const
inline

◆ nested_include_trees() [1/2]

auto tatooine::gl::include_tree::nested_include_trees ( ) -> auto&
inline

◆ nested_include_trees() [2/2]

auto tatooine::gl::include_tree::nested_include_trees ( ) const -> auto const&
inline

◆ num_lines() [1/2]

auto tatooine::gl::include_tree::num_lines ( ) -> auto&
inline

◆ num_lines() [2/2]

auto tatooine::gl::include_tree::num_lines ( ) const
inline

◆ num_lines_with_includes()

auto tatooine::gl::include_tree::num_lines_with_includes ( ) const -> std::size_t
inline

◆ parent()

auto tatooine::gl::include_tree::parent ( ) const -> auto const&
inline

◆ parse_line()

auto tatooine::gl::include_tree::parse_line ( std::size_t  n) const -> std::pair<include_tree const&, std::size_t>
inline

returns file and line number

◆ path() [1/2]

auto tatooine::gl::include_tree::path ( ) -> auto&
inline

◆ path() [2/2]

auto tatooine::gl::include_tree::path ( ) const -> auto const&
inline

◆ print()

auto tatooine::gl::include_tree::print ( std::size_t  indent = 0) const -> void
inline

Member Data Documentation

◆ m_line_number

int tatooine::gl::include_tree::m_line_number
private

◆ m_nested_include_trees

std::list<include_tree> tatooine::gl::include_tree::m_nested_include_trees
private

◆ m_num_lines

std::size_t tatooine::gl::include_tree::m_num_lines
private

◆ m_parent

include_tree const* tatooine::gl::include_tree::m_parent
private

◆ m_path

std::filesystem::path tatooine::gl::include_tree::m_path
private

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