cgatools::reference::Location Class Reference

Class representing a location in a CrrFile. More...

#include <range.hpp>

List of all members.

Public Member Functions

 Location (uint16_t chromosome, uint32_t offset)
int32_t distanceTo (const Location &other) const
 Returns the position of the other Location minus the position of the current.

Public Attributes

uint16_t chromosome_
 Chromosome id in CrrFile.
uint32_t offset_
 0-based offset in CrrFile.

Detailed Description

Class representing a location in a CrrFile.

Offsets in the CrrFile are 0-based.


Member Function Documentation

int32_t cgatools::reference::Location::distanceTo ( const Location other  )  const [inline]

Returns the position of the other Location minus the position of the current.

Returns std::numeric_limits<int32_t>::max() if the locations are on different chromosomes


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines

Generated by  doxygen 1.6.2