Cockatrice 2025-11-30-Development-2.11.0-beta.38
A cross-platform virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
FilterItem Class Reference

#include <filter_tree.h>

Inheritance diagram for FilterItem:
[legend]
Collaboration diagram for FilterItem:
[legend]

Public Member Functions

 FilterItem (QString trm, FilterItemList *parent)
virtual ~FilterItem ()=default
CardFilter::Attr attr () const
CardFilter::Type type () const
FilterTreeNodeparent () const override
const QString text () const override
bool isLeaf () const override
bool acceptName (CardInfoPtr info) const
bool acceptType (CardInfoPtr info) const
bool acceptMainType (CardInfoPtr info) const
bool acceptSubType (CardInfoPtr info) const
bool acceptColor (CardInfoPtr info) const
bool acceptText (CardInfoPtr info) const
bool acceptSet (CardInfoPtr info) const
bool acceptManaCost (CardInfoPtr info) const
bool acceptCmc (CardInfoPtr info) const
bool acceptPowerToughness (CardInfoPtr info, CardFilter::Attr attr) const
bool acceptLoyalty (CardInfoPtr info) const
bool acceptRarity (CardInfoPtr info) const
bool acceptCardAttr (CardInfoPtr info, CardFilter::Attr attr) const
bool acceptFormat (CardInfoPtr info) const
bool relationCheck (int cardInfo) const
Public Member Functions inherited from FilterTreeNode
 FilterTreeNode ()
virtual bool isEnabled () const
virtual void enable ()
virtual void disable ()
virtual FilterTreeNodenodeAt (int) const
virtual void deleteAt (int)
virtual int childCount () const
virtual int childIndex (const FilterTreeNode *) const
virtual int index () const
virtual void nodeChanged () const
virtual void preInsertChild (const FilterTreeNode *p, int i) const
virtual void postInsertChild (const FilterTreeNode *p, int i) const
virtual void preRemoveChild (const FilterTreeNode *p, int i) const
virtual void postRemoveChild (const FilterTreeNode *p, int i) const

Public Attributes

const QString term

Private Attributes

FilterItemList *const p

Constructor & Destructor Documentation

◆ FilterItem()

FilterItem::FilterItem ( QString trm,
FilterItemList * parent )
inline
Here is the call graph for this function:

◆ ~FilterItem()

virtual FilterItem::~FilterItem ( )
virtualdefault

Member Function Documentation

◆ acceptCardAttr()

bool FilterItem::acceptCardAttr ( CardInfoPtr info,
CardFilter::Attr attr ) const
nodiscard
Here is the call graph for this function:

◆ acceptCmc()

bool FilterItem::acceptCmc ( CardInfoPtr info) const
nodiscard
Here is the call graph for this function:
Here is the caller graph for this function:

◆ acceptColor()

bool FilterItem::acceptColor ( CardInfoPtr info) const
nodiscard
Here is the caller graph for this function:

◆ acceptFormat()

bool FilterItem::acceptFormat ( CardInfoPtr info) const
nodiscard
Here is the caller graph for this function:

◆ acceptLoyalty()

bool FilterItem::acceptLoyalty ( CardInfoPtr info) const
nodiscard
Here is the call graph for this function:
Here is the caller graph for this function:

◆ acceptMainType()

bool FilterItem::acceptMainType ( CardInfoPtr info) const
nodiscard
Here is the caller graph for this function:

◆ acceptManaCost()

bool FilterItem::acceptManaCost ( CardInfoPtr info) const
nodiscard
Here is the caller graph for this function:

◆ acceptName()

bool FilterItem::acceptName ( CardInfoPtr info) const
nodiscard
Here is the caller graph for this function:

◆ acceptPowerToughness()

bool FilterItem::acceptPowerToughness ( CardInfoPtr info,
CardFilter::Attr attr ) const
nodiscard
Here is the call graph for this function:
Here is the caller graph for this function:

◆ acceptRarity()

bool FilterItem::acceptRarity ( CardInfoPtr info) const
nodiscard
Here is the caller graph for this function:

◆ acceptSet()

bool FilterItem::acceptSet ( CardInfoPtr info) const
nodiscard
Here is the caller graph for this function:

◆ acceptSubType()

bool FilterItem::acceptSubType ( CardInfoPtr info) const
nodiscard
Here is the caller graph for this function:

◆ acceptText()

bool FilterItem::acceptText ( CardInfoPtr info) const
nodiscard
Here is the caller graph for this function:

◆ acceptType()

bool FilterItem::acceptType ( CardInfoPtr info) const
nodiscard
Here is the caller graph for this function:

◆ attr()

CardFilter::Attr FilterItem::attr ( ) const
inlinenodiscard
Here is the caller graph for this function:

◆ isLeaf()

bool FilterItem::isLeaf ( ) const
inlinenodiscardoverridevirtual

Reimplemented from FilterTreeNode.

◆ parent()

FilterTreeNode * FilterItem::parent ( ) const
inlinenodiscardoverridevirtual

Reimplemented from FilterTreeNode.

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

◆ relationCheck()

bool FilterItem::relationCheck ( int cardInfo) const
nodiscard
Here is the caller graph for this function:

◆ text()

const QString FilterItem::text ( ) const
inlinenodiscardoverridevirtual

Reimplemented from FilterTreeNode.

◆ type()

CardFilter::Type FilterItem::type ( ) const
inlinenodiscard

Member Data Documentation

◆ p

FilterItemList* const FilterItem::p
private

◆ term

const QString FilterItem::term

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