#include "DcpsInfo_pch.h"#include "PersistenceUpdater.h"#include "UpdateManager.h"#include "ArrDelAdapter.h"#include "dds/DCPS/RepoIdConverter.h"#include "dds/DCPS/GuidUtils.h"#include "ace/Malloc_T.h"#include "ace/MMAP_Memory_Pool.h"#include "ace/OS_NS_strings.h"#include "ace/Svc_Handler.h"#include "ace/Dynamic_Service.h"#include <algorithm>Include dependency graph for PersistenceUpdater.cpp:

Go to the source code of this file.
Namespaces | |
| namespace | Update |
Classes | |
| struct | Update::TopicStrt< QosSeq, ACE_CString > |
| struct | Update::ParticipantStrt< QosSeq > |
| struct | Update::ActorStrt< QosSeq, QosSeq, ACE_CString, BinSeq, ContentSubscriptionBin > |
Functions | |
| void | assign (Update::BinSeq &to, const Update::BinSeq &from, Update::PersistenceUpdater::ALLOCATOR *allocator) |
| void | assign (ACE_CString &to, const char *from, Update::PersistenceUpdater::ALLOCATOR *allocator) |
| void * | Update::createIndex (const std::string &tag, PersistenceUpdater::ALLOCATOR &allocator, size_t size, bool &exists) |
| template<typename I> | |
| void | Update::index_cleanup (I *index, PersistenceUpdater::ALLOCATOR *allocator) |
| void @102::assign | ( | ACE_CString & | to, | |
| const char * | from, | |||
| Update::PersistenceUpdater::ALLOCATOR * | allocator | |||
| ) | [static] |
Definition at line 36 of file PersistenceUpdater.cpp.
00038 { 00039 const size_t len = ACE_OS::strlen (from) + 1; 00040 void* out_buf; 00041 ACE_ALLOCATOR(out_buf, allocator->malloc(len)); 00042 ACE_OS::memcpy(out_buf, from, len); 00043 to.set(static_cast<char*>(out_buf), len - 1, false); 00044 }
| void @102::assign | ( | Update::BinSeq & | to, | |
| const Update::BinSeq & | from, | |||
| Update::PersistenceUpdater::ALLOCATOR * | allocator | |||
| ) | [static] |
Definition at line 26 of file PersistenceUpdater.cpp.
00028 { 00029 const size_t len = from.first; 00030 void* out_buf; 00031 ACE_ALLOCATOR(out_buf, allocator->malloc(len)); 00032 ACE_OS::memcpy(out_buf, from.second, len); 00033 to = std::make_pair(len, static_cast<char*>(out_buf)); 00034 }
1.4.7