torc::architecture::PrimitiveDef Class Reference

Encapsulation of primitive site definition, with associated connections, elements, and pins. More...

#include <PrimitiveDef.hpp>

List of all members.

Public Member Functions

 PrimitiveDef (void)
 Null constructor. This constructor should only be used by containers.
PinIndex findPinIndexByName (const std::string &inName) const
 Returns the pin index corresponding to the given pin name, or PinIndex::undefined() if the pin name does not exist. inName The pin name to find.
const stringgetName (void) const
 Returns the name of the primitive.
const PrimitivePinArraygetPins (void) const
 Returns a constant array of primitive pins.
const PrimitiveElementArraygetElements (void) const
 Returns a constant array of primitive elements.
const PrimitiveConnSharedPtrArraygetConnections (void) const
 Returns a constant array of primitive connection shared pointers.

Protected Types

typedef xilinx::PinIndex PinIndex
 Imported type name.
typedef std::string string
 Imported type name.
typedef std::map< std::string,
PinIndex
PinNameToPinIndexMap
 Map of pin names to pin indexes for a primitive element.

Protected Member Functions

PrimitivePinArraygetPins (void)
 Returns a non-constant array of element pins. This function should only be used by the Sites class during database iniialization.

Protected Attributes

std::string mName
 The primitive name.
PrimitivePinArray mPins
 The primitive pins.
PrimitiveElementArray mElements
 The primitive elements.
PrimitiveConnSharedPtrArray mConnections
 The primitive internal connections.
PinNameToPinIndexMap mPinNameToPinIndex
 The map of pin names to pin indexes.

Friends

class Sites


Detailed Description

Encapsulation of primitive site definition, with associated connections, elements, and pins.

Definition at line 30 of file PrimitiveDef.hpp.


Member Typedef Documentation

Imported type name.

Definition at line 35 of file PrimitiveDef.hpp.

typedef std::string torc::architecture::PrimitiveDef::string [protected]

Imported type name.

Definition at line 36 of file PrimitiveDef.hpp.

typedef std::map<std::string, PinIndex> torc::architecture::PrimitiveDef::PinNameToPinIndexMap [protected]

Map of pin names to pin indexes for a primitive element.

Definition at line 38 of file PrimitiveDef.hpp.


Constructor & Destructor Documentation

torc::architecture::PrimitiveDef::PrimitiveDef ( void   )  [inline]

Null constructor. This constructor should only be used by containers.

Definition at line 59 of file PrimitiveDef.hpp.


Member Function Documentation

PrimitivePinArray& torc::architecture::PrimitiveDef::getPins ( void   )  [inline, protected]

Returns a non-constant array of element pins. This function should only be used by the Sites class during database iniialization.

Definition at line 54 of file PrimitiveDef.hpp.

PinIndex torc::architecture::PrimitiveDef::findPinIndexByName ( const std::string &  inName  )  const [inline]

Returns the pin index corresponding to the given pin name, or PinIndex::undefined() if the pin name does not exist. inName The pin name to find.

Definition at line 64 of file PrimitiveDef.hpp.

const string& torc::architecture::PrimitiveDef::getName ( void   )  const [inline]

Returns the name of the primitive.

Definition at line 71 of file PrimitiveDef.hpp.

const PrimitivePinArray& torc::architecture::PrimitiveDef::getPins ( void   )  const [inline]

Returns a constant array of primitive pins.

Definition at line 73 of file PrimitiveDef.hpp.

const PrimitiveElementArray& torc::architecture::PrimitiveDef::getElements ( void   )  const [inline]

Returns a constant array of primitive elements.

Definition at line 75 of file PrimitiveDef.hpp.

const PrimitiveConnSharedPtrArray& torc::architecture::PrimitiveDef::getConnections ( void   )  const [inline]

Returns a constant array of primitive connection shared pointers.

Definition at line 77 of file PrimitiveDef.hpp.


Member Data Documentation

std::string torc::architecture::PrimitiveDef::mName [protected]

The primitive name.

Definition at line 41 of file PrimitiveDef.hpp.

The primitive pins.

Definition at line 43 of file PrimitiveDef.hpp.

The primitive elements.

Definition at line 45 of file PrimitiveDef.hpp.

The primitive internal connections.

Definition at line 47 of file PrimitiveDef.hpp.

The map of pin names to pin indexes.

Definition at line 49 of file PrimitiveDef.hpp.


The documentation for this class was generated from the following file:

Generated on Thu Oct 13 16:49:33 2011 for TORC by  doxygen 1.5.6