OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
t_const_value Class Reference

#include <t_const_value.h>

Collaboration diagram for t_const_value:

Public Types

enum  t_const_value_type {
  CV_INTEGER, CV_DOUBLE, CV_STRING, CV_MAP,
  CV_LIST, CV_IDENTIFIER
}
 

Public Member Functions

 t_const_value ()
 
 t_const_value (int64_t val)
 
 t_const_value (std::string val)
 
void set_string (std::string val)
 
std::string get_string () const
 
void set_integer (int64_t val)
 
int64_t get_integer () const
 
void set_double (double val)
 
double get_double () const
 
std::string get_uuid () const
 
void set_map ()
 
void add_map (t_const_value *key, t_const_value *val)
 
const std::map< t_const_value
*, t_const_value * > & 
get_map () const
 
void set_list ()
 
void add_list (t_const_value *val)
 
const std::vector
< t_const_value * > & 
get_list () const
 
void set_identifier (std::string val)
 
std::string get_identifier () const
 
std::string get_identifier_name () const
 
std::string get_identifier_with_parent () const
 
void set_enum (t_enum *tenum)
 
t_const_value_type get_type () const
 

Private Attributes

std::map< t_const_value
*, t_const_value * > 
mapVal_
 
std::vector< t_const_value * > listVal_
 
std::string stringVal_
 
int64_t intVal_
 
double doubleVal_
 
std::string identifierVal_
 
t_enumenum_
 
t_const_value_type valType_
 

Detailed Description

A const value is something parsed that could be a map, set, list, struct or whatever.

Definition at line 36 of file t_const_value.h.

Member Enumeration Documentation

Enumerator
CV_INTEGER 
CV_DOUBLE 
CV_STRING 
CV_MAP 
CV_LIST 
CV_IDENTIFIER 

Definition at line 39 of file t_const_value.h.

Constructor & Destructor Documentation

t_const_value::t_const_value ( )
inline

Definition at line 48 of file t_const_value.h.

t_const_value::t_const_value ( int64_t  val)
inline

Definition at line 50 of file t_const_value.h.

Here is the call graph for this function:

t_const_value::t_const_value ( std::string  val)
inline

Definition at line 54 of file t_const_value.h.

Here is the call graph for this function:

Member Function Documentation

void t_const_value::add_list ( t_const_value val)
inline

Definition at line 129 of file t_const_value.h.

void t_const_value::add_map ( t_const_value key,
t_const_value val 
)
inline

Definition at line 117 of file t_const_value.h.

double t_const_value::get_double ( ) const
inline

Definition at line 99 of file t_const_value.h.

std::string t_const_value::get_identifier ( ) const
inline

Definition at line 142 of file t_const_value.h.

std::string t_const_value::get_identifier_name ( ) const
inline

Definition at line 146 of file t_const_value.h.

Here is the call graph for this function:

std::string t_const_value::get_identifier_with_parent ( ) const
inline

Definition at line 160 of file t_const_value.h.

Here is the call graph for this function:

int64_t t_const_value::get_integer ( ) const
inline

Definition at line 72 of file t_const_value.h.

Here is the call graph for this function:

const std::vector<t_const_value*>& t_const_value::get_list ( ) const
inline

Definition at line 133 of file t_const_value.h.

const std::map<t_const_value*, t_const_value*>& t_const_value::get_map ( ) const
inline

Definition at line 121 of file t_const_value.h.

std::string t_const_value::get_string ( ) const
inline

Definition at line 63 of file t_const_value.h.

t_const_value_type t_const_value::get_type ( ) const
inline

Definition at line 177 of file t_const_value.h.

std::string t_const_value::get_uuid ( ) const
inline

Definition at line 103 of file t_const_value.h.

void t_const_value::set_double ( double  val)
inline

Definition at line 94 of file t_const_value.h.

void t_const_value::set_enum ( t_enum tenum)
inline

Definition at line 173 of file t_const_value.h.

void t_const_value::set_identifier ( std::string  val)
inline

Definition at line 137 of file t_const_value.h.

void t_const_value::set_integer ( int64_t  val)
inline

Definition at line 67 of file t_const_value.h.

void t_const_value::set_list ( )
inline

Definition at line 125 of file t_const_value.h.

void t_const_value::set_map ( )
inline

Definition at line 113 of file t_const_value.h.

void t_const_value::set_string ( std::string  val)
inline

Definition at line 58 of file t_const_value.h.

Member Data Documentation

double t_const_value::doubleVal_
private

Definition at line 186 of file t_const_value.h.

t_enum* t_const_value::enum_
private

Definition at line 188 of file t_const_value.h.

std::string t_const_value::identifierVal_
private

Definition at line 187 of file t_const_value.h.

int64_t t_const_value::intVal_
private

Definition at line 185 of file t_const_value.h.

std::vector<t_const_value*> t_const_value::listVal_
private

Definition at line 183 of file t_const_value.h.

std::map<t_const_value*, t_const_value*> t_const_value::mapVal_
private

Definition at line 182 of file t_const_value.h.

std::string t_const_value::stringVal_
private

Definition at line 184 of file t_const_value.h.

t_const_value_type t_const_value::valType_
private

Definition at line 190 of file t_const_value.h.


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