ATLAS Offline Software
|
VarHandleKeyProperty is the class which wraps a SG::VarHandleKey
.
More...
#include <VarHandleKeyProperty.h>
Inherits DataHandleProperty.
Inherited by Gaudi::Property< SG::ReadCondHandle< T > & >, Gaudi::Property< SG::ReadHandle< T > & >, Gaudi::Property< SG::UpdateHandle< T > & >, Gaudi::Property< SG::VarHandleBase & >, Gaudi::Property< SG::WriteCondHandle< T > & >, Gaudi::Property< SG::WriteHandle< T > & >, Gaudi::Property<::SG::ReadCondHandleKey< T > & >, Gaudi::Property<::SG::ReadDecorHandleKey< T > & >, Gaudi::Property<::SG::ReadHandleKey< T > & >, Gaudi::Property<::SG::UpdateHandleKey< T > & >, Gaudi::Property<::SG::VarHandleKey & >, Gaudi::Property<::SG::WriteCondHandleKey< T > & >, Gaudi::Property<::SG::WriteDecorHandleKey< T > & >, and Gaudi::Property<::SG::WriteHandleKey< T > & >.
Public Member Functions | |
VarHandleKeyProperty (const std::string &name, SG::VarHandleKey &ref) | |
Constructor with parameters. More... | |
VarHandleKeyProperty & | operator= (const SG::VarHandleKey &value) |
Assignment operator. More... | |
virtual VarHandleKeyProperty * | clone () const override |
Return a new copy of this Property object. More... | |
virtual bool | load (Gaudi::Details::PropertyBase &destination) const override |
Set the value of another Property. More... | |
virtual bool | assign (const Gaudi::Details::PropertyBase &source) override |
Set the value of this Property from another. More... | |
virtual std::string | toString () const override |
Return a string representation of the value object. More... | |
virtual void | toStream (std::ostream &out) const override |
Write a string representation of the value object to a stream. More... | |
virtual StatusCode | fromString (const std::string &s) override |
Set this value object from a string. More... | |
const SG::VarHandleKey & | value () const |
Return the value object for this Property. More... | |
bool | setValue (const SG::VarHandleKey &value) |
Set the value object for this Property. More... | |
Private Attributes | |
SG::VarHandleKey * | m_pValue |
Pointer to the real property. More... | |
VarHandleKeyProperty is the class which wraps a SG::VarHandleKey
.
The Property object refers to an instance of SG::VarHandleKey
(the value object) and provides generic methods for manipulating it.
Definition at line 78 of file VarHandleKeyProperty.h.
SG::VarHandleKeyProperty::VarHandleKeyProperty | ( | const std::string & | name, |
SG::VarHandleKey & | ref | ||
) |
Constructor with parameters.
name | Name of the property. |
ref | Object which this property is setting (the value object). |
name | Name of the property. |
ref | Object which this property is setting. |
Definition at line 80 of file VarHandleKeyProperty.cxx.
|
overridevirtual |
Set the value of this Property from another.
destination | The Property from which the value should be copied. |
The value object of this source
is copied to that of this Property by converting to a string and back again. Returns true on success, false on failure.
Definition at line 139 of file VarHandleKeyProperty.cxx.
|
overridevirtual |
Return a new copy of this Property object.
The new object will be associated with the same value object as the original.
Definition at line 109 of file VarHandleKeyProperty.cxx.
|
overridevirtual |
Set this value object from a string.
s | String from which to initialize the value. |
Returns failure if the conversion does not succeed.
Definition at line 177 of file VarHandleKeyProperty.cxx.
|
overridevirtual |
Set the value of another Property.
destination | The Property whose value is changed. |
The value object of this Property is copied to that of destination
by converting to a string and back again. Returns true on success, false on failure.
Definition at line 124 of file VarHandleKeyProperty.cxx.
VarHandleKeyProperty & SG::VarHandleKeyProperty::operator= | ( | const SG::VarHandleKey & | value | ) |
Assignment operator.
value | Value from which to assign. |
Copy the value object which we control from another value object.
Definition at line 95 of file VarHandleKeyProperty.cxx.
bool SG::VarHandleKeyProperty::setValue | ( | const SG::VarHandleKey & | value | ) |
|
overridevirtual |
Write a string representation of the value object to a stream.
out | Stream to which to write. |
Definition at line 163 of file VarHandleKeyProperty.cxx.
|
overridevirtual |
Return a string representation of the value object.
Definition at line 149 of file VarHandleKeyProperty.cxx.
const SG::VarHandleKey & SG::VarHandleKeyProperty::value | ( | ) | const |
Return the value object for this Property.
Definition at line 192 of file VarHandleKeyProperty.cxx.
|
private |
Pointer to the real property.
Reference would be better, but Reflex does not support references yet
Definition at line 171 of file VarHandleKeyProperty.h.