LibrePCB Developers Documentation
Bom Class Referencefinal

The Bom class represents a bill of materials list. More...

#include <bom.h>

+ Collaboration diagram for Bom:

Public Types

typedef std::pair< int, int > IndexPair
 

Public Member Functions

 Bom ()=delete
 
 Bom (const Bom &other) noexcept=delete
 
 Bom (const QStringList &columns, const QVector< IndexPair > &mpnManufacturerColumns) noexcept
 
 ~Bom () noexcept
 
const QStringList & getColumns () const noexcept
 
const QVector< IndexPair > & getMpnManufacturerColumns () const noexcept
 
const QList< BomItem > & getItems () const noexcept
 
int getAssembledRowsCount () const noexcept
 
int getTotalAssembledPartsCount () const noexcept
 
void addItem (const QString &designator, const QStringList &attributes, bool mount) noexcept
 
Bomoperator= (const Bom &rhs) noexcept=delete
 

Private Attributes

QStringList mColumns
 
QVector< IndexPairmMpnManufacturerColumns
 
QList< BomItemmItems
 

Detailed Description

The Bom class represents a bill of materials list.

Member Typedef Documentation

◆ IndexPair

typedef std::pair<int, int> IndexPair

Constructor & Destructor Documentation

◆ Bom() [1/3]

Bom ( )
delete

◆ Bom() [2/3]

Bom ( const Bom other)
deletenoexcept

◆ Bom() [3/3]

Bom ( const QStringList &  columns,
const QVector< IndexPair > &  mpnManufacturerColumns 
)
noexcept

◆ ~Bom()

~Bom ( )
noexcept

Member Function Documentation

◆ getColumns()

const QStringList & getColumns ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getMpnManufacturerColumns()

const QVector< IndexPair > & getMpnManufacturerColumns ( ) const
inlinenoexcept

◆ getItems()

const QList< BomItem > & getItems ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getAssembledRowsCount()

int getAssembledRowsCount ( ) const
noexcept

◆ getTotalAssembledPartsCount()

int getTotalAssembledPartsCount ( ) const
noexcept

◆ addItem()

void addItem ( const QString &  designator,
const QStringList &  attributes,
bool  mount 
)
noexcept
+ Here is the call graph for this function:

◆ operator=()

Bom & operator= ( const Bom rhs)
deletenoexcept

Member Data Documentation

◆ mColumns

QStringList mColumns
private

◆ mMpnManufacturerColumns

QVector<IndexPair> mMpnManufacturerColumns
private

◆ mItems

QList<BomItem> mItems
private

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