VL
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
dmb::Registry Class Reference

#include <DMBCore.h>

Public Member Functions

vl::Object & CreateType (const std::string &)
 
vl::Var & RegisterType (const std::string &, vl::Var &type)
 
vl::Object & GetType (const std::string &)
 
bool ForeachType (const std::function< bool(const std::string &, vl::Object &)> &pred)
 
bool ForeachType (const std::function< bool(const std::string &, const vl::Object &)> &pred) const
 
bool RemoveType (const std::string &typeName)
 
bool RenameType (const std::string &typeName, const std::string &newName)
 
bool HasType (const std::string &typeName)
 
vl::Object & GetData ()
 
const vl::Object & GetData () const
 
void Clear (bool recursive=false)
 

Protected Member Functions

void Init (const vl::Object &data)
 

Protected Attributes

vl::Object mData
 

Friends

class Model
 

Member Function Documentation

◆ Clear()

void dmb::Registry::Clear ( bool  recursive = false)

◆ CreateType()

vl::Object & dmb::Registry::CreateType ( const std::string &  typeName)

◆ ForeachType() [1/2]

bool dmb::Registry::ForeachType ( const std::function< bool(const std::string &, const vl::Object &)> &  pred) const

◆ ForeachType() [2/2]

bool dmb::Registry::ForeachType ( const std::function< bool(const std::string &, vl::Object &)> &  pred)

◆ GetData() [1/2]

vl::Object & dmb::Registry::GetData ( )

◆ GetData() [2/2]

const vl::Object & dmb::Registry::GetData ( ) const

◆ GetType()

vl::Object & dmb::Registry::GetType ( const std::string &  typeName)

◆ HasType()

bool dmb::Registry::HasType ( const std::string &  typeName)

◆ Init()

void dmb::Registry::Init ( const vl::Object &  data)
protected

◆ RegisterType()

vl::Var & dmb::Registry::RegisterType ( const std::string &  typeName,
vl::Var &  type 
)

◆ RemoveType()

bool dmb::Registry::RemoveType ( const std::string &  typeName)

◆ RenameType()

bool dmb::Registry::RenameType ( const std::string &  typeName,
const std::string &  newName 
)

Friends And Related Function Documentation

◆ Model

friend class Model
friend

Member Data Documentation

◆ mData

vl::Object dmb::Registry::mData
protected

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