Description Set. More...
#include <gdescriptionset.h>
Public Member Functions | |
GDescriptionSet (GSession *session) | |
size_t | GetNb (void) const |
void | Clear (void) |
void | InsertDescription (const GDescription *desc) |
GDescriptionSetData * | GetData (void) const |
void | SetData (GDescriptionSetData *data) |
R::RCursor< const GDescription > | GetDescriptions (void) const |
~GDescriptionSet (void) | |
Private Attributes | |
GSession * | Session |
R::RContainer< const GDescription, false, false > | Set |
GDescriptionSetData * | Data |
Detailed Description
Description Set.
The GDescriptionSet provides a representation for a set of descriptions. It is useful to compute the inverse object for a given subset.
Constructor & Destructor Documentation
GDescriptionSet | ( | GSession * | session | ) |
Constructor of the description set.
- Parameters
-
session Session.
~GDescriptionSet | ( | void | ) |
Destructor. If a data is associated to the set, it is deleted.
Member Function Documentation
size_t GetNb | ( | void | ) | const |
- Returns
- the number of descriptions.
void Clear | ( | void | ) |
Clear the description set.
void InsertDescription | ( | const GDescription * | desc | ) |
Add a description to the set.
- Parameters
-
desc Description to add.
GDescriptionSetData* GetData | ( | void | ) | const |
Get the data associated with the set.
- Returns
- a pointer to the data (or null if no data is assigned).
void SetData | ( | GDescriptionSetData * | data | ) |
Assign a data with the set. The description set is responsible for the deallocation of the last data assigned.
- Parameters
-
data Data to assign.
R::RCursor<const GDescription> GetDescriptions | ( | void | ) | const |
Get a cursor over the descriptions.
Member Data Documentation
|
private |
The session.
|
private |
The set of description.
|
private |
Data associated to a description set.