Menu

#445 Add a sorting algorithm for the 'string()' object

v1.1.x
closed
None
v1.1.2
New Functionality
2019-08-19
2019-02-15
Erik Hänel
No

Add a sorting algorithm for the string() object like it's available for caches. It should also feature case-sensitive and case-insensitive comparison.

Analysis:

This can be done by abstrahizing the already available algorithm in Memory. To do this, create a new class Sorter (probably a template) with two virtual functions: value(line, col) and isValue(line, col). Additionally, port the algorithm to this class and set it as parent class to Memory and to the StringMemory class (to be created).

Implementation:

  • Implementation: The functionality was implemented as proposed by the analysis.
  • Revision: [r470]
  • Implementation test: The sorting algorithm was applied to a string object without any deviation.

Documentation:

  • ChangesLog: Updated
  • Comments: The new code was commented sufficiently
  • Documentation articles: The sort documentation article was updated
  • Language files: The language strings for the syntax elements were created

Tests:

New functionality was added to the automatic tests. No deviations detected.

Related

Commit: [r470]

Discussion

  • Erik Hänel

    Erik Hänel - 2019-02-15
    • status: open --> accepted
     
  • Erik Hänel

    Erik Hänel - 2019-02-15
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1 +1,18 @@
     Add a sorting algorithm for the `string()` object like it's available for caches. It should also feature case-sensitive and case-insensitive comparison.
    +
    +###Analysis:
    +(*Describe, what's the issue and which changes have to be made*)
    +
    +###Implementation:
    +* Implementation: (*Describe, what you've changed*) 
    +* Revision: [rXXX]
    +* Implementation test: (*Describe the type of test, which you performed, and if it was successful*)
    +
    +###Documentation:
    +* ChangesLog: (*Have you updated the changes log?*)
    +* Comments: (*Have you written comments in the code, which describe your change?*)
    +* Documentation articles: (*Have you updated the documentation articles?*)
    +* Language files: (*Have you updated the language files?*)
    +
    +###Tests:
    +(*Describe, which tests you performed and their outcome*)
    
    • status: accepted --> analyzing
     
  • Erik Hänel

    Erik Hänel - 2019-02-15
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,7 +1,7 @@
     Add a sorting algorithm for the `string()` object like it's available for caches. It should also feature case-sensitive and case-insensitive comparison.
    
     ###Analysis:
    -(*Describe, what's the issue and which changes have to be made*)
    +This can be done by abstrahizing the already available algorithm in `Memory`. To do this, create a new class `Sorter` (probably a template) with two virtual functions: `value(line, col)` and `isValue(line, col)`. Additionally, port the algorithm to this class and set it as parent class to `Memory` and to the `StringMemory` class (to be created).
    
     ###Implementation:
    
     * Implementation: (*Describe, what you've changed*) 
    
    • status: analyzing --> implementing
     
  • Erik Hänel

    Erik Hänel - 2019-02-17
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -4,15 +4,15 @@
     This can be done by abstrahizing the already available algorithm in `Memory`. To do this, create a new class `Sorter` (probably a template) with two virtual functions: `value(line, col)` and `isValue(line, col)`. Additionally, port the algorithm to this class and set it as parent class to `Memory` and to the `StringMemory` class (to be created).
    
     ###Implementation:
    -* Implementation: (*Describe, what you've changed*) 
    -* Revision: [rXXX]
    -* Implementation test: (*Describe the type of test, which you performed, and if it was successful*)
    +* Implementation: The functionality was implemented as proposed by the analysis.
    +* Revision: [r470]
    +* Implementation test: The sorting algorithm was applied to a string object without any deviation.
    
     ###Documentation:
    -* ChangesLog: (*Have you updated the changes log?*)
    -* Comments: (*Have you written comments in the code, which describe your change?*)
    -* Documentation articles: (*Have you updated the documentation articles?*)
    -* Language files: (*Have you updated the language files?*)
    +* ChangesLog: Updated
    +* Comments: The new code was commented sufficiently
    +* Documentation articles: The `sort` documentation article was updated
    +* Language files: The language strings for the syntax elements were created
    
     ###Tests:
     (*Describe, which tests you performed and their outcome*)
    
    • status: implementing --> testing
     

    Related

    Commit: [r470]

  • Erik Hänel

    Erik Hänel - 2019-08-19
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -15,4 +15,4 @@
    
     * Language files: The language strings for the syntax elements were created
    
     ###Tests:
    -(*Describe, which tests you performed and their outcome*)
    +New functionality was added to the automatic tests. No deviations detected.
    
    • status: testing --> closed
     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB