Suggestions. More...
#include <gsugs.h>
Inheritance diagram for GSugs:
Public Member Functions | |
GSugs (size_t max) | |
GSugs (tObjType type, size_t id, size_t max) | |
int | Compare (const GSugs &sugs) const |
tObjType | GetType (void) const |
size_t | GetAddresseeId (void) const |
void | SetAddresseeId (tObjType type, size_t id) |
Public Member Functions inherited from RContainer< GDocFragmentRank, true, false > | |
RContainer (size_t m, size_t i=0) | |
RContainer (const RContainer< GDocFragmentRank, true, false > &src) | |
RContainer (const RContainer< GDocFragmentRank, false, false > &src) | |
int | Compare (const RContainer< GDocFragmentRank, true, false > &) const |
size_t | GetNb (void) const |
size_t | GetMaxPos (void) const |
size_t | GetMaxNb (void) const |
size_t | GetIncNb (void) const |
bool | VerifyIndex (size_t idx) const |
void | VerifyTab (size_t max=0) |
void | Clear (size_t m=0, size_t i=0, bool force=false) |
void | ReOrder (int sortOrder(const void *, const void *), size_t min, size_t max) |
void | ReOrder (int sortOrder(const void *, const void *)) |
void | ReOrder (void) |
void | Exchange (size_t pos1, size_t pos2) |
void | Shift (size_t idx, bool reverse) |
void | Transfer (RContainer< GDocFragmentRank, a, o > &src) |
RContainer & | operator= (const RContainer< GDocFragmentRank, true, false > &src) |
RContainer & | operator= (const RContainer< GDocFragmentRank, false, false > &src) |
void | Copy (const RContainer< GDocFragmentRank, a, false > &src) |
RContainer & | operator+= (const RContainer< GDocFragmentRank, a, o > &src) |
size_t | GetIndex (const TUse &tag, bool &find, size_t min=0, size_t max=0) const |
bool | IsIn (const TUse &tag, bool sortkey, size_t min=0, size_t max=0) const |
bool | IsIn (const TUse &tag, size_t min=0, size_t max=0) const |
const GDocFragmentRank * | operator[] (size_t idx) const |
GDocFragmentRank * | operator[] (size_t idx) |
const GDocFragmentRank * | GetPtrAt (size_t idx) const |
GDocFragmentRank * | GetPtrAt (size_t idx) |
GDocFragmentRank * | GetPtr (const TUse &tag, bool sortkey, size_t min=0, size_t max=0) const |
GDocFragmentRank * | GetPtr (const TUse &tag, size_t min=0, size_t max=0) const |
GDocFragmentRank * | GetInsertPtr (const TUse &tag, bool sortkey, size_t min=0, size_t max=0) |
GDocFragmentRank * | GetInsertPtr (const TUse &tag, size_t min=0, size_t max=0) |
GDocFragmentRank * | GetInsertPtrAt (const TUse &tag, size_t pos) |
RContainer< GDocFragmentRank, false, false > * | GetPtrs (const TUse &tag, size_t min=0, size_t max=0) const |
size_t | GetTab (const void **tab, size_t min=0, size_t max=0) const |
size_t | GetTab (void **tab, size_t min=0, size_t max=0) |
size_t | GetTab (const GDocFragmentRank **tab, size_t min=0, size_t max=0) const |
size_t | GetTab (GDocFragmentRank **tab, size_t min=0, size_t max=0) |
void | InsertPtrAt (GDocFragmentRank *ins, size_t pos, bool del) |
void | InsertPtrAt (GDocFragmentRank *ins, size_t pos) |
void | InsertPtr (GDocFragmentRank *ins, bool del=false, size_t min=0, size_t max=0) |
void | DeletePtrAt (size_t pos, bool shift, bool del) |
void | DeletePtrAt (size_t pos, bool shift) |
void | DeletePtrAt (size_t pos) |
void | DeletePtr (const TUse &tag, bool sortkey, bool del, size_t min=0, size_t max=0) |
void | DeletePtr (const TUse &tag, bool sortkey, size_t min=0, size_t max=0) |
void | DeletePtr (const TUse &tag, size_t min=0, size_t max=0) |
void | Inter (const iRContainer< GDocFragmentRank > &src1, const iRContainer< GDocFragmentRank > &src2) |
void | Union (const iRContainer< GDocFragmentRank > &src1, const iRContainer< GDocFragmentRank > &src2) |
virtual | ~RContainer (void) |
Public Member Functions inherited from iRContainer< C > | |
size_t | GetNb (void) const |
size_t | GetMaxPos (void) const |
size_t | GetMaxNb (void) const |
size_t | GetIncNb (void) const |
bool | VerifyIndex (size_t idx) const |
void | VerifyTab (size_t max=0) |
void | Clear (size_t m=0, size_t i=0, bool force=false) |
void | ReOrder (int sortOrder(const void *, const void *), size_t min, size_t max) |
void | ReOrder (int sortOrder(const void *, const void *)) |
void | ReOrder (void) |
void | Exchange (size_t pos1, size_t pos2) |
void | Shift (size_t idx, bool reverse) |
void | Transfer (iRContainer< C > &src) |
iRContainer & | operator= (const iRContainer< C > &src) |
void | Copy (const iRContainer< C > &src) |
iRContainer & | operator+= (const iRContainer< C > &src) |
size_t | GetIndex (bool order, const TUse &tag, bool &find, size_t min=0, size_t max=0) const |
size_t | GetIndex (const TUse &tag, bool &find, size_t min=0, size_t max=0) const |
bool | IsIn (const TUse &tag, bool sortkey, size_t min=0, size_t max=0) const |
bool | IsIn (const TUse &tag, size_t min=0, size_t max=0) const |
const C * | operator[] (size_t idx) const |
C * | operator[] (size_t idx) |
const C * | GetPtrAt (size_t idx) const |
C * | GetPtrAt (size_t idx) |
C * | GetPtr (const TUse &tag, bool sortkey, size_t min=0, size_t max=0) const |
C * | GetPtr (const TUse &tag, size_t min=0, size_t max=0) const |
C * | GetInsertPtr (const TUse &tag, bool sortkey, size_t min=0, size_t max=0) |
C * | GetInsertPtr (const TUse &tag, size_t min=0, size_t max=0) |
C * | GetInsertPtrAt (const TUse &tag, size_t pos) |
size_t | GetTab (const void **tab, size_t min=0, size_t max=0) const |
size_t | GetTab (void **tab, size_t min=0, size_t max=0) |
size_t | GetTab (const C **tab, size_t min=0, size_t max=0) const |
size_t | GetTab (C **tab, size_t min=0, size_t max=0) |
void | InsertPtrAt (C *ins, size_t pos, bool del) |
void | InsertPtrAt (C *ins, size_t pos) |
void | InsertPtr (C *ins, bool del=false, size_t min=0, size_t max=0) |
void | DeletePtrAt (size_t pos, bool shift, bool del) |
void | DeletePtrAt (size_t pos, bool shift) |
void | DeletePtrAt (size_t pos) |
void | DeletePtr (const TUse &tag, bool sortkey, bool del, size_t min=0, size_t max=0) |
void | DeletePtr (const TUse &tag, bool sortkey, size_t min=0, size_t max=0) |
void | DeletePtr (const TUse &tag, size_t min=0, size_t max=0) |
void | Inter (const iRContainer< C > &src1, const iRContainer< C > &src2) |
void | Union (const iRContainer< C > &src1, const iRContainer< C > &src2) |
virtual | ~iRContainer (void) |
Private Attributes | |
tObjType | Type |
size_t | Id |
Additional Inherited Members | |
Static Public Member Functions inherited from RContainer< GDocFragmentRank, true, false > | |
static int | SortOrder (const void *a, const void *b) |
Static Public Member Functions inherited from iRContainer< C > | |
static int | SortOrder (const void *a, const void *b) |
Protected Member Functions inherited from iRContainer< C > | |
void | Create (const iRContainer< C > &src) |
iRContainer & | NormalCopy (const iRContainer< C > &src) |
void | DeepCopy (const iRContainer< C > &src) |
iRContainer & | Add (const iRContainer< C > &src) |
Protected Attributes inherited from iRContainer< C > | |
C ** | Tab |
size_t | NbPtr |
size_t | MaxPtr |
size_t | LastPtr |
size_t | IncPtr |
Detailed Description
Suggestions.
This class provides a representation for a list of suggestions for a given addressee.
Constructor & Destructor Documentation
GSugs | ( | size_t | max | ) |
Constructor of the suggestions.
- Parameters
-
max Maximum number of suggestions.
Constructor of the suggestions.
- Parameters
-
type Type of the addressee. id Identifier of the addressee. max Maximum number of suggestions.
Member Function Documentation
int Compare | ( | const GSugs & | sugs | ) | const |
Compare two suggestions by comparing their addressee.
- See also
- R::RContainer
- Parameters
-
sugs Suggestion.
- Returns
- int
tObjType GetType | ( | void | ) | const |
- Returns
- the type of the addressee.
size_t GetAddresseeId | ( | void | ) | const |
- Returns
- Identifier of the addressee.
void SetAddresseeId | ( | tObjType | type, |
size_t | id | ||
) |
Set the identifier of the addressee. The container is cleared.
- Parameters
-
type Type of the addressee. id Identifier.
Member Data Documentation
|
private |
Type of the addressee of the suggestions (otProfile or otCommunity).
|
private |
Identifier of the addressee of the suggestions.