Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91335376
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
Sun, Nov 10, 02:47
Size
1 KB
Mime Type
text/x-c++
Expires
Tue, Nov 12, 02:47 (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