Ignore:
Timestamp:
04/11/18 01:16:08 (6 years ago)
Author:
Maciej Komosinski
Message:

Removed unused "state" field (issue number 19), improved docs (issues number 20,21,23), code formatting (issue number 24) [closes #62]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/genetics/f4/conv_f4.cpp

    r760 r774  
    2525
    2626
    27 SString GenoConv_f40::convert(SString &in, MultiMap * map, bool using_checkpoints)
     27SString GenoConv_f40::convert(SString &in, MultiMap *map, bool using_checkpoints)
    2828{
    2929        int res;
    30         f4_Model * model = new f4_Model();
     30        f4_Model *model = new f4_Model();
    3131        res = model->buildFromF4(in, using_checkpoints);
    3232        if (GENOPER_OK != res) return SString();  // oops
     
    5050
    5151
    52 SString GenoConv_F41_TestOnly::convert(SString &in, MultiMap * map, bool using_checkpoints)
     52SString GenoConv_F41_TestOnly::convert(SString &in, MultiMap *map, bool using_checkpoints)
    5353{
    5454        int res;
    55         f4_Model * model = new f4_Model();
     55        f4_Model *model = new f4_Model();
    5656        res = model->buildFromF4(in, using_checkpoints);
    5757        if (GENOPER_OK != res) return SString();  // oops
     
    126126
    127127
    128 f4_Cell * f4_Model::getStick(f4_Cell * C)
     128f4_Cell* f4_Model::getStick(f4_Cell *C)
    129129{
    130130        if (T_STICK4 == C->type) return C;
     
    142142
    143143/// updated by Macko to follow new SDK standards (no more neuroitems)
    144 int f4_Model::buildModelRec(f4_Cell * C)
     144int f4_Model::buildModelRec(f4_Cell *C)
    145145{
    146146        int partidx;
     
    192192                        // adjust mass/vol of first endpoint
    193193                        jj_p1_refno = C->dadlink->p2_refno;
    194                         Part * p1 = getPart(jj_p1_refno);
     194                        Part *p1 = getPart(jj_p1_refno);
    195195                        p1->mass += 1.0;
    196196                        //      p1->volume += 1.0/C->P.mass;
     
    230230        if (C->type == T_NEURON4) ///<this case was updated by MacKo
    231231        {
    232                 const char * nclass = C->neuclass->name.c_str();
     232                const char* nclass = C->neuclass->name.c_str();
    233233                int partno, jointno;
    234234                if (C->neuclass->getPreferredLocation() == 0)
     
    298298                        if (C->links[j]->from == NULL)
    299299                        {
    300                                 const char * nclass = C->links[j]->t.c_str();
    301                                 char * temp = (char*)C->links[j]->t.c_str();
    302                                 NeuroClass * sensortest = GenoOperators::parseNeuroClass(temp);
     300                                const char* nclass = C->links[j]->t.c_str();
     301                                char* temp = (char*)C->links[j]->t.c_str();
     302                                NeuroClass *sensortest = GenoOperators::parseNeuroClass(temp);
    303303                                //backward compatibility for G*TS
    304304                                if (C->links[j]->t == "*" || C->links[j]->t == "S" || C->links[j]->t == "T")
Note: See TracChangeset for help on using the changeset viewer.