|
HDK
|
#include <OP_OpTypeIdFilter.h>
Public Member Functions | |
| OP_OpTypeIdFilter () | |
| Constructor. More... | |
| OP_OpTypeIdFilter (const OP_OpTypeIdFilter &filter) | |
| Copy constructor. More... | |
| virtual | ~OP_OpTypeIdFilter () |
| Destructor. More... | |
| bool | isAcceptableNode (OP_Node *node) const |
| bool | isAcceptableNetwork (OP_Node *node) const |
| Returns true if the children of this node would be accepted. More... | |
| bool | hasOpTypeId (OP_OpTypeId opType) const |
| void | setCheckChildOpTypeId (bool doChildCheck) |
| void | setFilterMask (OP_OpTypeId opType, bool doMask=true) |
| Sets the mask for the operator type id. More... | |
| void | resetFilter (bool resetValue=true) |
| Resets the filter by setting each mask to the reset value. More... | |
| void | setOnlyRealCops (bool onlyreal) |
| Only accepts real cops, not image filter lists. More... | |
| bool | onlyRealCops () const |
| OP_OpTypeIdFilter & | operator= (const OP_OpTypeIdFilter &str) |
| Assignment operator. More... | |
This is a filter class which filters nodes by their operator type ids.
Definition at line 22 of file OP_OpTypeIdFilter.h.
| OP_OpTypeIdFilter::OP_OpTypeIdFilter | ( | ) |
Constructor.
| OP_OpTypeIdFilter::OP_OpTypeIdFilter | ( | const OP_OpTypeIdFilter & | filter | ) |
Copy constructor.
|
virtual |
Destructor.
| bool OP_OpTypeIdFilter::hasOpTypeId | ( | OP_OpTypeId | opType | ) | const |
Returns true if the the filter has the operator type id. Returns false otherwise.
| bool OP_OpTypeIdFilter::isAcceptableNetwork | ( | OP_Node * | node | ) | const |
Returns true if the children of this node would be accepted.
| bool OP_OpTypeIdFilter::isAcceptableNode | ( | OP_Node * | node | ) | const |
Returns true if the given node is accepted by the filter. Returns false otherwise.
|
inline |
Definition at line 60 of file OP_OpTypeIdFilter.h.
| OP_OpTypeIdFilter& OP_OpTypeIdFilter::operator= | ( | const OP_OpTypeIdFilter & | str | ) |
Assignment operator.
| void OP_OpTypeIdFilter::resetFilter | ( | bool | resetValue = true | ) |
Resets the filter by setting each mask to the reset value.
|
inline |
Sets whether we should be checking a network's child op type when determining if it is accepted by this filter. This logic is used in isAcceptableNode().
Definition at line 48 of file OP_OpTypeIdFilter.h.
| void OP_OpTypeIdFilter::setFilterMask | ( | OP_OpTypeId | opType, |
| bool | doMask = true |
||
| ) |
Sets the mask for the operator type id.
|
inline |
Only accepts real cops, not image filter lists.
Definition at line 59 of file OP_OpTypeIdFilter.h.