1 #ifndef __JTOOLS__JTRANSFORMABLEMULTIFUNCTION__
2 #define __JTOOLS__JTRANSFORMABLEMULTIFUNCTION__
20 namespace JPP {
using namespace JTOOLS; }
33 template<
class JFunction_t,
38 public JTransformable<JMapLength<JMaplist_t>::value, typename JFunction_t::argument_type>
121 template<
class JPDF_t,
class JPDFMaplist_t,
class JPDFDistance_t>
135 template<
class JHistogram_t,
class JHistogramMaplist_t,
class JHistogramDistance_t>
151 template<
class JMultiFunction_t>
152 void add(
const JMultiFunction_t& input)
154 for (
super_iterator i = this->super_begin(); i != this->super_end(); ++i) {
166 for (
typename function_type::iterator
j = f1.begin();
j != f1.end(); ++
j) {
186 template<
class ...Args>
221 for (
super_iterator i = this->super_begin(); i != this->super_end(); ++i) {
229 function.transform(
get);
230 function.transform(put);
233 this->transformer.reset(transformer.
clone());
249 return object.transformer->read(in);
262 out << static_cast<const multifunction_type&>(object);
264 return object.transformer->
write(out);
281 template<
class JHistogram_t,
282 class JHistogramMaplist_t,
283 class JHistogramDistance_t,
285 class JFunctionMaplist_t,
286 class JFunctionDistance_t>
Interface for binary output.
esac print_variable DETECTOR INPUT_FILE OUTPUT_FILE CDF for TYPE in
virtual int write(const char *buffer, const int length)=0
Write byte array.
The template JSharedPointer class can be used to share a pointer to an object.
do set_variable OUTPUT_DIRECTORY $WORKDIR T
Interface for binary input.
virtual clone_type clone() const
Get clone of this object.