00001 /* 00002 * SparseBitvector.cpp 00003 * 00004 * Time-stamp: <05/05/11 13:42:27 lars> 00005 * 00006 */ 00007 00008 #include "SparseBitvector.hpp" 00009 00010 // int __EMPTY_SPARSE_BITVECTOR[] = {}; 00011 // int __EMPTY_SPARSE_BITVECTOR_LENGTH = 0; 00012 00013 ostream& operator<< (ostream& out, SparseBitvector const & vector) { 00014 if (vector.length() == 0) 00015 out << "[empty]"; 00016 else { 00017 out << vector[0]; 00018 for (int i = 1; i < vector.length(); i++) 00019 out << " " << vector[i]; 00020 } 00021 return out; 00022 }