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


13.6.2 Data Type Specific Decq Front Functions

qf_e_<type-name>

void qf_e_<type-name>}(<type> &d, decq q);

is the data in the first position in the q sequence, sets d as the same data (assumed of the <type> data type) and removes it from the sequence

qf_g_<type-name>

<type> qf_g_<type-name>(<type> &d, decq q);

is the data in the first position in the q sequence, sets d as the same (data is linked if allowed, copied otherwise, data assumed of the <type> data type)

qf_gs_<type-name>

<type> qf_gs_<type-name>(<type> &d, decq q);

is the data in the first position in the q sequence, sets d as the same (data is linked if allowed, copied otherwise, data assumed of the <type> data type). Moves the first element in the last position.

qf_j_<type-name>

integer qf_j_<type-name>}(<type> &d, decq q);

is 0 if the q sequence is empty or if the data in the first position is not of the <type> data type, non zero otherwise. Sets d as the data in the first position for the latter case (links data if the data type allows, copies it otherwise).

qf_js_<type-name>

integer qf_js_<type-name>}(<type> &d, decq q);

is 0 if the q sequence is empty or if the data in the first position is not of the <type> data type, non zero otherwise. Sets d as the data in the first position and moves it in the last position for the latter case (links data if the data type allows, copies it otherwise).

qf_l_<type-name>

void qf_l_<type-name>(decq q, <type> d);

inserts a reference to the d data in the first position in the q sequence (the function applies only to data types allowing for multiple references)

See Referable Objects.

qf_n_<type-name>

<type> qf_n_<type-name>(decq q);

is (new) data of the <type> data type and some <type> data type specific default value in the first position in the q sequence (data is created by the function call)

qf_o_<type-name>

integer qf_o_<type-name>}(<type> &d, decq q);

is 0 if the q sequence is empty or if the data in the first position is not of the <type> data type, non zero otherwise. Sets d as the data in the first position for the latter case and removes it from the sequence.

qf_p_<type-name>

void qf_p_<type-name>(decq q, <type> d);

inserts data of the <type> data type and d value in the first position in the q sequence

qf_q_<type-name>

<type> qf_q_<type-name>(decq q);

is the data in the first position in the q sequence (assumed of the <type> data type)

qf_qs_<type-name>

<type> qf_qs_<type-name>(decq q);

is the data in the first position in the q sequence (assumed of the <type> data type). Moves the first element in the last position.

qf_x_<type-name>

<type> qf_x_<type-name>(decq q);

is the data in the first position in the q sequence (assumed of the <type> data type), the data is removed from the sequence


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