Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
canopen::ObjectStorage::Data Class Reference

#include <objdict.h>

Inheritance diagram for canopen::ObjectStorage::Data:
Inheritance graph
[legend]

Public Member Functions

template<>
Stringaccess ()
 
template<>
Stringallocate ()
 
template<typename T >
 Data (const ObjectDict::Key &k, const ObjectDict::EntryConstSharedPtr &e, const T &val, const ReadDelegate &r, const WriteDelegate &w)
 
 Data (const ObjectDict::Key &k, const ObjectDict::EntryConstSharedPtr &e, const TypeGuard &t, const ReadDelegate &r, const WriteDelegate &w)
 
void force_write ()
 
template<typename T >
const T get (bool cached)
 
void init ()
 
void reset ()
 
template<typename T >
void set (const T &val)
 
template<typename T >
void set_cached (const T &val)
 
void set_delegates (const ReadDelegate &r, const WriteDelegate &w)
 
size_t size ()
 

Public Attributes

const ObjectDict::EntryConstSharedPtr entry
 
const ObjectDict::Key key
 
const TypeGuard type_guard
 

Private Member Functions

template<typename T >
T & access ()
 
template<typename T >
T & allocate ()
 

Private Attributes

String buffer
 
boost::mutex mutex
 
ReadDelegate read_delegate
 
bool valid
 
WriteDelegate write_delegate
 

Detailed Description

Definition at line 279 of file objdict.h.

Constructor & Destructor Documentation

template<typename T >
canopen::ObjectStorage::Data::Data ( const ObjectDict::Key k,
const ObjectDict::EntryConstSharedPtr e,
const T &  val,
const ReadDelegate r,
const WriteDelegate w 
)
inline

Definition at line 306 of file objdict.h.

canopen::ObjectStorage::Data::Data ( const ObjectDict::Key k,
const ObjectDict::EntryConstSharedPtr e,
const TypeGuard t,
const ReadDelegate r,
const WriteDelegate w 
)
inline

Definition at line 313 of file objdict.h.

Member Function Documentation

template<typename T >
T& canopen::ObjectStorage::Data::access ( )
inlineprivate

Definition at line 287 of file objdict.h.

String & ObjectStorage::Data::access ( )

Definition at line 20 of file objdict.cpp.

template<typename T >
T& canopen::ObjectStorage::Data::allocate ( )
inlineprivate

Definition at line 293 of file objdict.h.

String & ObjectStorage::Data::allocate ( )

Definition at line 26 of file objdict.cpp.

void ObjectStorage::Data::force_write ( )

Definition at line 58 of file objdict.cpp.

template<typename T >
const T canopen::ObjectStorage::Data::get ( bool  cached)
inline

Definition at line 326 of file objdict.h.

void ObjectStorage::Data::init ( )

Definition at line 44 of file objdict.cpp.

void ObjectStorage::Data::reset ( )

Definition at line 68 of file objdict.cpp.

template<typename T >
void canopen::ObjectStorage::Data::set ( const T &  val)
inline

Definition at line 342 of file objdict.h.

template<typename T >
void canopen::ObjectStorage::Data::set_cached ( const T &  val)
inline

Definition at line 354 of file objdict.h.

void canopen::ObjectStorage::Data::set_delegates ( const ReadDelegate r,
const WriteDelegate w 
)
inline

Definition at line 321 of file objdict.h.

size_t canopen::ObjectStorage::Data::size ( )
inline

Definition at line 304 of file objdict.h.

Member Data Documentation

String canopen::ObjectStorage::Data::buffer
private

Definition at line 281 of file objdict.h.

const ObjectDict::EntryConstSharedPtr canopen::ObjectStorage::Data::entry

Definition at line 302 of file objdict.h.

const ObjectDict::Key canopen::ObjectStorage::Data::key

Definition at line 303 of file objdict.h.

boost::mutex canopen::ObjectStorage::Data::mutex
private

Definition at line 280 of file objdict.h.

ReadDelegate canopen::ObjectStorage::Data::read_delegate
private

Definition at line 284 of file objdict.h.

const TypeGuard canopen::ObjectStorage::Data::type_guard

Definition at line 301 of file objdict.h.

bool canopen::ObjectStorage::Data::valid
private

Definition at line 282 of file objdict.h.

WriteDelegate canopen::ObjectStorage::Data::write_delegate
private

Definition at line 285 of file objdict.h.


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


canopen_master
Author(s): Mathias Lüdtke
autogenerated on Sat May 4 2019 02:40:43