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

#include <t_map.h>

Inheritance diagram for t_map:
Collaboration diagram for t_map:

Public Member Functions

 t_map (t_type *key_type, t_type *val_type)
 
t_typeget_key_type () const
 
t_typeget_val_type () const
 
bool is_map () const
 
virtual std::string get_fingerprint_material () const
 
virtual void generate_fingerprint ()
 
- Public Member Functions inherited from t_container
 t_container ()
 
virtual ~t_container ()
 
void set_cpp_name (std::string cpp_name)
 
bool has_cpp_name ()
 
std::string get_cpp_name ()
 
bool is_container () const
 
- 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_list () const
 
virtual bool is_set () const
 
virtual bool is_service () const
 
t_programget_program ()
 
t_typeget_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 ()
 

Private Attributes

t_typekey_type_
 
t_typeval_type_
 

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
 
- 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 inherited from t_type
t_programprogram_
 
std::string name_
 
uint8_t fingerprint_ [fingerprint_len]
 

Detailed Description

A map is a lightweight container type that just wraps another two data types.

Definition at line 30 of file t_map.h.

Constructor & Destructor Documentation

t_map::t_map ( t_type key_type,
t_type val_type 
)
inline

Definition at line 32 of file t_map.h.

Member Function Documentation

virtual void t_map::generate_fingerprint ( )
inlinevirtual

Reimplemented from t_type.

Definition at line 53 of file t_map.h.

Here is the call graph for this function:

virtual std::string t_map::get_fingerprint_material ( ) const
inlinevirtual

Implements t_type.

Definition at line 48 of file t_map.h.

Here is the call graph for this function:

t_type* t_map::get_key_type ( ) const
inline

Definition at line 36 of file t_map.h.

t_type* t_map::get_val_type ( ) const
inline

Definition at line 40 of file t_map.h.

bool t_map::is_map ( ) const
inlinevirtual

Reimplemented from t_type.

Definition at line 44 of file t_map.h.

Member Data Documentation

t_type* t_map::key_type_
private

Definition at line 60 of file t_map.h.

t_type* t_map::val_type_
private

Definition at line 61 of file t_map.h.


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