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

#include <PDG_FilterPattern.h>

+ Inheritance diagram for PDG_FilterPattern:

Public Member Functions

 PDG_FilterPattern ()
 
 PDG_FilterPattern (const UT_StringHolder &pattern)
 
 PDG_FilterPattern (const PDG_FilterPattern &)=delete
 
PDG_FilterPatternoperator= (const PDG_FilterPattern &)=delete
 
bool reset (const UT_StringHolder &pattern)
 Resets the pattern and reparses it from the specified string. More...
 
bool tryReset (const UT_StringHolder &pattern)
 
bool match (const PDG_WorkItem *work_item, bool inclusive) const
 
bool match (const UT_StringHolder &name, const UT_StringHolder &value, int component, bool inclusive) const
 
bool match (const UT_StringHolder &name, exint value, int component, bool inclusive) const
 
bool match (const UT_StringHolder &name, fpreal value, int component, bool inclusive) const
 
- Public Member Functions inherited from PDG_BasePattern
 PDG_BasePattern (const UT_StringHolder &pattern)
 Constructs a default-initialized, invalid pattern. More...
 
bool isValid () const
 
const UT_WorkBuffererrors () const
 If the pattern is invalid, contains parse errors. More...
 
const UT_StringHolderpattern () const
 Returns the pattern used to construct this object. More...
 
bool hasPattern () const
 Returns true if there is a pattern set. More...
 
void reset (const UT_StringHolder &pattern)
 Resets the pattern. More...
 

Additional Inherited Members

- Protected Types inherited from PDG_BasePattern
enum  ParseTokens : uint8 {
  eStarToken = '*', eExcludeToken = '^', eSeparatorToken = ':', eRangeToken = '-',
  eQuoteToken = '"', eEscapeToken = '\\', eRangeBeginToken = '[', eRangeEndToken = ']',
  eAttributeToken = '@', eComponentToken = '.'
}
 Special tokens, in addition to alphanumeric and whitespace. More...
 
- Protected Attributes inherited from PDG_BasePattern
UT_WorkBuffer myErrors
 Parse errors. More...
 
UT_StringHolder myPattern
 The pattern used to construct this object. More...
 
bool myIsValid
 Whether or not the pattern is valid. More...
 

Detailed Description

Matches attribute or intrinsic names to filter ranges, for example:

@pdg_id=1,10,100-200 @scale.x>0.5 @scale.y<0.5

Multiple pattern entries can be specified, separated by a space.

Definition at line 35 of file PDG_FilterPattern.h.

Constructor & Destructor Documentation

PDG_FilterPattern::PDG_FilterPattern ( )
PDG_FilterPattern::PDG_FilterPattern ( const UT_StringHolder pattern)
PDG_FilterPattern::PDG_FilterPattern ( const PDG_FilterPattern )
delete

Member Function Documentation

bool PDG_FilterPattern::match ( const PDG_WorkItem work_item,
bool  inclusive 
) const
bool PDG_FilterPattern::match ( const UT_StringHolder name,
const UT_StringHolder value,
int  component,
bool  inclusive 
) const
inline

Definition at line 55 of file PDG_FilterPattern.h.

bool PDG_FilterPattern::match ( const UT_StringHolder name,
exint  value,
int  component,
bool  inclusive 
) const
inline

Definition at line 65 of file PDG_FilterPattern.h.

bool PDG_FilterPattern::match ( const UT_StringHolder name,
fpreal  value,
int  component,
bool  inclusive 
) const
inline

Definition at line 75 of file PDG_FilterPattern.h.

PDG_FilterPattern& PDG_FilterPattern::operator= ( const PDG_FilterPattern )
delete
bool PDG_FilterPattern::reset ( const UT_StringHolder pattern)

Resets the pattern and reparses it from the specified string.

bool PDG_FilterPattern::tryReset ( const UT_StringHolder pattern)

Updates the pattern if it doesn't match the current one stored in this instance


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