49 template<
int Dim,
typename Next>
60 for (
int i = 0; i < Dim; i++) {
96 m_pHead = m_pTail =
nullptr;
99 void addChunk(Chunk *p) {
100 if(m_pHead ==
nullptr)
101 m_pHead = m_pTail = p;
154 void freeChunk(Chunk *p) {
166 void freeChunks(Chunk *pHead, Chunk *pTail) {
178 bool contains(
const Row &
r,
int x)
const;
180 void symDiff(Row &
r,
const Row &other);
198 bool contains(OBJ obj)
const {
213 while (it.
valid() && *it < obj) {
232 while(itOther.
valid())
238 }
else if(*it == *itOther) {
243 }
else if(*itOther < *it) {
312 std::cout << std::setw(4) << i <<
": ";
Declaration and implementation of Array class and Array algorithms.
Declaration of doubly linked lists and iterators.
Basic declarations, included by all source files.
The parameterized class Array implements dynamic arrays of type E.
Equation & operator|=(int obj)
ListConstIterator< int > begin() const
ListConstIterator< int > end() const
Equation & operator[](int i)
Array< Equation * > m_equations
const Equation & operator[](int i) const
void freeChunks2(Chunk2 *pHead, Chunk2 *pTail)
void freeChunk2(Chunk2 *p)
void symDiff2(int r1, int r2, Array< Row2 > &rows, Array< List< int > > &cols)
static constexpr int chunkSize2
GF2Solver(GF2Solver::Matrix &Mx)
static constexpr int chunkSize
Doubly linked lists (maintaining the length of the list).
int size() const
Returns the number of elements in the list.
iterator pushBack(const E &x)
Adds element x at the end of the list.
void del(iterator it)
Removes it from the list.
iterator insertBefore(const E &x, iterator it)
Inserts element x before it.
Encapsulates a pointer to a list element.
bool valid() const
Returns true iff the iterator points to an element.
iterator begin()
Returns an iterator to the first element of the list.
iterator end()
Returns an iterator to one-past-last element of the list.
#define OGDF_ASSERT(expr)
Assert condition expr. See doc/build.md for more information.
#define OGDF_NEW_DELETE
Makes the class use OGDF's memory allocator.
Declaration of memory manager for allocating small pieces of memory.
The namespace for all OGDF objects.
void add(int x, ListIterator< int > it)
ListIterator< int > m_it[chunkSize2]