* Copyright 2007, Ingo Weinhold, ingo_weinhold@gmx.de.
* Distributed under the terms of the MIT License.
*/
#include "PartitionReference.h"
PartitionReference::PartitionReference(partition_id id, int32 changeCounter)
:
BReferenceable(),
fID(id),
fChangeCounter(changeCounter)
{
}
PartitionReference::~PartitionReference()
{
}
void
PartitionReference::SetTo(partition_id id, int32 changeCounter)
{
fID = id;
fChangeCounter = changeCounter;
}
partition_id
PartitionReference::PartitionID() const
{
return fID;
}
void
PartitionReference::SetPartitionID(partition_id id)
{
fID = id;
}
int32
PartitionReference::ChangeCounter() const
{
return fChangeCounter;
}
void
PartitionReference::SetChangeCounter(int32 counter)
{
fChangeCounter = counter;
}