Anklang 0.3.0-460-gc4ef46ba
ASE — Anklang Sound Engine (C++)

« « « Anklang Documentation
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Friends | List of all members
Jsonipc::InstanceMap Class Reference

Classes

class  InstanceWrapper
 
class  Wrapper
 

Public Types

using CreateWrapper = Wrapper *(*)(const std::shared_ptr< SharedBase > &sptr, size_t &basedepth)
 
using WrapperMap = std::unordered_map< size_t, Wrapper * >
 
using TypeidMap = std::map< TypeidKey, size_t >
 
using IdSet = std::set< size_t >
 

Public Member Functions

bool delete_id (size_t thisid)
 
bool mark_unused ()
 
size_t purge_unused (const std::vector< size_t > &unused)
 
bool empty () const
 
size_t size () const
 
void clear (const bool printdebug=false)
 
virtual JsonValue wrapper_to_json (Wrapper *wrapper, const size_t thisid, JsonAllocator &allocator)
 
virtual Wrapperwrapper_from_json (const JsonValue &value)
 

Static Public Member Functions

static std::vector< CreateWrapper > & wrapper_creators ()
 
static void register_wrapper (CreateWrapper createwrapper)
 
static size_t next_counter ()
 
template<typename T >
static JsonValue scope_wrap_object (const std::shared_ptr< T > &sptr, JsonAllocator &allocator)
 
static Wrapperscope_lookup_wrapper (const JsonValue &value)
 
static bool scope_forget_id (size_t thisid)
 

Public Attributes

WrapperMap wmap_
 
TypeidMap typeid_map_
 
IdSetidset_
 

Friends

class Scope
 

Detailed Description

Definition at line 538 of file jsonipc.hh.

Member Typedef Documentation

◆ CreateWrapper

using Jsonipc::InstanceMap::CreateWrapper = Wrapper* (*) (const std::shared_ptr<SharedBase> &sptr, size_t &basedepth)

Definition at line 559 of file jsonipc.hh.

◆ IdSet

Definition at line 593 of file jsonipc.hh.

◆ TypeidMap

Definition at line 592 of file jsonipc.hh.

◆ WrapperMap

Definition at line 591 of file jsonipc.hh.

Constructor & Destructor Documentation

◆ ~InstanceMap()

virtual Jsonipc::InstanceMap::~InstanceMap ( )
virtual

Definition at line 676 of file jsonipc.hh.

Member Function Documentation

◆ clear()

void Jsonipc::InstanceMap::clear ( const bool  printdebug = false)

Definition at line 657 of file jsonipc.hh.

◆ delete_id()

bool Jsonipc::InstanceMap::delete_id ( size_t  thisid)

Definition at line 599 of file jsonipc.hh.

◆ empty()

bool Jsonipc::InstanceMap::empty ( ) const

Definition at line 647 of file jsonipc.hh.

◆ mark_unused()

bool Jsonipc::InstanceMap::mark_unused ( )

Definition at line 618 of file jsonipc.hh.

◆ next_counter()

static size_t Jsonipc::InstanceMap::next_counter ( )
static

Definition at line 597 of file jsonipc.hh.

◆ purge_unused()

size_t Jsonipc::InstanceMap::purge_unused ( const std::vector< size_t > &  unused)

Definition at line 626 of file jsonipc.hh.

◆ register_wrapper()

static void Jsonipc::InstanceMap::register_wrapper ( CreateWrapper  createwrapper)
static

Definition at line 562 of file jsonipc.hh.

◆ scope_forget_id()

static bool Jsonipc::InstanceMap::scope_forget_id ( size_t  thisid)
static

Definition at line 764 of file jsonipc.hh.

◆ scope_lookup_wrapper()

static Wrapper * Jsonipc::InstanceMap::scope_lookup_wrapper ( const JsonValue &  value)
static

Definition at line 758 of file jsonipc.hh.

◆ scope_wrap_object()

template<typename T >
static JsonValue Jsonipc::InstanceMap::scope_wrap_object ( const std::shared_ptr< T > &  sptr,
JsonAllocator &  allocator 
)
static

Definition at line 693 of file jsonipc.hh.

◆ size()

size_t Jsonipc::InstanceMap::size ( ) const

Definition at line 652 of file jsonipc.hh.

◆ wrapper_creators()

static std::vector< CreateWrapper > & Jsonipc::InstanceMap::wrapper_creators ( )
static

Definition at line 560 of file jsonipc.hh.

◆ wrapper_from_json()

virtual Wrapper * Jsonipc::InstanceMap::wrapper_from_json ( const JsonValue &  value)
virtual

Definition at line 739 of file jsonipc.hh.

◆ wrapper_to_json()

virtual JsonValue Jsonipc::InstanceMap::wrapper_to_json ( Wrapper wrapper,
const size_t  thisid,
JsonAllocator &  allocator 
)
virtual

Definition at line 683 of file jsonipc.hh.

Friends And Related Symbol Documentation

◆ Scope

friend class Scope
friend

Definition at line 539 of file jsonipc.hh.

Member Data Documentation

◆ idset_

IdSet* Jsonipc::InstanceMap::idset_

Definition at line 596 of file jsonipc.hh.

◆ typeid_map_

TypeidMap Jsonipc::InstanceMap::typeid_map_

Definition at line 595 of file jsonipc.hh.

◆ wmap_

WrapperMap Jsonipc::InstanceMap::wmap_

Definition at line 594 of file jsonipc.hh.


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