OP_OpTypeIdFilter Class Reference

#include <OP_OpTypeIdFilter.h>

List of all members.

Public Member Functions

 OP_OpTypeIdFilter ()
 Constructor.
 OP_OpTypeIdFilter (const OP_OpTypeIdFilter &filter)
 Copy constructor.
virtual ~OP_OpTypeIdFilter ()
 Destructor.
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.
void resetFilter (bool resetValue=true)
 Resets the filter by setting each mask to the reset value.
OP_OpTypeIdFilteroperator= (const OP_OpTypeIdFilter &str)
 Assignment operator.


Detailed Description

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

Definition at line 31 of file OP_OpTypeIdFilter.h.


Constructor & Destructor Documentation

OP_OpTypeIdFilter::OP_OpTypeIdFilter (  ) 

Constructor.

OP_OpTypeIdFilter::OP_OpTypeIdFilter ( const OP_OpTypeIdFilter filter  ) 

Copy constructor.

virtual OP_OpTypeIdFilter::~OP_OpTypeIdFilter (  )  [virtual]

Destructor.


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  )  [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 55 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:

Generated on Fri May 25 00:10:33 2012 for HDK by  doxygen 1.5.9