Minsky
minsky::VariableValuePtr Struct Reference

a shared_ptr that default constructs a default target, and is always valid More...

#include <variableValues.h>

Inheritance diagram for minsky::VariableValuePtr:
Inheritance graph
Collaboration diagram for minsky::VariableValuePtr:
Collaboration graph

Public Member Functions

 VariableValuePtr (VariableType::Type type=VariableType::undefined, const std::string &name="", const GroupPtr &group=GroupPtr())
 
 VariableValuePtr (VariableType::Type type, const VariableValue &vv)
 
 VariableValuePtr (const std::shared_ptr< VariableValue > &x)
 

Detailed Description

a shared_ptr that default constructs a default target, and is always valid

Definition at line 37 of file variableValues.h.

Constructor & Destructor Documentation

◆ VariableValuePtr() [1/3]

minsky::VariableValuePtr::VariableValuePtr ( VariableType::Type  type = VariableType::undefined,
const std::string &  name = "",
const GroupPtr group = GroupPtr() 
)
inline

Definition at line 39 of file variableValues.h.

References minsky::scope().

39  :
40  std::shared_ptr<VariableValue>(std::make_shared<VariableValue>(type,name))
41  {get()->m_scope=scope(group,name);}
size_t scope(const string &name)
extract scope from a qualified variable name
Definition: valueId.cc:83
Definition: group.tcl:84
Here is the call graph for this function:

◆ VariableValuePtr() [2/3]

minsky::VariableValuePtr::VariableValuePtr ( VariableType::Type  type,
const VariableValue vv 
)
inline

Definition at line 42 of file variableValues.h.

42 : std::shared_ptr<VariableValue>(std::make_shared<VariableValue>(type,vv)) {}

◆ VariableValuePtr() [3/3]

minsky::VariableValuePtr::VariableValuePtr ( const std::shared_ptr< VariableValue > &  x)
inline

Definition at line 43 of file variableValues.h.

43 : std::shared_ptr<VariableValue>(x) {assert(x);}

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