LDMX Software
AcceptCombination Struct Reference

This is a combined accept struct. More...

#include <CommonUtils.h>

Public Member Functions

bool operator() (ULong64_t entry)
 returns true if value is within range
 

Public Attributes

std::function< bool(ULong64_t)> one
 
std::function< bool(ULong64_t)> two
 

Detailed Description

This is a combined accept struct.

It allows to define muleiple accept struct in a chained way

Definition at line 208 of file CommonUtils.h.

Member Function Documentation

◆ operator()()

bool AcceptCombination::operator() ( ULong64_t entry)
inline

returns true if value is within range

Parameters
entrythe entry in the tree

Definition at line 215 of file CommonUtils.h.

215{ return (one(entry) && two(entry)); }

Member Data Documentation

◆ one

std::function<bool(ULong64_t)> AcceptCombination::one

Definition at line 209 of file CommonUtils.h.

◆ two

std::function<bool(ULong64_t)> AcceptCombination::two

Definition at line 211 of file CommonUtils.h.


The documentation for this struct was generated from the following file: