当前位置: 首页>>代码示例>>C++>>正文


C++ Escher_SetInsertElement函数代码示例

本文整理汇总了C++中Escher_SetInsertElement函数的典型用法代码示例。如果您正苦于以下问题:C++ Escher_SetInsertElement函数的具体用法?C++ Escher_SetInsertElement怎么用?C++ Escher_SetInsertElement使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了Escher_SetInsertElement函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: ooaofooa_G_EIS_R9100_Link

/*
 * RELATE PE_PE TO S_SYS ACROSS R9100 USING G_EIS
 */
void
ooaofooa_G_EIS_R9100_Link( ooaofooa_PE_PE * aone, ooaofooa_S_SYS * aoth, ooaofooa_G_EIS * assr )
{
  /* Use TagEmptyHandleDetectionOn() to detect empty handle references.  */
  assr->Element_ID = aone->Element_ID;
  assr->Sys_ID = aoth->Sys_ID;
  /* Initialize optimized relationship storage extended attributes */
  assr->PE_PE_R9100 = aone;
  assr->S_SYS_R9100 = aoth;
  Escher_SetInsertElement( &aone->G_EIS_R9100, assr );
  Escher_SetInsertElement( &aoth->G_EIS_R9100, assr );
}
开发者ID:HebaKhaled,项目名称:bposs,代码行数:15,代码来源:ooaofooa_G_EIS_class.c

示例2: assoc_unformal_G_R3_Link

/*
 * RELATE F TO E ACROSS R3 USING G
 */
void
assoc_unformal_G_R3_Link( assoc_unformal_F * aone, assoc_unformal_E * aoth, assoc_unformal_G * assr )
{
  if ( (aone == 0) || (aoth == 0) || (assr == 0) ) {
    XTUML_EMPTY_HANDLE_TRACE( "G", "assoc_unformal_G_R3_Link" );
    return;
  }
  /* Initialize optimized relationship storage extended attributes */
  assr->F_R3 = aone;
  assr->E_R3 = aoth;
  Escher_SetInsertElement( &aone->G_R3, assr );
  Escher_SetInsertElement( &aoth->G_R3, assr );
}
开发者ID:HebaKhaled,项目名称:models,代码行数:16,代码来源:assoc_unformal_G_class.c

示例3: ooaofooa_S_EEEDT_R13_Link

/*
 * RELATE S_EEEDI TO S_EEEVT ACROSS R13 USING S_EEEDT
 */
void
ooaofooa_S_EEEDT_R13_Link( ooaofooa_S_EEEDI * aone, ooaofooa_S_EEEVT * aoth, ooaofooa_S_EEEDT * assr )
{
  /* Use TagEmptyHandleDetectionOn() to detect empty handle references.  */
  assr->EEedi_ID = aone->EEedi_ID;
  assr->EE_ID = aone->EE_ID;
  assr->EEevt_ID = aoth->EEevt_ID;
  assr->EE_ID = aoth->EE_ID;
  /* Initialize optimized relationship storage extended attributes */
  assr->S_EEEDI_R13_may_carry = aone;
  assr->S_EEEVT_R13_is_carried_via = aoth;
  Escher_SetInsertElement( &aone->S_EEEDT_R13, assr );
  Escher_SetInsertElement( &aoth->S_EEEDT_R13, assr );
}
开发者ID:HebaKhaled,项目名称:bposs,代码行数:17,代码来源:ooaofooa_S_EEEDT_class.c

示例4: assoc_unformal_Y_R12_Link_is_buddy_of

/*
 * RELATE <left> X TO <right> X ACROSS R12.'is buddy of' USING Y
 */
void
assoc_unformal_Y_R12_Link_is_buddy_of( assoc_unformal_X * left, assoc_unformal_X * right, assoc_unformal_Y * assr )
{
  if ( (left == 0) || (right == 0) || (assr == 0) ) {
    XTUML_EMPTY_HANDLE_TRACE( "Y", "assoc_unformal_Y_R12_Link_is_buddy_of" );
    return;
  }
  Escher_strcpy( assr->pal, left->name );
  Escher_strcpy( assr->buddy, right->name );
  /* Initialize optimized relationship storage extended attributes */
  assr->X_R12_is_pal_of = left;  /* RAL 1 */
  assr->X_R12_is_buddy_of = right; /* RAL 2 */
  Escher_SetInsertElement( &right->Y_R12_is_pal_of, assr ); /* RAL 8 */
  Escher_SetInsertElement( &left->Y_R12_is_buddy_of, assr ); /* RAL 12 */
}
开发者ID:HebaKhaled,项目名称:models,代码行数:18,代码来源:assoc_unformal_Y_class.c

示例5: Escher_SetInsertElement

/*
 * Insert a single element into the set in no particular order.
 * The element is a data item.  A container node will be allocated
 * to link in the element.
 */
void
Escher_SetInsertElement(
    Escher_ObjectSet_s * set,
    void * const substance
)
{
    Escher_SetElement_s * slot;
    if ( 0 == node1_FreeList.head ) {
        Escher_SetElement_s * new_mem = ( Escher_SetElement_s *) Escher_malloc( 10 * sizeof( Escher_SetElement_s ) );

        if ( 0 == new_mem ) {
            UserNodeListEmptyCallout(); /* Bad news!  No more heap space.  */
        } else {
            u1_t i;
            for ( i = 0; i < 10 - 1; i++ ) {
                new_mem[ i ].next = (Escher_SetElement_s *) &(new_mem[ i + 1 ]);
            }
            new_mem[ 10 - 1 ].next = 0;
            node1_FreeList.head = new_mem;
            Escher_SetInsertElement( set, substance );
        }
    } else {
        slot = node1_FreeList.head; /* Extract node from free list head. */
        node1_FreeList.head = node1_FreeList.head->next;
        slot->object = substance;
        slot->next = set->head;     /* Insert substance at list front.   */
        set->head = slot;
    }
}
开发者ID:randy-xiang,项目名称:models,代码行数:34,代码来源:sys_xtuml.c

示例6: ooaofooa_O_TPARM_R118_Link_defines_the_type_of_

/*
 * RELATE S_DT TO O_TPARM ACROSS R118
 */
void
ooaofooa_O_TPARM_R118_Link_defines_the_type_of_( ooaofooa_S_DT * part, ooaofooa_O_TPARM * form )
{
  /* Use TagEmptyHandleDetectionOn() to detect empty handle references.  */
  form->DT_ID = part->DT_ID;
  form->S_DT_R118_is_defined_by = part;
  Escher_SetInsertElement( &part->O_TPARM_R118_defines_the_type_of_, (Escher_ObjectSet_s *) form );
}
开发者ID:HebaKhaled,项目名称:bposs,代码行数:11,代码来源:ooaofooa_O_TPARM_class.c

示例7: ooaofooa_O_IOBJ_R3_Link_can_contain_classs_from_other_subsystems_via

/*
 * RELATE S_SS TO O_IOBJ ACROSS R3
 */
void
ooaofooa_O_IOBJ_R3_Link_can_contain_classs_from_other_subsystems_via( ooaofooa_S_SS * part, ooaofooa_O_IOBJ * form )
{
    /* Use TagEmptyHandleDetectionOn() to detect empty handle references.  */
    form->SS_ID = part->SS_ID;
    form->S_SS_R3_represents_a_class_from_another_subsystem_in = part;
    Escher_SetInsertElement( &part->O_IOBJ_R3_can_contain_classs_from_other_subsystems_via, (Escher_ObjectSet_s *) form );
}
开发者ID:marnil,项目名称:mc,代码行数:11,代码来源:ooaofooa_O_IOBJ_class.c

示例8: ooaofooa_O_IOBJ_R101_Link_has_presence_in_other_subsystems

/*
 * RELATE O_OBJ TO O_IOBJ ACROSS R101
 */
void
ooaofooa_O_IOBJ_R101_Link_has_presence_in_other_subsystems( ooaofooa_O_OBJ * part, ooaofooa_O_IOBJ * form )
{
    /* Use TagEmptyHandleDetectionOn() to detect empty handle references.  */
    form->Obj_ID = part->Obj_ID;
    form->O_OBJ_R101_represents = part;
    Escher_SetInsertElement( &part->O_IOBJ_R101_has_presence_in_other_subsystems, (Escher_ObjectSet_s *) form );
}
开发者ID:marnil,项目名称:mc,代码行数:11,代码来源:ooaofooa_O_IOBJ_class.c

示例9: ooaofooa_TE_SWC_R2001_Link

/*
 * RELATE TE_CLASS TO TE_SWC ACROSS R2001
 */
void
ooaofooa_TE_SWC_R2001_Link( ooaofooa_TE_CLASS * part, ooaofooa_TE_SWC * form )
{
  /* Use TagEmptyHandleDetectionOn() to detect empty handle references.  */
  Escher_strcpy( form->GeneratedName, part->GeneratedName );
  form->TE_CLASS_R2001 = part;
  Escher_SetInsertElement( &part->TE_SWC_R2001, (Escher_ObjectSet_s *) form );
}
开发者ID:HebaKhaled,项目名称:bposs,代码行数:11,代码来源:ooaofooa_TE_SWC_class.c

示例10: ooaofooa_TE_DISP_R2003_Link

/*
 * RELATE TE_SYS TO TE_DISP ACROSS R2003
 */
void
ooaofooa_TE_DISP_R2003_Link( ooaofooa_TE_SYS * part, ooaofooa_TE_DISP * form )
{
  /* Use TagEmptyHandleDetectionOn() to detect empty handle references.  */
  form->SystemID = part->SystemID;
  form->TE_SYS_R2003 = part;
  Escher_SetInsertElement( &part->TE_DISP_R2003, (Escher_ObjectSet_s *) form );
}
开发者ID:HebaKhaled,项目名称:bposs,代码行数:11,代码来源:ooaofooa_TE_DISP_class.c

示例11: ooaofooa_ACT_FIW_R676_Link

/*
 * RELATE O_OBJ TO ACT_FIW ACROSS R676
 */
void
ooaofooa_ACT_FIW_R676_Link( ooaofooa_O_OBJ * part, ooaofooa_ACT_FIW * form )
{
  /* Use TagEmptyHandleDetectionOn() to detect empty handle references.  */
  form->Obj_ID = part->Obj_ID;
  form->O_OBJ_R676_from_extent_of = part;
  Escher_SetInsertElement( &part->ACT_FIW_R676, (Escher_ObjectSet_s *) form );
}
开发者ID:HebaKhaled,项目名称:bposs,代码行数:11,代码来源:ooaofooa_ACT_FIW_class.c

示例12: ooaofooa_CA_EESMC_R403_Link_has_received_event_communication_represented_by

/*
 * RELATE SM_SM TO CA_EESMC ACROSS R403
 */
void
ooaofooa_CA_EESMC_R403_Link_has_received_event_communication_represented_by( ooaofooa_SM_SM * part, ooaofooa_CA_EESMC * form )
{
  /* Use TagEmptyHandleDetectionOn() to detect empty handle references.  */
  form->SM_ID = part->SM_ID;
  form->SM_SM_R403_shows_event_communication_to = part;
  Escher_SetInsertElement( &part->CA_EESMC_R403_has_received_event_communication_represented_by, (Escher_ObjectSet_s *) form );
}
开发者ID:HebaKhaled,项目名称:bposs,代码行数:11,代码来源:ooaofooa_CA_EESMC_class.c

示例13: ooaofooa_SM_EVTDI_R516_Link_can_asynchronously_communicate_via

/*
 * RELATE SM_SM TO SM_EVTDI ACROSS R516
 */
void
ooaofooa_SM_EVTDI_R516_Link_can_asynchronously_communicate_via( ooaofooa_SM_SM * part, ooaofooa_SM_EVTDI * form )
{
  /* Use TagEmptyHandleDetectionOn() to detect empty handle references.  */
  form->SM_ID = part->SM_ID;
  form->SM_SM_R516_is_carried_on_events_into = part;
  Escher_SetInsertElement( &part->SM_EVTDI_R516_can_asynchronously_communicate_via, (Escher_ObjectSet_s *) form );
}
开发者ID:HebaKhaled,项目名称:bposs,代码行数:11,代码来源:ooaofooa_SM_EVTDI_class.c

示例14: ooaofooa_SM_EVTDI_R532_Link_carries

/*
 * RELATE SM_EVT TO SM_EVTDI ACROSS R532
 */
void
ooaofooa_SM_EVTDI_R532_Link_carries( ooaofooa_SM_EVT * part, ooaofooa_SM_EVTDI * form )
{
  /* Use TagEmptyHandleDetectionOn() to detect empty handle references.  */
  form->SMevt_ID = part->SMevt_ID;
  form->SM_EVT_R532_carried_by = part;
  Escher_SetInsertElement( &part->SM_EVTDI_R532_carries, (Escher_ObjectSet_s *) form );
}
开发者ID:HebaKhaled,项目名称:bposs,代码行数:11,代码来源:ooaofooa_SM_EVTDI_class.c

示例15: ooaofooa_SM_EVTDI_R524_Link_defines_the_type_of

/*
 * RELATE S_DT TO SM_EVTDI ACROSS R524
 */
void
ooaofooa_SM_EVTDI_R524_Link_defines_the_type_of( ooaofooa_S_DT * part, ooaofooa_SM_EVTDI * form )
{
  /* Use TagEmptyHandleDetectionOn() to detect empty handle references.  */
  form->DT_ID = part->DT_ID;
  form->S_DT_R524_is_defined_by = part;
  Escher_SetInsertElement( &part->SM_EVTDI_R524_defines_the_type_of, (Escher_ObjectSet_s *) form );
}
开发者ID:HebaKhaled,项目名称:bposs,代码行数:11,代码来源:ooaofooa_SM_EVTDI_class.c


注:本文中的Escher_SetInsertElement函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。