LibrePCB Developers Documentation
Loading...
Searching...
No Matches
TagMatcher Class Reference

Helper class to find the best option for given preferred tags. More...

#include <tagmatcher.h>

+ Collaboration diagram for TagMatcher:

Public Member Functions

 TagMatcher () noexcept
 
 TagMatcher (const TagMatcher &other)=delete
 
 ~TagMatcher () noexcept
 
int addOption (const QSet< Tag > &tags) noexcept
 
int findFirstMatch (const QVector< Tag > &preferredTags) noexcept
 
TagMatcheroperator= (const TagMatcher &rhs)=delete
 

Private Member Functions

bool applyFilter (std::set< int > &filtered, const Tag &tag) const noexcept
 

Private Attributes

QVector< QSet< Tag > > mOptions
 

Detailed Description

Helper class to find the best option for given preferred tags.

Constructor & Destructor Documentation

◆ TagMatcher() [1/2]

TagMatcher ( )
noexcept

◆ TagMatcher() [2/2]

TagMatcher ( const TagMatcher other)
delete

◆ ~TagMatcher()

~TagMatcher ( )
noexcept

Member Function Documentation

◆ addOption()

int addOption ( const QSet< Tag > &  tags)
noexcept
+ Here is the caller graph for this function:

◆ findFirstMatch()

int findFirstMatch ( const QVector< Tag > &  preferredTags)
noexcept
+ Here is the caller graph for this function:

◆ operator=()

TagMatcher & operator= ( const TagMatcher rhs)
delete

◆ applyFilter()

bool applyFilter ( std::set< int > &  filtered,
const Tag tag 
) const
privatenoexcept

Member Data Documentation

◆ mOptions

QVector<QSet<Tag> > mOptions
private

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