这篇教程C++ GetChildren函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中GetChildren函数的典型用法代码示例。如果您正苦于以下问题:C++ GetChildren函数的具体用法?C++ GetChildren怎么用?C++ GetChildren使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了GetChildren函数的30个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: HidePagesvoid wxWizardSizer::HidePages(){ for ( wxSizerItemList::compatibility_iterator node = GetChildren().GetFirst(); node; node = node->GetNext() ) { wxSizerItem * const item = node->GetData(); if ( item->IsWindow() ) item->GetWindow()->wxWindowBase::Show(false); }}
开发者ID:ACanadianKernel,项目名称:pcsx2,代码行数:11,
示例2: HandleAddvoid Bin::HandleAdd( const Widget::Ptr& child ) { Container::HandleAdd( child ); if( GetChildren().size() > 1 ) {#ifdef SFGUI_DEBUG std::cerr << "SFGUI warning: Only one widget can be added to a Bin." << std::endl;#endif Remove( child ); }}
开发者ID:spacechase0,项目名称:SFGUI,代码行数:11,
示例3: GetChildrenTask::TaskSet * CTaskModel::GetAllChildren(Task::TaskSet *pKids){ int start = pKids->GetCount(); pKids = GetChildren(pKids); int end = pKids->GetCount(); for(int i = start; i < end; i++) { (*pKids)[i].GetAllChildren(pKids); } return pKids;}
开发者ID:jaylauffer,项目名称:loadngo,代码行数:11,
示例4: sceneObjectsArray<SceneObject*> Scene::GetWholeSceneObjects() { Array<SceneObject*> sceneObjects(GetChildren()); for (int i = 0; i < sceneObjects.GetSize(); ++i) { Array<SceneObject*> children(sceneObjects[i]->GetChildren()); for (auto it = children.Begin(); it != children.End(); ++it) { sceneObjects.PushBack(*it); } } return sceneObjects;}
开发者ID:tsj123,项目名称:Meganekko,代码行数:11,
示例5: GetClientSizevoid CategoryList::ReCreateScrollBars(){ int clientHeight = GetClientSize().GetHeight(); int maxY = clientHeight; for(wxWindowList::Node * node = GetChildren().GetFirst(); node; node = node->GetNext()) { maxY = wxMax(maxY, node->GetData()->GetPosition().y+node->GetData()->GetSize().GetHeight()); } maxY += (maxY <= clientHeight ? 0 : 5); SetScrollbar(wxVERTICAL, 0, clientHeight, maxY);}
开发者ID:cubemoon,项目名称:game-editor,代码行数:11,
示例6: ComputeStudyCounters static void ComputeStudyCounters(DicomMap& result, ServerContext& context, const std::string& study, const DicomMap& query) { ServerIndex& index = context.GetIndex(); std::list<std::string> series; index.GetChildren(series, study); if (query.HasTag(DICOM_TAG_NUMBER_OF_STUDY_RELATED_SERIES)) { result.SetValue(DICOM_TAG_NUMBER_OF_STUDY_RELATED_SERIES, boost::lexical_cast<std::string>(series.size()), false); } if (query.HasTag(DICOM_TAG_MODALITIES_IN_STUDY)) { std::set<std::string> values; ExtractTagFromMainDicomTags(values, index, DICOM_TAG_MODALITY, series, ResourceType_Series); StoreSetOfStrings(result, DICOM_TAG_MODALITIES_IN_STUDY, values); } if (!query.HasTag(DICOM_TAG_NUMBER_OF_STUDY_RELATED_INSTANCES) && !query.HasTag(DICOM_TAG_SOP_CLASSES_IN_STUDY)) { return; } std::list<std::string> instances; GetChildren(instances, index, series); if (query.HasTag(DICOM_TAG_NUMBER_OF_STUDY_RELATED_INSTANCES)) { result.SetValue(DICOM_TAG_NUMBER_OF_STUDY_RELATED_INSTANCES, boost::lexical_cast<std::string>(instances.size()), false); } if (query.HasTag(DICOM_TAG_SOP_CLASSES_IN_STUDY)) { if (Configuration::GetGlobalBoolParameter("AllowFindSopClassesInStudy", false)) { std::set<std::string> values; ExtractTagFromInstances(values, context, DICOM_TAG_SOP_CLASS_UID, instances); StoreSetOfStrings(result, DICOM_TAG_SOP_CLASSES_IN_STUDY, values); } else { result.SetValue(DICOM_TAG_SOP_CLASSES_IN_STUDY, "", false); LOG(WARNING) << "The handling of /"SOP Classes in Study/" (0008,0062) " << "in C-FIND requests is disabled"; } } }
开发者ID:151706061,项目名称:OrthancMirror,代码行数:54,
示例7: GetChildren// Sets the main checkbox status, and enables/disables all child controls// bound to the StaticBox accordingly.void CheckedStaticBox::SetValue(bool val){ wxWindowList &list = GetChildren(); for (wxWindowList::iterator iter = list.begin(); iter != list.end(); ++iter) { wxWindow *current = *iter; if (current != &ThisToggle) current->Enable(val); } ThisToggle.SetValue(val);}
开发者ID:Alchemistxxd,项目名称:pcsx2,代码行数:13,
示例8: LOG_TRACEvoid SeqScanPlan::SetParameterValues(std::vector<common::Value *> *values) { LOG_TRACE("Setting parameter values in Sequential Scan"); auto predicate = predicate_with_params_->Copy(); expression::ExpressionUtil::ConvertParameterExpressions( predicate, values, GetTable()->GetSchema()); SetPredicate(predicate); for (auto &child_plan : GetChildren()) { child_plan->SetParameterValues(values); }}
开发者ID:shlee0605,项目名称:peloton,代码行数:11,
示例9: vUpdateBeforeChildrenvoidCGameObject::UpdateAndDraw( unsigned long in_Time ){ vUpdateBeforeChildren( in_Time ); std::vector< CGameObject* >& rChildren = GetChildren(); for( std::vector< CGameObject* >::iterator It = rChildren.begin(); It!=rChildren.end(); ++It ) { (*It)->UpdateAndDraw( in_Time ); } vUpdateAfterChildren();}
开发者ID:vpa1977,项目名称:lock_free_mt,代码行数:11,
示例10: whilebool wxRibbonPanel::HideExpanded(){ if(m_expanded_dummy == NULL) { if(m_expanded_panel) { return m_expanded_panel->HideExpanded(); } else { return false; } } // Move children back to original panel // NB: Children iterators not used as behaviour is not well defined // when iterating over a container which is being emptied while(!GetChildren().IsEmpty()) { wxWindow *child = GetChildren().GetFirst()->GetData(); child->Reparent(m_expanded_dummy); child->Hide(); } // Move sizer back if(GetSizer()) { wxSizer* sizer = GetSizer(); SetSizer(NULL, false); m_expanded_dummy->SetSizer(sizer); } m_expanded_dummy->m_expanded_panel = NULL; m_expanded_dummy->Realize(); m_expanded_dummy->Refresh(); wxWindow *parent = GetParent(); Destroy(); parent->Destroy(); return true;}
开发者ID:mael15,项目名称:wxWidgets,代码行数:41,
示例11: SetLayerIdvoid CControl::SetLayerId( size_t layerid ){ m_uLayerID = layerid; for ( auto child : GetChildren() ) { CControl* pChild = ( CControl*) child; if ( pChild ) { pChild->SetLayerId( m_uLayerID + 1 ); } }}
开发者ID:BeyondEngine,项目名称:BeyondEngine,代码行数:12,
示例12: GetChildren std::string SEXPR::AsString( size_t aLevel ) { std::string result; if( IsList() ) { if( aLevel != 0 ) { result = "/n"; } result.append( aLevel* 4, ' ' ); aLevel++; result += "("; SEXPR_VECTOR const* list = GetChildren(); for( std::vector<SEXPR *>::const_iterator it = list->begin(); it != list->end(); ++it ) { result += (*it)->AsString( aLevel ); if( it != list->end() - 1 ) { result += " "; } } result += ")"; aLevel--; } else if( IsString() ) { result += "/"" + GetString() + "/""; } else if( IsSymbol() ) { result += GetSymbol(); } else if( IsInteger() ) { std::stringstream out; out << GetInteger(); result += out.str(); } else if( IsDouble() ) { std::stringstream out; out << std::setprecision( 16 ) << GetDouble(); result += out.str(); } return result; }
开发者ID:AlexanderBrevig,项目名称:kicad-source-mirror,代码行数:53,
示例13: GetChildrenbool wxRibbonPanel::Layout(){ if(IsMinimised()) { // Children are all invisible when minimised return true; } // TODO: Delegate to a sizer // Common case of no sizer and single child taking up the entire panel if(GetChildren().GetCount() == 1) { wxWindow* child = GetChildren().Item(0)->GetData(); wxPoint position; wxClientDC dc(this); wxSize size = m_art->GetPanelClientSize(dc, this, GetSize(), &position); child->SetSize(position.x, position.y, size.GetWidth(), size.GetHeight()); } return true;}
开发者ID:CyberIntelMafia,项目名称:clamav-devel,代码行数:21,
示例14: Clone/// Create a clone of this and childrenctConfiguration* ctConfiguration::DeepClone(){ ctConfiguration* newItem = Clone(); for ( wxObjectList::compatibility_iterator node = GetChildren().GetFirst(); node; node = node->GetNext() ) { ctConfiguration* child = (ctConfiguration*) node->GetData(); ctConfiguration* newChild = child->DeepClone(); newItem->AddChild(newChild); } return newItem;}
开发者ID:BackupTheBerlios,项目名称:wxbeos-svn,代码行数:13,
示例15: GetChildreninline double ConcatSequence::GetDuration () { double duration = 0.; vector<Module*> children = GetChildren(); for (RepIter r=begin(); r<end(); ++r) for (unsigned int j=0; j<children.size() ; ++j) duration += children[j]->GetDuration(); m_duration = duration; DEBUG_PRINT(" ConcatSequence::GetDuration() of " << GetName() << " calculates duration = " << duration << endl;)
开发者ID:welcheb,项目名称:jemris,代码行数:12,
示例16: menu_DrawQuadvoid TopMenuItem::Render(const Camera& curCamera){ menu_DrawQuad(0.f, 0.f, m_w, m_h, 1.f); float x = kHSpace; float y = m_h - kVSpace; for(int i = 0, c = GetChildren().size(); i < c; ++i) { auto child = GetChildren()[i]; float titlew,titleh; child->GetTitleDims(titlew, titleh); const Color* col = (GetPos() == i) ? &kTextSelColor : &kTextColor; if(child->HasFlag(MENUSTATE_Active)) col = &kTextActiveColor; child->DrawTitle(x, y, *col); x += 2.f * kHSpace + titlew; } for(auto child: GetChildren()) if(child->HasFlag(MENUSTATE_Active)) child->Render(curCamera);}
开发者ID:RhineW,项目名称:hypertexture,代码行数:21,
示例17: GetChildren Core::SCOM::ComPtr<IResource> CFolder::FindChild(const std::string &name) { Core::SCOM::ComPtr<IResource> chld; GetChildren(); for(size_t i = 0; i < mChildren.size(); ++i) { boost::filesystem::path p(mChildren[i]->FullPath()); if(p.filename() == name) chld = mChildren[i]; } return chld; }
开发者ID:mikhtonyuk,项目名称:3DEngine,代码行数:12,
示例18: GetChildrenbool CanalConfigWizard::Run(){ wxWindowList::compatibility_iterator node = GetChildren().GetFirst(); while ( node ) { wxWizardPage* startPage = wxDynamicCast( node->GetData(), wxWizardPage ); if ( startPage ) return RunWizard( startPage ); node = node->GetNext(); } return false;}
开发者ID:ajje,项目名称:vscp,代码行数:12,
示例19: resultsize_t CategoryList::GetCategoryCount(){ size_t result(0); for(wxWindowList::Node * node = GetChildren().GetFirst(); node; node = node->GetNext()) { if(node->GetData()->IsKindOf(CLASSINFO(CategoryButton))) { result++; } } return result;}
开发者ID:cubemoon,项目名称:game-editor,代码行数:12,
示例20: PELOTON_ASSERTvoid InsertPlan::VisitParameters( codegen::QueryParametersMap &map, std::vector<peloton::type::Value> &values, const std::vector<peloton::type::Value> &values_from_user) { if (GetChildren().size() == 0) { auto *schema = target_table_->GetSchema(); auto columns_num = schema->GetColumnCount(); for (uint32_t i = 0; i < values_.size(); i++) { auto value = values_[i]; auto column_id = i % columns_num; map.Insert(expression::Parameter::CreateConstParameter( value.GetTypeId(), schema->AllowNull(column_id)), nullptr); values.push_back(value); } } else { PELOTON_ASSERT(GetChildren().size() == 1); auto *plan = const_cast<planner::AbstractPlan *>(GetChild(0)); plan->VisitParameters(map, values, values_from_user); }}
开发者ID:camellyx,项目名称:peloton,代码行数:21,
示例21: GetChildrenvoid wxWindowDFB::InvalidateDfbSurface(){ m_surface = NULL; // surfaces of the children are subsurfaces of this window's surface, // so they must be invalidated as well: wxWindowList& children = GetChildren(); for ( wxWindowList::iterator i = children.begin(); i != children.end(); ++i ) { (*i)->InvalidateDfbSurface(); }}
开发者ID:beanhome,项目名称:dev,代码行数:12,
示例22: GetPlanNodeTypehash_t InsertPlan::Hash() const { auto type = GetPlanNodeType(); hash_t hash = HashUtil::Hash(&type); hash = HashUtil::CombineHashes(hash, GetTable()->Hash()); if (GetChildren().size() == 0) { auto bulk_insert_count = GetBulkInsertCount(); hash = HashUtil::CombineHashes(hash, HashUtil::Hash(&bulk_insert_count)); } return HashUtil::CombineHashes(hash, AbstractPlan::Hash());}
开发者ID:camellyx,项目名称:peloton,代码行数:12,
示例23: GetChildrenDurationParallelTimeline::GetNaturalDurationCore (Clock *clock){ TimelineCollection *collection = GetChildren (); Duration d = Duration::Automatic; TimeSpan duration_span = 0; Timeline *timeline; int count = collection->GetCount (); if (count == 0) return Duration::FromSeconds (0); for (int i = 0; i < count; i++) { timeline = collection->GetValueAt (i)->AsTimeline (); Duration duration = timeline->GetNaturalDuration (clock); if (duration.IsAutomatic()) continue; if (duration.IsForever()) return Duration::Forever; TimeSpan span = duration.GetTimeSpan (); RepeatBehavior *repeat = timeline->GetRepeatBehavior (); if (repeat->IsForever()) return Duration::Forever; if (repeat->HasCount ()) span = (TimeSpan) (span * repeat->GetCount ()); if (timeline->GetAutoReverse ()) span *= 2; // If we have duration-base repeat behavior, // clamp/up our span to that. if (repeat->HasDuration ()) span = repeat->GetDuration (); if (span != 0) span = (TimeSpan)(span / timeline->GetSpeedRatio()); span += timeline->GetBeginTime (); if (duration_span <= span) { duration_span = span; d = Duration (duration_span); } } return d;}
开发者ID:lewing,项目名称:moon,代码行数:53,
示例24: GetChildrenAForm* AApplication::GetMainForm(){ if( m_pMainForm && !m_pMainForm->IsDestroyed() ) return m_pMainForm; int i,iCount = GetChildren()->GetCount(); for(i=0;i<iCount;i++) { AComponent* p = dynamic_cast<AControl*>(GetChildren()->GetItem(i)); if( p != NULL ) { AForm* pForm = (AForm *)p->ToClass( _T("Form") ); if( pForm != NULL ) { if( pForm->IsDestroyed() == false ) m_pMainForm = pForm; break; } } } return m_pMainForm;}
开发者ID:emuikernel,项目名称:BaijieCppUILib,代码行数:22,
示例25: printfvoid CTrieHolder::PrintChildren(size_t NodeNo) const{ printf("%" PRISZT, NodeNo); if (m_Nodes[NodeNo].m_FailureFunction != -1) printf(" failure(%i) ", m_Nodes[NodeNo].m_FailureFunction); printf(" -> "); size_t i=0; size_t Count = GetChildrenCount(NodeNo); for (; i<Count; i++) { const CTrieRelation& p = GetChildren(NodeNo)[i]; SymbolInformationType::const_iterator it = m_pSymbolInformation->find(p.m_RelationChar); assert (it != m_pSymbolInformation->end()); printf("%i %s,", p.m_ChildNo, it->second.c_str()); }; printf("/n"); for (; i<Count; i++) PrintChildren(GetChildren(NodeNo)[i].m_ChildNo);};
开发者ID:Frankie-666,项目名称:tomita-parser,代码行数:22,
示例26: GetChildrenvoid BdayFrame::showHelp(){ wxWindowList & wnds = GetChildren(); for ( wxWindowList::iterator it = wnds.begin(); it != wnds.end(); ++it ) if ( ( *it )->IsKindOf(CLASSINFO(wxFrame)) ) if ( ((wxFrame *)( *it ))->GetTitle().IsSameAs(HelpFrame::defaultTitle) ) { ( *it )->Raise(); return; } HelpFrame * frame = new HelpFrame(this); frame->Show(true);}
开发者ID:evmcl,项目名称:bday,代码行数:13,
示例27: Resizevoid CSystemControlModel::Resize(){ int width = 0; for (auto child : GetChildren()) { width = MAX(child->GetRect().GetWidth(), width); } width += 15; int height = CalcHeight(); rect.Right() = rect.Left() + width; rect.Bottom() = rect.Top() + height;}
开发者ID:IlyaGusev,项目名称:Plotter,代码行数:13,
示例28: GetChildrenwxString wxXmlNode::GetNodeContent() const{ wxXmlNode *n = GetChildren(); while (n) { if (n->GetType() == wxXML_TEXT_NODE || n->GetType() == wxXML_CDATA_SECTION_NODE) return n->GetContent(); n = n->GetNext(); } return wxEmptyString;}
开发者ID:252525fb,项目名称:rpcs3,代码行数:13,
示例29: ClockGroupClock *TimelineGroup::AllocateClock (){ clock = new ClockGroup (this); TimelineCollection *collection = GetChildren (); int count = collection->GetCount (); for (int i = 0; i < count; i++) ((ClockGroup*)clock)->AddChild (collection->GetValueAt (i)->AsTimeline ()->AllocateClock ()); AttachCompletedHandler (); return clock;}
开发者ID:lewing,项目名称:moon,代码行数:13,
示例30: TO_UTF8void XNODE::FormatContents( OUTPUTFORMATTER* out, int nestLevel ){ // output attributes first if they exist for( XATTR* attr = (XATTR*) GetAttributes(); attr; attr = (XATTR*) attr->GetNext() ) { out->Print( 0, " (%s %s)", TO_UTF8( attr->GetName() ), out->Quotew( attr->GetValue() ).c_str() ); } // we only expect to have used one of two types here: switch( GetType() ) { case wxXML_ELEMENT_NODE: // output children if they exist. for( XNODE* kid = (XNODE*) GetChildren(); kid; kid = (XNODE*) kid->GetNext() ) { if( kid->GetType() != wxXML_TEXT_NODE ) { if( kid == GetChildren() ) out->Print( 0, "/n" ); kid->Format( out, nestLevel+1 ); } else { kid->Format( out, 0 ); } } break; case wxXML_TEXT_NODE: out->Print( 0, " %s", out->Quotew( GetContent() ).c_str() ); break; default: ; // not supported }}
开发者ID:KiCad,项目名称:kicad-source-mirror,代码行数:39,
注:本文中的GetChildren函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 C++ GetChunk函数代码示例 C++ GetChildItem函数代码示例 |