Definition at line 139 of file category.cpp.
◆ category_index()
cif::category_index::category_index |
( |
category * |
cat | ) |
|
|
inline |
Definition at line 142 of file category.cpp.
144 , m_row_comparator(m_category)
◆ ~category_index()
cif::category_index::~category_index |
( |
| ) |
|
|
inline |
◆ erase()
void cif::category_index::erase |
( |
row * |
r | ) |
|
Definition at line 435 of file category.cpp.
439 m_root =
erase(m_root,
k);
440 if (m_root !=
nullptr)
441 m_root->m_red =
false;
ql0001_ & k(htemp+1),(cvec+1),(atemp+1),(bj+1),(bl+1),(bu+1),(x+1),(clamda+1), &iout, infoqp, &zero,(w+1), &lenw,(iw+1), &leniw, &glob_grd.epsmac
◆ find()
row * cif::category_index::find |
( |
row * |
k | ) |
const |
Definition at line 345 of file category.cpp.
347 const entry *r = m_root;
350 int d = m_row_comparator(
k, r->m_row);
359 return r ? r->m_row :
nullptr;
ql0001_ & k(htemp+1),(cvec+1),(atemp+1),(bj+1),(bl+1),(bu+1),(x+1),(clamda+1), &iout, infoqp, &zero,(w+1), &lenw,(iw+1), &leniw, &glob_grd.epsmac
◆ find_by_value()
row * cif::category_index::find_by_value |
( |
row_initializer |
k | ) |
const |
Definition at line 362 of file category.cpp.
367 for (
auto &
f : m_category.key_field_indices())
369 auto fld = m_category.get_column_name(
f);
371 auto ki = find_if(
k.begin(),
k.end(), [&fld](
auto &
i) {
return i.name() == fld; });
373 k2.emplace_back(fld,
"");
375 k2.emplace_back(*ki);
378 const entry *r = m_root;
381 int d = m_row_comparator(k2, r->m_row);
390 return r ? r->m_row :
nullptr;
ql0001_ & k(htemp+1),(cvec+1),(atemp+1),(bj+1),(bl+1),(bu+1),(x+1),(clamda+1), &iout, infoqp, &zero,(w+1), &lenw,(iw+1), &leniw, &glob_grd.epsmac
◆ insert()
void cif::category_index::insert |
( |
row * |
r | ) |
|
Definition at line 393 of file category.cpp.
396 m_root->m_red =
false;
ql0001_ & k(htemp+1),(cvec+1),(atemp+1),(bj+1),(bl+1),(bu+1),(x+1),(clamda+1), &iout, infoqp, &zero,(w+1), &lenw,(iw+1), &leniw, &glob_grd.epsmac
◆ reconstruct()
void cif::category_index::reconstruct |
( |
| ) |
|
◆ reorder()
std::tuple<row *, row *> cif::category_index::reorder |
( |
| ) |
|
|
inline |
Definition at line 165 of file category.cpp.
167 std::tuple<row *, row *> result = std::make_tuple(
nullptr,
nullptr);
169 if (m_root !=
nullptr)
171 entry *head = find_min(m_root);
174 tail->m_row->m_next =
nullptr;
176 result = std::make_tuple(head->m_row, tail->m_row);
std::tuple< row *, row * > reorder()
◆ size()
size_t cif::category_index::size |
( |
| ) |
const |
Definition at line 562 of file category.cpp.
564 std::stack<entry *> s;
569 while (not s.empty())
The documentation for this class was generated from the following file: