Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Zygoma::MemoryRange< stride > Class Template Reference
[Kernel Physical Memory Management]

#include <memory.h>

List of all members.


Detailed Description

template<int stride>
class Zygoma::MemoryRange< stride >

A template class for defining an iterable range of raw memory.

Iterations over the range are by strides. Iterators are of type MemoryStrider.


Public Types

typedef MemoryStrider< stride > iterator

Public Member Functions

 MemoryRange (PhysicalAddress start, PhysicalAddress size)
 Constructs a MemoryRange of size addresses starting at start.
iterator begin () const
 Gets a memory stride iterator set to the start of the memory range.
iterator end () const
 Gets a memory stride iterator set to one-past-the-end of the memory range.


Member Typedef Documentation

template<int stride>
typedef MemoryStrider<stride> Zygoma::MemoryRange< stride >::iterator
 


Constructor & Destructor Documentation

template<int stride>
Zygoma::MemoryRange< stride >::MemoryRange PhysicalAddress  start,
PhysicalAddress  size
[inline]
 

Constructs a MemoryRange of size addresses starting at start.

Parameters:
start The starting address of the memory range.
size The number of addresses in the range (including the start).


Member Function Documentation

template<int stride>
iterator Zygoma::MemoryRange< stride >::begin  )  const [inline]
 

Gets a memory stride iterator set to the start of the memory range.

template<int stride>
iterator Zygoma::MemoryRange< stride >::end  )  const [inline]
 

Gets a memory stride iterator set to one-past-the-end of the memory range.

There is no guarantee the ietartor returned from this function is dereferenceable.


The documentation for this class was generated from the following file:
Generated on Fri Sep 2 10:45:08 2005 for zygoma by doxygen 1.4.2