Next: , Up: The Double Ended Queue Library   [Index]


13.6.1 Non Data Type Specific Decq Functions

q_cast

decq q_cast(decq q, decq v);

is q, empties the q sequence and links or copies the content of the v sequence in q (data references are made where the types allow, copies where not)

q_clear

decq q_clear(decq q);

is q, empties the q sequence

q_copy

decq q_copy(decq q, decq v);

is q, empties the q sequence and copies the content of the v sequence in q

q_length

integer q_length(decq q);

is the length (i.e. number of items) of the q sequence

q_new

void q_new(decq q);

sets the q sequence as a new sequence (same as ‘q_clear’ if q is not linked multiple times, otherwise creates a new sequence and sets q as a reference to the new sequence)

q_reel

decq q_reel(decq q);

is q, moves the first element in the q sequence in the last position

q_roll

decq q_roll(decq q);

is q, moves the last element in the q sequence in the first position

q_set

decq q_set(decq q, decq v);

is v, sets the q sequence as a reference of the v sequence

q_swap

decq q_swap(decq q, decq v);

is q, exchanges the content of the q and v sequences

qb_delete

decq qb_delete(decq q);

is q, deletes the last element in the q sequence

qf_delete

decq qf_delete(decq q);

is q, deletes the first element in the q sequence


Next: Data Type Specific Decq Front Functions, Up: The Double Ended Queue Library   [Index]