Program Listing for File AllocationStrategy.cpp¶
↰ Return to documentation for file (umpire/strategy/AllocationStrategy.cpp
)
//////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2018, Lawrence Livermore National Security, LLC.
// Produced at the Lawrence Livermore National Laboratory
//
// Created by David Beckingsale, david@llnl.gov
// LLNL-CODE-747640
//
// All rights reserved.
//
// This file is part of Umpire.
//
// For details, see https://github.com/LLNL/Umpire
// Please also see the LICENSE file for MIT license.
//////////////////////////////////////////////////////////////////////////////
#include "umpire/strategy/AllocationStrategy.hpp"
namespace umpire {
namespace strategy {
AllocationStrategy::AllocationStrategy(const std::string& name, int id) :
m_name(name),
m_id(id)
{
}
std::string
AllocationStrategy::getName()
{
return m_name;
}
int
AllocationStrategy::getId()
{
return m_id;
}
long
AllocationStrategy::getActualSize()
{
return getCurrentSize();
}
} // end of namespace strategy
} // end of namespace umpire