persist/include/persist/core/buffer/buffer_manager.hpp
/**
   * Construct a new BufferManager object.
   *
   * @param storage Reference to backend storage.
   * @param max_size Maximum buffer size. If set to 0, no maximum limit is set.
   * @param replacer_type Type of page replacer to be used by buffer manager.
   *
   */
Construct a new BufferManager object.
@param storage Reference to backend storage.
@param max_size Maximum buffer size. If set to 0, no maximum limit is set.
@param replacer_type Type of page replacer to be used by buffer manager.
Construct a new BufferManager object . @param storage Reference to backend storage . @param max_size Maximum buffer size . If set to 0 no maximum limit is set . @param replacer_type Type of page replacer to be used by buffer manager .
BufferManager(Storage<PageType> &storage,
                size_t max_size = DEFAULT_BUFFER_SIZE)
      : storage(storage), max_size(max_size), started(false) {
    if (max_size != 0 && max_size < MINIMUM_BUFFER_SIZE) {
      throw BufferManagerError("Invalid value for max buffer size. The max "
                               "size can be 0 or greater than 2.");
    }
  }
BufferManager ( Storage < PageType > & storage , size_t max_size = DEFAULT_BUFFER_SIZE ) : storage ( storage ) , max_size ( max_size ) , started ( false ) { if ( max_size != 0 && max_size < MINIMUM_BUFFER_SIZE ) { throw BufferManagerError ( " " " " ) ; } }
Construct a new BufferManager object.
Construct a new BufferManager object .
// Check buffer size value