![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
21 #include "Gaudi/Property.h"
27 typedef std::true_type
type;
40 ISvcLocator* pSvcLocator ) :
59 return StatusCode::SUCCESS;
66 return StatusCode::SUCCESS;
97 w_ints->push_back(10);
99 w_ints->push_back(*r_int);
102 for (
int i = 0,
imax = w_ints->size();
110 #ifdef TRY_COMPILATION_ERRORS
111 r_ints->push_back(666);
116 ATH_MSG_INFO(
"temporary r-handle[ints] - size: " << ints->size());
121 std::vector<int>
save = *w_ints;
122 *w_ints = std::vector<int>();
123 ATH_MSG_INFO(
"temporary r-handle[ints] - size: " << ints->size());
125 ATH_MSG_INFO(
"data mbr r-handle[ints] - size: " << r_ints->size());
127 ATH_MSG_INFO(
"data mbr w-handle[ints] - size: " << w_ints->size());
131 ATH_MSG_INFO(
"temporary r-handle[ints] - size: " << ints->size());
133 ATH_MSG_INFO(
"data mbr r-handle[ints] - size: " << r_ints->size());
135 ATH_MSG_INFO(
"data mbr w-handle[ints] - size: " << w_ints->size());
145 ATH_MSG_ERROR(
"should NOT be valid ! [line " << __LINE__ <<
"]" );
146 return StatusCode::FAILURE;
154 ATH_MSG_ERROR(
"should NOT be valid ! [line " << __LINE__ <<
"]" );
155 return StatusCode::FAILURE;
163 ATH_MSG_ERROR(
"should NOT be valid ! [line " << __LINE__ <<
"]" );
164 return StatusCode::FAILURE;
177 return StatusCode::FAILURE;
182 ATH_MSG_ERROR(
"UpdateHandle<int>@[" << r_int.
name() <<
"] should not be allowed to refer to a const value !");
183 return StatusCode::FAILURE;
195 ATH_MSG_ERROR(
"should NOT be valid ! [line " << __LINE__ <<
"]" );
196 return StatusCode::FAILURE;
201 ATH_MSG_ERROR(
"should NOT be valid ! [line " << __LINE__ <<
"]" );
202 return StatusCode::FAILURE;
209 ATH_MSG_ERROR(
"should NOT be valid ! [line " << __LINE__ <<
"]" );
210 return StatusCode::FAILURE;
221 ATH_MSG_ERROR(
"should NOT be valid ! [line " << __LINE__ <<
"]" );
222 return StatusCode::FAILURE;
227 ATH_MSG_ERROR(
"should NOT be valid ! [line " << __LINE__ <<
"]" );
228 return StatusCode::FAILURE;
235 ATH_MSG_ERROR(
"should NOT be valid ! [line " << __LINE__ <<
"]" );
236 return StatusCode::FAILURE;
239 return StatusCode::SUCCESS;
const_pointer_type cptr()
Dereference the pointer.
const std::string & name() const
Return the StoreGate ID for the referenced object.
CLID clid() const
Return the class ID for the referenced object.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
StatusCode setConst()
Set the 'const' bit for the bound proxy in the store.
An algorithm that can be simultaneously executed in multiple threads.
def save(self, fileName="./columbo.out")
::StatusCode StatusCode
StatusCode definition for legacy code.
pointer_type ptr()
Dereference the pointer.
std::string store() const
Return the name of the store holding the object we are proxying.
virtual StatusCode initialize() override
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
virtual StatusCode finalize() override
virtual bool isValid() override final
Can the handle be successfully dereferenced?
virtual ~DFlowAlg3()
Destructor:
virtual bool isValid() override final
Can the handle be successfully dereferenced?
SG::ReadHandleKey< int > m_r_int
const_pointer_type ptr()
Dereference the pointer.
Handle class for modifying an existing object in StoreGate.
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
bool isConst() const
True if this handle has a proxy, and the proxy is const.
Handle class for reading from StoreGate.
virtual StatusCode execute(const EventContext &ctx) const override
SG::ReadHandleKey< std::vector< int > > m_r_ints
SG::WriteHandleKey< std::vector< int > > m_w_ints