Hydra  4.0.1
A header-only templated C++ framework to perform data analysis on massively parallel platforms.
hydra::Constant< ReturnType > Struct Template Reference

#include <Constant.h>

Collaboration diagram for hydra::Constant< ReturnType >:

Public Types

typedef void hydra_functor_tag
 
typedef std::true_type is_functor
 
typedef ReturnType return_type
 

Public Member Functions

 Constant ()=delete
 
 Constant (const return_type _Cte)
 
template<typename T >
__hydra_host__ __hydra_device__ Constant (const Constant< T > &other)
 
void AddUserParameters (std::vector< hydra::Parameter *> &user_parameters)
 
size_t GetNumberOfParameters () const
 
size_t GetParametersKey ()
 
template<typename ... T>
__hydra_host__ __hydra_device__ return_type operator() (T &...) const
 
void PrintRegisteredParameters ()
 
void SetParameters (const std::vector< double > &parameters)
 

Detailed Description

template<typename ReturnType>
struct hydra::Constant< ReturnType >

Member Typedef Documentation

◆ hydra_functor_tag

template<typename ReturnType >
typedef void hydra::Constant< ReturnType >::hydra_functor_tag

◆ is_functor

template<typename ReturnType >
typedef std::true_type hydra::Constant< ReturnType >::is_functor

◆ return_type

template<typename ReturnType >
typedef ReturnType hydra::Constant< ReturnType >::return_type

Constructor & Destructor Documentation

◆ Constant() [1/3]

template<typename ReturnType >
hydra::Constant< ReturnType >::Constant ( )
delete

◆ Constant() [2/3]

template<typename ReturnType >
hydra::Constant< ReturnType >::Constant ( const return_type  _Cte)
inline

◆ Constant() [3/3]

template<typename ReturnType >
template<typename T >
__hydra_host__ __hydra_device__ hydra::Constant< ReturnType >::Constant ( const Constant< T > &  other)
inline

Member Function Documentation

◆ AddUserParameters()

template<typename ReturnType >
void hydra::Constant< ReturnType >::AddUserParameters ( std::vector< hydra::Parameter *> &  user_parameters)
inline

◆ GetNumberOfParameters()

template<typename ReturnType >
size_t hydra::Constant< ReturnType >::GetNumberOfParameters ( ) const
inline

◆ GetParametersKey()

template<typename ReturnType >
size_t hydra::Constant< ReturnType >::GetParametersKey ( )
inline

◆ operator()()

template<typename ReturnType >
template<typename ... T>
__hydra_host__ __hydra_device__ return_type hydra::Constant< ReturnType >::operator() ( T &  ...) const
inline

◆ PrintRegisteredParameters()

template<typename ReturnType >
void hydra::Constant< ReturnType >::PrintRegisteredParameters ( )
inline

◆ SetParameters()

template<typename ReturnType >
void hydra::Constant< ReturnType >::SetParameters ( const std::vector< double > &  parameters)
inline

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