Essentia  2.1-beta6-dev
YamlScalarNode Class Reference

#include <yamlast.h>

Inheritance diagram for YamlScalarNode:
YamlNode

Public Types

enum  YamlScalarType { STRING , FLOAT }
 

Public Member Functions

 YamlScalarNode (const float &f)
 
 YamlScalarNode (const std::string &s)
 
const YamlScalarTypegetType () const
 
virtual ~YamlScalarNode ()
 
const std::string & toString () const
 
const float & toFloat () const
 
- Public Member Functions inherited from YamlNode
virtual ~YamlNode ()=0
 

Private Attributes

YamlScalarType _tp
 
std::string _strDS
 
float _floatDS
 

Member Enumeration Documentation

◆ YamlScalarType

Enumerator
STRING 
FLOAT 

Constructor & Destructor Documentation

◆ YamlScalarNode() [1/2]

YamlScalarNode ( const float &  f)
inline

◆ YamlScalarNode() [2/2]

YamlScalarNode ( const std::string &  s)
inline

◆ ~YamlScalarNode()

virtual ~YamlScalarNode ( )
inlinevirtual

Member Function Documentation

◆ getType()

const YamlScalarType& getType ( ) const
inline

References YamlScalarNode::_tp.

◆ toFloat()

const float& toFloat ( ) const
inline

◆ toString()

const std::string& toString ( ) const
inline

Member Data Documentation

◆ _floatDS

float _floatDS
private

Referenced by YamlScalarNode::toFloat().

◆ _strDS

std::string _strDS
private

◆ _tp


The documentation for this class was generated from the following file: