NCBI C++ ToolKit
|
Search Toolkit Book for CBioTreeFeatureList
Features storage for the bio tree node. More...
#include <algo/phy_tree/bio_tree.hpp>
Public Types | |
typedef vector< CBioTreeFeaturePair > | TFeatureList |
Public Member Functions | |
CBioTreeFeatureList () | |
CBioTreeFeatureList (const CBioTreeFeatureList &flist) | |
CBioTreeFeatureList & | operator= (const CBioTreeFeatureList &flist) |
void | SetFeature (TBioTreeFeatureId id, const string &value) |
Set feature value, feature if exists replaced, if not added. More... | |
const string & | GetFeatureValue (TBioTreeFeatureId id) const |
Get feature value by id. More... | |
bool | GetFeatureValue (TBioTreeFeatureId id, string &result) const |
Place feature value in 'result', if available. More... | |
void | RemoveFeature (TBioTreeFeatureId id) |
Remove feature from the list. More... | |
const string & | operator[] (TBioTreeFeatureId id) const |
Get feature value by id (operator semantics) More... | |
const TFeatureList & | GetFeatureList () const |
Return reference on the internal container. More... | |
Protected Attributes | |
TFeatureList | m_FeatureList |
Features storage for the bio tree node.
Every node in the bio tree may have a list of attached features. Features are string attributes which may vary from node to node in the tree.
Implementation note: This class may evolve into a specialized templates parameterizing different feature storage options (like vector, map, list) depending on what tree is used.
Definition at line 100 of file bio_tree.hpp.