17#ifndef __H__UG__PLUGINS__D3F__VALUE_BY_ID__
18#define __H__UG__PLUGINS__D3F__VALUE_BY_ID__
33template <
typename TIdManager>
72 std::vector<number>& val
Definition value_by_id.h:36
std::vector< bool > m_assigned
if the data for the id has been read (i.e. specified)
Definition value_by_id.h:82
std::vector< number > m_data
the data as a raw array for every id
Definition value_by_id.h:81
void append_value(long ident, std::vector< number > &val)
appends a value
Definition value_by_id_impl.h:47
size_t m_numCols
number of the "columns" in the data array (or 0 if not specified yet)
Definition value_by_id.h:79
void load_values_from(const char *file_name)
loads values from a file
Definition value_by_id_impl.h:148
number interpolate(number x, number y, number t) const
gets the value for a given point
Definition value_by_id_impl.h:24
void set_interval(number delta)
sets the 'time interval' to determine the column
Definition value_by_id.h:55
size_t max_identifier() const
returns the maximum index
Definition value_by_id.h:64
ValueById(number default_value)
constructor
Definition value_by_id.h:45
number m_interval
interval for the 'time' parameter to choose the correct column
Definition value_by_id.h:80
TIdManager id_manager_type
the id manager
Definition value_by_id.h:40
number m_default_value
the value to return if no id specified
Definition value_by_id.h:83
size_t num_columns() const
returns the number of the 'columns'
Definition value_by_id.h:61