Template class to access single value from drawable or other attributes.
Definition at line 26 of file RAttrValue.hxx.
Classes | |
| struct | ValueExtractor |
| struct | ValueExtractor< Q, false > |
Public Member Functions | |
| RAttrValue () | |
| RAttrValue (const RAttrValue &src) | |
| RAttrValue (const T &dflt) | |
| RAttrValue (RAttrBase *parent, const char *name, const T &dflt=T()) | |
| RAttrValue (RDrawable *drawable, const char *name, const T &dflt=T()) | |
| void | Clear () override |
| T | Get () const |
| T | GetDefault () const |
| const char * | GetName () const |
| bool | Has () const |
| operator T () const | |
| RAttrValue & | operator= (const RAttrValue &v) |
| RAttrValue & | operator= (const T &v) |
| void | Set (const T &v) |
Public Member Functions inherited from ROOT::Experimental::RAttrBase | |
| RAttrBase ()=default | |
| virtual | ~RAttrBase () |
Protected Member Functions | |
| RAttrMap | CollectDefaults () const override |
Protected Member Functions inherited from ROOT::Experimental::RAttrBase | |
| RAttrBase (const char *prefix) | |
| RAttrBase (RAttrBase *parent, const char *prefix=nullptr) | |
| RAttrBase (RDrawable *drawable, const char *prefix=nullptr) | |
| const Rec_t | AccessAttr (const std::string &name) const |
| Find attributes container and full-qualified name for value. | |
| const Val_t | AccessValue (const std::string &name, bool use_style=true) const |
| Search value with given name in attributes. | |
| void | ClearValue (const std::string &name) |
| Clear value if any with specified name. | |
| Rec_t | EnsureAttr (const std::string &name) |
| Ensure attribute with give name exists - creates container for attributes if required. | |
| RDrawable * | GetDrawable () const |
| RAttrMap * | GetOwnAttr () const |
| RAttrBase * | GetParent () const |
| const char * | GetPrefix () const |
| virtual bool | IsAggregation () const |
| void | MoveTo (RAttrBase &tgt) |
| Move all fields into target object. | |
| void | SetNoValue (const std::string &name) |
Set <NoValue> for attribute. | |
Protected Attributes | |
| T | fDefault {} |
| ! default value | |
Friends | |
| bool | operator!= (const RAttrValue &lhs, const RAttrValue &rhs) |
| bool | operator!= (const RAttrValue &lhs, const T &rhs) |
| bool | operator== (const RAttrValue &lhs, const RAttrValue &rhs) |
| bool | operator== (const RAttrValue &lhs, const T &rhs) |
#include <ROOT/RAttrValue.hxx>
|
inline |
Definition at line 54 of file RAttrValue.hxx.
|
inline |
Definition at line 56 of file RAttrValue.hxx.
|
inline |
Definition at line 58 of file RAttrValue.hxx.
|
inline |
Definition at line 60 of file RAttrValue.hxx.
|
inline |
Definition at line 62 of file RAttrValue.hxx.
|
inlineoverridevirtual |
Implements ROOT::Experimental::RAttrBase.
Definition at line 85 of file RAttrValue.hxx.
|
inlineoverrideprotectedvirtual |
Implements ROOT::Experimental::RAttrBase.
Definition at line 47 of file RAttrValue.hxx.
|
inline |
Definition at line 76 of file RAttrValue.hxx.
|
inline |
Definition at line 68 of file RAttrValue.hxx.
|
inline |
Definition at line 83 of file RAttrValue.hxx.
|
inline |
Definition at line 87 of file RAttrValue.hxx.
|
inline |
Definition at line 101 of file RAttrValue.hxx.
|
inline |
Definition at line 99 of file RAttrValue.hxx.
|
inline |
Definition at line 97 of file RAttrValue.hxx.
|
inline |
Definition at line 70 of file RAttrValue.hxx.
|
friend |
Definition at line 104 of file RAttrValue.hxx.
|
friend |
Definition at line 107 of file RAttrValue.hxx.
|
friend |
Definition at line 103 of file RAttrValue.hxx.
|
friend |
Definition at line 106 of file RAttrValue.hxx.
|
protected |
! default value
Definition at line 45 of file RAttrValue.hxx.