#include <iostream>
Go to the source code of this file.
|
template<class T > |
OSTREAM & | operator<< (OSTREAM &, const List< T > &) |
|
template<class T > |
int | operator== (const List< T > &, const List< T > &) |
|
template<class T > |
List< T > | Union (const List< T > &, const List< T > &) |
|
template<class T > |
List< T > | Difference (const List< T > &, const List< T > &) |
|
template<class T > |
List< T > | Union (const List< T > &, const List< T > &, int(*ecmpf)(const T &, const T &)) |
|
template<class T > |
List< T > | Difference (const List< T > &, const List< T > &, int(*ecmpf)(const T &, const T &)) |
|
template<class T > |
List< T > | Difference (const List< T > &F, const T &G) |
|
template<class T > |
List< T > | Difference (const List< T > &F, const T &G, int(*ecmpf)(const T &, const T &)) |
|
template<class T > |
List< T > | Union (const List< T > &, const List< T > &, int(*cmpf)(const T &, const T &), void(*insf)(T &, const T &)) |
|
template<class T > |
T | prod (const List< T > &) |
|
template<class T > |
bool | find (const List< T > &, const T &t) |
|
template<class T > |
bool | find (const List< T > &F, const T &t, int(*ecmpf)(const T &, const T &)) |
|
◆ OSTREAM
◆ Difference() [1/4]
Definition at line 622 of file ftmpl_list.cc.
623{
628 for (
i = F;
i.hasItem(); ++
i )
629 {
632 for (
j =
G;
j.hasItem() && (!
found); ++
j )
636 }
637 return L;
638}
◆ Difference() [2/4]
Definition at line 641 of file ftmpl_list.cc.
642{
647 for (
i = F;
i.hasItem(); ++
i )
648 {
651 for (
j =
G;
j.hasItem() && (!
found); ++
j )
655 }
656 return L;
657}
◆ Difference() [3/4]
Definition at line 675 of file ftmpl_list.cc.
676{
680 for (
i = F;
i.hasItem(); ++
i )
681 {
685 }
686 return L;
687}
◆ Difference() [4/4]
Definition at line 660 of file ftmpl_list.cc.
661{
665 for (
i = F;
i.hasItem(); ++
i )
666 {
670 }
671 return L;
672}
◆ find() [1/2]
Definition at line 700 of file ftmpl_list.cc.
701{
702 if (F.
length() == 0)
return false;
705 {
706 if (
J.getItem() == t)
707 return true;
709 }
710 return false;
711}
◆ find() [2/2]
Definition at line 714 of file ftmpl_list.cc.
715{
716 if (F.
length() == 0)
return false;
719 {
720 if (
ecmpf (
J.getItem(), t))
721 return true;
723 }
724 return false;
725}
◆ operator<<()
Definition at line 555 of file ftmpl_list.cc.
556{
559}
void print(OSTREAM &) const
◆ operator==()
Definition at line 176 of file ftmpl_list.cc.
177{
179 return 0;
182 {
184 return 0;
186 }
187
188 return 1;
189}
◆ prod()
◆ Union() [1/3]
Definition at line 563 of file ftmpl_list.cc.
564{
569
570 for (
i = F;
i.hasItem();
i++ )
571 {
575 while ( ( !
iselt ) &&
j.hasItem() )
576 {
579 }
582 }
583 return L;
584}
◆ Union() [2/3]
Definition at line 587 of file ftmpl_list.cc.
588{
591
592 for (
i = F;
i.hasItem(); ++
i )
594 return L;
595}
◆ Union() [3/3]
Definition at line 598 of file ftmpl_list.cc.
599{
604
605 for (
i = F;
i.hasItem();
i++ )
606 {
610 while ( ( !
iselt ) &&
j.hasItem() )
611 {
614 }
617 }
618 return L;
619}