68
CNKBuf::
void setNumRows(long numRows);
void setNumColumns(int cols);
long getNumRows();
int getNumColumns();
Set/get the number of rows and columns that can be stored in the
CNKBuf at once. This should not be changed after calling init(),
when the storage is actually allocated.
CNKBuf::
int getNumReaders();
int getNumWriters();
CNKBufReader* getBufReader(int index);
CNKBufWriter* getBufWriter(int index);
CNKProc* getBufReaderProc(int index);
CNKProc* getBufWriterProc(int index);
A CNKBuf object can have multiple CNKBufReader and CNKBufWriter
objects (though currently it is an error to have more than one
CNKBufWriter). These methods can be used to find out the number of
readers and writers, and access them, and access the
CNKProc objects
they are linked to.
The
getBufReaderProc and getBufWriterProc methods can be used
to go from a
CNKBuf to the connected CNKProc objects.
CNKProc::getInputBuf and getOutputBuf will go in the other
direction. Using both of these, one can traverse a pipeline graph,
without dealing directly with the
CNKBufReader and CNKBufWriter
objects between the
CNKBuf and CNKProc objects.
CNKBuf::
void setColumnName(int colNum, const char* name);
const char* getColumnName(int colNum);
Each column in a CNKBuf has a name. These methods are used to
set/get the column name of the specified
CNKBuf column. colNum is
the column number, from
0 through getNumColumns()-1. A column
name may be
NULL.
CNKBuf::
enum column_type { column_type_double,
column_type_factor,
Comentarios a estos manuales