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

#include <filter_tree.h>

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

Public Member Functions

 FilterItemList (CardFilter::Type t, LogicMap *parent)
CardFilter::Attr attr () const
FilterTreeNodeparent () const override
int termIndex (const QString &term) const
FilterTreeNodetermNode (const QString &term)
const QString text () const override
bool testTypeAnd (CardInfoPtr info, CardFilter::Attr attr) const
bool testTypeAndNot (CardInfoPtr info, CardFilter::Attr attr) const
bool testTypeOr (CardInfoPtr info, CardFilter::Attr attr) const
bool testTypeOrNot (CardInfoPtr info, CardFilter::Attr attr) const
Public Member Functions inherited from FilterTreeBranch< FilterItem * >
virtual ~FilterTreeBranch ()
void removeFiltersByAttr (CardFilter::Attr filterType)
FilterTreeNodenodeAt (int i) const override
void deleteAt (int i) override
int childCount () const override
int childIndex (const FilterTreeNode *node) const override
Public Member Functions inherited from FilterTreeNode
 FilterTreeNode ()
virtual bool isEnabled () const
virtual void enable ()
virtual void disable ()
virtual int index () const
virtual bool isLeaf () 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 CardFilter::Type type

Private Attributes

LogicMap *const p

Additional Inherited Members

Protected Attributes inherited from FilterTreeBranch< FilterItem * >
QList< FilterItem * > childNodes

Constructor & Destructor Documentation

◆ FilterItemList()

FilterItemList::FilterItemList ( CardFilter::Type t,
LogicMap * parent )
inline
Here is the call graph for this function:

Member Function Documentation

◆ attr()

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

◆ parent()

FilterTreeNode * FilterItemList::parent ( ) const
inlinenodiscardoverridevirtual

Reimplemented from FilterTreeNode.

Here is the caller graph for this function:

◆ termIndex()

int FilterItemList::termIndex ( const QString & term) const
nodiscard
Here is the caller graph for this function:

◆ termNode()

FilterTreeNode * FilterItemList::termNode ( const QString & term)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ testTypeAnd()

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

◆ testTypeAndNot()

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

◆ testTypeOr()

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

◆ testTypeOrNot()

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

◆ text()

const QString FilterItemList::text ( ) const
inlinenodiscardoverridevirtual

Reimplemented from FilterTreeNode.

Here is the call graph for this function:

Member Data Documentation

◆ p

LogicMap* const FilterItemList::p
private

◆ type

const CardFilter::Type FilterItemList::type

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