public abstract class Macro
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected int |
m_id
The macro's ID
|
protected Laboratory |
m_lab
The lab associated to the macro
|
| Modifier | Constructor and Description |
|---|---|
protected |
Macro(Laboratory lab)
Creates a new macro
|
| Modifier and Type | Method and Description |
|---|---|
ca.uqac.lif.petitpoucet.NodeFunction |
getDependency() |
int |
getId()
Gets the ID associated to the data point
|
Laboratory |
getLaboratory()
Gets the laboratory associated to the macro
|
static void |
resetCounter()
Resets the ID counter for macros
|
java.lang.String |
toLatex()
Exports the contents of this data point as a LaTeX command
|
abstract java.lang.String |
toLatex(boolean with_comments)
Exports the contents of this data point as a LaTeX command
|
protected int m_id
protected final Laboratory m_lab
protected Macro(Laboratory lab)
lab - The lab this macro is associated withpublic int getId()
public Laboratory getLaboratory()
public final java.lang.String toLatex()
public abstract java.lang.String toLatex(boolean with_comments)
with_comments - Set to true to add comments before the
command definitionpublic ca.uqac.lif.petitpoucet.NodeFunction getDependency()
public static void resetCounter()
Copyright © Sylvain HallĂ©. All Rights Reserved.