libkdeedu/keduvocdocument
KEduVocDeclination Class Reference
#include <keduvocdeclination.h>
Detailed Description
A declination contains all forms that a NOUN possibly can have.
Definition at line 33 of file keduvocdeclination.h.
Public Types | |
| enum | DeclinationNumber { Singular = 1, Dual, Plural } |
| enum | DeclinationCase { Nominative = 1, Genitive, Dative, Accusative, Ablative, Locative, Vocative, DeclinationCaseMAX } |
Public Member Functions | |
| KEduVocDeclination () | |
| KEduVocDeclination (const KEduVocDeclination &other) | |
| ~KEduVocDeclination () | |
| KEduVocDeclination & | operator= (const KEduVocDeclination &other) |
| QString | declination (DeclinationNumber number, DeclinationCase decCase) |
| void | setDeclination (const QString &declination, DeclinationNumber number, DeclinationCase decCase) |
| bool | isEmpty () |
Member Enumeration Documentation
Definition at line 41 of file keduvocdeclination.h.
Constructor & Destructor Documentation
| KEduVocDeclination::KEduVocDeclination | ( | ) | [explicit] |
| KEduVocDeclination::KEduVocDeclination | ( | const KEduVocDeclination & | other | ) |
copy constructor
- Parameters:
-
other comparison object to copy
Definition at line 38 of file keduvocdeclination.cpp.
| KEduVocDeclination::~KEduVocDeclination | ( | ) |
Definition at line 50 of file keduvocdeclination.cpp.
Member Function Documentation
| KEduVocDeclination & KEduVocDeclination::operator= | ( | const KEduVocDeclination & | other | ) |
equality operator
- Parameters:
-
a object to compare to
- Returns:
- true if comparisons are the same, false otherwise assignment operator for d-pointer copying
- Parameters:
-
other object to copy from
- Returns:
- reference to this object
Definition at line 44 of file keduvocdeclination.cpp.
| QString KEduVocDeclination::declination | ( | DeclinationNumber | number, | |
| DeclinationCase | decCase | |||
| ) |
The grammatical number, there is singular and plural for english, some languages have dual for exactly two items.
- Parameters:
-
gender decCase
- Returns:
Definition at line 55 of file keduvocdeclination.cpp.
| void KEduVocDeclination::setDeclination | ( | const QString & | declination, | |
| DeclinationNumber | number, | |||
| DeclinationCase | decCase | |||
| ) |
Set a declination.
- Parameters:
-
@param number decCase
Definition at line 64 of file keduvocdeclination.cpp.
| bool KEduVocDeclination::isEmpty | ( | ) |
Definition at line 74 of file keduvocdeclination.cpp.
The documentation for this class was generated from the following files:
KDE 4.0 API Reference