Belle II Software development
|
Public Types | |
enum | Type { NONE = 0 , INT , FLOAT , TEXT } |
Public Member Functions | |
NSMVar (const std::string &name, Type type, int len, const void *value) | |
NSMVar (const std::string &name, const std::string &value) | |
NSMVar (const std::string &name, int value) | |
NSMVar (const std::string &name, float value) | |
NSMVar (const std::string &name, int len, int *value) | |
NSMVar (const std::string &name, int len, float *value) | |
NSMVar (const std::string &name, const std::vector< int > &value) | |
NSMVar (const std::string &name, const std::vector< float > &value) | |
NSMVar (const std::string &name) | |
NSMVar (const NSMVar &var) | |
const NSMVar & | operator= (const NSMVar &var) |
const NSMVar & | operator= (int val) |
const NSMVar & | operator= (float val) |
const NSMVar & | operator= (const std::string &val) |
const NSMVar & | operator= (const std::vector< int > &val) |
const NSMVar & | operator= (const std::vector< float > &val) |
const NSMVar & | operator>> (int &val) const |
const NSMVar & | operator>> (float &val) const |
const NSMVar & | operator>> (std::string &val) const |
const NSMVar & | operator>> (std::vector< int > &val) const |
const NSMVar & | operator>> (std::vector< float > &val) const |
void | setNode (const std::string &node) |
void | setName (const std::string &name) |
const void * | get () const |
void * | get () |
int | size () const |
const std::string & | getNode () const |
const std::string & | getName () const |
Type | getType () const |
const char * | getTypeLabel () const |
int | getLength () const |
int | getInt () const |
float | getFloat () const |
const char * | getText () const |
int | getInt (int i) const |
float | getFloat (int i) const |
int | getId () const |
void | setId (int id) |
void | setDate (int date) |
void | setDate (const Date &date) |
int | getDate () const |
void | readObject (Reader &) override |
void | writeObject (Writer &) const override |
void | copy (const std::string &name, Type type, int len, const void *value, int id=0, int date=0) |
Static Public Attributes | |
static const NSMVar | NOVALUE |
Private Attributes | |
void * | m_value |
std::string | m_node |
std::string | m_name |
Type | m_type |
int | m_len |
int | m_id |
int | m_date |
enum Type |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
NSMVar | ( | const std::string & | name, |
const std::vector< int > & | value | ||
) |
NSMVar | ( | const std::string & | name, |
const std::vector< float > & | value | ||
) |
Definition at line 32 of file NSMVar.cc.
|
inline |
void copy | ( | const std::string & | name, |
Type | type, | ||
int | len, | ||
const void * | value, | ||
int | id = 0 , |
||
int | date = 0 |
||
) |
Definition at line 100 of file NSMVar.cc.
float getFloat | ( | ) | const |
float getFloat | ( | int | i | ) | const |
int getInt | ( | ) | const |
int getInt | ( | int | i | ) | const |
|
inline |
|
inline |
const char * getText | ( | ) | const |
const char * getTypeLabel | ( | ) | const |
|
inline |
const NSMVar & operator= | ( | const std::vector< float > & | val | ) |
const NSMVar & operator= | ( | const std::vector< int > & | val | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
const NSMVar & operator>> | ( | std::vector< float > & | val | ) | const |
const NSMVar & operator>> | ( | std::vector< int > & | val | ) | const |
|
overridevirtual |
Implements Serializable.
Definition at line 127 of file NSMVar.cc.
|
inline |
|
inline |
|
inline |
int size | ( | ) | const |
|
overridevirtual |
Implements Serializable.
Definition at line 166 of file NSMVar.cc.