23 #ifndef SHEAF_DLL_SPEC_H 24 #include "SheafSystem/sheaf_dll_spec.h" 28 #include "SheafSystem/std_set.h" 31 #ifndef STD_IOSTREAM_H 32 #include "SheafSystem/std_iostream.h" 35 #ifndef STD_ITERATOR_H 36 #include "SheafSystem/std_iterator.h" 47 class SHEAF_DLL_SPEC
int_set :
public std::set<int>
65 int_set(
const int* xmbrs,
int xct);
91 void insert_members(
const int* xmbrs,
int xct);
96 void insert_members(
const subposet* xmbrs);
106 return (find(xindex) != end());
117 return (find(xindex) != end());
123 bool is_singleton()
const;
131 bool set_includes(
const int_set* other,
bool this_is_much_larger =
false)
const;
146 void set_union_sa(
const int_set* other);
156 void set_intersection_pa(
const int_set* other,
int_set* result)
const;
161 void set_intersection_sa(
const int_set* other);
177 void set_difference_pa(
const int_set* other,
int_set* result)
const;
185 void set_difference_sa(
int_set* other,
bool this_is_much_larger =
false);
207 #endif // ifndef INT_SET_H An STL set representation for a set of integers.
bool contains(int xindex) const
True if this set contains xindex Deprecated - use contains_member(int xindex)
A client handle for a subposet.
bool contains_member(int xindex) const
True if this set contains xindex True if this set contains xindex.
void remove_member(int xmbr)
Remove member with index xmbr; just for consistency with subposet.
SHEAF_DLL_SPEC std::ostream & operator<<(std::ostream &os, const dof_descriptor_array &p)
Insert dof_descriptor_array& p into ostream& os.
void insert_member(int xmbr)
Insert member with index xmbr; just for consistency with subposet.
Namespace for the sheaves component of the sheaf system.