예제 #1
0
파일: kernel.cpp 프로젝트: fuzzie/mgsim
Object::Object(const std::string& name, Object& parent, Clock& clock)
    : m_parent(&parent), 
      m_name(name), 
      m_fqn(parent.GetFQN().empty() ? name : (parent.GetFQN() + '.' + name)),
      m_clock(clock), 
      m_kernel(clock.GetKernel())
{
    // Add ourself to the parent's children array
    parent.m_children.push_back(this);
}
예제 #2
0
파일: kernel.cpp 프로젝트: fuzzie/mgsim
//
// Object class
//
Object::Object(const std::string& name, Clock& clock)
    : m_parent(NULL), m_name(name), m_fqn(name), m_clock(clock), m_kernel(clock.GetKernel())
{
}