#include <PhysicalDiff.hpp>
Public Member Functions | |
PhysicalDiff (std::ostream &inOutStream) | |
bool | diff (const DesignSharedPtr &left, const DesignSharedPtr &right) |
Top level call to diff two designs. | |
Protected Types | |
typedef std::string | string |
Imported type name. | |
typedef torc::physical::DesignSharedPtr | DesignSharedPtr |
Imported type name. | |
typedef torc::physical::ModuleSharedPtr | ModuleSharedPtr |
Imported type name. | |
typedef std::vector < ModuleSharedPtr > | ModuleSharedPtrVector |
Imported type name. | |
typedef torc::physical::CircuitSharedPtr | CircuitSharedPtr |
Imported type name. | |
typedef torc::physical::InstanceSharedPtr | InstanceSharedPtr |
Imported type name. | |
typedef std::vector < InstanceSharedPtr > | InstanceSharedPtrVector |
Imported type name. | |
typedef torc::physical::NetSharedPtr | NetSharedPtr |
Imported type name. | |
typedef std::vector< NetSharedPtr > | NetSharedPtrVector |
Imported type name. | |
typedef torc::physical::Circuit::InstanceSharedPtrConstIterator | InstanceSharedPtrConstIterator |
Imported type name. | |
typedef torc::physical::Circuit::InstanceSharedPtrIterator | InstanceSharedPtrIterator |
Imported type name. | |
typedef torc::physical::Circuit::NetSharedPtrConstIterator | NetSharedPtrConstIterator |
Imported type name. | |
typedef torc::physical::Circuit::NetSharedPtrIterator | NetSharedPtrIterator |
Imported type name. | |
typedef torc::physical::InstanceWeakPtr | InstanceWeakPtr |
Imported type name. | |
typedef torc::physical::Design::ModuleSharedPtrConstIterator | ModuleSharedPtrConstIterator |
Imported type name. | |
typedef torc::physical::Design::ModuleSharedPtrIterator | ModuleSharedPtrIterator |
Imported type name. | |
typedef torc::physical::ConfigMap::const_iterator | ConfigMapConstIterator |
Imported type name. | |
typedef torc::physical::Net::InstancePinSharedPtrConstIterator | InstancePinSharedPtrConstIterator |
Imported type name. | |
typedef torc::physical::Net::PipConstIterator | PipConstIterator |
Imported type name. | |
typedef boost::shared_ptr < torc::physical::Named > | NamedSharedPtr |
Imported type name. | |
typedef boost::shared_ptr < torc::physical::ConfigMap > | ConfigMapSharedPtr |
Imported type name. | |
typedef torc::physical::Module::PortSharedPtrConstIterator | PortSharedPtrConstIterator |
Imported type name. | |
Protected Member Functions | |
bool | diffDesign (const DesignSharedPtr &left, const DesignSharedPtr &right) |
Diff design pointers and then recursively compare modules and inherited members. | |
bool | diffModule (const ModuleSharedPtr &left, const ModuleSharedPtr &right) |
Diff module pointers and then recursively compare inherited members from circuit. | |
bool | diffCircuit (const CircuitSharedPtr &left, const CircuitSharedPtr &right) |
Diff circuit pointers, recursively compare nets, instances and config map. | |
bool | diffConfigMap (const ConfigMapSharedPtr &left, const ConfigMapSharedPtr &right, const string &parentStr) |
Diff configuration information, this is called from circuits, instances and nets. | |
bool | diffInstance (const InstanceSharedPtr &left, const InstanceSharedPtr &right) |
Diff instance pointers and then the underlying config map. | |
bool | diffNet (const NetSharedPtr &left, const NetSharedPtr &right) |
Diff net pointers and then the underlying config map. | |
Protected Attributes | |
std::ostream & | mStream |
Output stream to use for comparison results. | |
Friends | |
class | utils::PhysicalDiffDesignUnitTest |
Unit test access to internal functions. | |
class | utils::PhysicalDiffModuleUnitTest |
Unit test access to internal functions. | |
class | utils::PhysicalDiffCircuitUnitTest |
Unit test access to internal functions. | |
class | utils::PhysicalDiffConfigMapUnitTest |
Unit test access to internal functions. | |
class | utils::PhysicalDiffInstanceUnitTest |
Unit test access to internal functions. | |
class | utils::PhysicalDiffNetUnitTest |
Unit test access to internal functions. |
This class takes two design pointers and compares them.
Definition at line 42 of file PhysicalDiff.hpp.
typedef std::string torc::PhysicalDiff::string [protected] |
typedef torc::physical::DesignSharedPtr torc::PhysicalDiff::DesignSharedPtr [protected] |
typedef torc::physical::ModuleSharedPtr torc::PhysicalDiff::ModuleSharedPtr [protected] |
typedef std::vector<ModuleSharedPtr> torc::PhysicalDiff::ModuleSharedPtrVector [protected] |
typedef torc::physical::CircuitSharedPtr torc::PhysicalDiff::CircuitSharedPtr [protected] |
typedef torc::physical::InstanceSharedPtr torc::PhysicalDiff::InstanceSharedPtr [protected] |
typedef std::vector<InstanceSharedPtr> torc::PhysicalDiff::InstanceSharedPtrVector [protected] |
typedef torc::physical::NetSharedPtr torc::PhysicalDiff::NetSharedPtr [protected] |
typedef std::vector<NetSharedPtr> torc::PhysicalDiff::NetSharedPtrVector [protected] |
typedef torc::physical::InstanceWeakPtr torc::PhysicalDiff::InstanceWeakPtr [protected] |
typedef torc::physical::ConfigMap::const_iterator torc::PhysicalDiff::ConfigMapConstIterator [protected] |
typedef torc::physical::Net::PipConstIterator torc::PhysicalDiff::PipConstIterator [protected] |
typedef boost::shared_ptr<torc::physical::Named> torc::PhysicalDiff::NamedSharedPtr [protected] |
typedef boost::shared_ptr<torc::physical::ConfigMap> torc::PhysicalDiff::ConfigMapSharedPtr [protected] |
torc::PhysicalDiff::PhysicalDiff | ( | std::ostream & | inOutStream | ) | [inline] |
bool torc::PhysicalDiff::diff | ( | const DesignSharedPtr & | left, | |
const DesignSharedPtr & | right | |||
) | [inline] |
bool torc::PhysicalDiff::diffDesign | ( | const DesignSharedPtr & | left, | |
const DesignSharedPtr & | right | |||
) | [inline, protected] |
Diff design pointers and then recursively compare modules and inherited members.
Definition at line 125 of file PhysicalDiff.hpp.
bool torc::PhysicalDiff::diffModule | ( | const ModuleSharedPtr & | left, | |
const ModuleSharedPtr & | right | |||
) | [inline, protected] |
Diff module pointers and then recursively compare inherited members from circuit.
Definition at line 195 of file PhysicalDiff.hpp.
bool torc::PhysicalDiff::diffCircuit | ( | const CircuitSharedPtr & | left, | |
const CircuitSharedPtr & | right | |||
) | [inline, protected] |
Diff circuit pointers, recursively compare nets, instances and config map.
Definition at line 251 of file PhysicalDiff.hpp.
bool torc::PhysicalDiff::diffConfigMap | ( | const ConfigMapSharedPtr & | left, | |
const ConfigMapSharedPtr & | right, | |||
const string & | parentStr | |||
) | [inline, protected] |
Diff configuration information, this is called from circuits, instances and nets.
Definition at line 330 of file PhysicalDiff.hpp.
bool torc::PhysicalDiff::diffInstance | ( | const InstanceSharedPtr & | left, | |
const InstanceSharedPtr & | right | |||
) | [inline, protected] |
Diff instance pointers and then the underlying config map.
Definition at line 388 of file PhysicalDiff.hpp.
bool torc::PhysicalDiff::diffNet | ( | const NetSharedPtr & | left, | |
const NetSharedPtr & | right | |||
) | [inline, protected] |
Diff net pointers and then the underlying config map.
Definition at line 418 of file PhysicalDiff.hpp.
friend class utils::PhysicalDiffDesignUnitTest [friend] |
friend class utils::PhysicalDiffModuleUnitTest [friend] |
friend class utils::PhysicalDiffCircuitUnitTest [friend] |
friend class utils::PhysicalDiffConfigMapUnitTest [friend] |
friend class utils::PhysicalDiffInstanceUnitTest [friend] |
friend class utils::PhysicalDiffNetUnitTest [friend] |
std::ostream& torc::PhysicalDiff::mStream [protected] |