SqlParserWrapper::~SqlParserWrapper() {
  destroyCurrentBuffer();

  if (parsed_statement_ != nullptr) {
    delete parsed_statement_;
  }

  quickstep_yylex_destroy(yyscanner_);
}
void SqlParserWrapper::feedNextBuffer(std::string *buffer) {
  DCHECK(buffer != nullptr);
  destroyCurrentBuffer();

  current_buffer_ = buffer;
  buffer_state_ = quickstep_yy_scan_string(buffer->c_str(), yyscanner_);

  quickstep_yyset_lineno(0, yyscanner_);
  quickstep_yyset_column(0, yyscanner_);
}
Example #3
0
XMLNode&
XMLNode::operator=(const XMLNode& A)
{
  if (this != &A) {
    destroyCurrentBuffer(d);
    d = A.d;
    if (d)
      d->Ref();
  }
  return *this;
}
Example #4
0
InterPolynomial& InterPolynomial::operator=( const InterPolynomial& A )
{
    // shallow copy
    if (this != &A)
	{
        destroyCurrentBuffer();

        d=A.d;
        NewtonBasis=A.NewtonBasis;
        NewtonPoints=A.NewtonPoints;
//        ValuesF=A.ValuesF;
	    M=A.M;
        nPtsUsed=A.nPtsUsed; 
        nUpdateOfM=A.nUpdateOfM;
        kbest=A.kbest;
        vBase=A.vBase;
        valuesF=A.valuesF;

		(d->ref_count) ++ ;
	}
	return *this;
}
Example #5
0
XMLNode::~XMLNode()
{
  destroyCurrentBuffer(d);
}
Example #6
0
InterPolynomial::~InterPolynomial()
{
    destroyCurrentBuffer();
}