libdballe 9.14
dballe::DBValue Struct Reference

Container for a wreport::Var pointer, and its database ID. More...

#include <value.h>

Inheritance diagram for dballe::DBValue:
dballe::Value

Public Member Functions

 DBValue (const DBValue &o)=default
 DBValue (DBValue &&o)=default
 DBValue (int data_id, const wreport::Var &var)
 Construct from a wreport::Var.
 DBValue (int data_id, std::unique_ptr< wreport::Var > &&var)
 Construct from a wreport::Var, taking ownership of it.
DBValue & operator= (const DBValue &)=default
DBValue & operator= (DBValue &&)=default
bool operator== (const DBValue &o) const
bool operator!= (const DBValue &o) const
void print (FILE *out) const
 Print the contents of this Value.
 Value ()=default
 Value (const Value &o)
 Value (Value &&o)
 Value (const wreport::Var &var)
 Construct from a wreport::Var.
 Value (std::unique_ptr< wreport::Var > &&var)
 Construct from a wreport::Var, taking ownership of it.
Public Member Functions inherited from dballe::Value
 Value (const Value &o)
 Value (Value &&o)
 Value (const wreport::Var &var)
 Construct from a wreport::Var.
 Value (std::unique_ptr< wreport::Var > &&var)
 Construct from a wreport::Var, taking ownership of it.
Value & operator= (const Value &o)
Value & operator= (Value &&o)
bool operator== (const Value &o) const
bool operator!= (const Value &o) const
const wreport::Varget () const
wreport::Varget ()
const wreport::Varoperator-> () const
wreport::Varoperator-> ()
const wreport::Varoperator* () const
wreport::Varoperator* ()
wreport::Varcode code () const
 Return the varcode of the variable, or 0 if no variable has been set.
void reset (const wreport::Var &var)
 Fill from a wreport::Var.
void reset (std::unique_ptr< wreport::Var > &&var)
 Fill from a wreport::Var, taking ownership of it.
std::unique_ptr< wreport::Varrelease ()
 Return the Var pointer, setting the Value to undefined.
void print (FILE *out) const
 Print the contents of this Value.

Public Attributes

int data_id = MISSING_INT
 Database ID of the value.

Additional Inherited Members

Protected Attributes inherited from dballe::Value
wreport::Varm_var = nullptr

Detailed Description

Container for a wreport::Var pointer, and its database ID.


The documentation for this struct was generated from the following file: