src/uml/src_gen/uml/impl/ElementImpl.cpp
//*********************************
// References
//*********************************
/*
Getter & Setter for reference ownedComment
*/
References
Getter & Setter for reference ownedComment
References Getter & Setter for reference ownedComment
std::shared_ptr<Subset<uml::Comment, uml::Element>> ElementImpl::getOwnedComment() const
{
	if(m_ownedComment == nullptr)
	{
		m_ownedComment.reset(new Subset<uml::Comment, uml::Element >());
		#ifdef SHOW_SUBSET_UNION
			std::cout << "Initialising shared pointer Subset: " << "m_ownedComment - Subset<uml::Comment, uml::Element >()" << std::endl;
		#endif
		m_ownedComment->initSubset(getOwnedElement());
		#ifdef SHOW_SUBSET_UNION
			std::cout << "Initialising value Subset: " << "m_ownedComment - Subset<uml::Comment, uml::Element >(getOwnedElement())" << std::endl;
		#endif
	}
    return m_ownedComment;
}
std :: shared_ptr < Subset < uml :: Comment , uml :: Element > > ElementImpl :: getOwnedComment ( ) const { if ( m_ownedComment == nullptr ) { m_ownedComment . reset ( new Subset < uml :: Comment , uml :: Element > ( ) ) ; #ifdef SHOW_SUBSET_UNION std :: cout << " " << " " << std :: endl ; #endif m_ownedComment -> initSubset ( getOwnedElement ( ) ) ; #ifdef SHOW_SUBSET_UNION std :: cout << " " << " " << std :: endl ; #endif } return m_ownedComment ; }
References
Getter & Setter for reference ownedComment
References Getter & Setter for reference ownedComment
/*Subset*/ /*Subset*/