HexFiend
Instance Methods | Class Methods | List of all members
HFRangeWrapper Class Reference

An object wrapper for the HFRange type. More...

Inheritance diagram for HFRangeWrapper:

Instance Methods

(HFRange- HFRange
 

Class Methods

(HFRangeWrapper *) + withRange:
 
(NSArray *) + withRanges:count:
 
(void) + getRanges:fromArray:
 
(NSArray *) + organizeAndMergeRanges:
 

Detailed Description

A simple class responsible for holding an immutable HFRange as an object. Methods that logically work on multiple HFRanges usually take or return arrays of HFRangeWrappers.

Method Documentation

§ HFRange()

Returns the HFRange for this HFRangeWrapper.

§ withRange:()

+ (HFRangeWrapper *) withRange: (HFRange range

Creates an autoreleased HFRangeWrapper for this HFRange.

§ withRanges:count:()

+ (NSArray *) withRanges: (const HFRange *)  ranges
count: (NSUInteger)  count 

Creates an NSArray of HFRangeWrappers for this HFRange.

§ getRanges:fromArray:()

+ (void) getRanges: (HFRange *)  ranges
fromArray: (NSArray *)  array 

Given an NSArray of HFRangeWrappers, get all of the HFRanges into a C array.

§ organizeAndMergeRanges:()

+ (NSArray *) organizeAndMergeRanges: (NSArray *)  inputRanges

Given an array of HFRangeWrappers, returns a "cleaned up" array of equivalent ranges. This new array represents the same indexes, but overlapping ranges will have been merged, and the ranges will be sorted in ascending order.


The documentation for this class was generated from the following file: