Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
422c2aba
Kaydet (Commit)
422c2aba
authored
May 03, 2011
tarafından
Rafael Dominguez
Kaydeden (comit)
Joseph Powers
May 04, 2011
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Remove deprecated tools/queue.hxx
üst
bd28739f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
108 deletions
+0
-108
Package_inc.mk
tools/Package_inc.mk
+0
-1
queue.hxx
tools/inc/tools/queue.hxx
+0
-107
No files found.
tools/Package_inc.mk
Dosyayı görüntüle @
422c2aba
...
@@ -70,7 +70,6 @@ $(eval $(call gb_Package_add_file,tools_inc,inc/tools/postx.h,tools/postx.h))
...
@@ -70,7 +70,6 @@ $(eval $(call gb_Package_add_file,tools_inc,inc/tools/postx.h,tools/postx.h))
$(eval $(call gb_Package_add_file,tools_inc,inc/tools/presys.h,tools/presys.h))
$(eval $(call gb_Package_add_file,tools_inc,inc/tools/presys.h,tools/presys.h))
$(eval $(call gb_Package_add_file,tools_inc,inc/tools/prex.h,tools/prex.h))
$(eval $(call gb_Package_add_file,tools_inc,inc/tools/prex.h,tools/prex.h))
$(eval $(call gb_Package_add_file,tools_inc,inc/tools/pstm.hxx,tools/pstm.hxx))
$(eval $(call gb_Package_add_file,tools_inc,inc/tools/pstm.hxx,tools/pstm.hxx))
$(eval $(call gb_Package_add_file,tools_inc,inc/tools/queue.hxx,tools/queue.hxx))
$(eval $(call gb_Package_add_file,tools_inc,inc/tools/rc.h,tools/rc.h))
$(eval $(call gb_Package_add_file,tools_inc,inc/tools/rc.h,tools/rc.h))
$(eval $(call gb_Package_add_file,tools_inc,inc/tools/rc.hxx,tools/rc.hxx))
$(eval $(call gb_Package_add_file,tools_inc,inc/tools/rc.hxx,tools/rc.hxx))
$(eval $(call gb_Package_add_file,tools_inc,inc/tools/rcid.h,tools/rcid.h))
$(eval $(call gb_Package_add_file,tools_inc,inc/tools/rcid.h,tools/rcid.h))
...
...
tools/inc/tools/queue.hxx
deleted
100644 → 0
Dosyayı görüntüle @
bd28739f
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* 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
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 3
* only, as published by the Free Software Foundation.
*
* OpenOffice.org is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License version 3 for more details
* (a copy is included in the LICENSE file that accompanied this code).
*
* You should have received a copy of the GNU Lesser General Public License
* version 3 along with OpenOffice.org. If not, see
* <http://www.openoffice.org/license.html>
* for a copy of the LGPLv3 License.
*
************************************************************************/
#ifndef _QUEUE_HXX
#define _QUEUE_HXX
#include <tools/solar.h>
#include <tools/contnr.hxx>
// ---------
// - Queue -
// ---------
#define QUEUE_ENTRY_NOTFOUND CONTAINER_ENTRY_NOTFOUND
class
Queue
:
private
Container
{
public
:
using
Container
::
Clear
;
using
Container
::
Count
;
using
Container
::
GetObject
;
using
Container
::
GetPos
;
Queue
(
sal_uInt16
_nInitSize
=
16
,
sal_uInt16
_nReSize
=
16
)
:
Container
(
_nReSize
,
_nInitSize
,
_nReSize
)
{}
Queue
(
const
Queue
&
rQueue
)
:
Container
(
rQueue
)
{}
void
Put
(
void
*
p
)
{
Container
::
Insert
(
p
,
CONTAINER_APPEND
);
}
void
*
Get
()
{
return
Container
::
Remove
(
(
sal_uIntPtr
)
0
);
}
Queue
&
operator
=
(
const
Queue
&
rQueue
)
{
Container
::
operator
=
(
rQueue
);
return
*
this
;
}
sal_Bool
operator
==
(
const
Queue
&
rQueue
)
const
{
return
Container
::
operator
==
(
rQueue
);
}
sal_Bool
operator
!=
(
const
Queue
&
rQueue
)
const
{
return
Container
::
operator
!=
(
rQueue
);
}
};
// -----------------
// - DECLARE_QUEUE -
// -----------------
#define DECLARE_QUEUE( ClassName, Type ) \
class ClassName : private Queue \
{ \
public: \
using Queue::Clear; \
using Queue::Count; \
\
ClassName( sal_uInt16 _nInitSize = 16, \
sal_uInt16 _nReSize = 16 ) : \
Queue( _nInitSize, _nReSize ) {} \
ClassName( const ClassName& rClassName ) : \
Queue( rClassName ) {} \
\
void Put( Type p ) { Queue::Put( (void*)p ); } \
Type Get() { return (Type)Queue::Get(); } \
\
Type GetObject( sal_uIntPtr nIndex ) const \
{ return (Type)Queue::GetObject( nIndex ); } \
sal_uIntPtr GetPos( const Type p ) const \
{ return Queue::GetPos( (const void*)p ); } \
sal_uIntPtr GetPos( const Type p, sal_uIntPtr nStartIndex, \
sal_Bool bForward = sal_True ) const \
{ return Queue::GetPos( (const void*)p, \
nStartIndex, \
bForward ); } \
\
ClassName& operator =( const ClassName& rClassName ) \
{ Queue::operator =( rClassName ); \
return *this; } \
\
sal_Bool operator ==( const Queue& rQueue ) const \
{ return Queue::operator ==( rQueue ); } \
sal_Bool operator !=( const Queue& rQueue ) const \
{ return Queue::operator !=( rQueue ); } \
};
#endif // _QUEUE_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment