- Authors
- Axel Naumann axel@.nosp@m.cern.nosp@m..ch Sergey Linev s.lin.nosp@m.ev@g.nosp@m.si.de
- Date
- 2017-09-26
- Warning
- This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback is welcome!
Definition at line 33 of file RAttrMap.hxx.
|
| RAttrMap ()=default |
| JSON_asbase - store as map object.
|
|
| RAttrMap (const RAttrMap &src) |
|
RAttrMap & | Add (const std::string &name, std::unique_ptr< Value_t > &&value) |
|
RAttrMap & | AddBool (const std::string &name, bool value) |
|
RAttrMap & | AddColor (const std::string &name, const RColor &value) |
|
RAttrMap & | AddDefaults (const RAttrBase &vis) |
| Add defaults values form sub attribute.
|
|
RAttrMap & | AddDouble (const std::string &name, double value) |
|
RAttrMap & | AddInt (const std::string &name, int value) |
|
RAttrMap & | AddNoValue (const std::string &name) |
|
RAttrMap & | AddPadLength (const std::string &name, const RPadLength &value) |
|
RAttrMap & | AddString (const std::string &name, const std::string &value) |
|
RAttrMap & | AddValue (const std::string &name, bool value) |
|
RAttrMap & | AddValue (const std::string &name, const RColor &value) |
|
RAttrMap & | AddValue (const std::string &name, const RPadLength &value) |
|
RAttrMap & | AddValue (const std::string &name, const std::string &value) |
|
RAttrMap & | AddValue (const std::string &name, double value) |
|
RAttrMap & | AddValue (const std::string &name, int value) |
|
auto | begin () const |
|
bool | Change (const std::string &name, Value_t *value=nullptr) |
| Change attribute using string value and kind Used to change attributes from JS side Returns true if value was really changed.
|
|
void | Clear (const std::string &name) |
| Clear specified attribute.
|
|
auto | end () const |
|
const Value_t * | Find (const std::string &name) const |
|
RAttrMap & | operator= (const RAttrMap &src) |
|
|
void | AddBestMatch (const std::string &name, const std::string &value) |
| Add attribute, converting to best possible type Tested boolean, int, double.
|
|
|
std::unordered_map< std::string, std::unique_ptr< Value_t > > | m |
| JSON_object.
|
|
#include <ROOT/RAttrMap.hxx>
◆ EValuesKind
Enumerator |
---|
kNoValue | |
kBool | |
kInt | |
kDouble | |
kString | |
Definition at line 40 of file RAttrMap.hxx.
◆ RAttrMap() [1/2]
ROOT::Experimental::RAttrMap::RAttrMap |
( |
| ) |
|
|
default |
JSON_asbase - store as map object.
◆ RAttrMap() [2/2]
ROOT::Experimental::RAttrMap::RAttrMap |
( |
const RAttrMap & |
src | ) |
|
|
inline |
◆ Add()
RAttrMap & ROOT::Experimental::RAttrMap::Add |
( |
const std::string & |
name, |
|
|
std::unique_ptr< Value_t > && |
value |
|
) |
| |
|
inline |
◆ AddBestMatch()
void RAttrMap::AddBestMatch |
( |
const std::string & |
name, |
|
|
const std::string & |
value |
|
) |
| |
|
private |
Add attribute, converting to best possible type Tested boolean, int, double.
If none works - store as a string
Definition at line 69 of file RAttrMap.cxx.
◆ AddBool()
RAttrMap & ROOT::Experimental::RAttrMap::AddBool |
( |
const std::string & |
name, |
|
|
bool |
value |
|
) |
| |
|
inline |
◆ AddColor()
RAttrMap & ROOT::Experimental::RAttrMap::AddColor |
( |
const std::string & |
name, |
|
|
const RColor & |
value |
|
) |
| |
|
inline |
◆ AddDefaults()
Add defaults values form sub attribute.
Definition at line 49 of file RAttrMap.cxx.
◆ AddDouble()
RAttrMap & ROOT::Experimental::RAttrMap::AddDouble |
( |
const std::string & |
name, |
|
|
double |
value |
|
) |
| |
|
inline |
◆ AddInt()
RAttrMap & ROOT::Experimental::RAttrMap::AddInt |
( |
const std::string & |
name, |
|
|
int |
value |
|
) |
| |
|
inline |
◆ AddNoValue()
RAttrMap & ROOT::Experimental::RAttrMap::AddNoValue |
( |
const std::string & |
name | ) |
|
|
inline |
◆ AddPadLength()
RAttrMap & ROOT::Experimental::RAttrMap::AddPadLength |
( |
const std::string & |
name, |
|
|
const RPadLength & |
value |
|
) |
| |
|
inline |
◆ AddString()
RAttrMap & ROOT::Experimental::RAttrMap::AddString |
( |
const std::string & |
name, |
|
|
const std::string & |
value |
|
) |
| |
|
inline |
◆ AddValue() [1/6]
RAttrMap & ROOT::Experimental::RAttrMap::AddValue |
( |
const std::string & |
name, |
|
|
bool |
value |
|
) |
| |
|
inline |
◆ AddValue() [2/6]
RAttrMap & ROOT::Experimental::RAttrMap::AddValue |
( |
const std::string & |
name, |
|
|
const RColor & |
value |
|
) |
| |
|
inline |
◆ AddValue() [3/6]
RAttrMap & ROOT::Experimental::RAttrMap::AddValue |
( |
const std::string & |
name, |
|
|
const RPadLength & |
value |
|
) |
| |
|
inline |
◆ AddValue() [4/6]
RAttrMap & ROOT::Experimental::RAttrMap::AddValue |
( |
const std::string & |
name, |
|
|
const std::string & |
value |
|
) |
| |
|
inline |
◆ AddValue() [5/6]
RAttrMap & ROOT::Experimental::RAttrMap::AddValue |
( |
const std::string & |
name, |
|
|
double |
value |
|
) |
| |
|
inline |
◆ AddValue() [6/6]
RAttrMap & ROOT::Experimental::RAttrMap::AddValue |
( |
const std::string & |
name, |
|
|
int |
value |
|
) |
| |
|
inline |
◆ begin()
auto ROOT::Experimental::RAttrMap::begin |
( |
| ) |
const |
|
inline |
◆ Change()
bool RAttrMap::Change |
( |
const std::string & |
name, |
|
|
Value_t * |
value = nullptr |
|
) |
| |
Change attribute using string value and kind Used to change attributes from JS side Returns true if value was really changed.
Definition at line 137 of file RAttrMap.cxx.
◆ Clear()
void ROOT::Experimental::RAttrMap::Clear |
( |
const std::string & |
name | ) |
|
|
inline |
◆ end()
auto ROOT::Experimental::RAttrMap::end |
( |
| ) |
const |
|
inline |
◆ Find()
const Value_t * ROOT::Experimental::RAttrMap::Find |
( |
const std::string & |
name | ) |
const |
|
inline |
◆ operator=()
◆ RAttrBase
◆ RStyle
std::unordered_map<std::string, std::unique_ptr<Value_t> > ROOT::Experimental::RAttrMap::m |
|
private |
The documentation for this class was generated from the following files: