14namespace layer2_discreta {
17#undef HOLLERITH_COPY_VERBOSE
80#ifdef HOLLERITH_COPY_VERBOSE
81 cout <<
"in hollerith::copyobject_to()\n";
104 cout <<
"hollerith::compare_with() a is not a hollerith object" << endl;
109 return strcmp(p1, p2);
131 q = (
char *)
new char[l3 + 1];
142 sprintf(str,
"%d", i);
152 for (i = 0; i < l; i++) {
184 return strlen(
s()) + 1;
193 int l2 = strlen(ext);
195 if (l1 > l2 && strcmp(p + l1 - l2, ext) == 0) {
203 int i, l = strlen(p);
206 for (i = l - 1; i >= 0; i--) {
221 f1.getline(str,
sizeof(str));
DISCRETA base class. All DISCRETA classes are derived from this class.
hollerith & as_hollerith()
void copyobject(discreta_base &x)
hollerith & change_to_hollerith()
std::ostream & print(std::ostream &)
void read_mem(memory &m, int debug_depth)
void chop_off_extension_if_present(char *ext)
void freeself_hollerith()
int compare_with(discreta_base &a)
void get_extension_if_present(char *ext)
void copyobject_to(discreta_base &x)
void write_mem(memory &m, int debug_depth)
hollerith & operator=(const discreta_base &x)
void append(const char *p)
DISCRETA class to serialize data structures.
the orbiter library for the classification of combinatorial objects