DCDeclaration

class DCDeclaration

This is a common interface for a declaration in a DC file. Currently, this is either a class or a typedef declaration (import declarations are still collected together at the top, and don’t inherit from this object). Its only purpose is so that classes and typedefs can be stored in one list together so they can be ordered correctly on output.

Inheritance diagram

Inheritance diagram of DCDeclaration

virtual DCClass *as_class(void)
virtual DCClass const *as_class(void) const
virtual DCSwitch *as_switch(void)
virtual DCSwitch const *as_switch(void) const
virtual void output(std::ostream &out) const

Write a string representation of this instance to <out>.

void write(std::ostream &out, int indent_level) const

Write a string representation of this instance to <out>.