PARP Research Group | Universidad de Murcia |
QVIndexedStringList Class ReferenceString List with a current string index. More...
Detailed DescriptionString List with a current string index. This class represents a string list with an index, the index marks the current string in the list. The index values are: -1, there are no items in the list. 0 ... n-1, the strings of the list. Definition at line 41 of file qvindexedstringlist.h. Constructor & Destructor Documentation
Constructs a void QVIndexedStringList. Its index must be -1. Definition at line 50 of file qvindexedstringlist.h.
Copy constructor from a QVIndexedStringList. Definition at line 54 of file qvindexedstringlist.h.
Copy constructor from a QStringList. Its index must be 0 or -1 if is empty. Definition at line 59 of file qvindexedstringlist.h.
Copy constructor from a QString. Creates a new QVIndexedStringList that contains the gives string an its index is 0 (the first item of the list). Definition at line 64 of file qvindexedstringlist.h. Member Function Documentation
Return the index. Definition at line 79 of file qvindexedstringlist.h. Referenced by decIndex(), and incIndex().
Return the current string, marked by the index. Definition at line 67 of file qvindexedstringlist.cpp.
Sets the index to i.
if (i < -1) or (i >= list size), do nothing and return false.
Definition at line 73 of file qvindexedstringlist.cpp. Referenced by decIndex(), and incIndex().
Increment the index. if (i >= list size -1), do nothing and return false.
Definition at line 83 of file qvindexedstringlist.cpp.
Decrement the index. if (i < 0), do nothing and return false.
Definition at line 87 of file qvindexedstringlist.cpp.
Inserts a string as the last element of the list. if there are no elements in the list, i becomes 0. Definition at line 59 of file qvindexedstringlist.cpp. Referenced by QVIndexedStringList(). The documentation for this class was generated from the following files:
|