Logo ROOT  
Reference Guide
RAttrBase.hxx File Reference
#include <ROOT/RAttrMap.hxx>
#include <ROOT/RStyle.hxx>
#include <ROOT/RDrawable.hxx>
Include dependency graph for RAttrBase.hxx:
This graph shows which files directly or indirectly include this file:

Classes

class  ROOT::Experimental::RAttrBase
 Base class for all attributes, used with RDrawable. More...
 
struct  ROOT::Experimental::RAttrBase::Rec_t
 
struct  ROOT::Experimental::RAttrBase::Val_t
 

Namespaces

namespace  ROOT
 VSD Structures.
 
namespace  ROOT::Experimental
 

Macros

#define R__ATTR_CLASS(ClassName, dflt_prefix, dflt_values)
 

Macro Definition Documentation

◆ R__ATTR_CLASS

#define R__ATTR_CLASS (   ClassName,
  dflt_prefix,
  dflt_values 
)
Value:
protected: \
const RAttrMap &GetDefaults() const override \
{ \
static auto dflts = RAttrMap().dflt_values; \
return dflts; \
} \
public: \
ClassName() = default; \
ClassName(RDrawable *drawable, const std::string &prefix = dflt_prefix) { AssignDrawable(drawable, prefix); } \
ClassName(RAttrBase *parent, const std::string &prefix = dflt_prefix) { AssignParent(parent, prefix); } \
ClassName(const ClassName &src) : ClassName() { src.CopyTo(*this); } \
ClassName(ClassName &&src) = default; \
ClassName &operator=(ClassName &&src) = default; \
ClassName &operator=(const ClassName &src) \
{ \
Clear(); \
src.CopyTo(*this); \
return *this; \
}
Binding & operator=(OUT(*fun)(void))
const std::string ClassName(PyObject *pyobj)
Retrieve the class name from the given python object (which may be just an instance of the class).
Definition: Utility.cxx:725

Definition at line 182 of file RAttrBase.hxx.