Cockatrice 2025-11-30-Development-2.11.0-beta.38
A cross-platform 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
FilterTreeNodetermNode (CardFilter::Attr attr, CardFilter::Type type, const QString &term)
FilterTreeNodetermNode (const CardFilter *f)
const QString text () const override
int index () const override
bool acceptsCard (CardInfoPtr info) 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)
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 FilterTreeNodeparent () const
virtual bool isLeaf () const

Private Member Functions

LogicMapattrLogicMap (CardFilter::Attr attr)
FilterItemListattrTypeList (CardFilter::Attr attr, CardFilter::Type type)
bool testAttr (CardInfoPtr info, const LogicMap *lm) 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

Member Function Documentation

◆ acceptsCard()

bool FilterTree::acceptsCard ( CardInfoPtr info) const
nodiscard
Here is the call 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 caller graph for this function:

◆ clear()

void FilterTree::clear ( )
Here is the call 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:

◆ removeFiltersByAttr()

void FilterTree::removeFiltersByAttr ( CardFilter::Attr filterType)
Here is the call 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
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: