Polymake Template Library (PTL): pm::GenericMutableSet< TSet, E, Comparator > Class Template Reference
pm::GenericMutableSet< TSet, E, Comparator > Class Template Reference

Generic type for ordered mutable sets More...

Inheritance diagram for pm::GenericMutableSet< TSet, E, Comparator >:
Collaboration diagram for pm::GenericMutableSet< TSet, E, Comparator >:

Public Types

typedef E element_type
 element types
 
typedef Comparator element_comparator
 functor type for comparing elements
 
typedef GenericSet generic_type
 generic type
 

Public Member Functions

template<typename Right >
top_type & operator+= (const Right &x)
 Set union
 
template<typename Right >
bool collect (const Right &x)
 Add to the set, report true if existed formerly.
 
template<typename Right >
top_type & operator-= (const Right &x)
 Set difference
 
template<typename TSet2 , typename E2 >
top_type & operator*= (const GenericSet< TSet2, E2, Comparator > &s)
 Set intersection
 
template<typename Right >
top_type & operator^= (const Right &x)
 Symmetrical difference.
 
template<typename TSet2 , typename E2 >
Set< E, Comparator > extract_symdif (const GenericSet< TSet2, E2, Comparator > &s)
 Compute the symmetrical difference and make *this equal to s.
 

Detailed Description

template<typename TSet, typename E = typename TSet::element_type, typename Comparator = typename TSet::element_comparator>
class pm::GenericMutableSet< TSet, E, Comparator >

Generic type for ordered mutable sets


The documentation for this class was generated from the following file: