OdbDesignLib
OdbDesign ODB++ Parsing Library
 
Loading...
Searching...
No Matches
Odb::Lib::ProductModel::Net Class Reference
Inheritance diagram for Odb::Lib::ProductModel::Net:
Odb::Lib::IProtoBuffable< Odb::Lib::Protobuf::ProductModel::Net >

Public Types

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

Public Member Functions

 Net (const std::string &name, unsigned int index)
 
std::string GetName () const
 
PinConnection::Vector & GetPinConnections ()
 
unsigned int GetIndex () const
 
bool AddPinConnection (std::shared_ptr< Component > pComponent, std::shared_ptr< Pin > pPin)
 
std::unique_ptr< Odb::Lib::Protobuf::ProductModel::Net > to_protobuf () const override
 
void from_protobuf (const Odb::Lib::Protobuf::ProductModel::Net &message) override
 
- Public Member Functions inherited from Odb::Lib::IProtoBuffable< Odb::Lib::Protobuf::ProductModel::Net >
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
 

Detailed Description

Definition at line 17 of file Net.h.

Member Typedef Documentation

◆ StringMap

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

Definition at line 33 of file Net.h.

◆ Vector

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

Definition at line 32 of file Net.h.

Constructor & Destructor Documentation

◆ Net()

Odb::Lib::ProductModel::Net::Net ( const std::string &  name,
unsigned int  index 
)

Definition at line 12 of file Net.cpp.

◆ ~Net()

Odb::Lib::ProductModel::Net::~Net ( )

Definition at line 18 of file Net.cpp.

Member Function Documentation

◆ AddPinConnection()

bool Odb::Lib::ProductModel::Net::AddPinConnection ( std::shared_ptr< Component pComponent,
std::shared_ptr< Pin pPin 
)

Definition at line 38 of file Net.cpp.

◆ from_protobuf()

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

◆ GetIndex()

unsigned int Odb::Lib::ProductModel::Net::GetIndex ( ) const

Definition at line 33 of file Net.cpp.

◆ GetName()

std::string Odb::Lib::ProductModel::Net::GetName ( ) const

Definition at line 23 of file Net.cpp.

◆ GetPinConnections()

PinConnection::Vector & Odb::Lib::ProductModel::Net::GetPinConnections ( )

Definition at line 28 of file Net.cpp.

◆ to_protobuf()

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

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