OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Member Functions | List of all members
CSMFilter::Node Class Referenceabstract

Root class for the filter node hierarchy. More...

#include <node.hpp>

Inheritance diagram for CSMFilter::Node:
Collaboration diagram for CSMFilter::Node:

Public Member Functions

 Node ()
 
virtual ~Node ()
 
virtual bool test (const CSMWorld::IdTableBase &table, int row, const std::map< int, int > &columns) const =0
 
virtual std::vector< intgetReferencedColumns () const =0
 
virtual std::string toString (bool numericColumns) const =0
 

Private Member Functions

 Node (const Node &)
 
Nodeoperator= (const Node &)
 

Detailed Description

Root class for the filter node hierarchy.

Note
When the function documentation for this class mentions "this node", this should be interpreted as "the node and all its children".

Constructor & Destructor Documentation

CSMFilter::Node::Node ( const Node )
private
CSMFilter::Node::Node ( )
CSMFilter::Node::~Node ( )
virtual

Member Function Documentation

virtual std::vector<int> CSMFilter::Node::getReferencedColumns ( ) const
pure virtual

Return a list of the IDs of the columns referenced by this node. The column mapping passed into test as columns must contain all columns listed here.

Implemented in CSMFilter::ValueNode, CSMFilter::NAryNode, CSMFilter::UnaryNode, CSMFilter::TextNode, and CSMFilter::LeafNode.

Node& CSMFilter::Node::operator= ( const Node )
private
virtual bool CSMFilter::Node::test ( const CSMWorld::IdTableBase table,
int  row,
const std::map< int, int > &  columns 
) const
pure virtual
Returns
Can the specified table row pass through to filter?
Parameters
columnscolumn ID to column index mapping

Implemented in CSMFilter::ValueNode, CSMFilter::TextNode, CSMFilter::BooleanNode, CSMFilter::AndNode, CSMFilter::NotNode, and CSMFilter::OrNode.

virtual std::string CSMFilter::Node::toString ( bool  numericColumns) const
pure virtual

Return a string that represents this node.

Parameters
numericColumnsUse numeric IDs instead of string to represent columns.

Implemented in CSMFilter::ValueNode, CSMFilter::NAryNode, CSMFilter::UnaryNode, CSMFilter::TextNode, and CSMFilter::BooleanNode.


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