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

#include <valuenode.hpp>

Inheritance diagram for CSMFilter::ValueNode:
Collaboration diagram for CSMFilter::ValueNode:

Public Types

enum  Type { Type_Closed, Type_Open, Type_Infinite }
 

Public Member Functions

 ValueNode (int columnId, Type lowerType, Type upperType, double lower, double upper)
 
virtual bool test (const CSMWorld::IdTableBase &table, int row, const std::map< int, int > &columns) const
 
virtual std::vector< intgetReferencedColumns () const
 
virtual std::string toString (bool numericColumns) const
 
- Public Member Functions inherited from CSMFilter::Node
 Node ()
 
virtual ~Node ()
 

Private Attributes

int mColumnId
 
std::string mText
 
double mLower
 
double mUpper
 
Type mLowerType
 
Type mUpperType
 

Member Enumeration Documentation

Enumerator
Type_Closed 
Type_Open 
Type_Infinite 

Constructor & Destructor Documentation

CSMFilter::ValueNode::ValueNode ( int  columnId,
Type  lowerType,
Type  upperType,
double  lower,
double  upper 
)

Member Function Documentation

std::vector< int > CSMFilter::ValueNode::getReferencedColumns ( ) const
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.

Reimplemented from CSMFilter::LeafNode.

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

Implements CSMFilter::Node.

std::string CSMFilter::ValueNode::toString ( bool  numericColumns) const
virtual

Return a string that represents this node.

Parameters
numericColumnsUse numeric IDs instead of string to represent columns.

Implements CSMFilter::Node.

Here is the call graph for this function:

Member Data Documentation

int CSMFilter::ValueNode::mColumnId
private
double CSMFilter::ValueNode::mLower
private
Type CSMFilter::ValueNode::mLowerType
private
std::string CSMFilter::ValueNode::mText
private
double CSMFilter::ValueNode::mUpper
private
Type CSMFilter::ValueNode::mUpperType
private

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