PolicyTree::PolicyTree(const PABase& p0) { if (p0.last == NULL) { std::vector<PABase *> p { const_cast<PABase *>(&p0) }; SetTree(p); return; } // Else we have a list, probably formed through Policy1() << Policy2() << Policy3(); // We need to reverse the order of the list and turn it into the array-form that the // rest of the code understands PABase *p = const_cast<PABase *>(&p0); vector<PABase *> pol; // Find the tail do { p = p->last; } while (p->last != NULL); // Make a vec, working from the tail while (p != NULL) { pol.push_back(p->Clone()); p = p->next; } SetTree(pol); return; }
TreeWriter::TreeWriter(TFile & file, std::string const& tree_name) : file_(&file), tree_(tree_name.c_str(), tree_name.c_str()) { INFO0; SetTree(); }
TreeBranch::TreeBranch(char const* name, TClass* cl, TTree* tree) : clones_array_(cl, size_) { INFO(name); SetClonesArray(name); if (tree) SetTree(*tree, name); }
TreeBranch::TreeBranch(std::string const& name, TClass& cl, TTree& tree) : clones_array_(&cl, size_) { INFO0; SetClonesArray(name); SetTree(tree, name); }
void MainWindow::on_pushButton_clicked() { QString source_dir = QFileDialog::getExistingDirectory(); quote_item_acount = 0; quote_list.clear(); ui->lineEdit->setText(source_dir); on_pushButton_3_clicked(); SetTree(source_dir); AnalysisCurrentDirectoryFile(root_item,source_dir,0,NONE); }
//**************************** void CObjInfo::OnCloseObj() { if(GetTree()) { GetTree()->RemoveFromList(GetObj(),GetObjName()); SetTree(0); } else { if(bDeleteObj&&GetObj()) { delete GetObj(); SetObj(0); } } };
void MainWindow::on_pushButton_2_clicked() { if(ui->lineEdit->text().isEmpty()) { QMessageBox box; box.setText("The project source dir is not be set,Please set the source dir!"); box.exec(); }else { SetTree(ui->lineEdit->text()); AnalysisCurrentDirectoryFile(root_item,ui->lineEdit->text(),0,BUILD); AnalysisCurrentDirectoryFile(root_item,ui->lineEdit->text(),0,NONE); ui->treeView->expandAll(); } }
void nsTreeBoxObject::Clear() { ClearCachedValues(); // Drop the view's ref to us. if (mView) { nsCOMPtr<nsITreeSelection> sel; mView->GetSelection(getter_AddRefs(sel)); if (sel) sel->SetTree(nsnull); mView->SetTree(nsnull); // Break the circular ref between the view and us. } mView = nsnull; nsBoxObject::Clear(); }
void test::Begin(TTree * /*tree*/) { // The Begin() function is called at the start of the query. // When running with PROOF Begin() is only called on the client. // The tree argument is deprecated (on PROOF 0 is passed). lep_ET = 35.; lep_eta = 2.4; lep_crack_1 = 1.4442; lep_crack_2 = 1.56; TString option = GetOption(); outfile = new TFile("ntuple_Wp.root","RECREATE"); bZ = false; outfile->cd(); iTree = new TTree("FitRecoil","FitRecoil"); SetTree(iTree); }
CFormObjectDoc::CFormObjectDoc() { SetObj(afxMetaObj); SetTree(afxMetaTree); }
void Pdb::SetTreeA(ArrayCtrl *array) { SetTree(array->Get(0)); }
void Pdb::ExplorerTree() { SetTree(GetExpExp()); }
PolicyTree::PolicyTree(const PABase& p0, const PABase& p1, const PABase& p2, const PABase& p3, const PABase& p4) { std::vector<PABase *> p { const_cast<PABase *>(&p0), const_cast<PABase *>(&p1), const_cast<PABase *>(&p2), const_cast<PABase *>(&p3), const_cast<PABase *>(&p4) }; SetTree(p); return; }
PolicyTree::PolicyTree(const vector<PABase *>& _policy) { SetTree(_policy); return; }
//test pusbutton void MainWindow::on_pushButton_5_clicked() { SetTree("/root/CMake_Builder/"); }