Classes | Public Types | Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
cet::includer Class Reference

#include "/cvmfs/nova.opensciencegrid.org/externals/cetlib/v3_06_01/source/cetlib/includer.h"

Classes

struct  frame
 
struct  posinfo
 

Public Types

using const_iterator = std::string::const_iterator
 

Public Member Functions

 includer (std::string const &filename, cet::filepath_maker &abs_filename)
 
 includer (std::istream &is, cet::filepath_maker &abs_filename)
 
const_iterator begin () const
 
const_iterator end () const
 
const_iterator cbegin () const
 
const_iterator cend () const
 
std::string whereis (const_iterator const &it) const
 
std::string highlighted_whereis (const_iterator const &it) const
 
std::string src_whereis (const_iterator const &it) const
 

Private Types

using uint = std::string::size_type
 

Private Member Functions

void include (int including_framenum, std::string const &filename, cet::filepath_maker &abs_filename)
 
void include (std::istream &is, cet::filepath_maker &abs_filename)
 
std::string backtrace (uint from_frame) const
 
void debug () const
 
posinfo get_posinfo (const_iterator const &it) const
 

Private Attributes

std::string text {}
 
std::vector< frameframes
 
std::vector< std::stringrecursion_stack {}
 

Detailed Description

Definition at line 23 of file includer.h.

Member Typedef Documentation

using cet::includer::const_iterator = std::string::const_iterator

Definition at line 27 of file includer.h.

using cet::includer::uint = std::string::size_type
private

Definition at line 24 of file includer.h.

Constructor & Destructor Documentation

cet::includer::includer ( std::string const &  filename,
cet::filepath_maker abs_filename 
)
explicit
cet::includer::includer ( std::istream &  is,
cet::filepath_maker abs_filename 
)
explicit

Member Function Documentation

std::string cet::includer::backtrace ( uint  from_frame) const
private
const_iterator cet::includer::begin ( ) const
inline

Definition at line 35 of file includer.h.

References text.

36  {
37  return text.begin();
38  }
std::string text
Definition: includer.h:80
const_iterator cet::includer::cbegin ( ) const
inline

Definition at line 45 of file includer.h.

References text.

46  {
47  return text.cbegin();
48  }
std::string text
Definition: includer.h:80
const_iterator cet::includer::cend ( ) const
inline

Definition at line 50 of file includer.h.

References highlighted_whereis(), it, src_whereis(), string, text, and whereis().

51  {
52  return text.cend();
53  }
std::string text
Definition: includer.h:80
void cet::includer::debug ( ) const
private
const_iterator cet::includer::end ( ) const
inline

Definition at line 40 of file includer.h.

References text.

41  {
42  return text.end();
43  }
std::string text
Definition: includer.h:80
posinfo cet::includer::get_posinfo ( const_iterator const &  it) const
private
std::string cet::includer::highlighted_whereis ( const_iterator const &  it) const

Referenced by cend().

void cet::includer::include ( int  including_framenum,
std::string const &  filename,
cet::filepath_maker abs_filename 
)
private
void cet::includer::include ( std::istream &  is,
cet::filepath_maker abs_filename 
)
private
std::string cet::includer::src_whereis ( const_iterator const &  it) const

Referenced by cend().

std::string cet::includer::whereis ( const_iterator const &  it) const

Referenced by cend().

Member Data Documentation

std::vector<frame> cet::includer::frames
private

Definition at line 81 of file includer.h.

std::vector<std::string> cet::includer::recursion_stack {}
private

Definition at line 82 of file includer.h.

std::string cet::includer::text {}
private

Definition at line 80 of file includer.h.

Referenced by begin(), cbegin(), cend(), and end().


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