コード例 #1
0
//gets the NAColumn that has the same position
NAColumn * NAColumnArray::getColumnByPos(Lng32 position) const
{
  for (CollIndex i = 0; i < entries(); i++)
    {
      NAColumn *column = (*this)[i];
      if (column->getPosition() == position) return column;
    }
  return NULL;
}
コード例 #2
0
// LCOV_EXCL_START :cnu
// removes the column that has the same position
void NAColumnArray::removeByPosition(Lng32 position)
{
  for(CollIndex i=0;i < entries();i++)
  {
    NAColumn * column = (*this)[i];
    if(column->getPosition() == position)
    {
      this->removeAt(i);
      break;
    }
  }
}