CModule

Represent a semantic item in C source.

@safe
class CModule : BaseModule {}

Members

Mixins

__anonymous
mixin CModuleX!(CModule)
Undocumented in source.

Mixed In Members

From mixin CModuleX!(CModule)

__anonymous
mixin Attrs
Undocumented in source.
_
T _()

Access to self.

comment
Comment comment(string comment)
Undocumented in source. Be warned that the author may not have intended to support it.
text
Text!T text(string content)
Undocumented in source. Be warned that the author may not have intended to support it.
base
T base()
Undocumented in source. Be warned that the author may not have intended to support it.
stmt
Stmt!T stmt(string stmt_, Flag!"addSep" separator)
Undocumented in source. Be warned that the author may not have intended to support it.
break_
auto break_()
Undocumented in source. Be warned that the author may not have intended to support it.
call
auto call(string name, string params)
Undocumented in source. Be warned that the author may not have intended to support it.
call
auto call(string name, T args)
Undocumented in source. Be warned that the author may not have intended to support it.
continue_
auto continue_()
Undocumented in source. Be warned that the author may not have intended to support it.
return_
auto return_()
Undocumented in source. Be warned that the author may not have intended to support it.
return_
auto return_(string expr)
Undocumented in source. Be warned that the author may not have intended to support it.
goto_
auto goto_(string name)
Undocumented in source. Be warned that the author may not have intended to support it.
label
auto label(string name)
Undocumented in source. Be warned that the author may not have intended to support it.
define
auto define(string name)
Undocumented in source. Be warned that the author may not have intended to support it.
define
auto define(string name, string value)
Undocumented in source. Be warned that the author may not have intended to support it.
extern_decl
auto extern_decl(string value)
Undocumented in source. Be warned that the author may not have intended to support it.
extern_
auto extern_(string kind)

Wrap the supplied module in an extern statement.

include
auto include(string filename)
Undocumented in source. Be warned that the author may not have intended to support it.
suite
Suite!T suite(string headline, Flag!"addSep" separator)
Undocumented in source. Be warned that the author may not have intended to support it.
struct_
auto struct_(string name)
Undocumented in source. Be warned that the author may not have intended to support it.
if_
auto if_(string cond)
Undocumented in source. Be warned that the author may not have intended to support it.
else_if
auto else_if(string cond)
Undocumented in source. Be warned that the author may not have intended to support it.
else_
auto else_()
Undocumented in source. Be warned that the author may not have intended to support it.
enum_
auto enum_()
Undocumented in source. Be warned that the author may not have intended to support it.
enum_
auto enum_(string identifier)
Undocumented in source. Be warned that the author may not have intended to support it.
enum_const
auto enum_const(string name)
Undocumented in source. Be warned that the author may not have intended to support it.
for_
auto for_(string init, string cond, string next)
Undocumented in source. Be warned that the author may not have intended to support it.
while_
auto while_(string cond)
Undocumented in source. Be warned that the author may not have intended to support it.
do_while
auto do_while(string cond)
Undocumented in source. Be warned that the author may not have intended to support it.
switch_
auto switch_(string cond)
Undocumented in source. Be warned that the author may not have intended to support it.
case_
auto case_(string val)
Undocumented in source. Be warned that the author may not have intended to support it.
default_
auto default_()
Undocumented in source. Be warned that the author may not have intended to support it.
func
auto func(string return_type, string name)
Undocumented in source. Be warned that the author may not have intended to support it.
func
auto func(string return_type, string name, T args)
Undocumented in source. Be warned that the author may not have intended to support it.
func_body
auto func_body(string return_type, string name)
Undocumented in source. Be warned that the author may not have intended to support it.
func_body
auto func_body(string return_type, string name, T args)
Undocumented in source. Be warned that the author may not have intended to support it.
IF
auto IF(string name)
Undocumented in source. Be warned that the author may not have intended to support it.
IFDEF
auto IFDEF(string name)
Undocumented in source. Be warned that the author may not have intended to support it.
IFNDEF
auto IFNDEF(string name)
Undocumented in source. Be warned that the author may not have intended to support it.
ELIF
auto ELIF(string cond)
Undocumented in source. Be warned that the author may not have intended to support it.
ELSE
auto ELSE()
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From BaseModule

suppressIndent
void suppressIndent(int levels)

Set indent suppression from this point and all children.

suppressThisIndent
void suppressThisIndent(int levels)

Suppress indentation by also affecting the level propagated from the parent.

setIndentation
void setIndentation(int ind)

Sets the width of the indentation

reset
BaseModule reset()

Clear the node of childrens.

sep
void sep(int count)

Separate with at most count empty lines.

prepend
void prepend(BaseElement e)

Insert element at the front.

append
void append(BaseElement e)

Insert element at the back.

clearChildren
void clearChildren()

Remove all children and clear line separation.

indent
string indent(string s, int parent_level, int level)

Render content with an indentation that takes the parent in consideration.

renderIndent
string renderIndent(int parent_level, int level)
Undocumented in source. Be warned that the author may not have intended to support it.
renderRecursive
string renderRecursive(int parent_level, int level)
Undocumented in source. Be warned that the author may not have intended to support it.
renderPostRecursive
string renderPostRecursive(int parent_level, int level)
Undocumented in source. Be warned that the author may not have intended to support it.
render
string render()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta