c++/EEDB/ZDX/ZDXsegment.cpp
//this will return the previous segment in order before this one
this will return the previous segment in order before this one
this will return the previous segment in order before this one
EEDB::ZDX::ZDXsegment*  EEDB::ZDX::ZDXsegment::prev_segment() {
  if(!_zchrom) { return NULL;}
  if(_zsegment.chrom_start <= 1) { return NULL; }
  EEDB::ZDX::ZDXsegment *zseg = new EEDB::ZDX::ZDXsegment(_zdxdb);
  if(!zseg->_init_segment(_zchrom_table.assembly_name, _zchrom->name, _zsegment.chrom_start-1)) {
    zseg->release();
    return NULL;
  }
  return zseg;
}
EEDB :: ZDX :: ZDXsegment * EEDB :: ZDX :: ZDXsegment :: prev_segment ( ) { if ( ! _zchrom ) { return NULL ; } if ( _zsegment . chrom_start <= 1 ) { return NULL ; } EEDB :: ZDX :: ZDXsegment * zseg = new EEDB :: ZDX :: ZDXsegment ( _zdxdb ) ; if ( ! zseg -> _init_segment ( _zchrom_table . assembly_name , _zchrom -> name , _zsegment . chrom_start - 1 ) ) { zseg -> release ( ) ; return NULL ; } return zseg ; }
this will return the previous segment in order before this one
this will return the previous segment in order before this one