Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::Experimental::RAttrAggregation Class Reference

Base class for attributes aggregations like lines or fill attributes.

Author
Sergey Linev s.lin.nosp@m.ev@g.nosp@m.si.de
Date
2021-06-18
Warning
This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback is welcome!

Definition at line 26 of file RAttrAggregation.hxx.

Public Member Functions

 RAttrAggregation ()=default
 
 RAttrAggregation (const RAttrAggregation &src)
 
 RAttrAggregation (RAttrBase *parent, const char *prefix=nullptr)
 
 RAttrAggregation (RDrawable *drawable, const char *prefix=nullptr)
 
void Clear () override
 Clear all respective values from drawable. Only defaults can be used.
 
RAttrAggregationoperator= (const RAttrAggregation &src)
 
- Public Member Functions inherited from ROOT::Experimental::RAttrBase
 RAttrBase ()=default
 
virtual ~RAttrBase ()
 

Protected Member Functions

RAttrMap CollectDefaults () const override
 Collect all attributes in derived class Works only if such class has dictionary.
 
void CopyTo (RAttrAggregation &tgt, bool use_style=true) const
 Copy attributes into target object.
 
bool CopyValue (const std::string &name, const RAttrMap::Value_t &value, bool check_type=true)
 Copy attributes from other object.
 
virtual const RAttrMapGetDefaults () const
 Return default values for attributes, empty for base class.
 
bool IsAggregation () const final
 
bool IsSame (const RAttrAggregation &src, bool use_style=true) const
 Check if all values which are evaluated in this object are exactly the same as in tgt object.
 
bool IsValueEqual (const std::string &name, const RAttrMap::Value_t &value, bool use_style=false) const
 Check if provided value equal to attribute in the map.
 
- 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.
 
RDrawableGetDrawable () const
 
RAttrMapGetOwnAttr () const
 
RAttrBaseGetParent () const
 
const char * GetPrefix () const
 
void MoveTo (RAttrBase &tgt)
 Move all fields into target object.
 
void SetNoValue (const std::string &name)
 Set <NoValue> for attribute.
 

Friends

bool operator!= (const RAttrAggregation &lhs, const RAttrAggregation &rhs)
 
bool operator== (const RAttrAggregation &lhs, const RAttrAggregation &rhs)
 

#include <ROOT/RAttrAggregation.hxx>

Inheritance diagram for ROOT::Experimental::RAttrAggregation:
[legend]

Constructor & Destructor Documentation

◆ RAttrAggregation() [1/4]

ROOT::Experimental::RAttrAggregation::RAttrAggregation ( )
default

◆ RAttrAggregation() [2/4]

ROOT::Experimental::RAttrAggregation::RAttrAggregation ( const RAttrAggregation src)
inline

Definition at line 46 of file RAttrAggregation.hxx.

◆ RAttrAggregation() [3/4]

ROOT::Experimental::RAttrAggregation::RAttrAggregation ( RDrawable drawable,
const char *  prefix = nullptr 
)
inline

Definition at line 48 of file RAttrAggregation.hxx.

◆ RAttrAggregation() [4/4]

ROOT::Experimental::RAttrAggregation::RAttrAggregation ( RAttrBase parent,
const char *  prefix = nullptr 
)
inline

Definition at line 49 of file RAttrAggregation.hxx.

Member Function Documentation

◆ Clear()

void RAttrAggregation::Clear ( )
overridevirtual

Clear all respective values from drawable. Only defaults can be used.

Implements ROOT::Experimental::RAttrBase.

Definition at line 118 of file RAttrAggregation.cxx.

◆ CollectDefaults()

RAttrMap RAttrAggregation::CollectDefaults ( ) const
overrideprotectedvirtual

Collect all attributes in derived class Works only if such class has dictionary.

In special cases one has to provide special implementation directly

Implements ROOT::Experimental::RAttrBase.

Definition at line 37 of file RAttrAggregation.cxx.

◆ CopyTo()

void RAttrAggregation::CopyTo ( RAttrAggregation tgt,
bool  use_style = true 
) const
protected

Copy attributes into target object.

Definition at line 60 of file RAttrAggregation.cxx.

◆ CopyValue()

bool RAttrAggregation::CopyValue ( const std::string &  name,
const RAttrMap::Value_t value,
bool  check_type = true 
)
protected

Copy attributes from other object.

Definition at line 71 of file RAttrAggregation.cxx.

◆ GetDefaults()

◆ IsAggregation()

bool ROOT::Experimental::RAttrAggregation::IsAggregation ( ) const
inlinefinalprotectedvirtual

Reimplemented from ROOT::Experimental::RAttrBase.

Definition at line 33 of file RAttrAggregation.hxx.

◆ IsSame()

bool RAttrAggregation::IsSame ( const RAttrAggregation src,
bool  use_style = true 
) const
protected

Check if all values which are evaluated in this object are exactly the same as in tgt object.

Definition at line 103 of file RAttrAggregation.cxx.

◆ IsValueEqual()

bool RAttrAggregation::IsValueEqual ( const std::string &  name,
const RAttrMap::Value_t value,
bool  use_style = false 
) const
protected

Check if provided value equal to attribute in the map.

Definition at line 91 of file RAttrAggregation.cxx.

◆ operator=()

RAttrAggregation & ROOT::Experimental::RAttrAggregation::operator= ( const RAttrAggregation src)
inline

Definition at line 51 of file RAttrAggregation.hxx.

Friends And Related Symbol Documentation

◆ operator!=

bool operator!= ( const RAttrAggregation lhs,
const RAttrAggregation rhs 
)
friend

Definition at line 61 of file RAttrAggregation.hxx.

◆ operator==

bool operator== ( const RAttrAggregation lhs,
const RAttrAggregation rhs 
)
friend

Definition at line 60 of file RAttrAggregation.hxx.

Libraries for ROOT::Experimental::RAttrAggregation:

The documentation for this class was generated from the following files: