tsrc/xmltestharness/xmlclient/src/transition.h
changeset 0 0e4a32b9112d
equal deleted inserted replaced
-1:000000000000 0:0e4a32b9112d
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef TRANSITION_H_
       
    20 #define TRANSITION_H_
       
    21 
       
    22 #include <e32base.h>
       
    23 
       
    24 /** RSupplierRelations represents the buffer supplier links in a graph */
       
    25 typedef RArray<RArray<TInt> > RSupplierRelations;
       
    26 
       
    27 void CloseSupplierRelations(TAny* aPtr);
       
    28 
       
    29 /*
       
    30 
       
    31 For example, consider the following graph: (<-- indicates direction of buffer supply)
       
    32 
       
    33 	| 0 | <-- 1 <-- 2
       
    34 	| 0 | --> 3 <-- 4 --> 5
       
    35 	  
       
    36 	The supplier relations table is:
       
    37 	
       
    38 	0: 3
       
    39 	1: 0
       
    40 	2: 1
       
    41 	3:
       
    42 	4: 3, 5
       
    43 	5:
       
    44 	
       
    45 	A valid transition order for this graph is { 3, 0, 1, 2, 5, 4 }
       
    46 
       
    47 */
       
    48 
       
    49 void FindTransitionOrderL(const RSupplierRelations& aSupplierRelations, RArray<TInt>& aOrder);
       
    50 
       
    51 #endif /*TRANSITION_H_*/