|
evio
6.0
|
Class to facilitate use of Evio XML dictionary entry data as a key or value in a hash table. More...
#include <EvioDictionaryEntry.h>
Classes | |
| struct | Hash |
Public Types | |
| enum | EvioDictionaryEntryType { TAG_NUM = 0 , TAG_ONLY = 1 , TAG_RANGE = 2 } |
| Type of dictionary entry. More... | |
Public Member Functions | |
| EvioDictionaryEntry (uint16_t tag, uint8_t num, DataType const &type) | |
| Constructor. More... | |
| EvioDictionaryEntry (uint16_t tag, uint16_t tagEnd=0, DataType const &type=DataType::UNKNOWN32, std::string const &description="", std::string const &format="", std::shared_ptr< EvioDictionaryEntry > parent=nullptr) | |
| Constructor containing actual implementation. More... | |
| EvioDictionaryEntry (uint16_t tag, uint8_t num, uint16_t tagEnd=0, DataType const &type=DataType::UNKNOWN32, std::string const &description="", std::string const &format="", std::shared_ptr< EvioDictionaryEntry > parent=nullptr) | |
| Constructor containing actual implementation. More... | |
| bool | inRange (uint16_t tagArg) const |
| Is the given tag within the specified range (inclusive) of this dictionary entry? More... | |
| bool | inRange (EvioDictionaryEntry &entry) const |
| Is the given dictionary entry's tag within the specified range (inclusive) of this dictionary entry? More... | |
| bool | operator== (const EvioDictionaryEntry &other) const |
| Define equal operator. More... | |
| bool | operator!= (const EvioDictionaryEntry &rhs) const |
| Define not equal operator. More... | |
| uint16_t | getTag () const |
| Get the tag value. More... | |
| uint16_t | getTagEnd () const |
| Get the tagEnd value (upper end of a tag range). More... | |
| uint8_t | getNum () const |
| Get the num value. More... | |
| DataType | getType () const |
| Get the data's type. More... | |
| std::string | getFormat () const |
| Get the CompositeData's format. More... | |
| std::string | getDescription () const |
| Get the CompositeData's description. More... | |
| EvioDictionaryEntryType | getEntryType () const |
| Get this entry's type. More... | |
| std::shared_ptr< EvioDictionaryEntry > | getParentEntry () const |
| Get the parent container's dictionary entry. More... | |
| bool | isNumValid () const |
| Get if num is valid or not defined. More... | |
| std::string | toString () const |
| Get the string representation of this object. More... | |
Friends | |
| class | EvioXMLDictionary |
Class to facilitate use of Evio XML dictionary entry data as a key or value in a hash table.
(8/17/15).
|
inline |
Constructor.
| tag | tag value of evio container. |
| num | num value of evio container. |
| type | type of data in evio container which may be (case-independent): DataType#UNKNOWN32 ... DataType#COMPOSITE. |
|
inlineexplicit |
Constructor containing actual implementation.
Caller assumes responsibility of supplying correct arg values. If tag > tagEnd, these values are switched so tag < tagEnd. Num is ignored.
| tag | tag value or low end of a tag range of an evio container. |
| tagEnd | if > 0, this is the high end of a tag range. |
| type | type of data in evio container which may be: DataType#UNKNOWN32 ... DataType#COMPOSITE. |
| description | description of CompositeData |
| format | format of CompositeData |
| parent | parent dictionary entry object |
|
inlineexplicit |
Constructor containing actual implementation.
Caller assumes responsibility of supplying correct arg values. If tag > tagEnd, these values are switched so tag < tagEnd.
| tag | tag value or low end of a tag range of an evio container. |
| num | num value of evio container. |
| tagEnd | if > 0, this is the high end of a tag range. |
| type | type of data in evio container which may be: DataType#UNKNOWN32 ... DataType#COMPOSITE. |
| description | description of CompositeData |
| format | format of CompositeData |
| parent | parent dictionary entry object |
|
inline |
Get the CompositeData's description.
|
inline |
Get this entry's type.
|
inline |
Get the CompositeData's format.
|
inline |
Get the num value.
|
inline |
Get the parent container's dictionary entry.
Referenced by operator==().
|
inline |
Get the tag value.
This is the low end of a tag range if tagEnd > 0.
|
inline |
Get the tagEnd value (upper end of a tag range).
A value of 0 means there is no range.
|
inline |
Get the data's type.
|
inline |
Is the given dictionary entry's tag within the specified range (inclusive) of this dictionary entry?
| entry | dictionary entry to compare with range |
|
inline |
Is the given tag within the specified range (inclusive) of this dictionary entry?
| tagArg | tag to compare with range |
|
inline |
Get if num is valid or not defined.
|
inline |
Define not equal operator.
|
inline |
Define equal operator.
References getParentEntry().
|
inline |
Get the string representation of this object.
References TAG_NUM, TAG_ONLY, TAG_RANGE, and evio::DataType::toString().
|
friend |