OdbDesign
OdbDesign ODB++ Parser - C++ library, gRPC/REST server, CLI, tests
 
Loading...
Searching...
No Matches
Odb::Lib::ProductModel::Design Class Reference

#include <Design.h>

Inheritance diagram for Odb::Lib::ProductModel::Design:
[legend]
Collaboration diagram for Odb::Lib::ProductModel::Design:
[legend]

Classes

struct  ConnectivityIndex
 

Public Types

typedef std::vector< std::shared_ptr< Design > > Vector
 
typedef std::map< std::string, std::shared_ptr< Design > > StringMap
 

Public Member Functions

 Design ()
 
 ~Design ()
 
const std::string & GetName () const
 
const std::string & GetProductModel () const
 
const Net::Vector & GetNets () const
 
const Net::StringMap GetNetsByName () const
 
std::shared_ptr< Net > GetNet (const std::string &name) const
 
const Package::Vector & GetPackages () const
 
const Package::StringMap & GetPackagesByName () const
 
const Component::Vector & GetComponents () const
 
const Component::StringMap & GetComponentsByName () const
 
std::shared_ptr< Component > GetComponent (const std::string &refDes) const
 
const Part::Vector & GetParts () const
 
const Part::StringMap & GetPartsByName () const
 
std::shared_ptr< Net > GetNoneNet () const
 
bool Build (std::string path)
 
bool Build (std::shared_ptr< FileModel::Design::FileArchive > pFileModel)
 
std::shared_ptr< FileModel::Design::FileArchive > GetFileModel () const
 
void ClipFileModel ()
 
std::unique_ptr< Protobuf::ProductModel::Design > to_protobuf () const override
 
std::unique_ptr< Protobuf::ProductModel::Design > to_protobuf (bool includeNormalizedLists) const
 
void from_protobuf (const Protobuf::ProductModel::Design &message) override
 
ConnectivityIndex BuildConnectivityIndex () const
 
void FillConnectivityNetEntries (Protobuf::ProductModel::Connectivity &connectivityMsg) const
 
void FillConnectivityPackagePins (Protobuf::ProductModel::Connectivity &connectivityMsg) const
 
void FillConnectivityPlacedComponents (const ConnectivityIndex &index, Protobuf::ProductModel::Connectivity &connectivityMsg) const
 
void FillConnectivityNetMembers (const ConnectivityIndex &index, Protobuf::ProductModel::Connectivity &connectivityMsg) const
 
void AddConnectivityNetEntry (std::size_t netIndex, Protobuf::ProductModel::Connectivity &connectivityMsg) const
 
void AddConnectivityPackagePinEntry (std::size_t packageIndex, Protobuf::ProductModel::Connectivity &connectivityMsg) const
 
void AddConnectivityPlacedComponentEntry (const ConnectivityIndex &index, std::size_t componentIndex, Protobuf::ProductModel::Connectivity &connectivityMsg) const
 
void AddConnectivityNetMemberEntry (const ConnectivityIndex &index, ConnectivityIndex::MembersByNetConstIt netMembersIt, Protobuf::ProductModel::Connectivity &connectivityMsg) const
 
std::uint64_t EstimateWireSizeBytes (bool includeNormalizedLists=false) const
 
- Public Member Functions inherited from Odb::Lib::IProtoBuffable< Protobuf::ProductModel::Design >
bool to_pbstring (std::string &pb_string) const
 
bool from_pbstring (const std::string &pb_string)
 
bool to_stream (std::ostream &outputStream) const
 
bool from_stream (std::istream &inputStream)
 
std::string to_json () const override
 
void from_json (const std::string &json) override
 
- Public Member Functions inherited from Utils::IJsonable
virtual ~IJsonable ()
 

Additional Inherited Members

- Protected Member Functions inherited from Odb::Lib::IProtoBuffable< Protobuf::ProductModel::Design >
 IProtoBuffable ()=default
 
- Protected Member Functions inherited from Utils::IJsonable
 IJsonable ()=default
 

Detailed Description

Definition at line 23 of file Design.h.

Member Typedef Documentation

◆ StringMap

typedef std::map<std::string, std::shared_ptr<Design> > Odb::Lib::ProductModel::Design::StringMap

Definition at line 127 of file Design.h.

◆ Vector

typedef std::vector<std::shared_ptr<Design> > Odb::Lib::ProductModel::Design::Vector

Definition at line 126 of file Design.h.

Constructor & Destructor Documentation

◆ Design()

Odb::Lib::ProductModel::Design::Design ( )

Definition at line 18 of file Design.cpp.

◆ ~Design()

Odb::Lib::ProductModel::Design::~Design ( )

Definition at line 22 of file Design.cpp.

Member Function Documentation

◆ AddConnectivityNetEntry()

void Odb::Lib::ProductModel::Design::AddConnectivityNetEntry ( std::size_t  netIndex,
Protobuf::ProductModel::Connectivity &  connectivityMsg 
) const

Definition at line 317 of file Design.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ AddConnectivityNetMemberEntry()

void Odb::Lib::ProductModel::Design::AddConnectivityNetMemberEntry ( const ConnectivityIndex &  index,
ConnectivityIndex::MembersByNetConstIt  netMembersIt,
Protobuf::ProductModel::Connectivity &  connectivityMsg 
) const

Definition at line 345 of file Design.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ AddConnectivityPackagePinEntry()

void Odb::Lib::ProductModel::Design::AddConnectivityPackagePinEntry ( std::size_t  packageIndex,
Protobuf::ProductModel::Connectivity &  connectivityMsg 
) const

Definition at line 329 of file Design.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ AddConnectivityPlacedComponentEntry()

void Odb::Lib::ProductModel::Design::AddConnectivityPlacedComponentEntry ( const ConnectivityIndex &  index,
std::size_t  componentIndex,
Protobuf::ProductModel::Connectivity &  connectivityMsg 
) const

Definition at line 360 of file Design.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Build() [1/2]

bool Odb::Lib::ProductModel::Design::Build ( std::shared_ptr< FileModel::Design::FileArchive >  pFileModel)

Definition at line 120 of file Design.cpp.

Here is the call graph for this function:

◆ Build() [2/2]

bool Odb::Lib::ProductModel::Design::Build ( std::string  path)

Definition at line 110 of file Design.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ BuildConnectivityIndex()

Design::ConnectivityIndex Odb::Lib::ProductModel::Design::BuildConnectivityIndex ( ) const

Definition at line 236 of file Design.cpp.

Here is the caller graph for this function:

◆ ClipFileModel()

void Odb::Lib::ProductModel::Design::ClipFileModel ( )

Definition at line 155 of file Design.cpp.

Here is the caller graph for this function:

◆ EstimateWireSizeBytes()

std::uint64_t Odb::Lib::ProductModel::Design::EstimateWireSizeBytes ( bool  includeNormalizedLists = false) const

Definition at line 470 of file Design.cpp.

◆ FillConnectivityNetEntries()

void Odb::Lib::ProductModel::Design::FillConnectivityNetEntries ( Protobuf::ProductModel::Connectivity &  connectivityMsg) const

Definition at line 285 of file Design.cpp.

Here is the call graph for this function:

◆ FillConnectivityNetMembers()

void Odb::Lib::ProductModel::Design::FillConnectivityNetMembers ( const ConnectivityIndex &  index,
Protobuf::ProductModel::Connectivity &  connectivityMsg 
) const

Definition at line 301 of file Design.cpp.

Here is the call graph for this function:

◆ FillConnectivityPackagePins()

void Odb::Lib::ProductModel::Design::FillConnectivityPackagePins ( Protobuf::ProductModel::Connectivity &  connectivityMsg) const

Definition at line 293 of file Design.cpp.

Here is the call graph for this function:

◆ FillConnectivityPlacedComponents()

void Odb::Lib::ProductModel::Design::FillConnectivityPlacedComponents ( const ConnectivityIndex &  index,
Protobuf::ProductModel::Connectivity &  connectivityMsg 
) const

Definition at line 309 of file Design.cpp.

Here is the call graph for this function:

◆ from_protobuf()

void Odb::Lib::ProductModel::Design::from_protobuf ( const Protobuf::ProductModel::Design &  message)
overridevirtual

◆ GetComponent()

std::shared_ptr< Component > Odb::Lib::ProductModel::Design::GetComponent ( const std::string &  refDes) const

Definition at line 74 of file Design.cpp.

◆ GetComponents()

const Component::Vector & Odb::Lib::ProductModel::Design::GetComponents ( ) const

Definition at line 64 of file Design.cpp.

Here is the caller graph for this function:

◆ GetComponentsByName()

const Component::StringMap & Odb::Lib::ProductModel::Design::GetComponentsByName ( ) const

Definition at line 69 of file Design.cpp.

Here is the caller graph for this function:

◆ GetFileModel()

std::shared_ptr< FileModel::Design::FileArchive > Odb::Lib::ProductModel::Design::GetFileModel ( ) const

Definition at line 150 of file Design.cpp.

Here is the caller graph for this function:

◆ GetName()

const std::string & Odb::Lib::ProductModel::Design::GetName ( ) const

Definition at line 34 of file Design.cpp.

Here is the caller graph for this function:

◆ GetNet()

std::shared_ptr< Net > Odb::Lib::ProductModel::Design::GetNet ( const std::string &  name) const

Definition at line 95 of file Design.cpp.

Here is the caller graph for this function:

◆ GetNets()

const Net::Vector & Odb::Lib::ProductModel::Design::GetNets ( ) const

Definition at line 44 of file Design.cpp.

Here is the caller graph for this function:

◆ GetNetsByName()

const Net::StringMap Odb::Lib::ProductModel::Design::GetNetsByName ( ) const

Definition at line 49 of file Design.cpp.

Here is the caller graph for this function:

◆ GetNoneNet()

std::shared_ptr< Net > Odb::Lib::ProductModel::Design::GetNoneNet ( ) const

Definition at line 105 of file Design.cpp.

Here is the call graph for this function:

◆ GetPackages()

const Package::Vector & Odb::Lib::ProductModel::Design::GetPackages ( ) const

Definition at line 54 of file Design.cpp.

Here is the caller graph for this function:

◆ GetPackagesByName()

const Package::StringMap & Odb::Lib::ProductModel::Design::GetPackagesByName ( ) const

Definition at line 59 of file Design.cpp.

Here is the caller graph for this function:

◆ GetParts()

const Part::Vector & Odb::Lib::ProductModel::Design::GetParts ( ) const

Definition at line 85 of file Design.cpp.

Here is the caller graph for this function:

◆ GetPartsByName()

const Part::StringMap & Odb::Lib::ProductModel::Design::GetPartsByName ( ) const

Definition at line 90 of file Design.cpp.

Here is the caller graph for this function:

◆ GetProductModel()

const std::string & Odb::Lib::ProductModel::Design::GetProductModel ( ) const

Definition at line 39 of file Design.cpp.

Here is the caller graph for this function:

◆ to_protobuf() [1/2]

std::unique_ptr< Odb::Lib::Protobuf::ProductModel::Design > Odb::Lib::ProductModel::Design::to_protobuf ( ) const
overridevirtual

Implements Odb::Lib::IProtoBuffable< Protobuf::ProductModel::Design >.

Definition at line 160 of file Design.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ to_protobuf() [2/2]

std::unique_ptr< Odb::Lib::Protobuf::ProductModel::Design > Odb::Lib::ProductModel::Design::to_protobuf ( bool  includeNormalizedLists) const

Definition at line 168 of file Design.cpp.

Here is the call graph for this function:

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