Definition at line 33 of file RAttrMap.hxx.
Classes | |
class | BoolValue_t |
class | DoubleValue_t |
class | IntValue_t |
class | NoValue_t |
class | StringValue_t |
class | Value_t |
Public Types | |
enum | EValuesKind { kNoValue , kBool , kInt , kDouble , kString } |
Public Member Functions | |
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) |
Private Member Functions | |
void | AddBestMatch (const std::string &name, const std::string &value) |
Add attribute, converting to best possible type Tested boolean, int, double. | |
Private Attributes | |
std::unordered_map< std::string, std::unique_ptr< Value_t > > | m |
JSON_object. | |
Friends | |
class | RAttrBase |
class | RStyle |
#include <ROOT/RAttrMap.hxx>
Enumerator | |
---|---|
kNoValue | |
kBool | |
kInt | |
kDouble | |
kString |
Definition at line 40 of file RAttrMap.hxx.
|
default |
JSON_asbase - store as map object.
Definition at line 172 of file RAttrMap.hxx.
|
inline |
Definition at line 141 of file RAttrMap.hxx.
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.
Definition at line 143 of file RAttrMap.hxx.
|
inline |
Definition at line 155 of file RAttrMap.hxx.
Add defaults values form sub attribute.
Definition at line 49 of file RAttrMap.cxx.
|
inline |
Definition at line 145 of file RAttrMap.hxx.
Definition at line 144 of file RAttrMap.hxx.
Definition at line 142 of file RAttrMap.hxx.
|
inline |
Definition at line 147 of file RAttrMap.hxx.
|
inline |
Definition at line 146 of file RAttrMap.hxx.
Definition at line 165 of file RAttrMap.hxx.
|
inline |
Definition at line 170 of file RAttrMap.hxx.
|
inline |
Definition at line 169 of file RAttrMap.hxx.
|
inline |
Definition at line 168 of file RAttrMap.hxx.
Definition at line 167 of file RAttrMap.hxx.
Definition at line 166 of file RAttrMap.hxx.
|
inline |
Definition at line 202 of file RAttrMap.hxx.
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.
|
inline |
Clear specified attribute.
Definition at line 193 of file RAttrMap.hxx.
|
inline |
Definition at line 203 of file RAttrMap.hxx.
Definition at line 186 of file RAttrMap.hxx.
Definition at line 178 of file RAttrMap.hxx.
Definition at line 35 of file RAttrMap.hxx.
Definition at line 36 of file RAttrMap.hxx.
|
private |
JSON_object.
Definition at line 133 of file RAttrMap.hxx.