PandA-2024.02
Public Member Functions | Private Types | Private Attributes
for_each_functor< T, visitor_obj > Class Template Reference

functor used to traverse sequences with std::for_each More...

#include <visitor.hpp>

Inheritance diagram for for_each_functor< T, visitor_obj >:
Inheritance graph
[legend]
Collaboration diagram for for_each_functor< T, visitor_obj >:
Collaboration graph
[legend]

Public Member Functions

 for_each_functor (const visitor_function_type _visitor_function, visitor_type _vo)
 constructor More...
 
void operator() (const refcount< T > &x) const
 functor More...
 

Private Types

using visitor_type = visitor_obj *const
 visitor type definition More...
 
using visitor_function_type = void(T::*const)(visitor_type) const
 

Private Attributes

const visitor_function_type visitor_function
 visitor member More...
 
visitor_type vo
 visitor object More...
 

Detailed Description

template<class T, class visitor_obj>
class for_each_functor< T, visitor_obj >

functor used to traverse sequences with std::for_each

Definition at line 133 of file visitor.hpp.

Member Typedef Documentation

◆ visitor_function_type

template<class T , class visitor_obj >
using for_each_functor< T, visitor_obj >::visitor_function_type = void (T::*const)(visitor_type) const
private

Definition at line 137 of file visitor.hpp.

◆ visitor_type

template<class T , class visitor_obj >
using for_each_functor< T, visitor_obj >::visitor_type = visitor_obj* const
private

visitor type definition

Definition at line 136 of file visitor.hpp.

Constructor & Destructor Documentation

◆ for_each_functor()

template<class T , class visitor_obj >
for_each_functor< T, visitor_obj >::for_each_functor ( const visitor_function_type  _visitor_function,
visitor_type  _vo 
)
inline

constructor

Definition at line 141 of file visitor.hpp.

Member Function Documentation

◆ operator()()

template<class T , class visitor_obj >
void for_each_functor< T, visitor_obj >::operator() ( const refcount< T > &  x) const
inline

functor

Definition at line 146 of file visitor.hpp.

References refcount< T >::get().

Here is the call graph for this function:

Field Documentation

◆ visitor_function

template<class T , class visitor_obj >
const visitor_function_type for_each_functor< T, visitor_obj >::visitor_function
private

visitor member

Definition at line 153 of file visitor.hpp.

◆ vo

template<class T , class visitor_obj >
visitor_type for_each_functor< T, visitor_obj >::vo
private

visitor object

Definition at line 155 of file visitor.hpp.


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

Generated on Mon Feb 12 2024 13:03:51 for PandA-2024.02 by doxygen 1.8.13