Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages
ExperimentalDesign::SampleSection Class Reference

#include <OpenMS/METADATA/ExperimentalDesign.h>

Public Member Functions

 SampleSection ()=default
 
 SampleSection (std::vector< std::vector< String > > _content, std::map< unsigned, Size > _sample_to_rowindex, std::map< String, Size > _columnname_to_columnindex)
 
std::set< unsigned > getSamples () const
 
std::set< StringgetFactors () const
 
bool hasSample (unsigned sample) const
 
bool hasFactor (const String &factor) const
 
String getFactorValue (unsigned sample, const String &factor)
 

Private Attributes

std::vector< std::vector< String > > content_
 
std::map< unsigned, Sizesample_to_rowindex_
 
std::map< String, Sizecolumnname_to_columnindex_
 

Constructor & Destructor Documentation

◆ SampleSection() [1/2]

SampleSection ( )
default

◆ SampleSection() [2/2]

SampleSection ( std::vector< std::vector< String > >  _content,
std::map< unsigned, Size _sample_to_rowindex,
std::map< String, Size _columnname_to_columnindex 
)

Member Function Documentation

◆ getFactors()

std::set< String > getFactors ( ) const

◆ getFactorValue()

String getFactorValue ( unsigned  sample,
const String factor 
)

◆ getSamples()

std::set< unsigned > getSamples ( ) const

◆ hasFactor()

bool hasFactor ( const String factor) const

◆ hasSample()

bool hasSample ( unsigned  sample) const

Member Data Documentation

◆ columnname_to_columnindex_

std::map< String, Size > columnname_to_columnindex_
private

◆ content_

std::vector< std::vector < String > > content_
private

◆ sample_to_rowindex_

std::map< unsigned, Size > sample_to_rowindex_
private

OpenMS / TOPP release 2.3.0 Documentation generated on Wed Apr 18 2018 19:29:12 using doxygen 1.8.14