jcuda.jnpp.utilnpp
Class AbstractImage

java.lang.Object
  extended by jcuda.jnpp.utilnpp.AbstractImage
All Implemented Interfaces:
Image
Direct Known Subclasses:
AbstractImagePacked

 class AbstractImage
extends java.lang.Object
implements Image

Abstract base class for Images


Nested Class Summary
 
Nested classes/interfaces inherited from interface jcuda.jnpp.utilnpp.Image
Image.Size
 
Constructor Summary
protected AbstractImage(Image.Size rSize)
          Creates an AbstractImage with the given size
protected AbstractImage(int nWidth, int nHeight)
          Creates an AbstractImage with the given size
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 int hashCode()
           
 int height()
          Return the height of this image
 void set(Image rImage)
          Assignment operator: Set this image to have the same contents as the given image.
 Image.Size size()
          Return the size of this image
 void swap(Image rImage)
          Swap the contents of this image and the given image
 int width()
          Return the width of this image
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractImage

protected AbstractImage(int nWidth,
                        int nHeight)
Creates an AbstractImage with the given size

Parameters:
nWidth - The width
nHeight - The height

AbstractImage

protected AbstractImage(Image.Size rSize)
Creates an AbstractImage with the given size

Parameters:
rSize - The size
Method Detail

width

public int width()
Description copied from interface: Image
Return the width of this image

Specified by:
width in interface Image
Returns:
The width of this image

height

public int height()
Description copied from interface: Image
Return the height of this image

Specified by:
height in interface Image
Returns:
The height of this image

size

public Image.Size size()
Description copied from interface: Image
Return the size of this image

Specified by:
size in interface Image
Returns:
The size of this image

set

public void set(Image rImage)
Description copied from interface: Image
Assignment operator: Set this image to have the same contents as the given image.

Specified by:
set in interface Image
Parameters:
rImage - The other image

swap

public void swap(Image rImage)
Description copied from interface: Image
Swap the contents of this image and the given image

Specified by:
swap in interface Image
Parameters:
rImage - The other image

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object