All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DataSet< DATA > Class Template Reference Set of data objects.Class DataSet manages of sets of data objects of a template type DATA. For constructing a DataSet the maximum number of entries must be given. The current maximum number may be inquired with method max(). More...
Detailed Descriptiontemplate<class DATA>
|
void add | ( | DataKey & | newkey, |
const DATA & | item | ||
) |
adds an element.
Definition at line 123 of file dataset.h.
Referenced by DataSet< soplex::SVSet::DLPSV >::add().
void add | ( | const DATA & | item | ) |
void add | ( | DataKey | newkey[], |
const DATA * | item, | ||
int | n | ||
) |
void add | ( | const DATA * | items, |
int | n | ||
) |
void add | ( | const DataSet< DATA > & | set | ) |
void clear | ( | ) |
remove all elements.
Definition at line 331 of file dataset.h.
Referenced by DataSet< soplex::SVSet::DLPSV >::operator=().
DATA* create | ( | DataKey & | newkey | ) |
DATA* create | ( | ) |
creates new (uninitialized) data element in DataSet.
Definition at line 205 of file dataset.h.
Referenced by DataSet< soplex::SVSet::DLPSV >::add(), and DataSet< soplex::SVSet::DLPSV >::create().
bool has | ( | const DataKey & | k | ) | const |
Is k
a valid DataKey of an element in DataSet?
Definition at line 442 of file dataset.h.
Referenced by DataSet< soplex::SVSet::DLPSV >::remove().
bool has | ( | int | n | ) | const |
bool has | ( | const DATA * | item | ) | const |
bool isConsistent | ( | ) | const |
consistency check.
Definition at line 490 of file dataset.h.
Referenced by DataSet< soplex::SVSet::DLPSV >::DataSet(), and DataSet< soplex::SVSet::DLPSV >::operator=().
DataKey key | ( | int | n | ) | const |
DataKey key | ( | const DATA * | item | ) | const |
int max | ( | ) | const |
returns maximum number of elements that would fit into DataSet.
Definition at line 378 of file dataset.h.
Referenced by DataSet< soplex::SVSet::DLPSV >::add(), DataSet< soplex::SVSet::DLPSV >::create(), and DataSet< soplex::SVSet::DLPSV >::operator=().
int num | ( | ) | const |
returns number of elements currently in DataSet.
Definition at line 384 of file dataset.h.
Referenced by DataSet< soplex::SVSet::DLPSV >::add(), DataSet< soplex::SVSet::DLPSV >::create(), DataSet< soplex::SVSet::DLPSV >::has(), DataSet< soplex::SVSet::DLPSV >::key(), DataSet< soplex::SVSet::DLPSV >::operator=(), and DataSet< soplex::SVSet::DLPSV >::remove().
int number | ( | const DataKey & | k | ) | const |
returns the number of the element with DataKey k
in DataSet or -1, if it doesn't exist.
Definition at line 411 of file dataset.h.
Referenced by DataSet< soplex::SVSet::DLPSV >::has(), DataSet< soplex::SVSet::DLPSV >::key(), and DataSet< soplex::SVSet::DLPSV >::remove().
int number | ( | const DATA * | item | ) | const |
const DATA& operator[] | ( | int | n | ) | const |
const DATA& operator[] | ( | const DataKey & | k | ) | const |
ptrdiff_t reMax | ( | int | newmax = 0 | ) |
resets max() to newmax
.
This method will not succeed if newmax
< size(), in which case newmax
== size() will be taken. As generally this method involves copying the DataSets elements in memory, reMax() returns the number of bytes the addresses of elements in the DataSet have been moved. Note, that this is identical for all elements in the DataSet.
Definition at line 471 of file dataset.h.
Referenced by DataSet< soplex::SVSet::DLPSV >::operator=().
void remove | ( | int | removenum | ) |
void remove | ( | const DataKey & | removekey | ) |
void remove | ( | int | perm[] | ) |
void remove | ( | const DataKey * | keys, |
int | n, | ||
int * | perm | ||
) |
void remove | ( | const DataKey * | keys, |
int | n | ||
) |
void remove | ( | const int * | nums, |
int | n, | ||
int * | perm | ||
) |
void remove | ( | const int * | nums, |
int | n | ||
) |
int size | ( | ) | const |
returns the maximum DataKey::idx currently in DataSet.
Definition at line 390 of file dataset.h.
Referenced by DataSet< soplex::SVSet::DLPSV >::number(), DataSet< soplex::SVSet::DLPSV >::operator=(), and DataSet< soplex::SVSet::DLPSV >::reMax().
|
protected |
first unused element in theitem
Definition at line 109 of file dataset.h.
Referenced by DataSet< soplex::SVSet::DLPSV >::clear(), DataSet< soplex::SVSet::DLPSV >::create(), DataSet< soplex::SVSet::DLPSV >::DataSet(), DataSet< soplex::SVSet::DLPSV >::isConsistent(), DataSet< soplex::SVSet::DLPSV >::operator=(), DataSet< soplex::SVSet::DLPSV >::reMax(), and DataSet< soplex::SVSet::DLPSV >::remove().
|
protected |
array of elements in the DataSet
Referenced by DataSet< soplex::SVSet::DLPSV >::create(), DataSet< soplex::SVSet::DLPSV >::DataSet(), DataSet< soplex::SVSet::DLPSV >::has(), DataSet< soplex::SVSet::DLPSV >::isConsistent(), DataSet< soplex::SVSet::DLPSV >::number(), DataSet< soplex::SVSet::DLPSV >::operator=(), DataSet< soplex::SVSet::DLPSV >::operator[](), DataSet< soplex::SVSet::DLPSV >::reMax(), DataSet< soplex::SVSet::DLPSV >::remove(), and DataSet< soplex::SVSet::DLPSV >::~DataSet().
|
protected |
DataKey::idx's of elements.
Definition at line 105 of file dataset.h.
Referenced by DataSet< soplex::SVSet::DLPSV >::create(), DataSet< soplex::SVSet::DLPSV >::DataSet(), DataSet< soplex::SVSet::DLPSV >::isConsistent(), DataSet< soplex::SVSet::DLPSV >::key(), DataSet< soplex::SVSet::DLPSV >::operator=(), DataSet< soplex::SVSet::DLPSV >::operator[](), DataSet< soplex::SVSet::DLPSV >::reMax(), DataSet< soplex::SVSet::DLPSV >::remove(), and DataSet< soplex::SVSet::DLPSV >::~DataSet().
|
protected |
length of arrays theitem and thekey
Definition at line 106 of file dataset.h.
Referenced by DataSet< soplex::SVSet::DLPSV >::clear(), DataSet< soplex::SVSet::DLPSV >::create(), DataSet< soplex::SVSet::DLPSV >::DataSet(), DataSet< soplex::SVSet::DLPSV >::isConsistent(), DataSet< soplex::SVSet::DLPSV >::max(), DataSet< soplex::SVSet::DLPSV >::operator=(), and DataSet< soplex::SVSet::DLPSV >::reMax().
|
protected |
number of elements in DataSet
Definition at line 108 of file dataset.h.
Referenced by DataSet< soplex::SVSet::DLPSV >::clear(), DataSet< soplex::SVSet::DLPSV >::create(), DataSet< soplex::SVSet::DLPSV >::isConsistent(), DataSet< soplex::SVSet::DLPSV >::num(), DataSet< soplex::SVSet::DLPSV >::operator=(), DataSet< soplex::SVSet::DLPSV >::operator[](), and DataSet< soplex::SVSet::DLPSV >::remove().
|
protected |
highest used element in theitem
Definition at line 107 of file dataset.h.
Referenced by DataSet< soplex::SVSet::DLPSV >::clear(), DataSet< soplex::SVSet::DLPSV >::create(), DataSet< soplex::SVSet::DLPSV >::isConsistent(), DataSet< soplex::SVSet::DLPSV >::operator=(), DataSet< soplex::SVSet::DLPSV >::operator[](), DataSet< soplex::SVSet::DLPSV >::remove(), and DataSet< soplex::SVSet::DLPSV >::size().
© 2003-2013 by Zuse Institute Berlin (ZIB), Imprint | Generated on Wed Jan 9 2013 for SoPlex by doxygen |