src/uml/src_gen/uml/impl/ComponentImpl.cpp
std::shared_ptr<Subset<uml::PackageableElement, uml::NamedElement>> ComponentImpl::getPackagedElement() const
{
	if(m_packagedElement == nullptr)
	{
		/*Subset*/
		m_packagedElement.reset(new Subset<uml::PackageableElement, uml::NamedElement >());
		#ifdef SHOW_SUBSET_UNION
			std::cout << "Initialising shared pointer Subset: " << "m_packagedElement - Subset<uml::PackageableElement, uml::NamedElement >()" << std::endl;
		#endif
		
		/*Subset*/
		m_packagedElement->initSubset(getOwnedMember());
		#ifdef SHOW_SUBSET_UNION
			std::cout << "Initialising value Subset: " << "m_packagedElement - Subset<uml::PackageableElement, uml::NamedElement >(getOwnedMember())" << std::endl;
		#endif
		
	}

    return m_packagedElement;
}
//*********************************
// References
//*********************************
/*
Getter & Setter for reference packagedElement
*/
References
Getter & Setter for reference packagedElement
References Getter & Setter for reference packagedElement
std::shared_ptr<Subset<uml::PackageableElement, uml::NamedElement>> ComponentImpl::getPackagedElement() const
{
	if(m_packagedElement == nullptr)
	{
		m_packagedElement.reset(new Subset<uml::PackageableElement, uml::NamedElement >());
		#ifdef SHOW_SUBSET_UNION
			std::cout << "Initialising shared pointer Subset: " << "m_packagedElement - Subset<uml::PackageableElement, uml::NamedElement >()" << std::endl;
		#endif
		m_packagedElement->initSubset(getOwnedMember());
		#ifdef SHOW_SUBSET_UNION
			std::cout << "Initialising value Subset: " << "m_packagedElement - Subset<uml::PackageableElement, uml::NamedElement >(getOwnedMember())" << std::endl;
		#endif
	}
    return m_packagedElement;
}
std :: shared_ptr < Subset < uml :: PackageableElement , uml :: NamedElement > > ComponentImpl :: getPackagedElement ( ) const { if ( m_packagedElement == nullptr ) { m_packagedElement . reset ( new Subset < uml :: PackageableElement , uml :: NamedElement > ( ) ) ; #ifdef SHOW_SUBSET_UNION std :: cout << " " << " " << std :: endl ; #endif m_packagedElement -> initSubset ( getOwnedMember ( ) ) ; #ifdef SHOW_SUBSET_UNION std :: cout << " " << " " << std :: endl ; #endif } return m_packagedElement ; }
References
Getter & Setter for reference packagedElement
References Getter & Setter for reference packagedElement
/*Subset*/ /*Subset*/