|
of_get
|
|
Full name
|
pfc_n_cst_queue.of_get
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
public function integer of_get(ref n_cst_linkedlistnode)
|
public function integer of_get (ref n_cst_linkedlistnode anv_node);//////////////////////////////////////////////////////////////////////////////
//
// Function: of_get
//
// Access: public
//
// Arguments :
// anv_node (by reference) node to be returned
//
// Returns: integer
// 1 = success
// -1 = failure
//
// Description:
// Gets the Head node by removing it from the Queue.
//
//////////////////////////////////////////////////////////////////////////////
//
// Revision History
//
// Version
// 6.0 Initial version
//
//////////////////////////////////////////////////////////////////////////////
//
// Copyright © 1996-1997 Sybase, Inc. and its subsidiaries. All rights reserved.
// Any distribution of the PowerBuilder Foundation Classes (PFC)
// source code by other than Sybase, Inc. and its subsidiaries is prohibited.
//
//////////////////////////////////////////////////////////////////////////////
// Validate that the reference to get is valid.
if isnull(inv_head) or not isvalid(inv_head) then
return -1
end if
// Take the top node.
anv_node = inv_head
// Remove the node.
return of_remove(anv_node)
end function