All Classes Namespaces Functions Pages
halBottomSegment.h
/*
* Copyright (C) 2012 by Glenn Hickey (hickey@soe.ucsc.edu)
*
* Released under the MIT license, see LICENSE.txt
*/
#ifndef _HALBOTTOMSEGMENT_H
#define _HALBOTTOMSEGMENT_H
#include "halDefs.h"
#include "halSegment.h"
namespace hal {
class BottomSegment : virtual public Segment
{
public:
virtual hal_size_t getNumChildren() const = 0;
virtual hal_index_t getChildIndex(hal_size_t i) const = 0;
virtual hal_index_t getChildIndexG(const Genome* childGenome) const = 0;
virtual bool hasChild(hal_size_t child) const = 0;
virtual bool hasChildG(const Genome* childGenome) const = 0;
virtual void setChildIndex(hal_size_t i, hal_index_t childIndex) = 0;
virtual bool getChildReversed(hal_size_t i) const = 0;
virtual void setChildReversed(hal_size_t child, bool isReversed) = 0;
virtual hal_index_t getTopParseIndex() const = 0;
virtual void setTopParseIndex(hal_index_t parseIndex) = 0;
virtual hal_offset_t getTopParseOffset() const = 0;
virtual bool hasParseUp() const = 0;
virtual hal_index_t getLeftChildIndex(hal_size_t i) const = 0;
virtual hal_index_t getRightChildIndex(hal_size_t i) const = 0;
protected:
friend class counted_ptr<BottomSegment>;
friend class counted_ptr<const BottomSegment>;
virtual ~BottomSegment() = 0;
};
inline BottomSegment::~BottomSegment() {}
}
#endif
hal::Segment
Definition: halSegment.h:21
hal::Genome
Definition: halGenome.h:24
hal::BottomSegment::hasParseUp
virtual bool hasParseUp() const =0
hal::BottomSegment
Definition: halBottomSegment.h:18
hal::BottomSegment::getTopParseIndex
virtual hal_index_t getTopParseIndex() const =0
hal::BottomSegment::getTopParseOffset
virtual hal_offset_t getTopParseOffset() const =0
hal::BottomSegment::getChildIndexG
virtual hal_index_t getChildIndexG(const Genome *childGenome) const =0
hal::BottomSegment::getChildIndex
virtual hal_index_t getChildIndex(hal_size_t i) const =0
hal::BottomSegment::setChildIndex
virtual void setChildIndex(hal_size_t i, hal_index_t childIndex)=0
hal::BottomSegment::getRightChildIndex
virtual hal_index_t getRightChildIndex(hal_size_t i) const =0
hal::BottomSegment::hasChild
virtual bool hasChild(hal_size_t child) const =0
hal::BottomSegment::hasChildG
virtual bool hasChildG(const Genome *childGenome) const =0
hal::BottomSegment::getLeftChildIndex
virtual hal_index_t getLeftChildIndex(hal_size_t i) const =0
hal::BottomSegment::getNumChildren
virtual hal_size_t getNumChildren() const =0
hal::BottomSegment::getChildReversed
virtual bool getChildReversed(hal_size_t i) const =0
hal::BottomSegment::setChildReversed
virtual void setChildReversed(hal_size_t child, bool isReversed)=0
hal::BottomSegment::setTopParseIndex
virtual void setTopParseIndex(hal_index_t parseIndex)=0