예제 #1
0
static void
set_T_RestrictInfo(DebugGraph *graph, DebugNode *n, PlannerInfo *root,
                   Node *node)
{
    RestrictInfo *actual_node = (RestrictInfo*) node;

    {   const char *aux;
        aux = getExpr((Node *) actual_node->clause, root->parse->rtable);
        WRITE_CUSTOM_FIELD("clause", "%s", aux);
        pfree((void*)aux);
        aux = getExpr((Node *) actual_node->orclause, root->parse->rtable);
        WRITE_CUSTOM_FIELD("orclause", "%s", aux);
        pfree((void*)aux);
    }

    WRITE_BOOL_FIELD(is_pushed_down);
    WRITE_BOOL_FIELD(outerjoin_delayed);
    WRITE_BOOL_FIELD(can_join);
    WRITE_BOOL_FIELD(pseudoconstant);
    WRITE_FLOAT_FIELD(eval_cost.startup, "%lf");
    WRITE_FLOAT_FIELD(eval_cost.per_tuple, "%lf");
    WRITE_FLOAT_FIELD(norm_selec, "%lf");
    WRITE_FLOAT_FIELD(outer_selec, "%lf");
}
예제 #2
0
	//xmlNodePtr Data::getNode()
	//{
	//	return node->children;
	//}
	void Data::execute(fsm::Context * ctx, const log4cplus::Logger & log, const std::string & sessionId) const
	{
		if (ctx == NULL){
			return ;
		}

		if (!this->getExpr().empty())
		{
			//std::string value;
			//value = evl->eval(ctx, getExpr(),m_strFileName,node->line);
			ctx->eval("var " + getId() + "=" + this->getExpr() + ";", m_strFileName, m_lineNo/*, m_node*/);
			
		}
		else
		{
			ctx->eval("var " + getId()+";" , m_strFileName, m_lineNo/*, m_node*/);
		}
		LOG4CPLUS_TRACE(log, "." + sessionId, ",set data " << getId() << "=" << getExpr());
		//LOG4CPLUS_TRACE(log,",execute end.");
	}
예제 #3
0
//
// SourceTokenizerC::doCommand_if
//
void SourceTokenizerC::doCommand_if(SourceTokenC *)
{
   addSkip(!getExpr()->resolveINT());
   doAssert(peekRaw(), SourceTokenC::TT_ENDL);
}
예제 #4
0
bool ArrayStoreAll::operator<=(const ArrayStoreAll& asa) const
{
  return (getType() < asa.getType()) ||
         (getType() == asa.getType() && getExpr() <= asa.getExpr());
}
예제 #5
0
bool ArrayStoreAll::operator==(const ArrayStoreAll& asa) const
{
  return getType() == asa.getType() && getExpr() == asa.getExpr();
}
 const clang::Expr* getExpr() const {
   return getExpr();
 }