[ VIGRA Homepage | Function Index | Class Index | Namespaces | File List | Main Page ]

| Value_Chooser |

chooses between default type and type supplied More...

`#include <vigra/random_forest/rf_common.hxx>`

List of all members.

## Detailed Description

### template<class T, class C>
class vigra::detail::Value_Chooser< T, C >

chooses between default type and type supplied

This is an internal class and you shouldn't really care about it. Just pass on used in RandomForest.learn() Usage:

          // example: use container type supplied by user or ArrayVector if
          //          rf_default() was specified as argument;
          template<class Container_t>
          void do_some_foo(Container_t in)
          {
              typedef ArrayVector<int>    Default_Container_t;
              Default_Container_t         default_value;
              Value_Chooser<Container_t,  Default_Container_t>
                          choose(in, default_value);

              // if the user didn't care and the in was of type
              // RF_DEFAULT then default_value is used.
              do_some_more_foo(choose.value());
          }
          Value_Chooser choose_val<Type, Default_Type>
     *

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

- vigra/random_forest/rf_common.hxx

© Ullrich Köthe (ullrich.koethe@iwr.uni-heidelberg.de) Heidelberg Collaboratory for Image Processing, University of Heidelberg, Germany | html generated using doxygen and Python vigra 1.7.1 (3 Dec 2010)