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

#include <t_const.h>

Inheritance diagram for t_const:
Collaboration diagram for t_const:

Public Member Functions

 t_const (t_type *type, std::string name, t_const_value *value)
 
t_typeget_type () const
 
std::string get_name () const
 
t_const_valueget_value () const
 
- Public Member Functions inherited from t_doc
 t_doc ()
 
void set_doc (const std::string &doc)
 
const std::string & get_doc () const
 
bool has_doc ()
 

Private Attributes

t_typetype_
 
std::string name_
 
t_const_valuevalue_
 

Detailed Description

A const is a constant value defined across languages that has a type and a value. The trick here is that the declared type might not match the type of the value object, since that is not determined until after parsing the whole thing out.

Definition at line 33 of file t_const.h.

Constructor & Destructor Documentation

t_const::t_const ( t_type type,
std::string  name,
t_const_value value 
)
inline

Definition at line 35 of file t_const.h.

Member Function Documentation

std::string t_const::get_name ( ) const
inline

Definition at line 44 of file t_const.h.

t_type* t_const::get_type ( ) const
inline

Definition at line 40 of file t_const.h.

t_const_value* t_const::get_value ( ) const
inline

Definition at line 48 of file t_const.h.

Member Data Documentation

std::string t_const::name_
private

Definition at line 54 of file t_const.h.

t_type* t_const::type_
private

Definition at line 53 of file t_const.h.

t_const_value* t_const::value_
private

Definition at line 55 of file t_const.h.


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