Ejemplo n.º 1
0
        //template <typename O>
        //! Constructor.
        public state_var(detail.netlist_interface_plus_name owner, //!< owner must have a netlist() method.
                         string name,                              //!< identifier/name for this state variable
                         T value)                                  //!< Initial value after construction
        {
            m_value = value;


            owner.state().save(owner, m_value, owner.name(), name);
        }
Ejemplo n.º 2
0
 //template <typename O>
 //! Constructor.
 public state_var(detail.netlist_interface_plus_name owner, //!< owner must have a netlist() method.
                  string name)                              //!< identifier/name for this state variable
 {
     owner.state().save(owner, m_value, owner.name(), name);
 }