43 template<
class CONTAINER>
50 template<
class CONTAINER>
57 template<
class CONTAINER>
64 template<
class CONTAINER>
67 int n_objects = c.length();
68 float total_time = c.end();
70 int n_buckets = n_objects/bunch +1;
72 p_time_step = total_time / n_buckets;
73 p_entries.resize(n_buckets);
82 for(; c.valid_index(i); i=c.next_index(i))
84 float t = c.time_of(i);
85 int b = (
int)(t/p_time_step);
86 if (b>=p_entries.num_columns())
87 b = p_entries.num_columns()-1;
88 for (
int bb=b+1; bb < n_buckets ; bb++)
89 if ( t > p_entries(bb).t )
99 template<
class CONTAINER>
103 CONTAINER::Index &in(*(
Index *)inp);
104 in= CONTAINER::bad_index();
106 if (p_container==
NULL)
109 int b = (
int)(t/p_time_step);
111 if (b>=p_entries.num_columns())
112 b = p_entries.num_columns()-1;
114 Index i = p_entries(b).i;
116 for(
Index j=i; p_container->valid_index(j); j = p_container->next_index(j))
118 if (p_container->time_of(j) > t)
129 template<
class CONTAINER>
132 { (void)e1; (void)e2;
return 1; }
134 template<
class CONTAINER>
137 { (void)e;
return s <<
"entry"; }
ostream & operator<<(ostream &s, const EST_TTI_Entry< CONTAINER > &e)
int operator!=(const EST_TTI_Entry< CONTAINER > &e1, const EST_TTI_Entry< CONTAINER > &e2)
int index(EST_TList< T > &l, T &val, bool(*eq)(const EST_UItem *, const EST_UItem *)=NULL)
void index(CONTAINER &c, int bunch=10)