|
OpenSDN source code
|
#include <t_struct_common.h>


Public Types | |
| typedef std::vector< t_field * > | members_type |
Public Member Functions | |
| virtual | ~t_struct_common () |
| virtual std::string | get_struct_type_name ()=0 |
| 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 () |
Public Member Functions inherited from t_type | |
| 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 () |
| bool | has_fingerprint () const |
| const uint8_t * | get_binary_fingerprint () const |
| std::string | get_ascii_fingerprint () const |
| const uint32_t | get_4byte_fingerprint () 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 () |
Protected Member Functions | |
| t_struct_common (t_program *program) | |
| t_struct_common (t_program *program, const std::string &name) | |
Protected Member Functions inherited from t_type | |
| t_type () | |
| t_type (t_program *program) | |
| t_type (t_program *program, std::string name) | |
| t_type (std::string name) | |
Protected Attributes | |
| members_type | members_ |
| members_type | members_in_id_order_ |
Protected Attributes inherited from t_type | |
| t_program * | program_ |
| std::string | name_ |
| uint8_t | fingerprint_ [fingerprint_len] |
Additional Inherited Members | |
Static Public Member Functions inherited from t_type | |
| static char | nybble_to_xdigit (int num) |
| static std::string | byte_to_hex (uint8_t byte) |
Public Attributes inherited from t_type | |
| std::map< std::string, std::string > | annotations_ |
Static Public Attributes inherited from t_type | |
| static const int | fingerprint_len = 16 |
A struct_common is a container for a set of member fields that has a name. It is a base class for struct and sandesh containers.
Definition at line 23 of file t_struct_common.h.
| typedef std::vector<t_field*> t_struct_common::members_type |
Definition at line 25 of file t_struct_common.h.
|
inlinevirtual |
Definition at line 27 of file t_struct_common.h.
|
inlineprotected |
Definition at line 76 of file t_struct_common.h.
|
inlineprotected |
Definition at line 79 of file t_struct_common.h.
|
inline |
Definition at line 39 of file t_struct_common.h.
|
inlinevirtual |
Reimplemented from t_type.
Definition at line 67 of file t_struct_common.h.

|
inlinevirtual |
Implements t_type.
Definition at line 56 of file t_struct_common.h.
|
inline |
Definition at line 31 of file t_struct_common.h.
|
inline |
Definition at line 35 of file t_struct_common.h.
|
pure virtual |
|
protected |
Definition at line 82 of file t_struct_common.h.
|
protected |
Definition at line 83 of file t_struct_common.h.