OpenSDN source code
|
#include <t_struct.h>
Public Member Functions | |
t_struct (t_program *program) | |
t_struct (t_program *program, const std::string &name) | |
virtual std::string | get_struct_type_name () |
void | set_xception (bool is_xception) |
void | set_union (bool is_union) |
void | set_xsd_all (bool xsd_all) |
bool | get_xsd_all () const |
bool | is_struct () const |
bool | is_xception () const |
bool | is_union () const |
t_field * | get_field_by_name (std::string field_name) |
![]() | |
virtual | ~t_struct_common () |
const members_type & | get_members () |
const members_type & | get_sorted_members () |
bool | append (t_field *elem) |
virtual std::string | get_fingerprint_material () const |
virtual void | generate_fingerprint () |
![]() | |
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_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 () |
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 () |
Private Attributes | |
bool | is_xception_ |
bool | is_union_ |
bool | xsd_all_ |
Additional Inherited Members | |
![]() | |
typedef std::vector< t_field * > | members_type |
![]() | |
static char | nybble_to_xdigit (int num) |
static std::string | byte_to_hex (uint8_t byte) |
![]() | |
std::map< std::string, std::string > | annotations_ |
![]() | |
static const int | fingerprint_len = 16 |
![]() | |
t_struct_common (t_program *program) | |
t_struct_common (t_program *program, const std::string &name) | |
![]() | |
t_type () | |
t_type (t_program *program) | |
t_type (t_program *program, std::string name) | |
t_type (std::string name) | |
![]() | |
members_type | members_ |
members_type | members_in_id_order_ |
![]() | |
t_program * | program_ |
std::string | name_ |
uint8_t | fingerprint_ [fingerprint_len] |
A struct is a container for a set of member fields that has a name. Structs are also used to implement exception types.
Definition at line 37 of file t_struct.h.
|
inline |
Definition at line 39 of file t_struct.h.
|
inline |
Definition at line 44 of file t_struct.h.
|
inline |
Definition at line 81 of file t_struct.h.
|
inlinevirtual |
Implements t_struct_common.
Definition at line 49 of file t_struct.h.
|
inline |
Definition at line 65 of file t_struct.h.
|
inlinevirtual |
Reimplemented from t_type.
Definition at line 69 of file t_struct.h.
|
inline |
Definition at line 77 of file t_struct.h.
|
inlinevirtual |
Reimplemented from t_type.
Definition at line 73 of file t_struct.h.
|
inline |
|
inline |
|
inline |
Definition at line 61 of file t_struct.h.
|
private |
Definition at line 97 of file t_struct.h.
|
private |
Definition at line 96 of file t_struct.h.
|
private |
Definition at line 98 of file t_struct.h.