#include <Source.h>
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 |
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.
PSEvt::Source::SrcMatch::SrcMatch | ( | const Pds::Src & | src | ) | [inline] |
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().