/* * DataPointProxy.cxx * * Created on: Jun 16, 2013 * Author: steve */ #include "DataPointProxy.h" DataPointProxy::DataPointProxy() : state(-1), is_point_used(true) { } DataPointProxy::~DataPointProxy() { } bool DataPointProxy::isBinnedDataPoint() const { return (0 == state); } bool DataPointProxy::isUnbinnedDataPoint() const { return (1 == state); } const shared_ptr DataPointProxy::getBinnedDataPoint() const { return bdp; } const shared_ptr DataPointProxy::getUnbinnedDataPoint() const { return udp; } void DataPointProxy::setBinnedDataPoint(shared_ptr bdp_) { state = 0; udp.reset(); bdp = bdp_; } void DataPointProxy::setUnbinnedDataPoint(shared_ptr udp_) { state = 1; bdp.reset(); udp = udp_; } bool DataPointProxy::isPointUsed() const { return is_point_used; } void DataPointProxy::setPointUsed(bool is_point_used_) { is_point_used = is_point_used_; }