Bsoft 2.1.4
Bernard's software package
BstarLoop Class Reference

Structure for a table of entries in a STAR database block. More...

#include <star.h>

Public Member Functions

 BstarLoop ()
 
 BstarLoop (ifstream &fstar)
 
int write (ofstream &fstar)
 
map< string, int > & tags ()
 
void tags (map< string, int > &t)
 
vector< vector< string > > & data ()
 
long tag (const string &t)
 
long find (const string &t)
 
long columns ()
 
long rows ()
 
void add_row (vector< string > vs)
 
vector< string > & add_row (long i)
 
vector< string > & operator[] (long i)
 
string value (long i, const string &t)
 
long integer (long i, const string &t)
 
long integer (long i, long j)
 
double real (long i, const string &t)
 
double real (long i, long j)
 
void erase (const string &t)
 
void replace_tag (string oldtag, string newtag)
 
void show_tags ()
 

Detailed Description

Structure for a table of entries in a STAR database block.

Each item consists of a string or a zero-delimited sequence of strings.
The tag map values indicate the order of the row elements and must be set up properly.

Constructor & Destructor Documentation

◆ BstarLoop() [1/2]

BstarLoop::BstarLoop ( )
inline

◆ BstarLoop() [2/2]

BstarLoop::BstarLoop ( ifstream &  fstar)
inline

Member Function Documentation

◆ add_row() [1/2]

vector< string > & BstarLoop::add_row ( long  i)
inline

◆ add_row() [2/2]

void BstarLoop::add_row ( vector< string >  vs)
inline

◆ columns()

long BstarLoop::columns ( )
inline

◆ data()

vector< vector< string > > & BstarLoop::data ( )
inline

◆ erase()

void BstarLoop::erase ( const string &  t)
inline

◆ find()

long BstarLoop::find ( const string &  t)
inline

◆ integer() [1/2]

long BstarLoop::integer ( long  i,
const string &  t 
)
inline

◆ integer() [2/2]

long BstarLoop::integer ( long  i,
long  j 
)
inline

◆ operator[]()

vector< string > & BstarLoop::operator[] ( long  i)
inline

◆ real() [1/2]

double BstarLoop::real ( long  i,
const string &  t 
)
inline

◆ real() [2/2]

double BstarLoop::real ( long  i,
long  j 
)
inline

◆ replace_tag()

void BstarLoop::replace_tag ( string  oldtag,
string  newtag 
)
inline

◆ rows()

long BstarLoop::rows ( )
inline

◆ show_tags()

void BstarLoop::show_tags ( )
inline

◆ tag()

long BstarLoop::tag ( const string &  t)
inline

◆ tags() [1/2]

map< string, int > & BstarLoop::tags ( )
inline

◆ tags() [2/2]

void BstarLoop::tags ( map< string, int > &  t)
inline

◆ value()

string BstarLoop::value ( long  i,
const string &  t 
)
inline

◆ write()

int BstarLoop::write ( ofstream &  fstar)
inline

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