Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F94247526
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
Thu, Dec 5, 02:45
Size
1 KB
Mime Type
text/x-c++
Expires
Sat, Dec 7, 02:45 (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