OpenStructure
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions
binary_dispatch_op< FNC > Struct Template Reference

#include <dispatch.hh>

Public Member Functions

ImageStateBasePtr operator() (const ImageStateBase *lhs, const ImageStateBase *rhs)
 
template<typename T1 , class D1 >
ImageStateBasePtr left (const ImageStateImpl< T1, D1 > *lhs, const ImageStateBase *rhs)
 
template<typename T1 , class D1 , typename T2 , class D2 >
ImageStateBasePtr right (const ImageStateImpl< T1, D1 > *lhs, const ImageStateImpl< T2, D2 > *rhs)
 

Detailed Description

template<template< typename T1, class D1, typename T2, class D2 > class FNC>
struct ost::img::image_state::dispatch::binary_dispatch_op< FNC >

out-of-place binary dispatch

the template parameter is expected to be a class with the following specifications:

template<typename T1, class D1, typename T2, class D2> struct FNC { ImageStateBasePtr operator()(const ImageStateImpl<T1,D1>* lhs, const ImageStateImpl<T2,D2>* rhs); };

The resulting image state is returned.

Note that partial specialization is possible.

Definition at line 214 of file dispatch.hh.

Member Function Documentation

ImageStateBasePtr left ( const ImageStateImpl< T1, D1 > *  lhs,
const ImageStateBase rhs 
)
inline

Definition at line 236 of file dispatch.hh.

ImageStateBasePtr operator() ( const ImageStateBase lhs,
const ImageStateBase rhs 
)
inline

Definition at line 219 of file dispatch.hh.

ImageStateBasePtr right ( const ImageStateImpl< T1, D1 > *  lhs,
const ImageStateImpl< T2, D2 > *  rhs 
)
inline

Definition at line 250 of file dispatch.hh.


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