/usr/share/monkeystudio/templates/Objective-C++/Class/$Base File Name$.mm is in monkeystudio-common 1.9.0.4-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | #import "$Base File Name$.h"
$Class Name$::$Class Name$()
{
}
$Class Name$::~$Class Name$()
{
}
/*** For dynamic memory management (can be removed if it isn't necessary) ***/
$Class Name$::$Class Name$( const $Class Name$& other )
{
// copy datas there
}
$Class Name$& $Class Name$::operator=( const $Class Name$& other )
{
// In order to support the operation "Obj = Obj;"
if( *this != other )
{
// Copy datas there
}
return *this;
}
bool $Class Name$::operator==( const $Class Name$& other ) const
{
// Comparaison of datas here
return false; // Change it
}
bool $Class Name$::operator!=( const $Class Name$& other ) const
{
return !operator==( other );
}
/*** End of dynamic memory management ***/
|