EDOBE XDOM PMML Manual do Utilizador Página 83

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 98
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 82
83
Likewise, the subclass init method should call the CNKProc::init(),
as follows:
void CNKProcCount::init()
{
CNKProc::init();
....
}
The destructor ~CNKProc() will be called automatically after the
destructor of a derived class. It is not necessary to add any special
declaration or call.
~CNKProc() removes any links to input or output
CNKBuf objects, deleting any existing CNKBufReader or CNKBufWriter
objects.
CNKProc::
void setInputBuf(int index, CNKBuf* buf);
void setOutputBuf(int index, CNKBuf* buf);
int getNumInputs();
int getNumOutputs();
CNKBuf* getInputBuf(int index);
CNKBuf* getOutputBuf(int index);
CNKBufReader* getInputBufReader(int index);
CNKBufWriter* getOutputBufWriter(int index);
These are the methods a CNKProc uses for accessing its input and
output
CNKBuf objects. Any CNKProc can have any number of inputs
and outputs. They are referenced by index number, starting from
0.
setInputBuf and setOutputBuf create an input or output, creating a
CNKBufReader or CNKBufWriter to represent the link between the
CNKProc and the specified CNKBuf. This is the only way to create a
CNKBufReader or CNKBufWriter. If the input or output index already
has an assigned
CNKBuf, it is removed first (destroying the
corresponding
CNKBufReader or CNKBufWriter), before creating a new
one. If the buf argument is
NULL, any existing link is destroyed, and
nothing is left in its place.
getNumInputs and getNumOutputs return the current number of input
and output
CNKBufs. Note that there is no method for explicitly
setting the number of inputs and outputs: the number of inputs or
outputs is defined as the largest index of a non-
NULL input or output.
If existing links are removed, these numbers may decrease.
Vista de página 82
1 2 ... 78 79 80 81 82 83 84 85 86 87 88 ... 97 98

Comentários a estes Manuais

Sem comentários