Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92750435
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
Sat, Nov 23, 10:16
Size
1 KB
Mime Type
text/x-c++
Expires
Mon, Nov 25, 10:16 (1 d, 23 h)
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