QuerySolutionNode* AndSortedNode::clone() const { AndSortedNode* copy = new AndSortedNode(); cloneBaseData(copy); copy->_sort = this->_sort; return copy; }
QuerySolutionNode* SkipNode::clone() const { SkipNode* copy = new SkipNode(); cloneBaseData(copy); copy->skip = this->skip; return copy; }
QuerySolutionNode* FetchNode::clone() const { FetchNode* copy = new FetchNode(); cloneBaseData(copy); copy->_sorts = this->_sorts; return copy; }
QuerySolutionNode* KeepMutationsNode::clone() const { KeepMutationsNode* copy = new KeepMutationsNode(); cloneBaseData(copy); copy->sorts = this->sorts; return copy; }
QuerySolutionNode* LimitNode::clone() const { LimitNode* copy = new LimitNode(); cloneBaseData(copy); copy->limit = this->limit; return copy; }
QuerySolutionNode* OrNode::clone() const { OrNode* copy = new OrNode(); cloneBaseData(copy); copy->_sort = this->_sort; copy->dedup = this->dedup; return copy; }
BasicSynapticWeight::BasicSynapticWeight( const BasicSynapticWeight& other ) { cloneBaseData( other ); constantDistanceOfSynapticWeightValue = other.constantDistanceOfSynapticWeightValue; mutationProbability = other.mutationProbability; input = 0.f; output = 0.f; weight = other.weight->clone(); }
QuerySolutionNode* Geo2DNode::clone() const { Geo2DNode* copy = new Geo2DNode(); cloneBaseData(copy); copy->_sorts = this->_sorts; copy->indexKeyPattern = this->indexKeyPattern; copy->gq = this->gq; return copy; }
QuerySolutionNode* MergeSortNode::clone() const { MergeSortNode* copy = new MergeSortNode(); cloneBaseData(copy); copy->_sorts = this->_sorts; copy->dedup = this->dedup; copy->sort = this->sort; return copy; }
QuerySolutionNode* SortNode::clone() const { SortNode* copy = new SortNode(); cloneBaseData(copy); copy->_sorts = this->_sorts; copy->pattern = this->pattern; copy->query = this->query; copy->limit = this->limit; return copy; }
QuerySolutionNode* DistinctNode::clone() const { DistinctNode* copy = new DistinctNode(); cloneBaseData(copy); copy->sorts = this->sorts; copy->indexKeyPattern = this->indexKeyPattern; copy->direction = this->direction; copy->bounds = this->bounds; copy->fieldNo = this->fieldNo; return copy; }
QuerySolutionNode* TextNode::clone() const { TextNode* copy = new TextNode(); cloneBaseData(copy); copy->_sort = this->_sort; copy->indexKeyPattern = this->indexKeyPattern; copy->query = this->query; copy->language = this->language; copy->indexPrefix = this->indexPrefix; return copy; }
QuerySolutionNode* CollectionScanNode::clone() const { CollectionScanNode* copy = new CollectionScanNode(); cloneBaseData(copy); copy->_sort = this->_sort; copy->name = this->name; copy->tailable = this->tailable; copy->direction = this->direction; copy->maxScan = this->maxScan; return copy; }
QuerySolutionNode* CountNode::clone() const { CountNode* copy = new CountNode(); cloneBaseData(copy); copy->sorts = this->sorts; copy->indexKeyPattern = this->indexKeyPattern; copy->startKey = this->startKey; copy->startKeyInclusive = this->startKeyInclusive; copy->endKey = this->endKey; copy->endKeyInclusive = this->endKeyInclusive; return copy; }
QuerySolutionNode* GeoNear2DSphereNode::clone() const { GeoNear2DSphereNode* copy = new GeoNear2DSphereNode(); cloneBaseData(copy); copy->_sorts = this->_sorts; copy->nq = this->nq; copy->baseBounds = this->baseBounds; copy->indexKeyPattern = this->indexKeyPattern; copy->addPointMeta = this->addPointMeta; copy->addDistMeta = this->addDistMeta; return copy; }
QuerySolutionNode* ProjectionNode::clone() const { ProjectionNode* copy = new ProjectionNode(); cloneBaseData(copy); copy->_sorts = this->_sorts; copy->fullExpression = this->fullExpression; // This MatchExpression* is owned by the canonical query, not by the // ProjectionNode. Just copying the pointer is fine. copy->projection = this->projection; return copy; }
QuerySolutionNode* IndexScanNode::clone() const { IndexScanNode* copy = new IndexScanNode(); cloneBaseData(copy); copy->_sorts = this->_sorts; copy->indexKeyPattern = this->indexKeyPattern; copy->indexIsMultiKey = this->indexIsMultiKey; copy->direction = this->direction; copy->maxScan = this->maxScan; copy->addKeyMetadata = this->addKeyMetadata; copy->bounds = this->bounds; return copy; }
TauSynapticWeight::TauSynapticWeight( const TauSynapticWeight& other ) { cloneBaseData( other ); constantDistanceOfSynapticWeightValue = other.constantDistanceOfSynapticWeightValue; mutationProbability = other.mutationProbability; input = 0.f; output = 0.f; weight = other.weight->clone(); maxBufferSize = other.maxBufferSize; constantDistanceOfBufferSize = other.constantDistanceOfBufferSize; bufferSizeMutationRate = other.bufferSizeMutationRate; bufferSize = other.bufferSize; }
QuerySolutionNode* ShardingFilterNode::clone() const { ShardingFilterNode* copy = new ShardingFilterNode(); cloneBaseData(copy); return copy; }