All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: GA_RTIPageList.h ( GA Library, C++)
7  *
8  * COMMENTS: This is similar to GA_RangeOffset, except instead of
9  * specifying a range of offsets, we specify a list of pages.
10  */
12 #ifndef __GA_RTIPageList__
13 #define __GA_RTIPageList__
15 #include "GA_API.h"
16 #include "GA_RangeTypeInterface.h"
17 #include "GA_Types.h"
19 #include <UT/UT_SharedPtr.h>
20 #include <UT/UT_VectorTypes.h>
23 class GA_IndexMap;
24 class GA_IteratorState;
25 class GA_Range;
28 /// @brief Define a range based on a specific offset list
30 {
31 public:
32  // Iterate over the entire range of the offset list
38  // Copy c-tor
41  virtual ~GA_RTIPageList();
43  /// @{
44  /// RangeTypeInterface implementation
45  virtual GA_RangeTypeInterface *copy() const;
46  virtual bool isSplittable() const { return false; }
47  virtual bool isEmpty() const;
48  virtual GA_Size getMaxEntries() const;
49  virtual GA_Size getEntries() const;
50  virtual bool split(GA_RangeTypeInterface *list[2]) const;
51  virtual bool isEqual(const GA_RangeTypeInterface &src) const;
52  virtual void iterateCopy(GA_IteratorState &dest,
53  const GA_IteratorState &src) const;
54  virtual void iterateRewind(GA_IteratorState &state,
55  GA_Offset &start, GA_Offset &end) const;
56  virtual void iterateNext(GA_IteratorState &state,
57  GA_Offset &start, GA_Offset &end) const;
58  virtual bool areTraversalDeletionsSafe() const { return true; }
59  virtual GA_Size getPageCount() const { return -1; }
60  virtual bool getPageElementRange(GA_Range &, GA_Size, GA_Size) const
64  /// @}
66 private:
68  GA_Offset myStart, myEnd; // Range of offset list
69 };
71 #endif
virtual bool isSplittable() const
A class to manage an ordered array which has fixed offset handles.
Definition: GA_IndexMap.h:63
virtual bool isEmpty() const =0
Check whether the range is empty.
virtual bool getPageElementRange(GA_Range &, GA_Size, GA_Size) const
virtual GA_RangeTypeInterface * copy() const =0
Method to create a copy of this selection.
virtual void iterateCopy(GA_IteratorState &dest, const GA_IteratorState &src) const =0
Copy iterator state. The dest state will not have been constructed.
virtual bool split(GA_RangeTypeInterface *list[2]) const =0
GLuint start
Definition: glcorearb.h:474
Define a range based on a specific offset list.
#define GA_API
Definition: GA_API.h:12
Wrapper around hboost::shared_ptr.
Definition: UT_SharedPtr.h:27
exint GA_Size
Defines the bit width for index and offset types in GA.
Definition: GA_Types.h:211
virtual GA_Offset getFirstOffsetInPage(GA_Size) const
A range of elements in an index-map.
Definition: GA_Range.h:42
bool getPageElementRangeNonSplittable() const
Method which can be called for getPageElementRange()
GA_Size GA_Offset
Definition: GA_Types.h:617
GA_Offset getFirstOffsetInPageNonSplittable() const
Method which can be called for getFirstOffsetInPage()
GLuint GLuint end
Definition: glcorearb.h:474
virtual void iterateRewind(GA_IteratorState &state, GA_Offset &start, GA_Offset &end) const =0
Abstract implementation of a range.
virtual bool areTraversalDeletionsSafe() const
virtual GA_Size getPageCount() const
virtual GA_Size getMaxEntries() const =0
Get an upper bound on the size of the range.
virtual GA_Size getEntries() const =0
virtual void iterateNext(GA_IteratorState &state, GA_Offset &start, GA_Offset &end) const =0
virtual bool isEqual(const GA_RangeTypeInterface &src) const =0
GLenum src
Definition: glcorearb.h:1792