15namespace layer1_foundations {
16namespace data_structures {
38 bitvector::length = length;
39 allocated_length = (length + 7) >> 3;
41 for (i = 0; i < allocated_length; i++) {
53 return allocated_length;
68 mask = ((
uchar) 1) << bit;
73 uchar not_mask = ~mask;
89 mask = ((
uchar) 1) << bit;
102 mask = ((
uchar) 1) << bit;
114 fp.write((
char*) &length,
sizeof(
long int));
115 fp.write((
char*) &allocated_length,
sizeof(
long int));
116 fp.write((
char*) data, allocated_length);
121 fp.read((
char*) &length,
sizeof(
long int));
122 fp.read((
char*) &allocated_length,
sizeof(
long int));
124 fp.read((
char*) data, allocated_length);
141 for (i = 0; i < length; i++) {
void save(std::ofstream &fp)
void load(std::ifstream &fp)
void m_i(long int i, int a)
long int get_allocated_length()
void allocate(long int length)
a catch-all container class for everything related to data structures
uint32_t char_vec_hash(char *data, int len)
the orbiter library for the classification of combinatorial objects