glucat  0.8.2
Classes | Namespaces | Functions
index_set.h File Reference
#include "glucat/global.h"
#include "glucat/errors.h"
#include <boost/static_assert.hpp>
#include <bitset>
#include <utility>
Include dependency graph for index_set.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  glucat::index_set< LO, HI >
 Index set class based on std::bitset<> in Gnu standard C++ library. More...
 
class  glucat::index_set< LO, HI >
 Index set class based on std::bitset<> in Gnu standard C++ library. More...
 
class  glucat::index_set< LO, HI >::reference
 Index set member reference. More...
 

Namespaces

 glucat
 

Functions

template<const index_t LO, const index_t HI>
const index_set< LO, HI > glucat::operator^ (const index_set< LO, HI > &lhs, const index_set< LO, HI > &rhs)
 Symmetric set difference: exclusive or. More...
 
template<const index_t LO, const index_t HI>
const index_set< LO, HI > glucat::operator & (const index_set< LO, HI > &lhs, const index_set< LO, HI > &rhs)
 Set intersection: and. More...
 
template<const index_t LO, const index_t HI>
const index_set< LO, HI > glucat::operator| (const index_set< LO, HI > &lhs, const index_set< LO, HI > &rhs)
 Set union: or. More...
 
template<const index_t LO, const index_t HI>
int glucat::compare (const index_set< LO, HI > &a, const index_set< LO, HI > &b)
 "lexicographic compare" eg. {3,4,5} is less than {3,7,8} More...
 
 glucat::_GLUCAT_CTAssert (sizeof(set_value_t) >=sizeof(std::bitset< DEFAULT_HI-DEFAULT_LO >), Default_index_set_too_big_for_value) template< const index_t LO
 Size of set_value_t should be enough to contain bitset<DEFAULT_HI-DEFAULT_LO> More...
 
const index_t HI std::ostream & glucat::operator<< (std::ostream &os, const index_set< LO, HI > &ist)
 Write out index set. More...
 
template<const index_t LO, const index_t HI>
std::istream & glucat::operator>> (std::istream &s, index_set< LO, HI > &ist)
 Read in index set. More...
 
int glucat::sign_of_square (index_t j)
 Square of generator {j}. More...
 
template<const index_t LO, const index_t HI>
index_t glucat::min_neg (const index_set< LO, HI > &ist)
 Minimum negative index, or 0 if none. More...
 
template<const index_t LO, const index_t HI>
index_t glucat::max_pos (const index_set< LO, HI > &ist)
 Maximum positive index, or 0 if none. More...