Logo ROOT   6.12/07
Reference Guide
List of all members | Public Member Functions | Private Attributes | List of all members
ROOT::Experimental::TDrawingOptsBaseNoDefault::OptsAttrRefArr< PRIMITIVE > Class Template Reference

template<class PRIMITIVE>
class ROOT::Experimental::TDrawingOptsBaseNoDefault::OptsAttrRefArr< PRIMITIVE >

Definition at line 56 of file TDrawingOptsBase.hxx.

Public Member Functions

 ~OptsAttrRefArr ()
 
const PRIMITIVE & Get (TCanvas &canv, TDrawingAttrRef< PRIMITIVE > idx) const
 Access to attribute (const version). More...
 
PRIMITIVE & Get (TCanvas &canv, TDrawingAttrRef< PRIMITIVE > idx)
 Access to attribute (non-const version). More...
 
TDrawingAttrRef< PRIMITIVE > Register (TCanvas &canv, const PRIMITIVE &val)
 Register an attribute. More...
 
void RegisterCopy (TCanvas &canv)
 Once copied, elements of a OptsAttrRefArr need to increase their use count. More...
 
void Release (TCanvas &canv)
 Clear all attribute references, removing their uses in TCanvas. More...
 
TDrawingAttrRef< PRIMITIVE > SameAs (TCanvas &canv, TDrawingAttrRef< PRIMITIVE > idx)
 Re-use an existing attribute. More...
 
TDrawingAttrRef< PRIMITIVE > SameAs (TCanvas &canv, const PRIMITIVE &val)
 Re-use an existing attribute. More...
 
void Update (TCanvas &canv, TDrawingAttrRef< PRIMITIVE > idx, const PRIMITIVE &val)
 Update the attribute at index idx to the value val. More...
 

Private Attributes

std::vector< TDrawingAttrRef< PRIMITIVE > > fRefArray
 Indexes of the TCanvas's attribute table entries used by the options object. More...
 

#include <ROOT/TDrawingOptsBase.hxx>

Constructor & Destructor Documentation

◆ ~OptsAttrRefArr()

template<class PRIMITIVE >
TDrawingOptsBaseNoDefault::OptsAttrRefArr::~OptsAttrRefArr ( )

Definition at line 241 of file TDrawingAttrs.cxx.

Member Function Documentation

◆ Get() [1/2]

template<class PRIMITIVE>
const PRIMITIVE & TDrawingOptsBaseNoDefault::OptsAttrRefArr::Get ( TCanvas canv,
TDrawingAttrRef< PRIMITIVE >  idx 
) const

Access to attribute (const version).

Definition at line 229 of file TDrawingAttrs.cxx.

◆ Get() [2/2]

template<class PRIMITIVE>
PRIMITIVE & TDrawingOptsBaseNoDefault::OptsAttrRefArr::Get ( TCanvas canv,
TDrawingAttrRef< PRIMITIVE >  idx 
)

Access to attribute (non-const version).

Definition at line 235 of file TDrawingAttrs.cxx.

◆ Register()

template<class PRIMITIVE>
TDrawingAttrRef< PRIMITIVE > TDrawingOptsBaseNoDefault::OptsAttrRefArr::Register ( TCanvas canv,
const PRIMITIVE &  val 
)

Register an attribute.

Returns
the index of the new attribute.

Definition at line 185 of file TDrawingAttrs.cxx.

◆ RegisterCopy()

template<class PRIMITIVE >
void TDrawingOptsBaseNoDefault::OptsAttrRefArr::RegisterCopy ( TCanvas canv)

Once copied, elements of a OptsAttrRefArr need to increase their use count.

Definition at line 222 of file TDrawingAttrs.cxx.

◆ Release()

template<class PRIMITIVE >
void TDrawingOptsBaseNoDefault::OptsAttrRefArr::Release ( TCanvas canv)

Clear all attribute references, removing their uses in TCanvas.

Definition at line 214 of file TDrawingAttrs.cxx.

◆ SameAs() [1/2]

template<class PRIMITIVE>
TDrawingAttrRef< PRIMITIVE > TDrawingOptsBaseNoDefault::OptsAttrRefArr::SameAs ( TCanvas canv,
TDrawingAttrRef< PRIMITIVE >  idx 
)

Re-use an existing attribute.

Returns
the index of the attribute (i.e. valRef).

Definition at line 193 of file TDrawingAttrs.cxx.

◆ SameAs() [2/2]

template<class PRIMITIVE>
TDrawingAttrRef< PRIMITIVE > TDrawingOptsBaseNoDefault::OptsAttrRefArr::SameAs ( TCanvas canv,
const PRIMITIVE &  val 
)

Re-use an existing attribute.

Returns
the index of the attribute, might be IsInvalid() if val could not be found.

Definition at line 201 of file TDrawingAttrs.cxx.

◆ Update()

template<class PRIMITIVE>
void TDrawingOptsBaseNoDefault::OptsAttrRefArr::Update ( TCanvas canv,
TDrawingAttrRef< PRIMITIVE >  idx,
const PRIMITIVE &  val 
)

Update the attribute at index idx to the value val.

Definition at line 207 of file TDrawingAttrs.cxx.

Member Data Documentation

◆ fRefArray

template<class PRIMITIVE>
std::vector<TDrawingAttrRef<PRIMITIVE> > ROOT::Experimental::TDrawingOptsBaseNoDefault::OptsAttrRefArr< PRIMITIVE >::fRefArray
private

Indexes of the TCanvas's attribute table entries used by the options object.

Definition at line 58 of file TDrawingOptsBase.hxx.

Libraries for ROOT::Experimental::TDrawingOptsBaseNoDefault::OptsAttrRefArr< PRIMITIVE >:
[legend]

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