Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91461942
class
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, Nov 11, 08:50
Size
1 KB
Mime Type
text/x-c++
Expires
Wed, Nov 13, 08:50 (2 d)
Engine
blob
Format
Raw Data
Handle
22014866
Attached To
rAKA akantu
class
View Options
#name : class ... { ... }
# --
class ${1:`(yas/replace-all "_" "" (capitalize
(file-name-nondirectory
(file-name-sans-extension (buffer-file-name)))))`} {
/* ------------------------------------------------------------------------ */
/* Constructors/Destructors */
/* ------------------------------------------------------------------------ */
public:
${1:$(yas/substr text "[^: ]*")}($2);
virtual ~${1:$(yas/substr text "[^: ]*")}();
/* ------------------------------------------------------------------------ */
/* Methods */
/* ------------------------------------------------------------------------ */
public:
/// function to print the contain of the class
virtual void printself(std::ostream & stream, int indent = 0) const;
/* ------------------------------------------------------------------------ */
/* Accessors */
/* ------------------------------------------------------------------------ */
public:
/* ------------------------------------------------------------------------ */
/* Class Members */
/* ------------------------------------------------------------------------ */
private:
};
/* -------------------------------------------------------------------------- */
/* inline functions */
/* -------------------------------------------------------------------------- */
#include "${3:`(file-name-nondirectory (file-name-sans-extension (buffer-file-name)))`_inline_impl.cc}"
/// standard output stream operator
inline std::ostream & operator <<(std::ostream & stream, const ${1:$(yas/substr text "[^: ]*")} & _this)
{
_this.printself(stream);
return stream;
}
Event Timeline
Log In to Comment