All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
OP_OpTypeIdFilter Class Reference

#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 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...
OP_OpTypeIdFilteroperator= (const OP_OpTypeIdFilter &str)
 Assignment operator. More...

Detailed Description

This is a filter class which filters nodes by their operator type ids.

Definition at line 22 of file OP_OpTypeIdFilter.h.

Constructor & Destructor Documentation

OP_OpTypeIdFilter::OP_OpTypeIdFilter ( )


OP_OpTypeIdFilter::OP_OpTypeIdFilter ( const OP_OpTypeIdFilter filter)

Copy constructor.

virtual OP_OpTypeIdFilter::~OP_OpTypeIdFilter ( )


Member Function Documentation

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::isAcceptableNode ( OP_Node node) const

Returns true if the given node is accepted by the filter. Returns false otherwise.

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.

void OP_OpTypeIdFilter::setCheckChildOpTypeId ( bool  doChildCheck)

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 46 of file OP_OpTypeIdFilter.h.

void OP_OpTypeIdFilter::setFilterMask ( OP_OpTypeId  opType,
bool  doMask = true 

Sets the mask for the operator type id.

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