9#ifndef ROOT7_RAttrValue
10#define ROOT7_RAttrValue
15namespace Experimental {
34 bool IsValue()
const override {
return true; }
53 T
Get()
const {
return GetValue<T>(
""); }
55 bool Has()
const {
return HasValue<T>(
""); }
59 operator T()
const {
return Get(); }
Base class for all attributes, used with RDrawable.
void ClearValue(const std::string &name)
Clear value if any with specified name.
void AssignDrawable(RDrawable *drawable, const std::string &prefix)
Return value from attributes container - no style or defaults are used.
void SetValue(const std::string &name, bool value)
Set boolean value.
void AssignParent(RAttrBase *parent, const std::string &prefix)
Assign parent object for this RAttrBase.
RAttrMap & AddValue(const std::string &name, bool value)
Template class to access single value from drawable or other attributes.
RAttrMap fDefaults
! map with default values
bool IsValue() const override
RAttrValue & operator=(const T &v)
RAttrValue(RDrawable *drawable, const std::string &name, const T &dflt=T())
const RAttrMap & GetDefaults() const override
Return default values for attributes, empty for base class.
RAttrValue(RAttrBase *parent, const std::string &name, const T &dflt=T())
Base class for drawable entities: objects that can be painted on a RPad.
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...