IntaRNA 3.4.1
RNA-RNA interaction prediction | C++ API
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Friends | List of all members
IntaRNA::AccessibilityArchive Class Reference

#include <AccessibilityArchive.h>

Public Types

typedef UpperBandedMatrix< E_type > EdMatrix
 

Public Member Functions

 AccessibilityArchive (const Accessibility &source, const EdMatrix *matrix=nullptr)
 
 AccessibilityArchive (const RnaSequence &sequence, size_t maxLength, EdMatrix &target)
 
size_t getMaxLength () const
 

Friends

class boost::serialization::access
 

Detailed Description

Serialization view of the logical accessibility matrix, independent of its physical storage. Version 1 stores exact internal ED integers, in rows of increasing start position and interval length, including maxLength+1 for dangling ends. Only valid cells are stored. Matrix-backed saves and full-band loads use row views directly; generic saves and discarded input tails need O(maxLength) scratch memory. The version 1 archive layout is unchanged.

The input sequence and requested band bound allocations on load. Native Boost binary archives require a compatible architecture and Boost version. This is an internal file-format helper, not an installed public interface.

Member Typedef Documentation

◆ EdMatrix

Constructor & Destructor Documentation

◆ AccessibilityArchive() [1/2]

IntaRNA::AccessibilityArchive::AccessibilityArchive ( const Accessibility &  source,
const EdMatrix *  matrix = nullptr 
)
inlineexplicit

Create a read-only serialization view.

Parameters
sourceaccessibility data, alive until serialization finishes
matrixoptional non-owning view of the source's unconstrained ED values; nullptr or non-empty constraints select the generic getED() path

◆ AccessibilityArchive() [2/2]

IntaRNA::AccessibilityArchive::AccessibilityArchive ( const RnaSequence &  sequence,
size_t  maxLength,
EdMatrix &  target 
)
inline

Create a loading view; target is resized to the requested available band.

Member Function Documentation

◆ getMaxLength()

size_t IntaRNA::AccessibilityArchive::getMaxLength ( ) const
inline

Return the interaction length retained after loading.

Friends And Related Symbol Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

The documentation for this class was generated from the following file: