LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
art::GroupQueryResult Class Reference

#include "GroupQueryResult.h"

Public Member Functions

 GroupQueryResult (cet::exempt_ptr< Group const >)
 
 GroupQueryResult (std::shared_ptr< art::Exception const >)
 
bool succeeded () const
 
bool failed () const
 
cet::exempt_ptr< Group const > result () const
 
std::shared_ptr< art::Exception const > whyFailed () const
 

Private Member Functions

bool invariant () const
 

Private Attributes

cet::exempt_ptr< Group const > result_ {nullptr}
 
std::shared_ptr< art::Exception const > whyFailed_ {nullptr}
 

Detailed Description

Definition at line 27 of file GroupQueryResult.h.

Constructor & Destructor Documentation

GroupQueryResult::GroupQueryResult ( cet::exempt_ptr< Group const >  g)

Definition at line 17 of file GroupQueryResult.cc.

References invariant().

17  : result_{g}
18 {
19  assert(invariant());
20 }
cet::exempt_ptr< Group const > result_
GroupQueryResult::GroupQueryResult ( std::shared_ptr< art::Exception const >  e)

Definition at line 22 of file GroupQueryResult.cc.

References invariant().

23  : whyFailed_{e}
24 {
25  assert(invariant());
26 }
std::shared_ptr< art::Exception const > whyFailed_
Float_t e
Definition: plot.C:34

Member Function Documentation

bool art::GroupQueryResult::failed ( ) const
inline

Definition at line 40 of file GroupQueryResult.h.

References whyFailed_.

Referenced by invariant().

41  {
42  return static_cast<bool>(whyFailed_);
43  }
std::shared_ptr< art::Exception const > whyFailed_
bool art::GroupQueryResult::invariant ( ) const
inlineprivate

Definition at line 62 of file GroupQueryResult.h.

References failed(), and succeeded().

Referenced by GroupQueryResult().

63  {
64  return succeeded() != failed();
65  }
cet::exempt_ptr<Group const> art::GroupQueryResult::result ( void  ) const
inline

Definition at line 47 of file GroupQueryResult.h.

References result_.

Referenced by art::DataViewImpl::fillView_(), art::Principal::getEDProductGetterImpl(), and art::Principal::productGetter().

48  {
49  return result_;
50  }
cet::exempt_ptr< Group const > result_
bool art::GroupQueryResult::succeeded ( ) const
inline

Definition at line 35 of file GroupQueryResult.h.

References result_.

Referenced by art::DataViewImpl::get(), art::DataViewImpl::getByLabel(), and invariant().

36  {
37  return static_cast<bool>(result_);
38  }
cet::exempt_ptr< Group const > result_
std::shared_ptr<art::Exception const> art::GroupQueryResult::whyFailed ( ) const
inline

Definition at line 52 of file GroupQueryResult.h.

References whyFailed_.

53  {
54  return whyFailed_;
55  }
std::shared_ptr< art::Exception const > whyFailed_

Member Data Documentation

cet::exempt_ptr<Group const> art::GroupQueryResult::result_ {nullptr}
private

Definition at line 58 of file GroupQueryResult.h.

Referenced by result(), and succeeded().

std::shared_ptr<art::Exception const> art::GroupQueryResult::whyFailed_ {nullptr}
private

Definition at line 59 of file GroupQueryResult.h.

Referenced by failed(), and whyFailed().


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