Base class for all attributes, used with RDrawable.
Definition at line 27 of file RAttrBase.hxx.
Classes | |
| struct | Rec_t | 
| struct | Val_t | 
Public Member Functions | |
| RAttrBase ()=default | |
| virtual | ~RAttrBase ()=default | 
Protected Member Functions | |
| RAttrBase (const RAttrBase &src) | |
| RAttrBase (RAttrBase *parent, const std::string &prefix) | |
| RAttrBase (RDrawable *drawable, const std::string &prefix) | |
| const Rec_t | AccessAttr (const std::string &name) const | 
| Find attributes container and full-qualified name for value.  More... | |
| const Val_t | AccessValue (const std::string &name, bool use_style=true) const | 
| void | AssignDrawable (RDrawable *drawable, const std::string &prefix) | 
| Return value from attributes container - no style or defaults are used.  More... | |
| void | AssignParent (RAttrBase *parent, const std::string &prefix) | 
| void | Clear () | 
| Clear all respective values from drawable.  More... | |
| void | ClearValue (const std::string &name) | 
| void | CopyTo (RAttrBase &tgt, bool use_style=true) const | 
| Copy attributes into target object.  More... | |
| bool | CopyValue (const std::string &name, const RAttrMap::Value_t &value, bool check_type=true) | 
| Copy attributes from other object.  More... | |
| Rec_t | EnsureAttr (const std::string &name) | 
| Ensure attribute with give name exists - creates container for attributes if required.  More... | |
| template<typename RET_TYPE , typename MATCH_TYPE = void> | |
| auto | Eval (const std::string &name, bool use_dflts=true) const | 
| Evaluate attribute value.  More... | |
| virtual const RAttrMap & | GetDefaults () const | 
| Return default values for attributes, empty for base class.  More... | |
| const std::string & | GetPrefix () const | 
| template<typename T > | |
| T | GetValue (const std::string &name) const | 
| template<typename T = void> | |
| bool | HasValue (const std::string &name, bool check_defaults=false) const | 
| bool | IsSame (const RAttrBase &src, bool use_style=true) const | 
| Check if all values which are evaluated in this object are exactly the same as in tgt object.  More... | |
| bool | IsValueEqual (const std::string &name, const RAttrMap::Value_t &value, bool use_style=false) const | 
| Copy attributes into target object.  More... | |
| RAttrBase & | operator= (const RAttrBase &src) | 
| void | SetValue (const std::string &name, bool value) | 
| void | SetValue (const std::string &name, const std::string &value) | 
| void | SetValue (const std::string &name, double value) | 
| void | SetValue (const std::string &name, int value) | 
Private Attributes | |
| RDrawable * | fDrawable {nullptr} | 
| ! drawable used to store attributes  More... | |
| std::unique_ptr< RAttrMap > | fOwnAttr | 
| ! own instance when deep copy is created  More... | |
| RAttrBase * | fParent {nullptr} | 
| ! parent attributes, prefix applied to it  More... | |
| std::string | fPrefix | 
| ! name prefix for all attributes values  More... | |
Friends | |
| bool | operator!= (const RAttrBase &lhs, const RAttrBase &rhs) | 
| bool | operator== (const RAttrBase &lhs, const RAttrBase &rhs) | 
| class | RAttrMap | 
#include <ROOT/RAttrBase.hxx>
      
  | 
  inlineprotected | 
Definition at line 133 of file RAttrBase.hxx.
      
  | 
  inlineprotected | 
Definition at line 135 of file RAttrBase.hxx.
      
  | 
  inlineprotected | 
Definition at line 137 of file RAttrBase.hxx.
      
  | 
  default | 
      
  | 
  virtualdefault | 
      
  | 
  inlineprotected | 
Find attributes container and full-qualified name for value.
Definition at line 58 of file RAttrBase.hxx.
      
  | 
  inlineprotected | 
Definition at line 79 of file RAttrBase.hxx.
      
  | 
  protected | 
Return value from attributes container - no style or defaults are used.
Definition at line 79 of file RAttrBase.cxx.
      
  | 
  protected | 
Definition at line 87 of file RAttrBase.cxx.
      
  | 
  protected | 
Clear all respective values from drawable.
Only defaults can be used
Definition at line 126 of file RAttrBase.cxx.
      
  | 
  protected | 
Definition at line 95 of file RAttrBase.cxx.
      
  | 
  protected | 
Copy attributes into target object.
Definition at line 56 of file RAttrBase.cxx.
      
  | 
  protected | 
Copy attributes from other object.
Definition at line 26 of file RAttrBase.cxx.
      
  | 
  inlineprotected | 
Ensure attribute with give name exists - creates container for attributes if required.
Definition at line 96 of file RAttrBase.hxx.
      
  | 
  inlineprotected | 
Evaluate attribute value.
Definition at line 116 of file RAttrBase.hxx.
      
  | 
  protectedvirtual | 
Return default values for attributes, empty for base class.
Definition at line 17 of file RAttrBase.cxx.
      
  | 
  inlineprotected | 
Definition at line 151 of file RAttrBase.hxx.
      
  | 
  inlineprotected | 
Definition at line 164 of file RAttrBase.hxx.
      
  | 
  inlineprotected | 
Definition at line 158 of file RAttrBase.hxx.
      
  | 
  protected | 
Check if all values which are evaluated in this object are exactly the same as in tgt object.
Definition at line 67 of file RAttrBase.cxx.
      
  | 
  protected | 
Copy attributes into target object.
Definition at line 45 of file RAttrBase.cxx.
Definition at line 139 of file RAttrBase.hxx.
      
  | 
  protected | 
Definition at line 101 of file RAttrBase.cxx.
      
  | 
  protected | 
Definition at line 119 of file RAttrBase.cxx.
      
  | 
  protected | 
Definition at line 113 of file RAttrBase.cxx.
      
  | 
  protected | 
Definition at line 107 of file RAttrBase.cxx.
Definition at line 175 of file RAttrBase.hxx.
Definition at line 174 of file RAttrBase.hxx.
      
  | 
  friend | 
Definition at line 29 of file RAttrBase.hxx.
      
  | 
  private | 
! drawable used to store attributes
Definition at line 31 of file RAttrBase.hxx.
      
  | 
  private | 
! own instance when deep copy is created
Definition at line 32 of file RAttrBase.hxx.
      
  | 
  private | 
! parent attributes, prefix applied to it
Definition at line 34 of file RAttrBase.hxx.
      
  | 
  private | 
! name prefix for all attributes values
Definition at line 33 of file RAttrBase.hxx.