Public Member Functions | Private Member Functions | Private Attributes | List of all members
art::OrHelper< A, B > Class Template Reference

#include <fwd.h>

Inheritance diagram for art::OrHelper< A, B >:
art::SelectorBase

Public Member Functions

 OrHelper (A const &a, B const &b)
 
- Public Member Functions inherited from art::SelectorBase
virtual ~SelectorBase ()=default
 
bool match (BranchDescription const &p) const
 
std::string print (std::string const &indent) const
 

Private Member Functions

bool doMatch (BranchDescription const &p) const override
 
std::string doPrint (std::string const &indent) const override
 

Private Attributes

A a_
 
B b_
 

Detailed Description

template<typename A, typename B>
class art::OrHelper< A, B >

Definition at line 36 of file fwd.h.

Constructor & Destructor Documentation

template<typename A , typename B >
art::OrHelper< A, B >::OrHelper ( A const &  a,
B const &  b 
)
inline

Definition at line 199 of file Selector.h.

199 : a_{a}, b_{b} {}
const double a
static bool * b
Definition: config.cpp:1043

Member Function Documentation

template<typename A , typename B >
bool art::OrHelper< A, B >::doMatch ( BranchDescription const &  p) const
inlineoverrideprivatevirtual

Implements art::SelectorBase.

Definition at line 203 of file Selector.h.

204  {
205  return a_.match(p) || b_.match(p);
206  }
p
Definition: test.py:223
template<typename A , typename B >
std::string art::OrHelper< A, B >::doPrint ( std::string const &  indent) const
inlineoverrideprivatevirtual

Implements art::SelectorBase.

Definition at line 209 of file Selector.h.

210  {
211  std::string result{indent + "[\n"};
212  result += indent + a_.print(indent) + '\n';
213  result += indent + indent + indent + "or\n";
214  result += indent + b_.print(indent) + '\n';
215  result += indent + ']';
216  return result;
217  }
static QCString result
std::string string
Definition: nybbler.cc:12

Member Data Documentation

template<typename A , typename B >
A art::OrHelper< A, B >::a_
private

Definition at line 219 of file Selector.h.

template<typename A , typename B >
B art::OrHelper< A, B >::b_
private

Definition at line 220 of file Selector.h.


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