summaryrefslogtreecommitdiff
path: root/sw/qa/core/bigpointerarray-new.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/qa/core/bigpointerarray-new.hxx')
-rw-r--r--sw/qa/core/bigpointerarray-new.hxx68
1 files changed, 34 insertions, 34 deletions
diff --git a/sw/qa/core/bigpointerarray-new.hxx b/sw/qa/core/bigpointerarray-new.hxx
index 13b6e3c3c3f9..410c9354bf44 100644
--- a/sw/qa/core/bigpointerarray-new.hxx
+++ b/sw/qa/core/bigpointerarray-new.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,20 +42,20 @@ class BigPtrEntry
{
friend class BigPtrArray;
BigPtrArray* pBigPtrArray_;
- ULONG pos_;
-
+ ULONG pos_;
+
protected:
- BigPtrEntry() : pBigPtrArray_(0), pos_(0)
+ BigPtrEntry() : pBigPtrArray_(0), pos_(0)
{}
-
- virtual ~BigPtrEntry()
+
+ virtual ~BigPtrEntry()
{}
ULONG GetPos() const
{
return pos_;
}
-
+
BigPtrArray& GetArray() const
{
return *pBigPtrArray_;
@@ -69,14 +69,14 @@ typedef BOOL (*FnForEach)(const ElementPtr&, void* pArgs);
*/
class BigPtrArray
{
-public:
+public:
typedef std::deque<ElementPtr> Container_t;
-
+
public:
/**
*/
BigPtrArray();
-
+
/** Return the number of entries inserted
into the array
*/
@@ -84,75 +84,75 @@ public:
/** Insert an Element into the array at a certain
position
-
+
@param rElem
[in] the element
-
+
@param pos
[in] the position where to insert the element.
-
+
@pre (pos >= 0 && pos <= BigPtrArray.Count())
@post (((oldCount + 1) == BigPtrArray.Count()) && BigPtrArray[pos] == rElem)
*/
void Insert(const ElementPtr& rElem, ULONG pos);
-
+
/** Remove a specified number of elements starting at a certain position.
-
+
@param pos
[in] the position where to start removing elements
-
+
@param n
[in] the number of elements to remove
-
+
@pre (pos < BigPtrArray.Count() && n <= BigPtrArray.Count())
@post ((oldCount - n) == BigPtrArray.Count())
*/
void Remove(ULONG pos, ULONG n = 1);
-
+
/** Move an entry from a certain position to another on.
-
+
@param from
- [in]
-
+ [in]
+
@param to
- [in]
+ [in]
*/
void Move(ULONG fromPos, ULONG toPos);
-
+
/** Replace an entry at a certain position
-
+
@param pos
[in] the position of the entry
-
- @param rElem
+
+ @param rElem
[in] the new entry
-
+
@pre pos < BigPtrArray.Count()
- @post (oldCount == BigPtrArray.Count() && BigPtrArray[pos] == rElem)
+ @post (oldCount == BigPtrArray.Count() && BigPtrArray[pos] == rElem)
*/
void Replace(ULONG pos, const ElementPtr& rElem);
/** Get the entry at a certain index
-
+
@param pos
[in] the position of the entry
-
+
@pre pos < BigPtrArray.Count()
*/
ElementPtr operator[](ULONG pos) const;
- /**
+ /**
*/
void ForEach(FnForEach fn, void* pArgs = NULL);
-
+
/**
*/
void ForEach(ULONG fromPos, ULONG toPos, FnForEach fn, void* pArgs = NULL);
private:
-
+
void FixElementIndizes(Container_t::const_iterator begin, Container_t::const_iterator end) const;
-
+
private:
Container_t container_;
};