add comment in queue.h
This commit is contained in:
parent
9386dd5364
commit
8c9de2d97d
|
@ -50,7 +50,7 @@ int getCharLen(Pqueue elem){
|
||||||
return elem->charLen;
|
return elem->charLen;
|
||||||
}
|
}
|
||||||
|
|
||||||
char *gettabChar(Pqueue elem){
|
char * gettabChar(Pqueue elem){
|
||||||
assert(elem);
|
assert(elem);
|
||||||
return elem->tabChar;
|
return elem->tabChar;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,13 +1,27 @@
|
||||||
typedef struct queue *Pqueue;
|
typedef struct queue *Pqueue;
|
||||||
|
|
||||||
|
//Constructors
|
||||||
Pqueue createE(int lenChar);
|
Pqueue createE(int lenChar);
|
||||||
Pqueue createEEmpty(); //create a new element but all variables in are null, use to create the first element of the queue in the main before define the elements in
|
Pqueue createEEmpty(); //create a new element but all variables in are null, use to create the first element of the queue in the main before define the elements in
|
||||||
// seter /getter pour la struct
|
|
||||||
// constructeur avec 2 paramètres : strlen et tabchar
|
// constructeur avec 2 paramètres : strlen et tabchar
|
||||||
|
|
||||||
|
//Getters
|
||||||
Pqueue getNextE(Pqueue elem);
|
Pqueue getNextE(Pqueue elem);
|
||||||
|
Pqueue getNextE(Pqueue elem);
|
||||||
|
char * gettabChar(Pqueue elem);
|
||||||
|
|
||||||
|
//Setters
|
||||||
Pqueue setCharLen(Pqueue elem , int _charLen);
|
Pqueue setCharLen(Pqueue elem , int _charLen);
|
||||||
Pqueue setTabChar(Pqueue elem , int _charLen , char *_tabChar);
|
Pqueue setTabChar(Pqueue elem , int _charLen , char *_tabChar);
|
||||||
|
Pqueue addLastQ(Pqueue elem, const char* str, int len);
|
||||||
|
|
||||||
|
//Removers
|
||||||
Pqueue rmLastE(Pqueue elem);
|
Pqueue rmLastE(Pqueue elem);
|
||||||
Pqueue rmFrstE(Pqueue elem);
|
Pqueue rmFrstE(Pqueue elem);
|
||||||
|
|
||||||
Pqueue nextDelFrst(Pqueue elem);
|
Pqueue nextDelFrst(Pqueue elem);
|
||||||
Pqueue addLastQ(Pqueue elem, const char* str, int len);
|
|
||||||
|
Pqueue nextDelFrst(Pqueue elem);
|
||||||
|
|
||||||
|
//print function
|
||||||
void printE(Pqueue elem);
|
void printE(Pqueue elem);
|
Loading…
Reference in a new issue