📄 oaverilogconnection.inl
字号:
// *****************************************************************************// *****************************************************************************// oaVerilogConnection.inl//// This file contains the implementation for inline and template member// functions of classes defined in oaVerilogConnection.h file.//// *****************************************************************************// Except as specified in the OpenAccess terms of use of Cadence or Silicon// Integration Initiative, this material may not be copied, modified,// re-published, uploaded, executed, or distributed in any way, in any medium,// in whole or in part, without prior written permission from Cadence.//// Copyright 2002-2005 Cadence Design Systems, Inc.// All Rights Reserved.//// $Author: sailajad $// $Revision: 1.1 $// $Date: 2005/08/05 21:48:55 $// $State: Exp $// *****************************************************************************// *****************************************************************************#if !defined(oaVerilogConnection_I)#define oaVerilogConnection_IBEGIN_VERILOG_NAMESPACE// *****************************************************************************// Connection::Connection()//// This is the copy constructor for the Connection class.// *****************************************************************************inlineConnection::Connection(const Connection &conn): portN(conn.getPort()), netN(conn.getNet()), byPos(conn.isByPosition()), pos(conn.getPosition()){}// *****************************************************************************// Connection::Connection()//// This connection constructor stores a connection by position.// *****************************************************************************inlineConnection::Connection(const oaString &net, oaUInt4 position): portN(""), netN(net), byPos(true), pos(position){}// *****************************************************************************// Connection::init()//// These functions intialize the contents of the connection class. The // first initializer creates a connection by name. The second initializer // creates a connection by position.// *****************************************************************************inline voidConnection::init(const oaString &port, const oaString &net){ portN = port; netN = net; byPos = false; pos = oacNullIndex;}inline voidConnection::init(const oaString &net, oaUInt4 position){ portN = ""; netN = net; byPos = true; pos = position;}// *****************************************************************************// ConnectionList::~ConnectionList()//// This is the destructor for the connection list class. It frees the memory// stored in the connection list.// *****************************************************************************inlineConnectionList::~ConnectionList(){ while (!empty()) { Connection *elt = front(); delete elt; pop_front(); }}// *****************************************************************************// ConnectionList::insert()//// This function allocates a new Connection for the given port and net and// pushes the Connection onto the back of the connection list.// *****************************************************************************inline voidConnectionList::insert(const Connection &value){ push_back(new Connection(value));}END_VERILOG_NAMESPACE#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -