nx_metadata_sdk  1.0
Metadata SDK
Public Types | Public Member Functions | List of all members
nx::sdk::StringMap Class Reference
Inheritance diagram for nx::sdk::StringMap:
nx::sdk::RefCountable< IStringMap > nx::sdk::IStringMap nx::sdk::Interface< IStringMap > nx::sdk::IRefCountable

Public Types

using Map = std::map< std::string, std::string >
 

Public Member Functions

 StringMap (Map map)
 
void setItem (const std::string &key, const std::string &value)
 
void clear ()
 
virtual int count () const override
 
virtual const char * key (int i) const override
 
virtual const char * value (int i) const override
 
virtual const char * value (const char *key) const override
 
- Public Member Functions inherited from nx::sdk::RefCountable< IStringMap >
 RefCountable (const RefCountable &)=delete
 
 RefCountable (RefCountable &&)=delete
 
RefCountableoperator= (const RefCountable &)=delete
 
RefCountableoperator= (RefCountable &&)=delete
 
virtual int addRef () const override
 
virtual int releaseRef () const override
 
int refCount () const
 
- Public Member Functions inherited from nx::sdk::Interface< IStringMap >
virtual IRefCountablequeryInterface (const InterfaceId *id)
 
Ptr< InterfacequeryInterface ()
 
Ptr< const InterfacequeryInterface () const
 
- Public Member Functions inherited from nx::sdk::IRefCountable
virtual ~IRefCountable ()=default
 
template<class Interface >
Ptr< InterfacequeryInterface ()
 
template<class Interface >
Ptr< const InterfacequeryInterface () const
 
int refCountThreadUnsafe () const
 

Additional Inherited Members

- Static Public Member Functions inherited from nx::sdk::IStringMap
static auto interfaceId ()
 
- Static Public Member Functions inherited from nx::sdk::IRefCountable
static auto interfaceId ()
 
- Protected Member Functions inherited from nx::sdk::Interface< IStringMap >
virtual IRefCountablequeryInterface (const IRefCountable::InterfaceId *id) override
 
IRefCountablequeryInterfaceSupportingDeprecatedId (const IRefCountable::InterfaceId *id, const Uuid &deprecatedInterfaceId)
 
- Static Protected Member Functions inherited from nx::sdk::IRefCountable
template<int len>
static constexpr const InterfaceIdmakeId (const char(&charArray)[len])
 
template<class TemplateInstance , class TemplateArg , int len>
static const InterfaceIdmakeIdForTemplate (const char(&baseIdCharArray)[len])
 

Member Function Documentation

◆ key()

const char * nx::sdk::StringMap::key ( int  i) const
overridevirtual
Returns
Pointer that is valid only until this object is changed or deleted.

Implements nx::sdk::IStringMap.

◆ value() [1/2]

const char * nx::sdk::StringMap::value ( int  i) const
overridevirtual
Returns
Pointer that is valid only until this object is changed or deleted.

Implements nx::sdk::IStringMap.

◆ value() [2/2]

const char * nx::sdk::StringMap::value ( const char *  key) const
overridevirtual
Returns
Null if not found or the key is null.

Implements nx::sdk::IStringMap.


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