PSEvt::Source::SrcMatch Class Reference

Helper class which provides logic for matching Source values to Src instances. More...

#include <Source.h>

List of all members.

Public Member Functions

 SrcMatch (const Pds::Src &src)
bool match (const Pds::Src &src) const
 Match source with Pds::Src object.
bool in (const SrcMatch &other) const
bool isNoSource () const
 Returns true if matches no-source only.
bool isExact () const
 Returns true if it is exact match.
const Pds::Src & src () const


Detailed Description

Helper class which provides logic for matching Source values to Src instances.

This is an abstraction of the set of addresses. Having this set one can ask questions like:

Internal representation of this object is Pds::Src instance with some special bit patterns representing special cases. This representation may change if these patterns become unavailable (if DAQ decides to use them for some purpose).

Definition at line 81 of file Source.h.


Constructor & Destructor Documentation

PSEvt::Source::SrcMatch::SrcMatch ( const Pds::Src &  src  )  [inline]

Definition at line 84 of file Source.h.


Member Function Documentation

bool PSEvt::Source::SrcMatch::in ( const SrcMatch other  )  const

Returns true if set of addresses matched by this instance is contained entirely in the set of addresses matched by an argument.

Definition at line 180 of file Source.cpp.

References src().

Referenced by BOOST_AUTO_TEST_CASE(), SrcMatch_contains(), and SrcMatch_in().

bool PSEvt::Source::SrcMatch::isExact (  )  const

Returns true if it is exact match.

Definition at line 243 of file Source.cpp.

References src::psana_doc_info::info.

Referenced by psana_python::ProxyDictMethods::arg_get_put(), PSEvt::ProxyDict::getImpl(), psddl_hdf2psana::HdfGroupName::nameToSource(), and SrcMatch_isExact().

bool PSEvt::Source::SrcMatch::isNoSource (  )  const [inline]

Returns true if matches no-source only.

Definition at line 94 of file Source.h.

Referenced by SrcMatch_isNoSource().

bool PSEvt::Source::SrcMatch::match ( const Pds::Src &  src  )  const

Match source with Pds::Src object.

Definition at line 119 of file Source.cpp.

References src::psana_doc_info::info.

Referenced by PSEvt::ProxyDict::getImpl(), PSEvt::ProxyDict::keysImpl(), and SrcMatch_match().

const Pds::Src& PSEvt::Source::SrcMatch::src (  )  const [inline]

Returns internal Src representation, this representation can be changed at any moment, client code should not rely on existence of this data.

Definition at line 101 of file Source.h.

Referenced by psana_python::ProxyDictMethods::arg_get_put(), PSEvt::ProxyDict::getImpl(), in(), and psddl_hdf2psana::HdfGroupName::nameToSource().


The documentation for this class was generated from the following files:
Generated on 19 Dec 2016 for PSDMSoftware by  doxygen 1.4.7