| 169 | } |
| 170 | |
| 171 | void HSet::print() const { |
| 172 | if (!setup_) return; |
| 173 | if (log_file_ == NULL) return; |
| 174 | HighsInt size = entry_.size(); |
| 175 | fprintf(log_file_, "\nSet(%" HIGHSINT_FORMAT ", %" HIGHSINT_FORMAT "):\n", |
| 176 | size, max_entry_); |
| 177 | fprintf(log_file_, "Pointers: Pointers|"); |
| 178 | for (HighsInt ix = 0; ix <= max_entry_; ix++) { |
| 179 | if (pointer_[ix] != no_pointer) |
| 180 | fprintf(log_file_, " %4" HIGHSINT_FORMAT "", pointer_[ix]); |
| 181 | } |
| 182 | fprintf(log_file_, "\n"); |
| 183 | fprintf(log_file_, " Entries |"); |
| 184 | for (HighsInt ix = 0; ix <= max_entry_; ix++) { |
| 185 | if (pointer_[ix] != no_pointer) |
| 186 | fprintf(log_file_, " %4" HIGHSINT_FORMAT "", ix); |
| 187 | } |
| 188 | fprintf(log_file_, "\n"); |
| 189 | fprintf(log_file_, "Entries: Indices |"); |
| 190 | for (HighsInt ix = 0; ix < count_; ix++) |
| 191 | fprintf(log_file_, " %4" HIGHSINT_FORMAT "", ix); |
| 192 | fprintf(log_file_, "\n"); |
| 193 | fprintf(log_file_, " Entries |"); |
| 194 | for (HighsInt ix = 0; ix < count_; ix++) |
| 195 | fprintf(log_file_, " %4" HIGHSINT_FORMAT "", entry_[ix]); |
| 196 | fprintf(log_file_, "\n"); |
| 197 | } |
no test coverage detected