CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
TinyDomTest2 Class Reference

#include <TinyDomTest2.h>

Public Member Functions

unsigned int allNodes (const Node2 &n2, std::vector< const AttList2 * > &at2)
 
 TinyDomTest2 (const TinyDom2 &td2)
 

Private Attributes

const TinyDom2dom_
 

Detailed Description

some tests for TinyDom and TinyDomWalker

Definition at line 9 of file TinyDomTest2.h.

Constructor & Destructor Documentation

TinyDomTest2::TinyDomTest2 ( const TinyDom2 td2)
explicit

Definition at line 9 of file TinyDomTest2.cc.

9 : dom_(td2) { }
const TinyDom2 & dom_
Definition: TinyDomTest2.h:17

Member Function Documentation

unsigned int TinyDomTest2::allNodes ( const Node2 n2,
std::vector< const AttList2 * > &  at2 
)

Definition at line 11 of file TinyDomTest2.cc.

References graph< N, E >::begin(), gather_cfg::cout, dom_, graph< N, E >::end(), graph< N, E >::nodeData(), and graph< N, E >::size().

12 {
14  cout << "Size of graph: " << TinyDomTest2::dom_.size() << endl;
15  while (it++ != dom_.end())
16  {
17  if (n2.first.sameName(dom_.nodeData(it).first))
18  {
19  at2.push_back(&(dom_.nodeData(it).second));
20  }
21  }
22  return at2.size();
23 }
adj_list::size_type size() const
Definition: adjgraph.h:201
const N & nodeData(const edge_type &) const
Definition: adjgraph.h:317
adj_list::const_iterator const_adj_iterator
Definition: adjgraph.h:125
tuple cout
Definition: gather_cfg.py:145
adj_iterator begin()
Definition: adjgraph.h:197
const TinyDom2 & dom_
Definition: TinyDomTest2.h:17
adj_iterator end()
Definition: adjgraph.h:199

Member Data Documentation

const TinyDom2& TinyDomTest2::dom_
private

Definition at line 17 of file TinyDomTest2.h.

Referenced by allNodes().