Othello
 All Classes Files Functions Variables Macros
IOHelper< keyType, valueType > Class Template Referenceabstract

interface for converting a key from its raw format to a keyTypeype. Split key into groups. More...

#include <io_helper.h>

Inheritance diagram for IOHelper< keyType, valueType >:

Public Member Functions

virtual bool convert (char *s, keyType *T, valueType *V)=0
 convert a input-style line to key/value pair. More...
 
virtual bool convert (char *s, keyType *T)=0
 skip the value.
 
virtual void splitgrp (const keyType &key, uint32_t &grp, keyType &keyInGroup)=0
 split a keyTypeype value into two parts: groupID/keyInGroup by the highest splitbit bits.
 
virtual void combgrp (keyType &key, uint32_t &grp, keyType &keyInGroup)=0
 combine groupID/keyInGroup to the origional key
 

Detailed Description

template<typename keyType, typename valueType>
class IOHelper< keyType, valueType >

interface for converting a key from its raw format to a keyTypeype. Split key into groups.

Member Function Documentation

template<typename keyType, typename valueType>
virtual bool IOHelper< keyType, valueType >::convert ( char *  s,
keyType *  T,
valueType *  V 
)
pure virtual

convert a input-style line to key/value pair.

Parameters
[in]char*s, a line from the input.
[out]keyType*T, converted key.
[out]valueType*V, converted value.
Return values
booleanreturn true if convert is success.

Implemented in ConstantLengthKmerHelper< keyType, valueType >.


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