src/ModelParameterInfoTypes.cpp
void VectorInfo::readPart1(cifstream & is){
    if (debug) rpt::echo<<"Starting VectorInfo::readPart1(cifstream & is) for "<<name<<endl;
    adstring str;
    is>>idxType;
    if (debug) rpt::echo<<idxType<<tb<<"#index type"<<endl;
    int imn; int imx; 
    tcsam::getIndexLimits(idxType,imn,imx);
    ptrIB = new IndexBlock(imn,imx);
    is>>(*ptrIB);
    if (debug) rpt::echo<<(*ptrIB)<<tb<<"#index block"<<endl;
    N = ptrIB->getSize();
    initVals.allocate(1,N);
    is>>str; readVals = wts::getBooleanType(str);
    if (debug) {
        rpt::echo<<"idxType    = "<<idxType<<endl;
        rpt::echo<<"IndexBlock = "<<(*ptrIB)<<endl;
        rpt::echo<<"N          = "<<N<<endl;
        rpt::echo<<"readVals   = "<<wts::getBooleanType(readVals)<<endl;
        rpt::echo<<"Finished VectorInfo::readPart1(cifstream & is) for "<<name<<endl;
    }
}
/**
 * Reads the index type and index block for the VectorInfo.
 * 
 * @param is - the stream to read from
 */
Reads the index type and index block for the VectorInfo.

@param is - the stream to read from
Reads the index type and index block for the VectorInfo . @param is - the stream to read from
void VectorInfo::readPart1(cifstream & is){
    if (debug) rpt::echo<<"Starting VectorInfo::readPart1(cifstream & is) for "<<name<<endl;
    adstring str;
    is>>idxType;
    if (debug) rpt::echo<<idxType<<tb<<"#index type"<<endl;
    int imn; int imx; 
    tcsam::getIndexLimits(idxType,imn,imx);
    ptrIB = new IndexBlock(imn,imx);
    is>>(*ptrIB);
    if (debug) rpt::echo<<(*ptrIB)<<tb<<"#index block"<<endl;
    N = ptrIB->getSize();
    initVals.allocate(1,N);
    is>>str; readVals = wts::getBooleanType(str);
    if (debug) {
        rpt::echo<<"idxType    = "<<idxType<<endl;
        rpt::echo<<"IndexBlock = "<<(*ptrIB)<<endl;
        rpt::echo<<"N          = "<<N<<endl;
        rpt::echo<<"readVals   = "<<wts::getBooleanType(readVals)<<endl;
        rpt::echo<<"Finished VectorInfo::readPart1(cifstream & is) for "<<name<<endl;
    }
}
void VectorInfo :: readPart1 ( cifstream & is ) { if ( debug ) rpt :: echo << " " << name << endl ; adstring str ; is >> idxType ; if ( debug ) rpt :: echo << idxType << tb << " " << endl ; int imn ; int imx ; tcsam :: getIndexLimits ( idxType , imn , imx ) ; ptrIB = new IndexBlock ( imn , imx ) ; is >> ( * ptrIB ) ; if ( debug ) rpt :: echo << ( * ptrIB ) << tb << " " << endl ; N = ptrIB -> getSize ( ) ; initVals . allocate ( 1 , N ) ; is >> str ; readVals = wts :: getBooleanType ( str ) ; if ( debug ) { rpt :: echo << " " << idxType << endl ; rpt :: echo << " " << ( * ptrIB ) << endl ; rpt :: echo << " " << N << endl ; rpt :: echo << " " << wts :: getBooleanType ( readVals ) << endl ; rpt :: echo << " " << name << endl ; } }
Reads the index type and index block for the VectorInfo.
Reads the index type and index block for the VectorInfo .