OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ProtoElement< Derived > Class Template Reference

#include <proto.h>

Inheritance diagram for ProtoElement< Derived >:
Collaboration diagram for ProtoElement< Derived >:

Public Types

typedef void SequenceLength
 
- Public Types inherited from ElementBase
typedef void SaveOffset
 
typedef void ContextType
 
typedef NullCtxInit ContextInit
 
typedef NoMatch ContextMatch
 
typedef void Setter
 
typedef void EncodingCallback
 
typedef void ContextSwap
 
typedef void SizeSetter
 

Static Public Member Functions

template<typename T >
static void Writer (T *msg, uint8_t *data, size_t size)
 
template<typename T >
static int Parse (const uint8_t *data, size_t size, ParseContext *context, T *obj)
 
template<typename T >
static int Encode (EncodeContext *context, const T *msg, uint8_t *data, size_t size)
 
- Static Public Member Functions inherited from ElementBase
static bool Verifier (const void *obj, const uint8_t *data, size_t size, ParseContext *context)
 

Static Private Member Functions

static void SequenceLengthWriteLen (EncodeContext *context, uint8_t *data, int offset, int element_size)
 

Additional Inherited Members

- Static Public Attributes inherited from ElementBase
static const int kSize = 0
 
static const int kErrorCode = 0
 
static const int kErrorSubcode = 0
 

Detailed Description

template<class Derived>
class ProtoElement< Derived >

Definition at line 209 of file src/contrail-common/base/proto.h.

Member Typedef Documentation

template<class Derived>
typedef void ProtoElement< Derived >::SequenceLength

Definition at line 211 of file src/contrail-common/base/proto.h.

Member Function Documentation

template<class Derived>
template<typename T >
static int ProtoElement< Derived >::Encode ( EncodeContext context,
const T *  msg,
uint8_t *  data,
size_t  size 
)
inlinestatic

Definition at line 289 of file src/contrail-common/base/proto.h.

template<class Derived>
template<typename T >
static int ProtoElement< Derived >::Parse ( const uint8_t *  data,
size_t  size,
ParseContext context,
T *  obj 
)
inlinestatic

Definition at line 227 of file src/contrail-common/base/proto.h.

template<class Derived>
static void ProtoElement< Derived >::SequenceLengthWriteLen ( EncodeContext context,
uint8_t *  data,
int  offset,
int  element_size 
)
inlinestaticprivate

Definition at line 329 of file src/contrail-common/base/proto.h.

template<class Derived>
template<typename T >
static void ProtoElement< Derived >::Writer ( T *  msg,
uint8_t *  data,
size_t  size 
)
inlinestatic

Definition at line 214 of file src/contrail-common/base/proto.h.


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