A toolkit for working with phylogenetic data.
v0.20.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
utils/math/bitvector/operators.cpp File Reference
#include "genesis/utils/math/bitvector/operators.hpp"
#include <iostream>
#include <string>

Go to the source code of this file.

Namespaces

 genesis
 Container namespace for all symbols of genesis in order to keep them separate when used as a library.
 
 genesis::utils
 

Functions

Bitvector bitwise_and (Bitvector const &lhs, Bitvector const &rhs)
 Take the bitwise and of two Bitvectors of potentially different size. More...
 
Bitvector bitwise_or (Bitvector const &lhs, Bitvector const &rhs)
 Take the bitwise or of two Bitvectors of potentially different size. More...
 
Bitvector bitwise_xor (Bitvector const &lhs, Bitvector const &rhs)
 Take the bitwise xor of two Bitvectors of potentially different size. More...
 
bool is_strict_subset (Bitvector const &sub, Bitvector const &super)
 Strict subset. More...
 
bool is_strict_superset (Bitvector const &super, Bitvector const &sub)
 Strict superset. More...
 
bool is_subset (Bitvector const &sub, Bitvector const &super)
 Subset or equal. More...
 
bool is_superset (Bitvector const &super, Bitvector const &sub)
 Superset or equal. More...
 
Bitvector operator& (Bitvector const &lhs, Bitvector const &rhs)
 
std::ostream & operator<< (std::ostream &out, Bitvector const &bv)
 Insertion operator that outputs a Bitvector as a string of '0's and '1's. More...
 
std::istream & operator>> (std::istream &in, Bitvector &bv)
 Extraction operator that inputs a Bitvector from a string of '0's and '1's, and stops at the first char that is not '0' or '1'. More...
 
Bitvector operator^ (Bitvector const &lhs, Bitvector const &rhs)
 
Bitvector operator| (Bitvector const &lhs, Bitvector const &rhs)
 
Bitvector set_minus (Bitvector const &lhs, Bitvector const &rhs)
 
Bitvector symmetric_difference (Bitvector const &lhs, Bitvector const &rhs)