1 #ifndef __JROOT__JLINEATTRIBUTES__
2 #define __JROOT__JLINEATTRIBUTES__
16 namespace JPP {
using namespace JROOT; }
41 std::vector<TAttLine>(),
44 for (
int i = 1; i <= 10; ++i) {
45 push_back(TAttLine(kBlack, i, width));
70 for (iterator i = this->begin(); i != this->end(); ++i) {
71 i->SetLineWidth(width);
92 return !this->empty();
105 if (index < this->size()) {
125 return this->at(
index%this->size());
virtual void reset() override
Reset pointer.
Interface for object iteration with rewinding.
Auxiliary class to set line attributes.
const TAttLine & get(unsigned int index)
Get line attributes.
void setLineWidth(const Width_t width)
Set line width.
static JLineAttributes & getInstance()
Get reference to unique instance of this class object.
JRewindableObjectIterator< TAttLine >::pointer_type pointer_type
virtual bool hasNext() override
Check availability of next element.
virtual void rewind() override
Rewind index.
JLineAttributes(const Width_t width=2)
Constructor.
virtual const pointer_type & next() override
Get next element.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary classes and methods for ROOT I/O.