Bolt  1.3
C++ template library with support for OpenCL
Public Member Functions | Public Attributes | List of all members
bolt::amp::new_value_if< Predicate, NewType, OutputType > Struct Template Reference

Public Member Functions

 new_value_if (Predicate p, NewType nv)
 
template<typename InputType >
OutputType operator() (const InputType x) const restrict(amp
 
template<typename InputType , typename PredicateArgumentType >
OutputType operator() (const InputType x, const PredicateArgumentType y) const restrict(amp
 

Public Attributes

OutputType cpu
 
Predicate pred
 
NewType new_value
 

Member Data Documentation

template<typename Predicate , typename NewType , typename OutputType >
OutputType bolt::amp::new_value_if< Predicate, NewType, OutputType >::cpu
Initial value:
{
return pred(x) ? new_value : x

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