Пример #1
0
void findTable(Table *table, char *key) {
	TableEntry entry;
	initialize(&entry, key, 0);
	TableEntry *found = retrieveEntry(table, &entry);
	if (!found) {
		printf("%s not found\n", key);
	}
	else printEntry(found);
}
Пример #2
0
bool QoreValueList::is_equal_hard(const AbstractQoreNode* v, ExceptionSink* xsink) const {
   const QoreValueList* l = v && v->getType() == NT_VALUE_LIST ? reinterpret_cast<const QoreValueList*>(v) : 0;
   if (!l || l->size() != size())
      return false;

   for (size_t i = 0; i < l->size(); i++)
      if (!l->retrieveEntry(i).isEqualHard(retrieveEntry(i)))
         return false;
   return true;
}
Пример #3
0
 double  Sparse ::          i( int row, int col ) const { return retrieveEntry( row, col, CHOLMOD_ZOMPLEX ); }
Пример #4
0
 double  Sparse ::          r( int row, int col ) const { return retrieveEntry( row, col, CHOLMOD_REAL    ); }
Пример #5
0
 double& Sparse :: operator()( int row, int col )       { return retrieveEntry( row, col, CHOLMOD_REAL    ); }