Public Member Functions
cpp_introspection::Field Class Reference

#include <field.h>

Inheritance diagram for cpp_introspection::Field:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual FieldPtr access (AccessorBase &accessor) const =0
template<typename T >
as (std::size_t i=0) const
virtual std::size_t capacity () const
virtual bool empty () const
virtual MessagePtr expand (std::size_t i=0) const
virtual boost::any get (std::size_t i=0) const
virtual const char * getDataType () const =0
virtual std::size_t getIndex () const =0
virtual const char * getName () const =0
virtual TypePtr getType () const
virtual const std::type_info & getTypeId () const =0
virtual const char * getValueType () const =0
virtual bool hasInstance () const
virtual bool isArray () const =0
virtual bool isContainer () const =0
virtual bool isFixedSize () const =0
virtual bool isMessage () const =0
virtual bool isSimple () const =0
virtual bool isVector () const =0
virtual const Messagemessage () const =0
virtual void resize (size_t new_size) const
template<typename T >
void set (const T &value, std::size_t i=0) const
virtual void setAny (const boost::any &value, std::size_t i=0) const
virtual std::size_t size () const
virtual ~Field ()

Detailed Description

Definition at line 37 of file field.h.


Constructor & Destructor Documentation

virtual cpp_introspection::Field::~Field ( ) [inline, virtual]

Definition at line 40 of file field.h.


Member Function Documentation

virtual FieldPtr cpp_introspection::Field::access ( AccessorBase accessor) const [pure virtual]
template<typename T >
T cpp_introspection::Field::as ( std::size_t  i = 0) const [inline]

Definition at line 60 of file field.h.

virtual std::size_t cpp_introspection::Field::capacity ( ) const [inline, virtual]

Definition at line 68 of file field.h.

virtual bool cpp_introspection::Field::empty ( ) const [inline, virtual]

Definition at line 67 of file field.h.

MessagePtr cpp_introspection::Field::expand ( std::size_t  i = 0) const [virtual]

Definition at line 232 of file introspection.cpp.

virtual boost::any cpp_introspection::Field::get ( std::size_t  i = 0) const [inline, virtual]

Reimplemented in cpp_introspection::ExpandedField.

Definition at line 59 of file field.h.

virtual const char* cpp_introspection::Field::getDataType ( ) const [pure virtual]
virtual std::size_t cpp_introspection::Field::getIndex ( ) const [pure virtual]
virtual const char* cpp_introspection::Field::getName ( ) const [pure virtual]
virtual TypePtr cpp_introspection::Field::getType ( ) const [inline, virtual]

Reimplemented in cpp_introspection::ExpandedField.

Definition at line 49 of file field.h.

virtual const std::type_info& cpp_introspection::Field::getTypeId ( ) const [pure virtual]
virtual const char* cpp_introspection::Field::getValueType ( ) const [pure virtual]
virtual bool cpp_introspection::Field::hasInstance ( ) const [inline, virtual]

Reimplemented in cpp_introspection::ExpandedField.

Definition at line 58 of file field.h.

virtual bool cpp_introspection::Field::isArray ( ) const [pure virtual]
virtual bool cpp_introspection::Field::isContainer ( ) const [pure virtual]
virtual bool cpp_introspection::Field::isFixedSize ( ) const [pure virtual]
virtual bool cpp_introspection::Field::isMessage ( ) const [pure virtual]
virtual bool cpp_introspection::Field::isSimple ( ) const [pure virtual]
virtual bool cpp_introspection::Field::isVector ( ) const [pure virtual]
virtual const Message& cpp_introspection::Field::message ( ) const [pure virtual]
virtual void cpp_introspection::Field::resize ( size_t  new_size) const [inline, virtual]

Definition at line 66 of file field.h.

template<typename T >
void cpp_introspection::Field::set ( const T &  value,
std::size_t  i = 0 
) const [inline]

Definition at line 63 of file field.h.

virtual void cpp_introspection::Field::setAny ( const boost::any &  value,
std::size_t  i = 0 
) const [inline, virtual]

Reimplemented in cpp_introspection::ExpandedField.

Definition at line 62 of file field.h.

virtual std::size_t cpp_introspection::Field::size ( ) const [inline, virtual]

Definition at line 65 of file field.h.


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


cpp_introspection
Author(s): Johannes Meyer
autogenerated on Sat Jun 8 2019 19:46:00