// ---------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------
//
//
// ---------------------------------------------------------------------
namespace Microsoft.Database.Isam
{
///
/// Describes an (approximate) ordinal position in a table
///
///
/// A Position can be viewed as a non-simplified fractional position
///
public class Position
{
///
/// The entry
///
private readonly int entry;
///
/// The total entries
///
private readonly int totalEntries;
///
/// Initializes a new instance of the class.
///
/// The entry.
/// The total number of entries.
public Position(int entry, int totalEntries)
{
this.entry = entry;
this.totalEntries = totalEntries;
// FUTURE-2005/21/02-BrettSh - Sorry state of Assert()s in the managed code base (see %eseroot%\src\interop\error.h for more)
// Debug.Assert( entry <= totalEntries, "Cannot have a fractional position > 1" );
}
///
/// Gets the position in the table.
///
public int Entry
{
get
{
return this.entry;
}
}
///
/// Gets the total number of records in the table.
///
public int TotalEntries
{
get
{
return this.totalEntries;
}
}
}
}