#include <dlgAddMatchFiles.hpp>
Collaboration diagram for dlgAddMatchFiles::ArrayMatchPattern:

Public Member Functions | |
| void | add (MatchPattern pattern) |
| Adds a pattern to the array. | |
| void | alloc (size_t count) |
| Preallocates memory for a given number of patterns. | |
| ArrayMatchPattern (const ArrayMatchPattern &source) | |
| Copy constructor. | |
| ArrayMatchPattern (size_t count) | |
| Constructor with an amount of allocated elements. | |
| ArrayMatchPattern () | |
| Default constructor. | |
| void | clear () |
| Empties the array. | |
| size_t | getCount () const |
| Gets the number of patterns in the array. | |
| MatchPattern & | item (size_t index) const |
| Gets the pattern at the given index. | |
| ArrayMatchPattern & | operator= (const ArrayMatchPattern &source) |
| Assignment operator. | |
| MatchPattern & | operator[] (size_t index) const |
| Gets the pattern at the given index. | |
| ~ArrayMatchPattern () | |
| Destructor. | |
Protected Types | |
| typedef MatchPattern * | pMatchPattern |
| Pointer on a matching pattern. | |
Protected Member Functions | |
| void | clone (const ArrayMatchPattern &source) |
| Clones the source instance in this instance. | |
Protected Attributes | |
| size_t | allocated |
| number of allocated matching patterns. | |
| pMatchPattern * | patterns |
| Array of patterns. | |
| size_t | used |
| number of used matching patterns. | |
Static Protected Attributes | |
| const size_t | ALLOC_NEW = 10 |
| Number of patterns to allocate when the array is to small for new elements. | |
Definition at line 335 of file dlgAddMatchFiles.hpp.
|
|
Pointer on a matching pattern.
Definition at line 338 of file dlgAddMatchFiles.hpp. |
|
|
Default constructor.
Definition at line 323 of file dlgAddMatchFiles.cpp. References alloc(), ALLOC_NEW, allocated, patterns, and used. |
|
|
Constructor with an amount of allocated elements.
Definition at line 338 of file dlgAddMatchFiles.cpp. |
|
|
Copy constructor.
Definition at line 373 of file dlgAddMatchFiles.cpp. |
|
|
Destructor.
Definition at line 400 of file dlgAddMatchFiles.cpp. References clear(). |
|
|
|
Preallocates memory for a given number of patterns.
Definition at line 474 of file dlgAddMatchFiles.cpp. References alloc(), allocated, patterns, and used. Referenced by add(), alloc(), ArrayMatchPattern(), and clone(). |
|
|
Empties the array.
Definition at line 500 of file dlgAddMatchFiles.cpp. References allocated, patterns, and used. Referenced by clone(), and ~ArrayMatchPattern(). |
|
|
Clones the source instance in this instance.
Definition at line 353 of file dlgAddMatchFiles.cpp. References alloc(), allocated, clear(), clone(), patterns, and used. Referenced by ArrayMatchPattern(), clone(), and operator=(). |
|
|
Gets the number of patterns in the array.
Definition at line 525 of file dlgAddMatchFiles.cpp. References used. Referenced by add(), dlgAddMatchFiles::btnAddListClick(), dlgAddMatchFiles::btnLoadListClick(), ChecksumsListView::selectMatchingFilesToAdd(), and dlgAddMatchFiles::PatternsListValidator::TransferToWindow(). |
|
|
Gets the pattern at the given index. If the index is out of bounds, nothing special is done (and the program will surely fail with a segmentation fault).
Definition at line 540 of file dlgAddMatchFiles.cpp. References item(), and patterns. Referenced by item(), and dlgAddMatchFiles::PatternsListValidator::TransferToWindow(). |
|
|
Assignment operator.
Definition at line 389 of file dlgAddMatchFiles.cpp. References clone(), and operator=(). Referenced by operator=(). |
|
|
Gets the pattern at the given index. If the index is out of bounds, nothing special is done (and the program will surely fail with a segmentation fault).
Definition at line 556 of file dlgAddMatchFiles.cpp. References operator[](), and patterns. Referenced by operator[](). |
|
|
Number of patterns to allocate when the array is to small for new elements.
Definition at line 318 of file dlgAddMatchFiles.cpp. Referenced by add(), and ArrayMatchPattern(). |
|
|
number of allocated matching patterns.
Definition at line 340 of file dlgAddMatchFiles.hpp. Referenced by add(), alloc(), ArrayMatchPattern(), clear(), and clone(). |
|
|
Array of patterns.
Definition at line 342 of file dlgAddMatchFiles.hpp. Referenced by add(), alloc(), ArrayMatchPattern(), clear(), clone(), item(), and operator[](). |
|
|
number of used matching patterns.
Definition at line 341 of file dlgAddMatchFiles.hpp. Referenced by add(), alloc(), ArrayMatchPattern(), clear(), clone(), and getCount(). |
1.3.7