Loading...
Searching...
No Matches
DataKey Class Reference Entry identifier class for items of a DataSet. More...
Inheritance diagram for DataKey:
![]()
Detailed DescriptionEntry identifier class for items of a DataSet. Every item in a DataSet is assigned a DataKey by which it can be accessed (using DataSet::operator[]()). A DataKey consists of an integer member idx, which is a positive number for any valid DataKey. No idx of an element in a DataSet may exceed the sets max(). This property may be used to build arrays with additional information to the elements of a DataSet. In addition, DataKeys provide a member info which can be used to store further information. Each DataKey is unique for one DataSet but different DataSets may (and generally will) manage the same DataKeys. When an element is removed from a DataSet its DataKey may (and generally will) be reused for other elements added to the DataSet later on.
Constructor & Destructor Documentation◆ DataKey() [1/2]
◆ DataKey() [2/2]Member Function Documentation◆ getIdx()
gets the index number (idx) of the DataKey. Definition at line 91 of file datakey.h. References DataKey::idx. Referenced by SPxId::operator<(). ◆ inValidate()
makes the DataKey invalid and clears the info field. Definition at line 106 of file datakey.h. References DataKey::idx, and DataKey::info. ◆ isValid()
returns TRUE, iff the DataKey is valid. Definition at line 101 of file datakey.h. References DataKey::idx. Referenced by SPxSolverBase< R >::coVector(), SPxSolverBase< R >::coVector(), SPxSolverBase< R >::vector(), and SPxSolverBase< R >::vector(). ◆ setIdx()
sets the index number (idx) of the DataKey. Definition at line 96 of file datakey.h. References DataKey::idx. Member Data Documentation◆ idx
(locally) unique key index Definition at line 65 of file datakey.h. Referenced by ClassSet< T >::create(), DataSet< DATA >::create(), DataKey::getIdx(), ClassSet< T >::has(), DataSet< DATA >::has(), DataKey::inValidate(), DataKey::isValid(), ClassSet< T >::number(), DataSet< DATA >::number(), soplex::operator<<(), ClassSet< T >::operator[](), ClassSet< T >::operator[](), ClassSet< T >::operator[](), ClassSet< T >::operator[](), DataSet< DATA >::operator[](), DataSet< DATA >::operator[](), DataSet< DATA >::operator[](), DataSet< DATA >::operator[](), ClassSet< T >::remove(), ClassSet< T >::remove(), DataSet< DATA >::remove(), DataSet< DATA >::remove(), and DataKey::setIdx(). ◆ info
user information to store values -1, 0, +1 Definition at line 64 of file datakey.h. Referenced by DataKey::inValidate(), SPxId::inValidate(), SPxSolverBase< R >::isCoId(), SPxSolverBase< R >::isId(), SPxId::isSPxColId(), SPxId::isSPxRowId(), SPxId::isValid(), soplex::operator<<(), SPxId::operator=(), SPxId::operator=(), SPxColId::SPxColId(), SPxColId::SPxColId(), SPxRowId::SPxRowId(), SPxRowId::SPxRowId(), and SPxId::type().
|