orbtree
Public Types | Public Member Functions | Public Attributes | List of all members
orbtree::NVFunc_Adapter_Vec< NVFunc > Struct Template Reference

adapter for functions that take one parameter from a vector of parameters More...

#include <orbtree.h>

Collaboration diagram for orbtree::NVFunc_Adapter_Vec< NVFunc >:
Collaboration graph
[legend]

Public Types

typedef NVFunc::result_type result_type
 definition of result for the tree class to use
 

Public Member Functions

unsigned int get_nr () const
 number of component values returned is the same as the number of parameters
 
void operator() (const typename NVFunc::argument_type &node_value, result_type *res) const
 calculate the result of the given function for the given value with each of the parameters
 
 NVFunc_Adapter_Vec (const std::vector< typename NVFunc::ParType > &pars_, const NVFunc &f_=NVFunc())
 this adapter can only be constructed with a parameter vector
 
 NVFunc_Adapter_Vec (std::vector< typename NVFunc::ParType > &&pars_, const NVFunc &f_=NVFunc())
 this adapter can only be constructed with a parameter vector
 
 NVFunc_Adapter_Vec (const std::vector< typename NVFunc::ParType > &pars_, NVFunc &&f_)
 this adapter can only be constructed with a parameter vector
 
 NVFunc_Adapter_Vec (std::vector< typename NVFunc::ParType > &&pars_, NVFunc &&f_)
 this adapter can only be constructed with a parameter vector
 

Public Attributes

NVFunc f
 
const std::vector< typename NVFunc::ParType > pars
 copy of the parameters
 

Detailed Description

template<class NVFunc>
struct orbtree::NVFunc_Adapter_Vec< NVFunc >

adapter for functions that take one parameter from a vector of parameters

Template Parameters
NVFuncFunction object to adapt. Should be a function that takes one extra parameter of type NVFunc::ParType beside the key / value stored in the tree

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