BuildCache
Public Member Functions | Private Attributes | List of all members
bcache::data_store_t::item_t Class Reference

A data item. More...

#include <data_store.hpp>

Public Member Functions

 item_t (const std::string &value)
 Construct a valid data item. More...
 
 item_t ()
 Construct an invalid (empty) data item.
 
const std::string & value () const
 
bool is_valid () const
 Check if the item is valid. More...
 

Private Attributes

const std::string m_value
 
const bool m_is_valid = false
 

Detailed Description

A data item.

Constructor & Destructor Documentation

◆ item_t()

bcache::data_store_t::item_t::item_t ( const std::string &  value)
inline

Construct a valid data item.

Parameters
valueThe data string.

Member Function Documentation

◆ is_valid()

bool bcache::data_store_t::item_t::is_valid ( ) const
inline

Check if the item is valid.

Returns
true if the item is valid, else false.

◆ value()

const std::string& bcache::data_store_t::item_t::value ( ) const
inline
Returns
the data string.

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