示例#1
0
bool PFSObj::operator==(const PFSObj& p)
{
  return (op_eq(p) && path == p.path && zoom == p.zoom && zoom_level == p.zoom_level &&
	  zoom_position == p.zoom_position && orientation == p.orientation &&
	  scale_factor_w == p.scale_factor_w && scale_factor_h == p.scale_factor_h &&
	  scaleable == p.scaleable);
}
示例#2
0
bool RObj::operator==(const RObj& rhs)
{
  return (op_eq(rhs) && r == rhs.r && g == rhs.g && b == rhs.b && a == rhs.a);
}
示例#3
0
bool PFObj::operator==(const PFObj& p)
{
  return (op_eq(p) && path == p.path && border == p.border && scaleable == p.scaleable &&
	  scale_factor_w == p.scale_factor_w && scale_factor_h == p.scale_factor_h &&
	  orientation == p.orientation);
}
示例#4
0
void PPEQLGeneralComparison::do_next (xqp_tuple &t)
{
	if (first_time)
    {
		first_time = false;
		//INSERT CODE HERE
		if (!eos_reached1) seq1.op->reopen();
		if (!eos_reached2) seq2.op->reopen();
		eos_reached2 = false;
		eos_reached1 = false;
		xqp_tuple cont1(seq1.ts);
		xqp_tuple cont2(seq2.ts);
		seq1.op->next(cont1);
		sequence seq(1);
		xqp_tuple at_tup(1);
		seq2.op->next(cont2);
		if (cont2.is_eos())
		{
			eos_reached2 = true;
			t.copy(tuple_cell::atomic(false));
			return;
		}
		tuple_cell res1=getAtomizedCell(cont2);
		while (!cont1.is_eos())
		{
			tuple_cell res=getAtomizedCell(cont1);
			at_tup.cells[0]=res;
			generalNodePrepare(res,res1);
			if (op_eq(res,res1,handler).get_xs_boolean())
			{
				t.copy(tuple_cell::atomic(true));
				return;
			}
			seq.add(at_tup);
			seq1.op->next(cont1);
		}
		eos_reached1 = true;
		if (seq.size()<1)
		{
			t.copy(tuple_cell::atomic(false));
			return;
		}
		seq2.op->next(cont2);
		while (!cont2.is_eos())
		{
			tuple_cell res1=getAtomizedCell(cont2);
			sequence::iterator it=seq.begin();
			do
			{
				tuple_cell res2=(*it).cells[0];
				generalNodePrepare(res1,res2);
				if (op_eq(res1,res2,handler).get_xs_boolean())
				{
					t.copy(tuple_cell::atomic(true));
					return;
				}
				it++;
			}
			while (it!=seq.end());
			seq2.op->next(cont2);
		}
		eos_reached2 = true;
		t.copy(tuple_cell::atomic(false));
		return;
	}
	else 
    {
        first_time = true;
        t.set_eos();
    }
}