21 #ifndef STL_SCOPED_INDEX_IMPL_H 22 #define STL_SCOPED_INDEX_IMPL_H 24 #ifndef STL_SCOPED_INDEX_H 25 #include "SheafSystem/stl_scoped_index.h" 28 #ifndef ASSERT_CONTRACT_H 29 #include "SheafSystem/assert_contract.h" 32 using namespace sheaf;
51 ensure(index() == xindex);
81 bool result = compare_policy::less_than(_index, xother.
index());
85 ensure(result == (compare_policy::less_than(index(), xother.
index())));
101 bool result = compare_policy::equal(_index, xother.
index());
105 ensure(result == (compare_policy::equal(index(), xother.
index())));
112 #endif // ifndef STL_SCOPED_INDEX_IMPL_H Wrapper for scoped_index used for standard template library tree containers (set, multiset...
~stl_scoped_index()
Destructor. Not virtual; this can not be a base class.
stl_scoped_index(const scoped_index &xindex)
Creates a wrapper of scoped_index, xindex.
bool operator==(const stl_scoped_index< T > &xother) const
True if this is equivalent to xother.
bool operator<(const stl_scoped_index< T > &xother) const
True if this is less than xother.
An index within the external ("client") scope of a given id space.
const scoped_index & index() const
scoped_index being wrapped.
Namespace for the sheaves component of the sheaf system.