Org.SourceFlow.C
Class CTypedef
IComparable
|
+--CodeElement
|
+--CTypedef
in CTypedef.cs
- public class CTypedef
- extends CodeElement
A class generating a C typedef declaration.
|
Field Summary |
override int |
Category
Returns a numeric category number for the code element. |
|
Constructor Summary |
CTypedef( string name, string type )
Creates a new typedef declaration with the specified values. |
|
Method Summary |
void |
AddComment( CComment comment )
Adds a comment to this typedef. |
override void |
Print( StreamWriter output, CodeStyle style, int indent )
Prints the code element to the specified output stream. |
override string |
ToString()
Returns the typedef name. |
Category
public override int Category;
- Returns a numeric category number for the code element. A
lower category number implies that the code element should
be placed before code elements with a higher category
number within a declaration.
- Returns:
- the category number
CTypedef
public CTypedef( string name, string type );
- Creates a new typedef declaration with the specified values.
- Parameters:
name - the type name
type - the existing type that is aliased
AddComment
public void AddComment( CComment comment );
- Adds a comment to this typedef.
- Parameters:
comment - the new typedef comment
Print
public override void Print( StreamWriter output, CodeStyle style, int indent );
- Prints the code element to the specified output stream.
- Parameters:
output - the output stream
style - the code style to use
indent - the indentation level
ToString
public override string ToString();
- Returns the typedef name.
- Returns:
- the typedef name