CMSDK 2.0.1
Cross-platform C++ base library and SDK for the Psyclone AIOS platform
Loading...
Searching...
No Matches
cmlabs::MemoryMaps Class Reference

Legacy static facade over the page-based shared maps (types, contexts, topics, cranks). More...

#include <MemoryMaps.h>

Static Public Member Functions

static bool CreateNewTypeLevel (uint16 id, const char *name, uint64 time=0)
static bool GetTypeLevelName (uint16 id, char *name, uint32 maxSize)
static bool GetTypeLevelID (const char *name, uint16 &id)
static bool DeleteTypeLevel (const char *name)
static bool DeleteTypeLevel (uint16 id)
static uint64 GetTypeLevelCreateTime (uint16 id)
static bool CreateNewContextLevel (uint16 id, const char *name, uint64 time=0)
static bool GetContextLevelName (uint16 id, char *name, uint32 maxSize)
static bool GetContextLevelID (const char *name, uint16 &id)
static bool DeleteContextLevel (const char *name)
static bool DeleteContextLevel (uint16 id)
static uint64 GetContextLevelCreateTime (uint16 id)
static bool CreateNewTopic (uint8 id, const char *name)
static bool GetTopicName (uint32 id, char *name, uint32 maxSize)
static bool GetTopicID (const char *name, uint32 &id)
static bool DeleteTopic (const char *name)
static bool DeleteTopic (uint32 id)
static uint64 GetTopicCreateTime (uint32 id)
static bool CreateNewCrank (uint16 id, const char *name, const char *function, const char *libraryFilename, uint64 time=0)
static bool GetCrankName (uint16 id, char *name, uint32 maxSize)
static bool GetCrankFunction (uint16 id, char *function, uint32 maxSize)
static bool GetCrankLibraryFilename (uint16 id, char *libraryFilename, uint32 maxSize)
static bool GetCrankID (const char *name, uint16 &id)
static bool GetCrankScript (uint16 id, char *script, uint32 maxSize)
static bool SetCrankScript (uint16 id, const char *script)
static bool DeleteCrank (uint16 id)
static bool DeleteCrank (const char *name)
static uint64 GetCrankCreateTime (uint16 id)

Detailed Description

Legacy static facade over the page-based shared maps (types, contexts, topics, cranks).

Operates on the reserved system pages via MemoryManagerX locking. Most sections are commented out; the remaining APIs are kept for compatibility with older tools. All calls copy names into caller buffers; ids are returned via out-parameters.

Definition at line 256 of file MemoryMaps.h.

Member Function Documentation

◆ CreateNewContextLevel()

bool cmlabs::MemoryMaps::CreateNewContextLevel ( uint16 id,
const char * name,
uint64 time = 0 )
static

Definition at line 58 of file MemoryMaps.cpp.

References cmlabs::ContextMapEntry::time.

◆ CreateNewCrank()

bool cmlabs::MemoryMaps::CreateNewCrank ( uint16 id,
const char * name,
const char * function,
const char * libraryFilename,
uint64 time = 0 )
static

◆ CreateNewTopic()

bool cmlabs::MemoryMaps::CreateNewTopic ( uint8 id,
const char * name )
static

Definition at line 101 of file MemoryMaps.cpp.

◆ CreateNewTypeLevel()

bool cmlabs::MemoryMaps::CreateNewTypeLevel ( uint16 id,
const char * name,
uint64 time = 0 )
static

Definition at line 15 of file MemoryMaps.cpp.

References cmlabs::TypeMapEntry::time.

Referenced by cmlabs::ComponentData::UnitTest().

◆ DeleteContextLevel() [1/2]

bool cmlabs::MemoryMaps::DeleteContextLevel ( const char * name)
static

◆ DeleteContextLevel() [2/2]

bool cmlabs::MemoryMaps::DeleteContextLevel ( uint16 id)
static

Definition at line 85 of file MemoryMaps.cpp.

References cmlabs::GenericMemoryMap< T, ID >::DeleteEntry().

◆ DeleteCrank() [1/2]

bool cmlabs::MemoryMaps::DeleteCrank ( const char * name)
static

◆ DeleteCrank() [2/2]

bool cmlabs::MemoryMaps::DeleteCrank ( uint16 id)
static

Definition at line 285 of file MemoryMaps.cpp.

References cmlabs::GenericMemoryMap< T, ID >::DeleteEntry().

◆ DeleteTopic() [1/2]

bool cmlabs::MemoryMaps::DeleteTopic ( const char * name)
static

◆ DeleteTopic() [2/2]

bool cmlabs::MemoryMaps::DeleteTopic ( uint32 id)
static

Definition at line 126 of file MemoryMaps.cpp.

References cmlabs::GenericMemoryMap< T, ID >::DeleteEntry().

◆ DeleteTypeLevel() [1/2]

bool cmlabs::MemoryMaps::DeleteTypeLevel ( const char * name)
static

◆ DeleteTypeLevel() [2/2]

bool cmlabs::MemoryMaps::DeleteTypeLevel ( uint16 id)
static

Definition at line 42 of file MemoryMaps.cpp.

References cmlabs::GenericMemoryMap< T, ID >::DeleteEntry().

◆ GetContextLevelCreateTime()

uint64 cmlabs::MemoryMaps::GetContextLevelCreateTime ( uint16 id)
static

Definition at line 90 of file MemoryMaps.cpp.

◆ GetContextLevelID()

bool cmlabs::MemoryMaps::GetContextLevelID ( const char * name,
uint16 & id )
static

Definition at line 72 of file MemoryMaps.cpp.

References cmlabs::GenericMemoryMap< T, ID >::GetEntryID().

◆ GetContextLevelName()

bool cmlabs::MemoryMaps::GetContextLevelName ( uint16 id,
char * name,
uint32 maxSize )
static

Definition at line 67 of file MemoryMaps.cpp.

References cmlabs::GenericMemoryMap< T, ID >::GetEntryName().

◆ GetCrankCreateTime()

uint64 cmlabs::MemoryMaps::GetCrankCreateTime ( uint16 id)
static

Definition at line 290 of file MemoryMaps.cpp.

◆ GetCrankFunction()

bool cmlabs::MemoryMaps::GetCrankFunction ( uint16 id,
char * function,
uint32 maxSize )
static

◆ GetCrankID()

bool cmlabs::MemoryMaps::GetCrankID ( const char * name,
uint16 & id )
static

Definition at line 244 of file MemoryMaps.cpp.

References cmlabs::GenericMemoryMap< T, ID >::GetEntryID().

◆ GetCrankLibraryFilename()

bool cmlabs::MemoryMaps::GetCrankLibraryFilename ( uint16 id,
char * libraryFilename,
uint32 maxSize )
static

◆ GetCrankName()

bool cmlabs::MemoryMaps::GetCrankName ( uint16 id,
char * name,
uint32 maxSize )
static

Definition at line 211 of file MemoryMaps.cpp.

References cmlabs::GenericMemoryMap< T, ID >::GetEntryName().

◆ GetCrankScript()

bool cmlabs::MemoryMaps::GetCrankScript ( uint16 id,
char * script,
uint32 maxSize )
static

Definition at line 249 of file MemoryMaps.cpp.

References cmlabs::CrankMapEntry::script, and cmlabs::utils::strcpyavail().

◆ GetTopicCreateTime()

uint64 cmlabs::MemoryMaps::GetTopicCreateTime ( uint32 id)
static

Definition at line 131 of file MemoryMaps.cpp.

◆ GetTopicID()

bool cmlabs::MemoryMaps::GetTopicID ( const char * name,
uint32 & id )
static

Definition at line 113 of file MemoryMaps.cpp.

References cmlabs::GenericMemoryMap< T, ID >::GetEntryID().

◆ GetTopicName()

bool cmlabs::MemoryMaps::GetTopicName ( uint32 id,
char * name,
uint32 maxSize )
static

Definition at line 108 of file MemoryMaps.cpp.

References cmlabs::GenericMemoryMap< T, ID >::GetEntryName().

◆ GetTypeLevelCreateTime()

uint64 cmlabs::MemoryMaps::GetTypeLevelCreateTime ( uint16 id)
static

Definition at line 47 of file MemoryMaps.cpp.

◆ GetTypeLevelID()

bool cmlabs::MemoryMaps::GetTypeLevelID ( const char * name,
uint16 & id )
static

◆ GetTypeLevelName()

bool cmlabs::MemoryMaps::GetTypeLevelName ( uint16 id,
char * name,
uint32 maxSize )
static

◆ SetCrankScript()

bool cmlabs::MemoryMaps::SetCrankScript ( uint16 id,
const char * script )
static

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