CoinModelLinkedList
CoinModelLinkedList class documentation
Public Methods
CoinModelLinkedList
Default constructor.
CoinModelLinkedList()
~CoinModelLinkedList
Destructor.
~CoinModelLinkedList()
CoinModelLinkedList
The copy constructor.
CoinModelLinkedList(const CoinModelLinkedList & )
Parameters:
- `` (const CoinModelLinkedList &)
operator=
=
CoinModelLinkedList & operator=(const CoinModelLinkedList & )
Parameters:
- `` (const CoinModelLinkedList &)
resize
Resize list - for row list maxMajor is maximum rows.
void resize(int maxMajor, CoinBigIndex maxElements)
Parameters:
maxMajor(int)maxElements(CoinBigIndex)
create
Create list - for row list maxMajor is maximum rows.
void create(int maxMajor, CoinBigIndex maxElements, int numberMajor, int numberMinor, int type, CoinBigIndex numberElements, const CoinModelTriple * triples)
Parameters:
maxMajor(int)maxElements(CoinBigIndex)numberMajor(int)numberMinor(int)type(int)numberElements(CoinBigIndex)triples(const CoinModelTriple *)
numberMajor
Number of major items i.e. rows if just row links.
int numberMajor()
maximumMajor
Maximum number of major items i.e. rows if just row links.
int maximumMajor()
numberElements
Number of elements.
CoinBigIndex numberElements()
maximumElements
Maximum number of elements.
CoinBigIndex maximumElements()
firstFree
First on free chain.
CoinBigIndex firstFree()
lastFree
Last on free chain.
CoinBigIndex lastFree()
first
First on chain.
CoinBigIndex first(int which)
Parameters:
which(int)
last
Last on chain.
CoinBigIndex last(int which)
Parameters:
which(int)
next
Next array.
const CoinBigIndex * next()
previous
Previous array.
const CoinBigIndex * previous()
addEasy
Adds to list - easy case i.e.
CoinBigIndex addEasy(int majorIndex, CoinBigIndex numberOfElements, const int * indices, const double * elements, CoinModelTriple * triples, CoinModelHash2 & hash)
Parameters:
majorIndex(int)numberOfElements(CoinBigIndex)indices(const int *)elements(const double *)triples(CoinModelTriple *)hash(CoinModelHash2 &)
addHard
Adds to list - hard case i.e.
void addHard(int minorIndex, CoinBigIndex numberOfElements, const int * indices, const double * elements, CoinModelTriple * triples, CoinModelHash2 & hash)
Parameters:
minorIndex(int)numberOfElements(CoinBigIndex)indices(const int *)elements(const double *)triples(CoinModelTriple *)hash(CoinModelHash2 &)
addHard
Adds to list - hard case i.e.
void addHard(CoinBigIndex first, const CoinModelTriple * triples, CoinBigIndex firstFree, CoinBigIndex lastFree, const CoinBigIndex * nextOther)
Parameters:
first(CoinBigIndex)triples(const CoinModelTriple *)firstFree(CoinBigIndex)lastFree(CoinBigIndex)nextOther(const CoinBigIndex *)
deleteSame
Deletes from list - same case i.e.
void deleteSame(int which, CoinModelTriple * triples, CoinModelHash2 & hash, bool zapTriples)
Parameters:
which(int)triples(CoinModelTriple *)hash(CoinModelHash2 &)zapTriples(bool)
updateDeleted
Deletes from list - other case i.e.
void updateDeleted(int which, CoinModelTriple * triples, CoinModelLinkedList & otherList)
Parameters:
which(int)triples(CoinModelTriple *)otherList(CoinModelLinkedList &)
deleteRowOne
Deletes one element from Row list.
void deleteRowOne(CoinBigIndex position, CoinModelTriple * triples, CoinModelHash2 & hash)
Parameters:
position(CoinBigIndex)triples(CoinModelTriple *)hash(CoinModelHash2 &)
updateDeletedOne
Update column list for one element when one element deleted from row copy.
void updateDeletedOne(CoinBigIndex position, const CoinModelTriple * triples)
Parameters:
position(CoinBigIndex)triples(const CoinModelTriple *)
fill
Fills first,last with -1.
void fill(int first, int last)
Parameters:
first(int)last(int)
synchronize
Puts in free list from other list.
void synchronize(CoinModelLinkedList & other)
Parameters:
other(CoinModelLinkedList &)
validateLinks
Checks that links are consistent.
void validateLinks(const CoinModelTriple * triples)
Parameters:
triples(const CoinModelTriple *)
Source
Header: layer-0/CoinUtils/src/CoinModelUseful.hpp