OpenSDN source code
|
#include <t_type.h>
Public Member Functions | |
virtual | ~t_type () |
virtual void | set_name (const std::string &name) |
virtual const std::string & | get_name () const |
virtual bool | is_void () const |
virtual bool | is_base_type () const |
virtual bool | is_string () const |
virtual bool | is_bool () const |
virtual bool | is_typedef () const |
virtual bool | is_enum () const |
virtual bool | is_struct () const |
virtual bool | is_xception () const |
virtual bool | is_container () const |
virtual bool | is_list () const |
virtual bool | is_set () const |
virtual bool | is_map () const |
virtual bool | is_service () const |
t_program * | get_program () |
t_type * | get_true_type () |
virtual std::string | get_fingerprint_material () const =0 |
virtual void | generate_fingerprint () |
bool | has_fingerprint () const |
const uint8_t * | get_binary_fingerprint () const |
std::string | get_ascii_fingerprint () const |
const uint32_t | get_4byte_fingerprint () const |
![]() | |
t_doc () | |
void | set_doc (const std::string &doc) |
const std::string & | get_doc () const |
bool | has_doc () |
Static Public Member Functions | |
static char | nybble_to_xdigit (int num) |
static std::string | byte_to_hex (uint8_t byte) |
Public Attributes | |
std::map< std::string, std::string > | annotations_ |
Static Public Attributes | |
static const int | fingerprint_len = 16 |
Protected Member Functions | |
t_type () | |
t_type (t_program *program) | |
t_type (t_program *program, std::string name) | |
t_type (std::string name) | |
Protected Attributes | |
t_program * | program_ |
std::string | name_ |
uint8_t | fingerprint_ [fingerprint_len] |
Generic representation of a thrift type. These objects are used by the parser module to build up a tree of object that are all explicitly typed. The generic t_type class exports a variety of useful methods that are used by the code generator to branch based upon different handling for the various types.
|
inlineprotected |
|
inlinestatic |
|
virtual |
|
inline |
|
inline |
|
inline |
|
pure virtual |
Implemented in t_base_type, t_enum, t_classdef, t_service, t_struct_common, t_typedef, t_map, t_list, and t_set.
|
inlinevirtual |
t_type * t_type::get_true_type | ( | ) |
|
inlinevirtual |
Reimplemented in t_base_type.
|
inlinevirtual |
Reimplemented in t_base_type.
|
inlinevirtual |
Reimplemented in t_container.
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Reimplemented in t_base_type.
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Reimplemented in t_base_type.
|
inlinevirtual |
|
inlinestatic |
|
inlinevirtual |
|
protected |