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

#include <objdict.h>

Public Member Functions

template<>
Stringaccess ()
 
template<>
Stringallocate ()
 
template<typename T >
 Data (const ObjectDict::Key &k, const ObjectDict::EntryConstSharedPtr &e, const T &val, const ReadFunc &r, const WriteFunc &w)
 
 Data (const ObjectDict::Key &k, const ObjectDict::EntryConstSharedPtr &e, const TypeGuard &t, const ReadFunc &r, const WriteFunc &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 ReadFunc &r, const WriteFunc &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 ()
 
 Data (const Data &)=delete
 
Dataoperator= (const Data &)=delete
 

Private Attributes

String buffer
 
boost::mutex mutex
 
ReadFunc read_delegate
 
bool valid
 
WriteFunc write_delegate
 

Detailed Description

Definition at line 289 of file objdict.h.

Constructor & Destructor Documentation

◆ Data() [1/3]

canopen::ObjectStorage::Data::Data ( const Data )
privatedelete

◆ Data() [2/3]

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

Definition at line 319 of file objdict.h.

◆ Data() [3/3]

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

Definition at line 326 of file objdict.h.

Member Function Documentation

◆ access() [1/2]

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

Definition at line 300 of file objdict.h.

◆ access() [2/2]

String & ObjectStorage::Data::access

Definition at line 19 of file objdict.cpp.

◆ allocate() [1/2]

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

Definition at line 306 of file objdict.h.

◆ allocate() [2/2]

String & ObjectStorage::Data::allocate

Definition at line 25 of file objdict.cpp.

◆ force_write()

void ObjectStorage::Data::force_write ( )

Definition at line 57 of file objdict.cpp.

◆ get()

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

Definition at line 339 of file objdict.h.

◆ init()

void ObjectStorage::Data::init ( )

Definition at line 43 of file objdict.cpp.

◆ operator=()

Data& canopen::ObjectStorage::Data::operator= ( const Data )
privatedelete

◆ reset()

void ObjectStorage::Data::reset ( )

Definition at line 67 of file objdict.cpp.

◆ set()

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

Definition at line 355 of file objdict.h.

◆ set_cached()

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

Definition at line 367 of file objdict.h.

◆ set_delegates()

void canopen::ObjectStorage::Data::set_delegates ( const ReadFunc r,
const WriteFunc w 
)
inline

Definition at line 334 of file objdict.h.

◆ size()

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

Definition at line 317 of file objdict.h.

Member Data Documentation

◆ buffer

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

Definition at line 294 of file objdict.h.

◆ entry

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

Definition at line 315 of file objdict.h.

◆ key

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

Definition at line 316 of file objdict.h.

◆ mutex

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

Definition at line 293 of file objdict.h.

◆ read_delegate

ReadFunc canopen::ObjectStorage::Data::read_delegate
private

Definition at line 297 of file objdict.h.

◆ type_guard

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

Definition at line 314 of file objdict.h.

◆ valid

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

Definition at line 295 of file objdict.h.

◆ write_delegate

WriteFunc canopen::ObjectStorage::Data::write_delegate
private

Definition at line 298 of file objdict.h.


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


canopen_master
Author(s): Mathias Lüdtke
autogenerated on Wed Mar 2 2022 00:52:26