glucat  0.8.2
Namespaces | Functions
index_set_imp.h File Reference
#include "glucat/index_set.h"
#include <sstream>
Include dependency graph for index_set_imp.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

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...
 
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...
 
static unsigned long glucat::inverse_reversed_gray (unsigned long x)
 Inverse reversed Gray code. More...
 
static unsigned long glucat::inverse_gray (unsigned long x)
 Inverse Gray code. 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...