www.pudn.com > apdb2ndb.rar > atn_get_range.cc
#ifndef lint
static char copyright[] = "Copyright (C) FUJITSU LIMITED 2001" ;
static char id[] = "$Id: atn_get_range.cc,v 1.1 2001/02/13 10:35:06 JST rad1 Exp $" ;
#endif
/*
* $Log: atn_get_range.cc,v $
* Revision 1.1 2001/02/13 10:35:06 JST rad1
* $B:eK\(B(TSL)
* $B!&(Batn_conv_to_comp.cc $B$+$iFHN)(B
* $B!&%l%s%8;;=P=hM}$G(Batn_sfx$B%/%i%9$r;HMQ(B
*
* $Com: 阪本(TSL)
* $Com: ・atn_conv_to_comp.cc から独立
* $Com: ・レンジ算出処理でatn_sfxクラスを使用
*/
#include "atn_inc.h"
//
// add ndb componant for given a AirComponentInfo
//
//
//
//
ATN_FDEF atn_get_range_of_cport(
atn_com &com,
AirComponentPortInfo *CportInfo,
int num_ports,
int &left,int &right)
{
int rcode = 0;
atn_sfx *sfx = NULL;
sfx = new atn_sfx;
sfx->sort(CportInfo,num_ports);
sfx->get_range(left,right);
delete sfx;
return 0;
}
ATN_FDEF atn_get_range_of_net(
atn_com &com,
AirNetInfo *NetInfo,
int num_nets,
int &left,int &right)
{
int rcode = 0;
atn_sfx *sfx = NULL;
sfx = new atn_sfx;
sfx->sort(NetInfo,num_nets);
sfx->get_range(left,right);
delete sfx;
return 0;
}