void CArrayAnnotation::setAnnotationCN(size_t d, size_t i, const std::string cn) { assert(d < dimensionality()); resizeOneDimension(d); assert(i < mAnnotationsCN[d].size()); mAnnotationsCN[d][i] = cn; mAnnotationsString[d][i] = createDisplayName(cn); }
void CArrayAnnotation::resize() { assert(mpArray); reDimensionalize(mpArray->dimensionality()); size_t i, imax = mpArray->dimensionality(); for (i = 0; i < imax; ++i) resizeOneDimension(i); }
void CArrayAnnotation::autoAnnotation(const size_t & d) { resizeOneDimension(d); size_t i; for (i = 0; i < mAnnotationsCN[d].size(); ++i) { std::stringstream I; I << i; mAnnotationsCN[d][i] = CCopasiObjectName("String=" + I.str()); mAnnotationsString[d][i] = createDisplayName(mAnnotationsCN[d][i]); } }
void CDataArray::setAnnotation(size_t d, size_t i, const CDataObject * pObject) { assert(d < dimensionality()); resizeOneDimension(d); assert(i < mAnnotationsCN[d].size()); if (pObject != NULL) { mAnnotationsCN[d][i] = pObject->getCN(); mAnnotationsString[d][i] = pObject->getObjectDisplayName(); } else { mAnnotationsCN[d][i] = std::string(""); mAnnotationsString[d][i] = ""; } }
void CArrayAnnotation::setMode(size_t d, Mode m) { mModes[d] = m; resizeOneDimension(d); }
void CDataArray::setMode(size_t d, Mode m) { mModes[d] = m; resizeOneDimension(d); }