OpenMW
Public Member Functions | Private Member Functions
CSMFilter::Node Class Reference

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

#include <node.hpp>

List of all members.

Public Member Functions

 Node ()
virtual ~Node ()
virtual bool test (const CSMWorld::IdTable &table, int row, const std::map< int, int > &columns) const =0
virtual std::vector< int > getReferencedColumns () 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 ( ) [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::IdTable 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: