API
4.0
For C++ developers
|
A class to specify a filter to be used to iterate through components.
More...
Public Member Functions | |
virtual | ~ComponentFilter () |
Destructor of ComponentFilter, does nothing. More... | |
virtual bool | isMatch (const Component &comp) const =0 |
This is the meat of the ComponentFilter, returns false if the passed in component should be skipped over. More... | |
virtual ComponentFilter * | clone () const =0 |
clone() method needed to make a copy of the filter. More... | |
Protected Member Functions | |
ComponentFilter () | |
Default constructor of ComponentFilter, does nothing. More... | |
A class to specify a filter to be used to iterate through components.
More flexible than filtering based on Type only. To write your custom filter, extend this class and implement the isMatch() and clone() methods.
|
inlineprotected |
Default constructor of ComponentFilter, does nothing.
For use by derived classes only.
|
inlinevirtual |
Destructor of ComponentFilter, does nothing.
|
pure virtual |
clone() method needed to make a copy of the filter.
Implemented in OpenSim::ComponentFilterAbsolutePathNameContainsString, and OpenSim::ComponentFilterMatchAll.
|
pure virtual |
This is the meat of the ComponentFilter, returns false if the passed in component should be skipped over.
Implemented in OpenSim::ComponentFilterAbsolutePathNameContainsString, and OpenSim::ComponentFilterMatchAll.