Ticket #131 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

add clear() method for MFields

Reported by: dirk Assigned to: cneumann
Priority: major Milestone: 2.0 Beta
Component: System Version: 2.0
Keywords: Cc:
Completion: 29/12/2006

Description

There should be a clear() method for MFields that removes all elements. For PtrFields? that actually is work, for non-Ptr fields it's just resizing to 0.

Change History

12/19/06 04:09:38 changed by cneumann

  • owner changed from unassigned to cneumann.
  • status changed from new to assigned.
  • estimated_completion set to 31/12/2006.

I'll look into it

12/23/06 15:23:22 changed by cneumann

  • estimated_completion changed from 31/12/2006 to 29/12/2006.

Looks like a simple mistake in the template files prevented these methods from being generated. After moving an @@endif the following methods are now generated for MF non-Ptr fields:

void pushTo<FieldName>              (const <FieldType>    &value   );
void insertInto<FieldName>          (      UInt32          uiIndex,
                                     const <FieldType>    &value   );
void replaceIn<FieldName>           (      UInt32          uiIndex,
                                     const <FieldType>    &value   );
void replaceIn<FieldName>           (const <FieldType>    &pOldElem,
                                     const <FieldType>    &pNewElem);
void removeFrom<FieldName>          (      UInt32          uiIndex );
void removeFrom<FieldName>          (const <FieldType>    &value   );
void clear<FieldName>               (      void                    );

Ok to regenerate all base files ? If nobody objects I'll commit this on 29/12/2006.

01/03/07 10:18:30 changed by cneumann

  • status changed from assigned to closed.
  • resolution set to fixed.

should be fixed with r458 and r459