OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
narynode.hpp
Go to the documentation of this file.
1 #ifndef CSM_FILTER_NARYNODE_H
2 #define CSM_FILTER_NARYNODE_H
3 
4 #include <vector>
5 #include <string>
6 
7 #include <boost/shared_ptr.hpp>
8 
9 #include "node.hpp"
10 
11 namespace CSMFilter
12 {
13  class NAryNode : public Node
14  {
15  std::vector<boost::shared_ptr<Node> > mNodes;
16  std::string mName;
17 
18  public:
19 
20  NAryNode (const std::vector<boost::shared_ptr<Node> >& nodes, const std::string& name);
21 
22  int getSize() const;
23 
24  const Node& operator[] (int index) const;
25 
26  virtual std::vector<int> getReferencedColumns() const;
29 
30  virtual std::string toString (bool numericColumns) const;
34  };
35 }
36 
37 #endif
virtual std::vector< int > getReferencedColumns() const
Definition: narynode.cpp:20
int getSize() const
Definition: narynode.cpp:10
const Node & operator[](int index) const
Definition: narynode.cpp:15
std::vector< boost::shared_ptr< Node > > mNodes
Definition: narynode.hpp:15
std::string mName
Definition: narynode.hpp:16
Root class for the filter node hierarchy.
Definition: node.hpp:23
Definition: narynode.hpp:13
virtual std::string toString(bool numericColumns) const
Definition: narynode.cpp:35
NAryNode(const std::vector< boost::shared_ptr< Node > > &nodes, const std::string &name)
Definition: narynode.cpp:5
const char * name
Definition: crashcatcher.cpp:59