DiaDes
0.1
DIAgnosis of Discrete-Event System
|
#include <Value.hh>
Public Types | |
typedef Diades::Utils::Exception< Value > | Exception |
typedef std::reference_wrapper< Value const > | ConstReference |
typedef std::reference_wrapper< Value > | Reference |
typedef std::vector< ConstReference > | ValueVector |
typedef Value * | Pointer |
Public Member Functions | |
~Value () | |
bool | isNull () const |
unsigned | id () const |
const std::string & | label () const |
bool | operator== (const Value &val) const |
bool | operator!= (const Value &val) const |
bool | operator< (const Value &val) const |
const ValueFactory & | owner () const |
Static Public Member Functions | |
static std::string | typeName () |
Private Member Functions | |
Value (ValueFactory &owner) | |
Value (const std::string &label, unsigned id, ValueFactory &owner) | |
Private Attributes | |
unsigned | _id |
ValueFactory & | _owner |
std::string | _label |
Friends | |
class | ValueFactory |
ostream & | operator<< (ostream &os, const Value &val) |
A Value is an object that can be assigned to a Variable. A Value is created and is owned by a ValueFactory
typedef std::reference_wrapper<Value const> Diades::Sdmdl::Value::ConstReference |
typedef Value* Diades::Sdmdl::Value::Pointer |
typedef std::reference_wrapper<Value> Diades::Sdmdl::Value::Reference |
typedef std::vector<ConstReference> Diades::Sdmdl::Value::ValueVector |
|
inlineprivate |
Create a null value
owner | the ValueFactory that creates the Null Value |
|
inlineprivate |
|
inline |
|
inline |
bool Diades::Sdmdl::Value::isNull | ( | ) | const |
Referenced by Diades::Sdmdl::Formula::isAssignment(), Diades::Sdmdl::Variable::setDefault(), Diades::Sdmdl::Experimental::Assignment::setValue(), Diades::Sdmdl::Experimental::Assignment::setVariable(), and ~Value().
|
inline |
Definition at line 113 of file Value.hh.
References _label.
Referenced by Diades::Sdmdl::Experimental::BddStateMachine::event(), Diades::Sdmdl::Experimental::StateInfoEncoder::getStateInfoId(), operator<(), and Diades::Sdmdl::ValueFactory::operator==().
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 162 of file Value.hh.
References _owner, and operator<<.
Referenced by Diades::Sdmdl::FormulaFactory::nullValue().
|
inlinestatic |
|
friend |
|
friend |
|
private |
_id
the ID of the value created by the associated ValueFactory.
Definition at line 43 of file Value.hh.
Referenced by id().
|
private |
|
private |
_owner
the ValueFactory that created and owns the Value.
Definition at line 49 of file Value.hh.
Referenced by operator<(), and owner().