synfig-core  1.0.3
Static Public Member Functions | List of all members
synfig::ValueAverage Class Reference

#include <valueoperations.h>

Static Public Member Functions

static
types_namespace::TypeWeightedValueBase
get_weighted_type_for (Type &type)
static Typeconvert_to_weighted_type (Type &type)
static Typeget_type_from_weighted (Type &type)
static bool check_weighted_type (Type &type)
static bool check_type (Type &type)
static bool check_type (const ValueBase &value)
static ValueBase add (const ValueBase &value_a, const ValueBase &value_b, const ValueBase &default_value)
static ValueBase add (const ValueBase &value_a, const ValueBase &value_b)
static ValueBase multiply (const ValueBase &value, Real amplifier)
template<typename ConstIterator , typename ConstWeightIterator >
static ValueBase average_generic (ConstIterator begin, ConstIterator end, ConstWeightIterator weight_begin, ConstWeightIterator weight_end, const ValueBase &default_value=ValueBase())
template<typename ConstIterator >
static ValueBase average_generic (ConstIterator begin, ConstIterator end, const ValueBase &default_value=ValueBase())
static ValueBase average (const ValueBase &list, const ValueBase &weights, const ValueBase &default_value)
static ValueBase average (const ValueBase &list, const ValueBase &weights)
static ValueBase average (const ValueBase &list)
static ValueBase average_weighted (const ValueBase &weighted_list, const ValueBase &default_value)
static ValueBase average_weighted (const ValueBase &weighted_list)
template<typename Iterator , typename ConstWeightIterator >
static void set_average_value_generic (Iterator begin, Iterator end, ConstWeightIterator weight_begin, ConstWeightIterator weight_end, const ValueBase &value)
template<typename Iterator >
static void set_average_value_generic (Iterator begin, Iterator end, const ValueBase &value)
static void set_average_value (ValueBase &list, const ValueBase &weights, const ValueBase &value)
static void set_average_value (ValueBase &list, const ValueBase &value)
static void set_average_value_weighted (ValueBase &weighted_list, const ValueBase &value)

Detailed Description

Todo:
writeme

Member Function Documentation

types_namespace::TypeWeightedValueBase * ValueAverage::get_weighted_type_for ( Type type)
static
Type & ValueAverage::convert_to_weighted_type ( Type type)
static

References synfig::type_nil.

Type & ValueAverage::get_type_from_weighted ( Type type)
static

References synfig::type_nil.

bool ValueAverage::check_weighted_type ( Type type)
static
static bool synfig::ValueAverage::check_type ( Type type)
inlinestatic
static bool synfig::ValueAverage::check_type ( const ValueBase value)
inlinestatic

References check_type(), and synfig::ValueBase::get_type().

Referenced by check_type().

static ValueBase synfig::ValueAverage::add ( const ValueBase value_a,
const ValueBase value_b,
const ValueBase default_value 
)
inlinestatic
static ValueBase synfig::ValueAverage::add ( const ValueBase value_a,
const ValueBase value_b 
)
inlinestatic

References add().

Referenced by add().

static ValueBase synfig::ValueAverage::multiply ( const ValueBase value,
Real  amplifier 
)
inlinestatic
template<typename ConstIterator , typename ConstWeightIterator >
static ValueBase synfig::ValueAverage::average_generic ( ConstIterator  begin,
ConstIterator  end,
ConstWeightIterator  weight_begin,
ConstWeightIterator  weight_end,
const ValueBase default_value = ValueBase() 
)
inlinestatic
template<typename ConstIterator >
static ValueBase synfig::ValueAverage::average_generic ( ConstIterator  begin,
ConstIterator  end,
const ValueBase default_value = ValueBase() 
)
inlinestatic

References average_generic().

Referenced by average_generic().

static ValueBase synfig::ValueAverage::average ( const ValueBase list,
const ValueBase weights,
const ValueBase default_value 
)
inlinestatic
static ValueBase synfig::ValueAverage::average ( const ValueBase list,
const ValueBase weights 
)
inlinestatic

References average().

Referenced by average().

static ValueBase synfig::ValueAverage::average ( const ValueBase list)
inlinestatic

References average().

Referenced by average().

ValueBase ValueAverage::average_weighted ( const ValueBase weighted_list,
const ValueBase default_value 
)
static
static ValueBase synfig::ValueAverage::average_weighted ( const ValueBase weighted_list)
inlinestatic

References average_weighted().

Referenced by average_weighted().

template<typename Iterator , typename ConstWeightIterator >
static void synfig::ValueAverage::set_average_value_generic ( Iterator  begin,
Iterator  end,
ConstWeightIterator  weight_begin,
ConstWeightIterator  weight_end,
const ValueBase value 
)
inlinestatic
template<typename Iterator >
static void synfig::ValueAverage::set_average_value_generic ( Iterator  begin,
Iterator  end,
const ValueBase value 
)
inlinestatic
static void synfig::ValueAverage::set_average_value ( ValueBase list,
const ValueBase weights,
const ValueBase value 
)
inlinestatic
static void synfig::ValueAverage::set_average_value ( ValueBase list,
const ValueBase value 
)
inlinestatic

References set_average_value().

Referenced by set_average_value().

void ValueAverage::set_average_value_weighted ( ValueBase weighted_list,
const ValueBase value 
)
static

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