Biorithm  1.1
Public Member Functions | Protected Attributes
BioFunction Class Reference

A simple class representing a biological function, storing the name of the function (e.g., "response to stress" and its category (e.g., "biological_process"). The goal of this class is to represent all descriptors used to group biological molecules together. More...

#include <biofunction.h>

Inheritance diagram for BioFunction:
GOFunction

List of all members.

Public Member Functions

 BioFunction (string cat, string id, string name="")
 BioFunction (const BioFunction &other)
virtual string getCategory () const
virtual string getId () const
virtual string getName () const
bool operator== (const BioFunction &other) const
bool operator!= (const BioFunction &other) const
bool operator< (const BioFunction &rhs) const

Protected Attributes

string _category
string _id
string _name

Detailed Description

A simple class representing a biological function, storing the name of the function (e.g., "response to stress" and its category (e.g., "biological_process"). The goal of this class is to represent all descriptors used to group biological molecules together.


Member Function Documentation

bool BioFunction::operator< ( const BioFunction rhs) const [inline]

Compare two instances of BioFunction.

Returns:
true, if the invocant's category is less than the category of the other instance. If the categories are equal, return true if the invocant's id is less than that of the other instance.
Note:
This method is needed in order to store instance of BioFunction in a map.
Warning:
Changing the method to compare by id first and then by category will break the function index in the MyAnnotations class.

The documentation for this class was generated from the following file:
 All Classes Functions Variables Typedefs Friends