ValueNode::LooseHandle ValueBaseLink::get_link_vfunc(int i)const
{
/*list_type::const_iterator it = list.begin();
-
+
while(it != list.end() && i-- > 0)
{
++it;
}
-
+
if(it == list.end())
{
return ValueNode::LooseHandle();
if(h)
{
- return h->get_local_name();
+ return h->get_local_name();
}else return String();
}
return i;
}
}
-
+
return list.end();
}
ValueBaseLink::list_type::iterator ValueBaseLink::findlink(ValueNode::Handle x)
return i;
}
}
-
+
return list.end();
}
void ValueBaseLink::add(ValueNode::Handle v)
{
list_type::iterator i = findlink(v);
-
+
if(i != list.end())
{
list.push_back(v);
void ValueBaseLink::remove(ValueNode::Handle v)
{
list_type::iterator i = findlink(v);
-
+
if(i != list.end())
{
if(i != list.end()-1)
*i = list.back();
}
list.pop_back();
- }
+ }
}