|
| | tracked_storage ()=default |
| |
| bool | read (fc::cfile_datastream &ds, size_t max_memory) |
| |
| void | write (fc::cfile &dat_content) const |
| |
| std::pair< typename primary_index_type::iterator, bool > | insert (typename ContainerType::value_type obj) |
| |
| template<typename Key > |
| primary_index_type::iterator | find (const Key &key) |
| |
| template<typename Key > |
| primary_index_type::const_iterator | find (const Key &key) const |
| |
| template<typename Lam > |
| void | modify (typename primary_index_type::iterator itr, Lam lam) |
| |
| template<typename Key > |
| void | erase (const Key &key) |
| |
| void | erase (typename primary_index_type::iterator itr) |
| |
| size_t | memory_size () const |
| |
| const ContainerType & | index () const |
| |
template<typename ContainerType>
class fc::tracked_storage< ContainerType >
This class wraps a multi_index container and tracks the memory allocated as the container creates, modifies, and deletes. It also provides read and write methods for persistence.
Requires ContainerType::value_type to have a size() method that represents the memory used for that object or specialized tracked::size() and is required to be a pack/unpack-able type.
Definition at line 35 of file tracked_storage.hpp.