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) |
Protected Member Functions | |
| 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. | |
| RAttrMap | CollectDefaults () const override |
| 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 | |
Private Types | |
| enum | { kDrawable , kParent , kOwnAttr } |
Private Member Functions | |
| void | ClearData () |
| Clear internal data. | |
| RAttrMap * | CreateOwnAttr () |
| Creates own attribute - only if no drawable and no parent are assigned. | |
Private Attributes | |
| const char * | fPrefix {nullptr} |
| ! name prefix for all attributes values | |
| enum ROOT::Experimental::RAttrBase:: { ... } | kDrawable |
| ! kind of data | |
| union { | |
| RDrawable * drawable | |
| RAttrMap * ownattr | |
| RAttrBase * parent | |
| } | nullptr |
| ! data | |
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>
|
privateinherited |
| Enumerator | |
|---|---|
| kDrawable | |
| kParent | |
| kOwnAttr | |
Definition at line 37 of file RAttrBase.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.
|
inlineprotectedinherited |
Find attributes container and full-qualified name for value.
Definition at line 70 of file RAttrBase.hxx.
|
inlineprotectedinherited |
Search value with given name in attributes.
Definition at line 95 of file RAttrBase.hxx.
|
inlineoverridevirtual |
Implements ROOT::Experimental::RAttrBase.
Definition at line 85 of file RAttrValue.hxx.
|
privateinherited |
Clear internal data.
Definition at line 26 of file RAttrBase.cxx.
|
protectedinherited |
Clear value if any with specified name.
Definition at line 54 of file RAttrBase.cxx.
|
inlineoverrideprotectedvirtual |
Implements ROOT::Experimental::RAttrBase.
Definition at line 47 of file RAttrValue.hxx.
|
privateinherited |
Creates own attribute - only if no drawable and no parent are assigned.
Definition at line 37 of file RAttrBase.cxx.
|
inlineprotectedinherited |
Ensure attribute with give name exists - creates container for attributes if required.
Definition at line 112 of file RAttrBase.hxx.
|
inline |
Definition at line 76 of file RAttrValue.hxx.
|
inline |
Definition at line 68 of file RAttrValue.hxx.
|
inlineprotectedinherited |
Definition at line 52 of file RAttrBase.hxx.
|
inline |
Definition at line 83 of file RAttrValue.hxx.
|
inlineprotectedinherited |
Definition at line 54 of file RAttrBase.hxx.
|
inlineprotectedinherited |
Definition at line 53 of file RAttrBase.hxx.
|
inlineprotectedinherited |
Definition at line 153 of file RAttrBase.hxx.
|
inline |
Definition at line 87 of file RAttrValue.hxx.
|
inlineprotectedvirtualinherited |
Reimplemented in ROOT::Experimental::RAttrAggregation.
Definition at line 58 of file RAttrBase.hxx.
|
protectedinherited |
Move all fields into target object.
Definition at line 73 of file RAttrBase.cxx.
|
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.
|
protectedinherited |
Set <NoValue> for attribute.
Ensure that value can not be configured via style - defaults will be used Equivalent to css syntax { attrname:; }
Definition at line 64 of file RAttrBase.cxx.
|
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.
|
inherited |
Definition at line 40 of file RAttrBase.hxx.
|
protected |
! default value
Definition at line 45 of file RAttrValue.hxx.
|
privateinherited |
! name prefix for all attributes values
Definition at line 45 of file RAttrBase.hxx.
| enum { ... } ROOT::Experimental::RAttrBase::kDrawable |
! kind of data
| union { ... } ROOT::Experimental::RAttrBase::nullptr |
! data
|
inherited |
Definition at line 42 of file RAttrBase.hxx.
|
inherited |
Definition at line 41 of file RAttrBase.hxx.