Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92700818
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
Fri, Nov 22, 22:15
Size
1 KB
Mime Type
text/x-c++
Expires
Sun, Nov 24, 22:15 (2 d)
Engine
blob
Format
Raw Data
Handle
22456069
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.hh}"
/// 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