(file) Return to Cql2Dnf.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / CQL

Diff for /pegasus/src/Pegasus/CQL/Cql2Dnf.cpp between version 1.1.2.1 and 1.1.2.2

version 1.1.2.1, 2004/11/17 19:25:03 version 1.1.2.2, 2004/11/17 20:23:27
Line 348 
Line 348 
     compile(cqs);     compile(cqs);
 } }
  
   Cql2Dnf::Cql2Dnf(CQLPredicate& topLevel){
       eval_heap.reserveCapacity(16);
       terminal_heap.reserveCapacity(16);
       compile(topLevel);
   }
   
 Cql2Dnf::~Cql2Dnf() {} Cql2Dnf::~Cql2Dnf() {}
  
 void Cql2Dnf::compile(CQLSelectStatement * cqs)  void Cql2Dnf::compile(CQLSelectStatement * cqs){
           CQLPredicate topLevel = cqs->getPredicate();
           compile(topLevel);
   }
   
   void Cql2Dnf::compile(CQLPredicate& topLevel)
 { {
     if (!cqs->hasWhereClause()) return;      //if (!cqs->hasWhereClause()) return;
  
     _strip_ops_operands(cqs);      _strip_ops_operands(topLevel);
     _buildEvalHeap();     _buildEvalHeap();
     _pushNOTDown();     _pushNOTDown();
     _factoring();     _factoring();
Line 815 
Line 826 
     }     }
 } }
 */ */
 void Cql2Dnf::_strip_ops_operands(CQLSelectStatement *cqs)  void Cql2Dnf::_strip_ops_operands(CQLPredicate& topLevel)
 { {
         //         //
         // depth first search for all operations and operands         // depth first search for all operations and operands
         // extract operations and operands and store in respective arrays for later processing         // extract operations and operands and store in respective arrays for later processing
         //         //
         CQLPredicate topLevel = cqs->getPredicate();  
         _destruct(topLevel);         _destruct(topLevel);
 } }
  


Legend:
Removed from v.1.1.2.1  
changed lines
  Added in v.1.1.2.2

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2