예제 #1
0
void Foam::LPtrList<LListBase, T>::operator=(const LPtrList<LListBase, T>& lst)
{
    clear();

    for (const_iterator iter = lst.begin(); iter != lst.end(); ++iter)
    {
        append(iter().clone().ptr());
    }
}
void LPtrList<LListBase, T>::operator=(const LPtrList<LListBase, T>& slpl)
{
    clear();

    for(const_iterator iter = slpl.begin(); iter != slpl.end(); ++iter)
    {
        append(iter().clone().ptr());
    }
}
예제 #3
0
Foam::LPtrList<LListBase, T>::LPtrList(const LPtrList<LListBase, T>& lst)
    :
    LList<LListBase, T*>()
{
    for (const_iterator iter = lst.begin(); iter != lst.end(); ++iter)
    {
        append(iter().clone().ptr());
    }
}
LPtrList<LListBase, T>::LPtrList(const LPtrList<LListBase, T>& slpl)
:
    LList<LListBase, T*>()
{
    for(const_iterator iter = slpl.begin(); iter != slpl.end(); ++iter)
    {
        append(iter().clone().ptr());
    }
}