[cpp] Created class section

This commit is contained in:
Aaron Broder 2012-08-28 09:41:16 -07:00
parent 3b952e73fa
commit 4700702ea5

View File

@ -64,14 +64,10 @@ snippet fr
# mutable # mutable
snippet mu snippet mu
mutable mutable
# std::cout ##
snippet cout ## Class
std::cout << ${1} << std::endl;
# std::cin
snippet cin
std::cin >> ${1};
# class # class
snippet class snippet cl
class ${1:`Filename('$1', 'name')`} class ${1:`Filename('$1', 'name')`}
{ {
public: public:
@ -81,8 +77,7 @@ snippet class
private: private:
${3:/* data */} ${3:/* data */}
}; };
# member function implementation
# member function implementations
snippet mfun snippet mfun
${4:void} ${1:`Filename('$1', 'ClassName')`}::${2:memberFunction}(${3}) { ${4:void} ${1:`Filename('$1', 'ClassName')`}::${2:memberFunction}(${3}) {
${5:return}; ${5:return};
@ -92,7 +87,12 @@ snippet ns
namespace ${1:`Filename('', 'my')`} { namespace ${1:`Filename('', 'my')`} {
${2} ${2}
} /* namespace $1 */ } /* namespace $1 */
# std::cout
snippet cout
std::cout << ${1} << std::endl;
# std::cin
snippet cin
std::cin >> ${1};
# for i loop # for i loop
snippet fori snippet fori
for (int ${2:i} = 0; $2 < ${1:count}; $2${3:++}) { for (int ${2:i} = 0; $2 < ${1:count}; $2${3:++}) {