summaryrefslogtreecommitdiff
path: root/cosv/inc/cosv/tpl
diff options
context:
space:
mode:
Diffstat (limited to 'cosv/inc/cosv/tpl')
-rw-r--r--cosv/inc/cosv/tpl/dyn.hxx34
-rw-r--r--cosv/inc/cosv/tpl/funcall.hxx2
-rw-r--r--cosv/inc/cosv/tpl/processor.hxx2
-rw-r--r--cosv/inc/cosv/tpl/range.hxx2
-rw-r--r--cosv/inc/cosv/tpl/swelist.hxx152
-rw-r--r--cosv/inc/cosv/tpl/tpltools.hxx48
-rw-r--r--cosv/inc/cosv/tpl/vvector.hxx4
7 files changed, 122 insertions, 122 deletions
diff --git a/cosv/inc/cosv/tpl/dyn.hxx b/cosv/inc/cosv/tpl/dyn.hxx
index 91ad5dff0359..f59495a2208a 100644
--- a/cosv/inc/cosv/tpl/dyn.hxx
+++ b/cosv/inc/cosv/tpl/dyn.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
@@ -68,22 +68,22 @@ class Dyn
// LIFECYCLE
/// From now on, let_dpObject is owned by this Dyn-object.
explicit Dyn(
- DX * let_dpObject = 0);
+ DX * let_dpObject = 0);
~Dyn();
// OPERATORS
/** This deletes a prevoiusly existing dpObject!
From now on, let_dpObject is owned by this Dyn-object.
*/
- Dyn<DX> & operator=(
- DX * let_dpObject);
+ Dyn<DX> & operator=(
+ DX * let_dpObject);
/// @return true, if any valid object is hold, false else.
operator bool() const;
- const DX * operator->() const;
- DX * operator->();
+ const DX * operator->() const;
+ DX * operator->();
- const DX & operator*() const;
- DX & operator*();
+ const DX & operator*() const;
+ DX & operator*();
// OPERATIONS
/** @return The hold object on the heap.
@@ -95,26 +95,26 @@ class Dyn
@postcond
this->dpObject == 0.
*/
- DX * Release();
+ DX * Release();
// INQUIRY
/// Shorthand for operator->(), if implicit overloading of -> can not be used.
- const DX * Ptr() const;
+ const DX * Ptr() const;
// ACCESS
/// Shorthand for operator->(), if implicit overloading of -> can not be used.
- DX * Ptr();
+ DX * Ptr();
/// So const objects can return mutable pointers to the owned object.
- DX * MutablePtr() const;
+ DX * MutablePtr() const;
private:
/* Does NOT set dpObject to zero! Because it is only used
internally in situations where dpObject is set immediately
after.
*/
- void Delete();
+ void Delete();
- /** Forbidden function!
+ /** Forbidden function!
-------------------
Help ensure, that classes with
dynamic pointers use a selfdefined copy constructor
@@ -122,18 +122,18 @@ class Dyn
functions are used, the compiler will throw an error.
**/
Dyn( const Dyn<DX> & );
- /** Forbidden function!
+ /** Forbidden function!
-------------------
Help ensure, that classes with
dynamic pointers use a selfdefined copy constructor
and operator=(). If the default versions of these
functions are used, the compiler will throw an error.
**/
- Dyn<DX> & operator=( const Dyn<DX> & );
+ Dyn<DX> & operator=( const Dyn<DX> & );
// DATA
/// An owned heap object. Needs to be deleted by this class.
- DX * dpObject;
+ DX * dpObject;
};
diff --git a/cosv/inc/cosv/tpl/funcall.hxx b/cosv/inc/cosv/tpl/funcall.hxx
index f8709e8b4626..f76e014cb1ca 100644
--- a/cosv/inc/cosv/tpl/funcall.hxx
+++ b/cosv/inc/cosv/tpl/funcall.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
diff --git a/cosv/inc/cosv/tpl/processor.hxx b/cosv/inc/cosv/tpl/processor.hxx
index eccd1da26582..a6dba37b7330 100644
--- a/cosv/inc/cosv/tpl/processor.hxx
+++ b/cosv/inc/cosv/tpl/processor.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
diff --git a/cosv/inc/cosv/tpl/range.hxx b/cosv/inc/cosv/tpl/range.hxx
index 487257e956dd..295d7cf64aad 100644
--- a/cosv/inc/cosv/tpl/range.hxx
+++ b/cosv/inc/cosv/tpl/range.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
diff --git a/cosv/inc/cosv/tpl/swelist.hxx b/cosv/inc/cosv/tpl/swelist.hxx
index d8d52ed79104..c0f06f3a5031 100644
--- a/cosv/inc/cosv/tpl/swelist.hxx
+++ b/cosv/inc/cosv/tpl/swelist.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
@@ -47,19 +47,19 @@ class SweListElement
typedef SweListElement<XX> self;
SweListElement(
- const XX & in_aObj )
- : aObj(in_aObj), pNext(0) {}
+ const XX & in_aObj )
+ : aObj(in_aObj), pNext(0) {}
- const XX & Obj() const { return aObj; }
- XX & Obj() { return aObj; }
- self * Next() const { return pNext; }
+ const XX & Obj() const { return aObj; }
+ XX & Obj() { return aObj; }
+ self * Next() const { return pNext; }
- void SetNext(
+ void SetNext(
self * i_pNext )
{ pNext = i_pNext; }
private:
- XX aObj;
- self * pNext;
+ XX aObj;
+ self * pNext;
};
@@ -73,49 +73,49 @@ class SweList
{
public:
// TYPES
- typedef SweList<XX> self;
- typedef XX value_type;
- typedef SweListIterator<XX> iterator;
+ typedef SweList<XX> self;
+ typedef XX value_type;
+ typedef SweListIterator<XX> iterator;
typedef SweListCIterator<XX> const_iterator;
private:
typedef SweListElement<XX> elem;
public:
// LIFECYCLE
- SweList() : pTop(0), pTail(0) {}
- ~SweList() { erase_all(); }
+ SweList() : pTop(0), pTail(0) {}
+ ~SweList() { erase_all(); }
// OPERATIONS
- void push_front(
- const XX & i_aObj );
- void pop_front();
- void push_back(
- const XX & i_aObj );
- void erase_all();
+ void push_front(
+ const XX & i_aObj );
+ void pop_front();
+ void push_back(
+ const XX & i_aObj );
+ void erase_all();
// INQUIRY
- const_iterator begin() const { return pTop; }
- iterator begin() { return pTop; }
- const_iterator end() const { return (elem*)0; }
- iterator end() { return (elem*)0; }
- const XX & front() const { return pTop->Obj(); }
- XX & front() { return pTop->Obj(); }
- const XX & back() const { return pTail->Obj(); }
- XX & back() { return pTail->Obj(); }
+ const_iterator begin() const { return pTop; }
+ iterator begin() { return pTop; }
+ const_iterator end() const { return (elem*)0; }
+ iterator end() { return (elem*)0; }
+ const XX & front() const { return pTop->Obj(); }
+ XX & front() { return pTop->Obj(); }
+ const XX & back() const { return pTail->Obj(); }
+ XX & back() { return pTail->Obj(); }
- bool empty() const { return pTop == 0; }
- uintt size() const;
+ bool empty() const { return pTop == 0; }
+ uintt size() const;
private:
// Forbiddden methods.
SweList(
- const self & i_rList );
- self & operator=(
- const self & i_rList );
+ const self & i_rList );
+ self & operator=(
+ const self & i_rList );
// DATA
- DYN elem * pTop;
- elem * pTail;
+ DYN elem * pTop;
+ elem * pTail;
};
template <class XX>
@@ -123,39 +123,39 @@ class SweList_dyn
{
public:
// TYPES
- typedef SweList_dyn<XX> self;
+ typedef SweList_dyn<XX> self;
typedef SweListElement< XX* > elem;
- typedef SweListIterator< XX* > iterator;
+ typedef SweListIterator< XX* > iterator;
// LIFECYCLE
- SweList_dyn() : pTop(0), pTail(0) {}
- ~SweList_dyn() { erase_all(); }
+ SweList_dyn() : pTop(0), pTail(0) {}
+ ~SweList_dyn() { erase_all(); }
// OPERATIONS
- void push_front(
- XX * i_pObj );
- void push_back(
- XX * i_pObj );
- void pop_front();
- void erase_all();
+ void push_front(
+ XX * i_pObj );
+ void push_back(
+ XX * i_pObj );
+ void pop_front();
+ void erase_all();
// INQUIRY
- iterator begin() const { return pTop; }
- iterator end() const { return (elem*)0; }
- XX * front() const { return pTop->Obj(); }
- XX * back() const { return pTail->Obj(); }
+ iterator begin() const { return pTop; }
+ iterator end() const { return (elem*)0; }
+ XX * front() const { return pTop->Obj(); }
+ XX * back() const { return pTail->Obj(); }
- bool empty() const { return pTop == 0; }
- uintt size() const;
+ bool empty() const { return pTop == 0; }
+ uintt size() const;
private:
// Forbiddden methods.
SweList_dyn(
- const self & i_rList );
- self & operator=(
- const self & i_rList );
+ const self & i_rList );
+ self & operator=(
+ const self & i_rList );
- DYN elem * pTop;
- elem * pTail;
+ DYN elem * pTop;
+ elem * pTail;
};
@@ -169,23 +169,23 @@ class SweListIterator
typedef SweListElement<XX> elem;
SweListIterator(
- elem * i_pElem = 0)
- : pElem(i_pElem) { }
+ elem * i_pElem = 0)
+ : pElem(i_pElem) { }
// OPERATORS
- XX & operator*() const { return pElem->Obj(); }
- self & operator++() { if (pElem != 0) pElem = pElem->Next();
+ XX & operator*() const { return pElem->Obj(); }
+ self & operator++() { if (pElem != 0) pElem = pElem->Next();
return *this; }
- bool operator==(
- const self & i_rIter ) const
+ bool operator==(
+ const self & i_rIter ) const
{ return pElem == i_rIter.pElem; }
- bool operator!=(
- const self & i_rIter ) const
+ bool operator!=(
+ const self & i_rIter ) const
{ return pElem != i_rIter.pElem; }
private:
friend class SweListCIterator<XX>;
- elem * pElem;
+ elem * pElem;
};
template<class XX>
@@ -196,33 +196,33 @@ class SweListCIterator
typedef SweListElement<XX> elem;
SweListCIterator(
- const elem * i_pElem = 0)
- : pElem(i_pElem) { }
+ const elem * i_pElem = 0)
+ : pElem(i_pElem) { }
// OPERATORS
- self & operator=(
+ self & operator=(
const SweListIterator<XX> &
i_rIter )
{ pElem = i_rIter.pElem; return *this; }
- const XX & operator*() const { return pElem->Obj(); }
- self & operator++() { if (pElem != 0) pElem = pElem->Next();
+ const XX & operator*() const { return pElem->Obj(); }
+ self & operator++() { if (pElem != 0) pElem = pElem->Next();
return *this; }
- bool operator==(
- const self & i_rIter ) const
+ bool operator==(
+ const self & i_rIter ) const
{ return pElem == i_rIter.pElem; }
- bool operator!=(
- const self & i_rIter ) const
+ bool operator!=(
+ const self & i_rIter ) const
{ return pElem != i_rIter.pElem; }
private:
- const elem * pElem;
+ const elem * pElem;
};
// Implementierung
template <class XX>
void
-SweList<XX>::push_front( const XX & i_aObj )
+SweList<XX>::push_front( const XX & i_aObj )
{
DYN elem * dpNew = new elem(i_aObj);
dpNew->SetNext(pTop);
diff --git a/cosv/inc/cosv/tpl/tpltools.hxx b/cosv/inc/cosv/tpl/tpltools.hxx
index 775a61c2167d..5f69a95bcf01 100644
--- a/cosv/inc/cosv/tpl/tpltools.hxx
+++ b/cosv/inc/cosv/tpl/tpltools.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
@@ -40,18 +40,18 @@ namespace csv
template <class COLLECTION>
-inline void erase_container(
- COLLECTION & o_rCollection );
+inline void erase_container(
+ COLLECTION & o_rCollection );
/// Version for std::map
template <class COLLECTION>
-void erase_map_of_heap_ptrs(
- COLLECTION & o_rCollection );
+void erase_map_of_heap_ptrs(
+ COLLECTION & o_rCollection );
/// Version for other containers than std::map, with non-pair value_type.
template <class COLLECTION>
-void erase_container_of_heap_ptrs(
- COLLECTION & o_rCollection );
+void erase_container_of_heap_ptrs(
+ COLLECTION & o_rCollection );
template <class VECTOR_ELEM>
void adjust_vector_size(
@@ -62,33 +62,33 @@ void adjust_vector_size(
template <class KEY, class VAL>
-const VAL * find_in_map( /// Usable for all kinds of values
+const VAL * find_in_map( /// Usable for all kinds of values
const std::map< KEY, VAL > &
i_rMap,
- const KEY & i_rKey );
+ const KEY & i_rKey );
/** @return the value in the map, if it is in there, else 0.
@precond VAL has to be convertable to "0".
*/
template <class KEY, class VAL>
-VAL value_from_map(
+VAL value_from_map(
const std::map< KEY, VAL > &
i_rMap,
- const KEY & i_rKey );
+ const KEY & i_rKey );
/** @return the value in the map, if it is in there, else i_notFound.
*/
template <class KEY, class VAL>
-VAL value_from_map(
+VAL value_from_map(
const std::map< KEY, VAL > &
i_rMap,
- const KEY & i_rKey,
+ const KEY & i_rKey,
VAL i_notFound );
template <class COLLECTION, class VALUE>
-bool contains(
- const COLLECTION & i_collection,
+bool contains(
+ const COLLECTION & i_collection,
const VALUE & i_value );
// Object oriented for_each:
@@ -164,38 +164,38 @@ adjust_vector_size( std::vector<VECTOR_ELEM> & io_rVector,
template <class KEY, class VAL>
const VAL *
find_in_map( const std::map< KEY, VAL > & i_rMap,
- const KEY & i_rKey )
+ const KEY & i_rKey )
{
typename std::map< KEY, VAL >::const_iterator
ret = i_rMap.find(i_rKey);
return ret != i_rMap.end()
- ? & (*ret).second
- : (const VAL*)0;
+ ? & (*ret).second
+ : (const VAL*)0;
}
template <class KEY, class VAL>
VAL
value_from_map( const std::map< KEY, VAL > & i_rMap,
- const KEY & i_rKey )
+ const KEY & i_rKey )
{
typename std::map< KEY, VAL >::const_iterator
ret = i_rMap.find(i_rKey);
return ret != i_rMap.end()
- ? (*ret).second
- : VAL(0);
+ ? (*ret).second
+ : VAL(0);
}
template <class KEY, class VAL>
VAL
value_from_map( const std::map< KEY, VAL > & i_rMap,
- const KEY & i_rKey,
+ const KEY & i_rKey,
VAL i_notFound )
{
typename std::map< KEY, VAL >::const_iterator
ret = i_rMap.find(i_rKey);
return ret != i_rMap.end()
- ? (*ret).second
- : i_notFound;
+ ? (*ret).second
+ : i_notFound;
}
template <class COLLECTION, class VALUE>
diff --git a/cosv/inc/cosv/tpl/vvector.hxx b/cosv/inc/cosv/tpl/vvector.hxx
index e597fce49a2e..4848d97784ad 100644
--- a/cosv/inc/cosv/tpl/vvector.hxx
+++ b/cosv/inc/cosv/tpl/vvector.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
@@ -139,7 +139,7 @@ class VirtualVector
// LIFECYCLE
VirtualVector();
- explicit VirtualVector(
+ explicit VirtualVector(
int i_size );
~VirtualVector();