add an entity attribute removal effect to buffer
| 591 | |
| 592 | // add an entity attribute removal effect to buffer |
| 593 | void EffectsBuffer_AddEntityRemoveAttributeEffect |
| 594 | ( |
| 595 | EffectsBuffer *buff, // effect buffer |
| 596 | GraphEntity *entity, // updated entity ID |
| 597 | Attribute_ID attr_id, // updated attribute ID |
| 598 | GraphEntityType entity_type // entity type |
| 599 | ) { |
| 600 | // attribute was deleted |
| 601 | int n = (attr_id == ATTRIBUTE_ID_ALL) |
| 602 | ? AttributeSet_Count(*entity->attributes) |
| 603 | : 1; |
| 604 | |
| 605 | ResultSetStatistics *stats = QueryCtx_GetResultSetStatistics(); |
| 606 | stats->properties_removed += n; |
| 607 | |
| 608 | SIValue v = SI_NullVal(); |
| 609 | if(entity_type == GETYPE_NODE) { |
| 610 | EffectsBuffer_AddNodeUpdateEffect(buff, (Node*)entity, attr_id, v); |
| 611 | } else { |
| 612 | EffectsBuffer_AddEdgeUpdateEffect(buff, (Edge*)entity, attr_id, v); |
| 613 | } |
| 614 | } |
| 615 | |
| 616 | // add an entity add new attribute effect to buffer |
| 617 | void EffectsBuffer_AddEntityAddAttributeEffect |
no test coverage detected