{
#ifndef NPRINT
mtor << "voice_element { dur :"<< duration_ <<"\n";
+ mtor << "principal: " << principal_req_l_->name() << "\n";
for (iter_top(req_p_list_,rc); rc.ok(); rc++) {
rc->print();
}
+
mtor << "}\n";
#endif
}
void
Voice_element::add(Request*r)
{
+ if (! principal_req_l_ )
+ principal_req_l_ = r;
+
if (r->duration()) {
assert (!duration_ || duration_ == r->duration());
duration_ = r->duration();
Voice_element::Voice_element()
{
+ principal_req_l_ = 0;
voice_C_ = 0;
duration_ = 0;
}
Voice_element::Voice_element(Voice_element const&src)
: Input(src)
{
-
voice_C_=0;
for (iter_top(src.req_p_list_, i); i.ok(); i++)
add(i->clone());