OPAL (Object Oriented Parallel Accelerator Library) 2024.2
OPAL
client::error_handler< Iterator > Struct Template Reference

#include <error_handler.hpp>

Collaboration diagram for client::error_handler< Iterator >:

Classes

struct  result

Public Member Functions

 error_handler (Iterator first, Iterator last)
template<typename Message, typename What>
void operator() (Message const &message, What const &what, Iterator err_pos) const
Iterator get_pos (Iterator err_pos, int &line) const
std::string get_line (Iterator err_pos) const

Public Attributes

Iterator first
Iterator last
std::vector< Iterator > iters

Detailed Description

template<typename Iterator>
struct client::error_handler< Iterator >

Definition at line 20 of file Expression/Parser/error_handler.hpp.


Class Documentation

◆ client::error_handler::result

struct client::error_handler::result
template<typename Iterator>
template<typename>
struct client::error_handler< Iterator >::result< typename >

Definition at line 23 of file Expression/Parser/error_handler.hpp.

Collaboration diagram for client::error_handler< Iterator >::result< typename >:
Class Members
typedef void type

Constructor & Destructor Documentation

◆ error_handler()

template<typename Iterator>
client::error_handler< Iterator >::error_handler ( Iterator first,
Iterator last )
inline

Definition at line 25 of file Expression/Parser/error_handler.hpp.

References first, and last.

Member Function Documentation

◆ get_line()

template<typename Iterator>
std::string client::error_handler< Iterator >::get_line ( Iterator err_pos) const
inline

Definition at line 77 of file Expression/Parser/error_handler.hpp.

References last.

Referenced by operator()().

◆ get_pos()

template<typename Iterator>
Iterator client::error_handler< Iterator >::get_pos ( Iterator err_pos,
int & line ) const
inline

Definition at line 51 of file Expression/Parser/error_handler.hpp.

References first.

Referenced by operator()().

◆ operator()()

template<typename Iterator>
template<typename Message, typename What>
void client::error_handler< Iterator >::operator() ( Message const & message,
What const & what,
Iterator err_pos ) const
inline

Definition at line 29 of file Expression/Parser/error_handler.hpp.

References get_line(), get_pos(), and last.

Here is the call graph for this function:

Member Data Documentation

◆ first

template<typename Iterator>
Iterator client::error_handler< Iterator >::first

Definition at line 86 of file Expression/Parser/error_handler.hpp.

Referenced by error_handler(), and get_pos().

◆ iters

template<typename Iterator>
std::vector<Iterator> client::error_handler< Iterator >::iters

◆ last

template<typename Iterator>
Iterator client::error_handler< Iterator >::last

Definition at line 87 of file Expression/Parser/error_handler.hpp.

Referenced by error_handler(), get_line(), and operator()().


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