inRef();
  ClockDomain&       getRef()       { return m_ref; }
  const ClockDomain& getRef() const { return m_ref; }

  // utility wrappers to minimize visible dependencies
  static void elab ( ClockDomain& );
  static void exec ( ClockDomain& );
  static void reset( ClockDomain& );
private:
  std::unique_ptr<ClockDomain> m_owned;
  ClockDomain& m_ref;
};

}
}

#endif


