LibrePCB Developers Documentation
Loading...
Searching...
No Matches
AttrTypeResistance Class Referencefinal

The AttrTypeResistance class. More...

#include <attrtyperesistance.h>

+ Inheritance diagram for AttrTypeResistance:
+ Collaboration diagram for AttrTypeResistance:

Public Member Functions

 AttrTypeResistance (const AttrTypeResistance &other)=delete
 
bool isValueValid (const QString &value) const noexcept
 
QString valueFromTr (const QString &value) const noexcept
 
QString printableValueTr (const QString &value, const AttributeUnit *unit=nullptr) const noexcept
 
AttrTypeResistanceoperator= (const AttrTypeResistance &rhs)=delete
 
- Public Member Functions inherited from AttributeType
 AttributeType ()=delete
 
 AttributeType (const AttributeType &other)=delete
 
 AttributeType (Type_t type, const QString &typeName, const QString &typeNameTr) noexcept
 
virtual ~AttributeType () noexcept
 
Type_t getType () const noexcept
 
const QString & getName () const noexcept
 
const QString & getNameTr () const noexcept
 
const QList< const AttributeUnit * > & getAvailableUnits () const noexcept
 
const AttributeUnitgetUnitFromString (const QString &unit) const
 
const AttributeUnitgetDefaultUnit () const noexcept
 
bool isUnitAvailable (const AttributeUnit *unit) const noexcept
 
const AttributeUnittryExtractUnitFromValue (QString &value) const noexcept
 
AttributeTypeoperator= (const AttributeType &rhs)=delete
 

Static Public Member Functions

static const AttrTypeResistanceinstance () noexcept
 
- Static Public Member Functions inherited from AttributeType
static QList< const AttributeType * > getAllTypes () noexcept
 
static const AttributeTypefromString (const QString &type)
 

Private Member Functions

 AttrTypeResistance () noexcept
 
 ~AttrTypeResistance () noexcept
 

Additional Inherited Members

- Public Types inherited from AttributeType
enum class  Type_t
 Available Attribute Types. More...
 
- Protected Attributes inherited from AttributeType
Type_t mType
 
QString mTypeName
 
QString mTypeNameTr
 
QList< const AttributeUnit * > mAvailableUnits
 
const AttributeUnitmDefaultUnit
 

Detailed Description

The AttrTypeResistance class.

Constructor & Destructor Documentation

◆ AttrTypeResistance() [1/2]

AttrTypeResistance ( const AttrTypeResistance other)
delete

◆ AttrTypeResistance() [2/2]

AttrTypeResistance ( )
privatenoexcept

◆ ~AttrTypeResistance()

~AttrTypeResistance ( )
privatenoexcept

Member Function Documentation

◆ isValueValid()

bool isValueValid ( const QString &  value) const
virtualnoexcept

Implements AttributeType.

◆ valueFromTr()

QString valueFromTr ( const QString &  value) const
virtualnoexcept

Implements AttributeType.

◆ printableValueTr()

QString printableValueTr ( const QString &  value,
const AttributeUnit unit = nullptr 
) const
virtualnoexcept

Implements AttributeType.

◆ instance()

static const AttrTypeResistance & instance ( )
inlinestaticnoexcept
+ Here is the caller graph for this function:

◆ operator=()

AttrTypeResistance & operator= ( const AttrTypeResistance rhs)
delete

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