Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::wave::impl::pp_iterator_functor< ContextT > Class Template Reference

#include <cpp_iterator.hpp>

Public Types

typedef ContextT::token_type result_type
 

Public Member Functions

template<typename IteratorT >
 pp_iterator_functor (ContextT &ctx_, IteratorT const &first_, IteratorT const &last_, typename ContextT::position_type const &pos_)
 
result_type const & operator() ()
 
result_type const & current_token () const
 

Static Public Attributes

static result_type const eof
 

Protected Member Functions

bool on_include_helper (char const *t, char const *s, bool is_system, bool include_next)
 
result_type const & get_next_token ()
 
result_type const & pp_token ()
 
template<typename IteratorT >
bool extract_identifier (IteratorT &it)
 
template<typename IteratorT >
bool ensure_is_last_on_line (IteratorT &it, bool call_hook=true)
 
template<typename IteratorT >
bool skip_to_eol_with_check (IteratorT &it, bool call_hook=true)
 
bool pp_directive ()
 
template<typename IteratorT >
bool handle_pp_directive (IteratorT &it)
 
bool dispatch_directive (tree_parse_info_type const &hit, result_type const &found_directive, token_sequence_type const &found_eoltokens)
 
void replace_undefined_identifiers (token_sequence_type &expanded)
 
void on_include (string_type const &s, bool is_system, bool include_next)
 
void on_include (typename parse_tree_type::const_iterator const &begin, typename parse_tree_type::const_iterator const &end, bool include_next)
 
void on_define (parse_node_type const &node)
 
void on_undefine (lexer_type const &it)
 
void on_ifdef (result_type const &found_directive, lexer_type const &it)
 
void on_ifndef (result_type const &found_directive, lexer_type const &it)
 
void on_else ()
 
void on_endif ()
 
void on_illformed (typename result_type::string_type s)
 
void on_line (typename parse_tree_type::const_iterator const &begin, typename parse_tree_type::const_iterator const &end)
 
void on_if (result_type const &found_directive, typename parse_tree_type::const_iterator const &begin, typename parse_tree_type::const_iterator const &end)
 
void on_elif (result_type const &found_directive, typename parse_tree_type::const_iterator const &begin, typename parse_tree_type::const_iterator const &end)
 
void on_error (typename parse_tree_type::const_iterator const &begin, typename parse_tree_type::const_iterator const &end)
 
bool on_pragma (typename parse_tree_type::const_iterator const &begin, typename parse_tree_type::const_iterator const &end)
 
bool emit_line_directive ()
 
bool returned_from_include ()
 
bool interpret_pragma (token_sequence_type const &pragma_body, token_sequence_type &result)
 

Friends

class pp_iterator< ContextT >
 

Member Typedef Documentation

template<typename ContextT>
typedef ContextT::token_type boost::wave::impl::pp_iterator_functor< ContextT >::result_type

Constructor & Destructor Documentation

template<typename ContextT>
template<typename IteratorT >
boost::wave::impl::pp_iterator_functor< ContextT >::pp_iterator_functor ( ContextT &  ctx_,
IteratorT const &  first_,
IteratorT const &  last_,
typename ContextT::position_type const &  pos_ 
)
inline

Member Function Documentation

template<typename ContextT>
result_type const& boost::wave::impl::pp_iterator_functor< ContextT >::current_token ( ) const
inline
template<typename ContextT >
template<typename IteratorT >
bool boost::wave::impl::pp_iterator_functor< ContextT >::ensure_is_last_on_line ( IteratorT &  it,
bool  call_hook = true 
)
inlineprotected
template<typename ContextT >
bool boost::wave::impl::pp_iterator_functor< ContextT >::interpret_pragma ( token_sequence_type const &  pragma_body,
token_sequence_type &  result 
)
inlineprotected
template<typename ContextT >
void boost::wave::impl::pp_iterator_functor< ContextT >::on_else ( )
inlineprotected

References BOOST_WAVE_THROW_CTX.

template<typename ContextT >
void boost::wave::impl::pp_iterator_functor< ContextT >::on_endif ( )
inlineprotected

References BOOST_WAVE_THROW_CTX.

template<typename ContextT >
void boost::wave::impl::pp_iterator_functor< ContextT >::on_error ( typename parse_tree_type::const_iterator const &  begin,
typename parse_tree_type::const_iterator const &  end 
)
inlineprotected
template<typename ContextT >
void boost::wave::impl::pp_iterator_functor< ContextT >::on_ifdef ( result_type const &  found_directive,
lexer_type const &  it 
)
inlineprotected

References boost::it.

template<typename ContextT >
void boost::wave::impl::pp_iterator_functor< ContextT >::on_ifndef ( result_type const &  found_directive,
lexer_type const &  it 
)
inlineprotected

References boost::it.

template<typename ContextT >
void boost::wave::impl::pp_iterator_functor< ContextT >::on_illformed ( typename result_type::string_type  s)
inlineprotected
template<typename ContextT >
void boost::wave::impl::pp_iterator_functor< ContextT >::on_include ( string_type const &  s,
bool  is_system,
bool  include_next 
)
inlineprotected
template<typename ContextT >
void boost::wave::impl::pp_iterator_functor< ContextT >::on_include ( typename parse_tree_type::const_iterator const &  begin,
typename parse_tree_type::const_iterator const &  end,
bool  include_next 
)
inlineprotected
template<typename ContextT >
bool boost::wave::impl::pp_iterator_functor< ContextT >::on_include_helper ( char const *  t,
char const *  s,
bool  is_system,
bool  include_next 
)
inlineprotected
template<typename ContextT >
void boost::wave::impl::pp_iterator_functor< ContextT >::on_undefine ( lexer_type const &  it)
inlineprotected

References BOOST_ASSERT.

template<typename ContextT >
void boost::wave::impl::pp_iterator_functor< ContextT >::replace_undefined_identifiers ( token_sequence_type &  expanded)
inlineprotected
template<typename ContextT >
bool boost::wave::impl::pp_iterator_functor< ContextT >::returned_from_include ( )
inlineprotected
template<typename ContextT >
template<typename IteratorT >
bool boost::wave::impl::pp_iterator_functor< ContextT >::skip_to_eol_with_check ( IteratorT &  it,
bool  call_hook = true 
)
inlineprotected

Friends And Related Function Documentation

template<typename ContextT>
friend class pp_iterator< ContextT >
friend

Member Data Documentation

template<typename ContextT>
pp_iterator_functor< ContextT >::result_type const boost::wave::impl::pp_iterator_functor< ContextT >::eof
static

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