Public Member Functions | Private Member Functions | Private Attributes | List of all members
art::GroupQueryResult Class Reference

#include "/cvmfs/nova.opensciencegrid.org/externals/art/v2_13_00/source/art/Persistency/Common/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

art::GroupQueryResult::GroupQueryResult ( cet::exempt_ptr< Group const >  )
art::GroupQueryResult::GroupQueryResult ( std::shared_ptr< art::Exception const >  )

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().

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

Definition at line 47 of file GroupQueryResult.h.

References result_.

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

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 file: