|  | 
| typedef drain::Path< std::string,'/'> | path_t | 
|  | Tree path type. // TODO: extract from template. 
 | 
|  | 
| typedef path_t::elem_t | path_elem_t | 
|  | 
| typedef std::list< path_t > | path_list_t | 
|  | 
|  | 
| template<class T > | 
| bool | findById (const T &t, const std::string &id, typename T::path_t &result, const typename T::path_t &path) | 
|  | 
| template<class T , class N > | 
| bool | findByTag (const T &t, const N &tag, SearchXML::path_list_t &result, const path_t &path) | 
|  | 
| template<class T , class N > | 
| bool | findByTags (const T &t, const std::set< N > &tags, SearchXML::path_list_t &result, const SearchXML::path_t &path) | 
|  | 
|  | 
| template<class V > | 
| static bool | findById (const V &tree, const std::string &tag, typename V::path_t &result, const typename V::path_t &path=path_t()) | 
|  | Find the first occurrence of given id using recursive breath-first search. 
 | 
|  | 
| template<class T > | 
| static bool | findById (const T &tree, const std::string &tag, path_list_t &result, const path_t &path=path_t()) | 
|  | Find the occurrence(s) of given ID using recursive breath-first search. 
 | 
|  | 
| template<class T , class E > | 
| static bool | findByTag (const T &tree, const E &tag, path_list_t &result, const path_t &path=path_t()) | 
|  | 
| template<class T , class E > | 
| static bool | findByTags (const T &tree, const std::set< E > &tags, path_list_t &result, const path_t &path=path_t()) | 
|  | "Forward definition" 
 | 
|  | 
| template<class T , class C > | 
| static bool | findByClass (const T &t, const C &cls, std::list< typename T::path_elem_t > &result) | 
|  | Finds child elements in an XML structure by class name. 
 | 
|  | 
| template<class T , class C > | 
| static bool | findByClass (const T &t, const C &cls, path_list_t &result, const path_t &path=path_t()) | 
|  | Finds elements recursively in an XML structure by class name supplied as an enumeration type. 
 | 
|  | 
◆ findByClass() [1/2]
template<class T , class C > 
  
  | 
        
          | bool findByClass | ( | const T & | t, |  
          |  |  | const C & | cls, |  
          |  |  | SearchXML::path_list_t & | result, |  
          |  |  | const path_t & | path = path_t() |  
          |  | ) |  |  |  | inlinestatic | 
 
Finds elements recursively in an XML structure by class name supplied as an enumeration type. 
- Template Parameters
- 
  
    | V | - XML tree |  | C | - enum type, for which a unique (static) EnumDict has been detected. |  
 
- Parameters
- 
  
  
 
 
◆ findByClass() [2/2]
template<class T , class C > 
  
  | 
        
          | bool findByClass | ( | const T & | t, |  
          |  |  | const C & | cls, |  
          |  |  | std::list< typename T::path_elem_t > & | result |  
          |  | ) |  |  |  | static | 
 
Finds child elements in an XML structure by class name. 
Immediate descendants.
- Template Parameters
- 
  
  
In a way, this is a forward definition – this could also be in TreeXMLutilities. 
 
 
◆ findById() [1/2]
template<class T > 
  
  | 
        
          | bool findById | ( | const T & | tree, |  
          |  |  | const std::string & | tag, |  
          |  |  | SearchXML::path_list_t & | result, |  
          |  |  | const path_t & | path = path_t() |  
          |  | ) |  |  |  | static | 
 
Find the occurrence(s) of given ID using recursive breath-first search. 
By definition, id attributes should be unique. This function nevertheless returns a list if user wants to handle more than one elements found.
- Parameters
- 
  
    | tree | - source element, |  | id | - id attribute to be searched for |  | result | - path of pointing to |  | path | - start path for the search. |  
 
- Returns
- - true, if an element was found.
 
 
◆ findById() [2/2]
template<class V > 
  
  | 
        
          | static bool findById | ( | const V & | tree, |  
          |  |  | const std::string & | tag, |  
          |  |  | typename V::path_t & | result, |  
          |  |  | const typename V::path_t & | path = path_t() |  
          |  | ) |  |  |  | static | 
 
Find the first occurrence of given id using recursive breath-first search. 
By definition, id attributes should be unique.
- Parameters
- 
  
    | tree | - source element, |  | id | - id attribute to be searched for |  | result | - path of the element with required ID, if found. |  | path | - start path for the search. |  
 
- Returns
- - true, if an element was found.
 
 
◆ findByTag() [1/2]
template<class T , class N > 
      
        
          | bool findByTag | ( | const T & | t, | 
        
          |  |  | const N & | tag, | 
        
          |  |  | SearchXML::path_list_t & | result, | 
        
          |  |  | const path_t & | path | 
        
          |  | ) |  |  | 
      
 
 
◆ findByTag() [2/2]
template<class T , class E > 
  
  | 
        
          | static bool findByTag | ( | const T & | tree, |  
          |  |  | const E & | tag, |  
          |  |  | path_list_t & | result, |  
          |  |  | const path_t & | path = path_t() |  
          |  | ) |  |  |  | static | 
 
Find all the occurrences of given tag type using recursive breath-first search. This is a "forward definition" – this could also be in TreeXMLutilities. 
 
 
◆ findByTags() [1/2]
template<class T , class N > 
      
        
          | bool findByTags | ( | const T & | t, | 
        
          |  |  | const std::set< N > & | tags, | 
        
          |  |  | SearchXML::path_list_t & | result, | 
        
          |  |  | const SearchXML::path_t & | path | 
        
          |  | ) |  |  | 
      
 
 
◆ findByTags() [2/2]
template<class T , class E > 
  
  | 
        
          | static bool findByTags | ( | const T & | tree, |  
          |  |  | const std::set< E > & | tags, |  
          |  |  | path_list_t & | result, |  
          |  |  | const path_t & | path = path_t() |  
          |  | ) |  |  |  | static | 
 
"Forward definition" 
- Template Parameters
- 
  
  
 
 
The documentation for this class was generated from the following file: