NCBI C++ ToolKit
Public Types | Public Member Functions | Protected Attributes | Friends | List of all members
CGtfAttributes Class Reference

Search Toolkit Book for CGtfAttributes

#include <objtools/readers/gtf_reader.hpp>

+ Collaboration diagram for CGtfAttributes:

Public Types

using MultiValue = set< string >
 
using MultiAttributes = map< string, MultiValue >
 

Public Member Functions

const MultiAttributesGet () const
 
string ValueOf (const string &key) const
 
bool HasValue (const string &key, const string &value="") const
 
void GetValues (const string &key, MultiValue &values) const
 
void AddValue (const string &key, const string &value)
 
void Remove (const string &key)
 
void RemoveValue (const string &key, const string &value)
 

Protected Attributes

MultiAttributes mAttributes
 

Friends

CGtfAttributes g_GetIntersection (const CGtfAttributes &x, const CGtfAttributes &y)
 

Detailed Description

Definition at line 51 of file gtf_reader.hpp.

Member Typedef Documentation

◆ MultiAttributes

Definition at line 58 of file gtf_reader.hpp.

◆ MultiValue

Definition at line 56 of file gtf_reader.hpp.

Member Function Documentation

◆ AddValue()

void CGtfAttributes::AddValue ( const string key,
const string value 
)
inline

◆ Get()

const MultiAttributes& CGtfAttributes::Get ( void  ) const
inline

Definition at line 61 of file gtf_reader.hpp.

References mAttributes.

Referenced by g_GetIntersection(), and CGtfReader::xFeatureSetQualifiers().

◆ GetValues()

void CGtfAttributes::GetValues ( const string key,
MultiValue values 
) const
inline

◆ HasValue()

bool CGtfAttributes::HasValue ( const string key,
const string value = "" 
) const
inline

◆ Remove()

void CGtfAttributes::Remove ( const string key)
inline

◆ RemoveValue()

void CGtfAttributes::RemoveValue ( const string key,
const string value 
)
inline

◆ ValueOf()

string CGtfAttributes::ValueOf ( const string key) const
inline

Friends And Related Function Documentation

◆ g_GetIntersection

CGtfAttributes g_GetIntersection ( const CGtfAttributes x,
const CGtfAttributes y 
)
friend

Definition at line 230 of file gtf_reader.cpp.

Member Data Documentation

◆ mAttributes

MultiAttributes CGtfAttributes::mAttributes
protected

Definition at line 153 of file gtf_reader.hpp.

Referenced by AddValue(), Get(), GetValues(), HasValue(), Remove(), and RemoveValue().


The documentation for this class was generated from the following file:
Modified on Fri Sep 20 14:58:32 2024 by modify_doxy.py rev. 669887