Example #1
0
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);
}
Example #2
0
void CArrayAnnotation::resize()
{
  assert(mpArray);
  reDimensionalize(mpArray->dimensionality());

  size_t i, imax = mpArray->dimensionality();

  for (i = 0; i < imax; ++i)
    resizeOneDimension(i);
}
Example #3
0
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]);
    }
}
Example #4
0
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] = "";
    }
}
Example #5
0
void CArrayAnnotation::setMode(size_t d, Mode m)
{
  mModes[d] = m;
  resizeOneDimension(d);
}
Example #6
0
void CDataArray::setMode(size_t d, Mode m)
{
  mModes[d] = m;
  resizeOneDimension(d);
}