LocARNA-1.9.2
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends
Public Member Functions
LocARNA::BasePairs__Arc Class Reference

Represents a base pair. More...

#include <basepairs.hh>

Inheritance diagram for LocARNA::BasePairs__Arc:
LocARNA::BasePairs::LeftAdjEntry LocARNA::BasePairs::RightAdjEntry

List of all members.

Public Member Functions

 BasePairs__Arc (size_t idx, size_t left, size_t right)
size_t left () const
size_t right () const
size_t idx () const

Detailed Description

Represents a base pair.

stores base pair left end, right end and an arc index

Note:
index uniqueness is not guaranteed by the class itself but can be used to locate the arc in a vector by the caller
To indicate the relation to the BasePair class, we define with prefix BasePairs__. Using a nested class does not work properly (C++ does not support forward references to nested classes.) Using a namespace instead of prefix should work as well, but caused problems at first when including the adjecency entry classes in the namespace!

Constructor & Destructor Documentation

LocARNA::BasePairs__Arc::BasePairs__Arc ( size_t  idx,
size_t  left,
size_t  right 
) [inline]

Construct from member values

Parameters:
idxIndex
leftLeft position of arc
rightRight position of arc

Member Function Documentation

size_t LocARNA::BasePairs__Arc::idx ( ) const [inline]

Read access

Returns:
index of arc
size_t LocARNA::BasePairs__Arc::left ( ) const [inline]

Read access

Returns:
left arc end
size_t LocARNA::BasePairs__Arc::right ( ) const [inline]

Read access

Returns:
right arc end

The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends