Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

datatypes_AMOS.hh File Reference

Include file for some simple AMOS type definitions and structs. More...

#include "Message_AMOS.hh"
#include <vector>
#include <string>

Include dependency graph for datatypes_AMOS.hh:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Namespaces

namespace  AMOS

Classes

struct  AMOS::Distribution_t
 A set of statistics that define a distribution. More...
struct  AMOS::Range_t
 A gapped coordinate range. More...
struct  AMOS::Tile_t
 A singe sequence's location and orientation in a larger sequence. More...

Defines

#define __datatypes_AMOS_HH   1

Typedefs

typedef Range_t Ordered_Range_t

Functions

Range_t operator & (Range_t a, Range_t b)
 An intersection operator for Ranges.
Range_t operator| (Range_t a, Range_t b)
 A union operator for Ranges.
bool operator== (const Range_t &a, const Range_t &b)
 An equality operator for Ranges.
bool operator!= (const Range_t &a, const Range_t &b)
bool operator== (const Distribution_t &a, const Distribution_t &b)
 An equality operator for Distributions.
bool operator!= (const Distribution_t &a, const Distribution_t &b)
bool operator== (const Tile_t &a, const Tile_t &b)
 An equality operator for Tiles.
bool operator!= (const Tile_t &a, const Tile_t &b)
void WrapString (std::ostream &out, const std::string &s, int per)
 Inserts a newline every 'per' characters when writing to stream.


Detailed Description

Include file for some simple AMOS type definitions and structs.

Author:
Adam M Phillippy
Date:
06/16/2003

These are objects that cannot be stored by themselves in a Bank, however are capable of writing messages and records. Mostly used as ID-less submessages.

Definition in file datatypes_AMOS.hh.


Define Documentation

#define __datatypes_AMOS_HH   1
 

Definition at line 15 of file datatypes_AMOS.hh.


Typedef Documentation

typedef Range_t AMOS::Ordered_Range_t
 

Definition at line 453 of file datatypes_AMOS.hh.


Function Documentation

Range_t AMOS::operator & Range_t  a,
Range_t  b
 

An intersection operator for Ranges.

Returns the (foward) intersection of two overlapping ranges.

Parameters:
a Range A
b Range B
Returns:
The intersection of Range A and B or [0,0) if no overlap
Definition at line 253 of file datatypes_AMOS.cc.

References AMOS::Pos_t.

bool AMOS::operator!= const Tile_t a,
const Tile_t b
 

Definition at line 334 of file datatypes_AMOS.cc.

bool AMOS::operator!= const Distribution_t a,
const Distribution_t b
 

Definition at line 320 of file datatypes_AMOS.cc.

bool AMOS::operator!= const Range_t a,
const Range_t b
 

Definition at line 308 of file datatypes_AMOS.cc.

bool AMOS::operator== const Tile_t a,
const Tile_t b
 

An equality operator for Tiles.

Returns true if distributions have identical values

Parameters:
a Tile A
b Tile B
Returns:
true if distributions have identical values
Definition at line 327 of file datatypes_AMOS.cc.

bool AMOS::operator== const Distribution_t a,
const Distribution_t b
 

An equality operator for Distributions.

Returns true if distributions have identical values

Parameters:
a Distribution A
b Distribution B
Returns:
true if distributions have identical values
Definition at line 315 of file datatypes_AMOS.cc.

bool AMOS::operator== const Range_t a,
const Range_t b
 

An equality operator for Ranges.

Returns true if the two ranges have equal begin and end values.

Parameters:
a Range A
b Range B
Returns:
true if a.begin == b.begin && a.end == b.end, else false
Definition at line 304 of file datatypes_AMOS.cc.

Range_t AMOS::operator| Range_t  a,
Range_t  b
 

A union operator for Ranges.

Returns the union of two overlapping ranges

Parameters:
a Range A
b Range B
Returns:
The union of Range A and B or [0,0) if no overlap
Definition at line 279 of file datatypes_AMOS.cc.

References AMOS::Pos_t.

void AMOS::WrapString std::ostream &  out,
const std::string &  s,
int  per
 

Inserts a newline every 'per' characters when writing to stream.

Definition at line 341 of file datatypes_AMOS.cc.

Referenced by AMOS::operator<<().


Generated on Tue May 17 15:19:11 2005 for libAMOS by doxygen 1.3.8