Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
FilterTree Class Reference

#include <filter_tree.h>

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

Signals

void preInsertRow (const FilterTreeNode *parent, int i) const
void postInsertRow (const FilterTreeNode *parent, int i) const
void preRemoveRow (const FilterTreeNode *parent, int i) const
void postRemoveRow (const FilterTreeNode *parent, int i) const
void changed () const

Public Member Functions

 FilterTree ()
 ~FilterTree () override
FilterTreeNode * termNode (CardFilter::Attr attr, CardFilter::Type type, const QString &term)
FilterTreeNode * termNode (const CardFilter *f)
const QString text () const override
int index () const override
bool acceptsCard (CardInfoPtr info, const CardSearchLanguage &searchLanguage) const
void removeFiltersByAttr (CardFilter::Attr filterType)
void removeFilter (const CardFilter *toRemove)
void clear ()
Public Member Functions inherited from FilterTreeBranch< LogicMap * >
virtual ~FilterTreeBranch ()
void removeFiltersByAttr (CardFilter::Attr filterType)
FilterTreeNode * nodeAt (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 FilterTreeNode * parent () const
virtual bool isLeaf () const

Private Member Functions

LogicMap * attrLogicMap (CardFilter::Attr attr)
FilterItemList * attrTypeList (CardFilter::Attr attr, CardFilter::Type type)
bool testAttr (CardInfoPtr info, const LogicMap *lm, const CardSearchLanguage &searchLanguage) const
void nodeChanged () const override
void preInsertChild (const FilterTreeNode *p, int i) const override
void postInsertChild (const FilterTreeNode *p, int i) const override
void preRemoveChild (const FilterTreeNode *p, int i) const override
void postRemoveChild (const FilterTreeNode *p, int i) const override

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ FilterTree()

FilterTree::FilterTree ( )
default

◆ ~FilterTree()

FilterTree::~FilterTree ( )
overridedefault
Here is the call graph for this function:

Member Function Documentation

◆ acceptsCard()

bool FilterTree::acceptsCard ( CardInfoPtr info,
const CardSearchLanguage & searchLanguage ) const
nodiscard
Here is the call graph for this function:
Here is the caller graph for this function:

◆ attrLogicMap()

LogicMap * FilterTree::attrLogicMap ( CardFilter::Attr attr)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ attrTypeList()

FilterItemList * FilterTree::attrTypeList ( CardFilter::Attr attr,
CardFilter::Type type )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ changed

void FilterTree::changed ( ) const
signal
Here is the call graph for this function:
Here is the caller graph for this function:

◆ clear()

void FilterTree::clear ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ index()

int FilterTree::index ( ) const
inlinenodiscardoverridevirtual

Reimplemented from FilterTreeNode.

◆ nodeChanged()

void FilterTree::nodeChanged ( ) const
inlineoverrideprivatevirtual

Reimplemented from FilterTreeNode.

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

◆ postInsertChild()

void FilterTree::postInsertChild ( const FilterTreeNode * p,
int i ) const
inlineoverrideprivatevirtual

Reimplemented from FilterTreeNode.

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

◆ postInsertRow

void FilterTree::postInsertRow ( const FilterTreeNode * parent,
int i ) const
signal
Here is the call graph for this function:
Here is the caller graph for this function:

◆ postRemoveChild()

void FilterTree::postRemoveChild ( const FilterTreeNode * p,
int i ) const
inlineoverrideprivatevirtual

Reimplemented from FilterTreeNode.

Here is the call graph for this function:

◆ postRemoveRow

void FilterTree::postRemoveRow ( const FilterTreeNode * parent,
int i ) const
signal
Here is the call graph for this function:
Here is the caller graph for this function:

◆ preInsertChild()

void FilterTree::preInsertChild ( const FilterTreeNode * p,
int i ) const
inlineoverrideprivatevirtual

Reimplemented from FilterTreeNode.

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

◆ preInsertRow

void FilterTree::preInsertRow ( const FilterTreeNode * parent,
int i ) const
signal
Here is the call graph for this function:
Here is the caller graph for this function:

◆ preRemoveChild()

void FilterTree::preRemoveChild ( const FilterTreeNode * p,
int i ) const
inlineoverrideprivatevirtual

Reimplemented from FilterTreeNode.

Here is the call graph for this function:

◆ preRemoveRow

void FilterTree::preRemoveRow ( const FilterTreeNode * parent,
int i ) const
signal
Here is the call graph for this function:
Here is the caller graph for this function:

◆ removeFilter()

void FilterTree::removeFilter ( const CardFilter * toRemove)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ removeFiltersByAttr()

void FilterTree::removeFiltersByAttr ( CardFilter::Attr filterType)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ termNode() [1/2]

FilterTreeNode * FilterTree::termNode ( CardFilter::Attr attr,
CardFilter::Type type,
const QString & term )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ termNode() [2/2]

FilterTreeNode * FilterTree::termNode ( const CardFilter * f)
Here is the call graph for this function:

◆ testAttr()

bool FilterTree::testAttr ( CardInfoPtr info,
const LogicMap * lm,
const CardSearchLanguage & searchLanguage ) const
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ text()

const QString FilterTree::text ( ) const
inlinenodiscardoverridevirtual

Reimplemented from FilterTreeNode.


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