MVault 0.0.1
Loading...
Searching...
No Matches
List of all members
mvlt::DataMap Class Reference

Specialization of class DataContainer, used as a type std::map<std::string, DataSaver> More...

#include <DataContainer.h>

Inheritance diagram for mvlt::DataMap:
Inheritance graph
[legend]
Collaboration diagram for mvlt::DataMap:
Collaboration graph
[legend]

Additional Inherited Members

- Public Types inherited from mvlt::DataContainer< std::map< std::string, DataSaver > >
typedef C::iterator iterator
 Redefine iterator from C container.
 
typedef C::const_iterator const_iterator
 Redefine const_iterator from C container.
 
- Public Member Functions inherited from mvlt::DataContainer< std::map< std::string, DataSaver > >
iterator begin () noexcept
 Begin provides access to the Data iterator.
 
const_iterator cbegin () const noexcept
 Cbegin provides access to the Data const_iterator.
 
iterator end () noexcept
 End provides access to the Data iterator.
 
const_iterator cend () const noexcept
 Cend provides access to the Data const_iterator.
 
void AddData (const std::string &key, const T &data) noexcept
 Template method for adding a new data to the container.
 
void AddData (const std::string &key, const T &data, F &&deleteFunc) noexcept
 Template method for adding a new data to the container and a function to delete this data.
 
void AddDataFromDataSaver (const std::string &key, const DataSaver &dataSaver) noexcept
 Method for adding a new data to the container.
 
void SetData (const std::string &key, const T &data) noexcept
 Method for changing the value of a data inside a container using a key.
 
void SetData (const std::string &key, const T &data, F &&deleteFunc) noexcept
 Method for changing the value of a data inside a container using a key.
 
void SetDataFromDataSaver (const std::string &key, const DataSaver &dataSaver) noexcept
 Method for changing the value of a data inside a container using a key.
 
bool SetDataFromString (const std::string &key, const std::string &str) noexcept
 Method for setting data by key.
 
bool GetData (const std::string &key, T &data) const noexcept
 Method for getting data from a container using a key.
 
bool GetDataSaver (const std::string &key, DataSaver &dataSaver) const noexcept
 Method for getting dataSaver from a container using a key.
 
bool GetDataAsString (const std::string &key, std::string &str) const noexcept
 Method for getting data converted to string from a container using a key.
 
bool IsData (const std::string &key) const noexcept
 A method for checking whether data with such a key is in the container.
 
void EraseData (const std::string &key) noexcept
 Function for erasing data from a container.
 
void Clear () noexcept
 Method for clear all data inside container.
 
std::size_t Size () const noexcept
 Method for getting the container size.
 
- Protected Attributes inherited from mvlt::DataContainer< std::map< std::string, DataSaver > >
std::map< std::string, DataSaverContainer
 Container to store all data inside C container.
 

Detailed Description

Specialization of class DataContainer, used as a type std::map<std::string, DataSaver>


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