PageRenderTime 1126ms queryTime 528ms sortTime 35ms getByIdsTime 155ms findMatchingLines 64ms

100+ results results for 'destructor lang:C++' (1126 ms)

Not the results you expected?
ScriptBind_MatchMaking.cpp https://gitlab.com/blackbird91/CS188_AI_Game | C++ | 490 lines
                    
41//------------------------------------------------------------------------
                    
42// Destructor
                    
43CScriptBind_MatchMaking::~CScriptBind_MatchMaking()
                    
                
CAnimatedMeshMD2.cpp https://gitlab.com/JFT/Irrlicht_extended | C++ | 465 lines
                    
232
                    
233//! destructor
                    
234CAnimatedMeshMD2::~CAnimatedMeshMD2()
                    
                
almashot-hdr.cpp https://gitlab.com/adam.lukaitis/OpenCamera | C++ | 551 lines
                    
37
                    
38// This triggers openmp constructors and destructors to be called upon library load/unload
                    
39void __attribute__((constructor)) initialize_openmp() {}
                    
39void __attribute__((constructor)) initialize_openmp() {}
                    
40void __attribute__((destructor)) release_openmp() {}
                    
41
                    
                
addrcache.cc https://gitlab.com/brian0218/rk3288_r-box_android4.4.2_sdk | C++ | 331 lines
                    
61// confined to this routine in order to guarantee that the class constructor
                    
62// will never fail.  Other methods (except the destructor) cannot be invoked
                    
63// until this method has been called successfully.  After the object has been
                    
67// Return value: "true" if initialization succeeded, "false" if it failed.
                    
68//     No other method except the destructor may be invoked if this function
                    
69//     returns false.  The caller is responsible for checking the return value
                    
                
TOPS_Structured_Matrix_Impl.cxx https://gitlab.com/pheinzlr/CodeVault | C++ | 201 lines
                    
44
                    
45// user defined destructor
                    
46void TOPS::Structured::Matrix_impl::_dtor() {
                    
47  // DO-NOT-DELETE splicer.begin(TOPS.Structured.Matrix._dtor)
                    
48  // Insert-Code-Here {TOPS.Structured.Matrix._dtor} (destructor)
                    
49  // DO-NOT-DELETE splicer.end(TOPS.Structured.Matrix._dtor)
                    
                
test_intrusive_list.cc https://gitlab.com/adam.lukaitis/fplutil | C++ | 1155 lines
                    
196
                    
197TEST_F(intrusive_list_test, destructor) {
                    
198  list_.push_back(one_);
                    
                
btCollisionWorld.cpp https://gitlab.com/dannywillems/mass_collide | C++ | 1353 lines
                    
45
                    
46//When the user doesn't provide dispatcher or broadphase, create basic versions (and delete them in destructor)
                    
47#include "BulletCollision/CollisionDispatch/btCollisionDispatcher.h"
                    
                
TwAdvanced1.cpp https://gitlab.com/dannywillems/mass_collide | C++ | 737 lines
                    
69            Scene();                        // constructor
                    
70            ~Scene();                       // destructor
                    
71    void    Init(bool changeLightPos);      // (re)initialize the scene
                    
117
                    
118// Destructor
                    
119Scene::~Scene() 
                    
                
MenuRender3DModelMgr.cpp https://gitlab.com/blackbird91/CS188_AI_Game | C++ | 1301 lines
                    
83// Name: ~CMenuRender3DModelMgr
                    
84// Desc: Destructor
                    
85//--------------------------------------------------------------------------------------------------
                    
87{
                    
88	CRY_ASSERT_MESSAGE(s_instanceCount,"No instances left to delete in destructor");
                    
89	CRY_ASSERT_MESSAGE(m_bReleaseMe,"Deleting an instance which isn't marked for release");
                    
                
MatchmakingTelemetry.cpp https://gitlab.com/blackbird91/CS188_AI_Game | C++ | 615 lines
                    
48//--------------------------------------------------------------------------
                    
49//Destructor
                    
50CMatchmakingTelemetry::~CMatchmakingTelemetry()
                    
232//-------------------------------------------------------------------------
                    
233//Destructor
                    
234CMMTelemetryProducer::~CMMTelemetryProducer()
                    
                
MatchmakingHandler.cpp https://gitlab.com/blackbird91/CS188_AI_Game | C++ | 754 lines
                    
49//------------------------------------------------------------------------
                    
50//Destructor
                    
51CMatchMakingHandler::~CMatchMakingHandler()
                    
                
KillCamGameEffect.cpp https://gitlab.com/blackbird91/CS188_AI_Game | C++ | 431 lines
                    
57// Name: ~CKillCamGameEffect
                    
58// Desc: Destructor
                    
59//--------------------------------------------------------------------------------------------------
                    
                
GameEffect.cpp https://gitlab.com/blackbird91/CS188_AI_Game | C++ | 491 lines
                    
35// Name: ~GameSDKCGameEffect
                    
36// Desc: Destructor
                    
37//--------------------------------------------------------------------------------------------------
                    
65#if DEBUG_GAME_FX_SYSTEM
                    
66	m_debugName = GetName(); // Store name so it can be accessed in destructor and debugging
                    
67#endif
                    
                
ExplosionGameEffect.cpp https://gitlab.com/blackbird91/CS188_AI_Game | C++ | 724 lines
                    
169// Name: ~CExplosionGameEffect
                    
170// Desc: Destructor
                    
171//--------------------------------------------------------------------------------------------------
                    
                
EnergyShieldGameEffect.cpp https://gitlab.com/blackbird91/CS188_AI_Game | C++ | 991 lines
                    
128// Name: ~CEnergyShieldGameEffect
                    
129// Desc: Destructor
                    
130//--------------------------------------------------------------------------------------------------
                    
                
GameEffectsSystem.cpp https://gitlab.com/blackbird91/CS188_AI_Game | C++ | 1200 lines
                    
197// Name: ~CGameEffectsSystem
                    
198// Desc: Destructor
                    
199//--------------------------------------------------------------------------------------------------
                    
                
CircularStatsStorage.cpp https://gitlab.com/blackbird91/CS188_AI_Game | C++ | 1156 lines
                    
116{
                    
117	Clear();			// not strictly necessary as circular buffer entries are all purgable anyway and the states will be freed by the destructors called by the array delete below, but this will allow us to verify the circular buffer is empty at the end of a stats save
                    
118	delete [] m_states;
                    
                
OpenjdkJvmTi.cc https://gitlab.com/androidopensourceproject/platform-art | C++ | 1234 lines
                    
78
                    
79// NB These are heap allocated to avoid the static destructors being run if an agent calls exit(3).
                    
80// These should never be null.
                    
                
relative_patcher_arm_base.cc https://gitlab.com/androidopensourceproject/platform-art | C++ | 551 lines
                    
287ArmBaseRelativePatcher::~ArmBaseRelativePatcher() {
                    
288  // All work done by member destructors.
                    
289}
                    
                
cxx_db.cpp https://gitlab.com/OpenSourceMirror/sourcenav | C++ | 668 lines
                    
40
                    
41#define	DB_DESTRUCTOR(_name, _argspec, _arglist, _retok)		\
                    
42int Db::_name _argspec							\
                    
77// no operations are permitted on the Db (other than
                    
78// destructor).  Leaving the Db handle open and not
                    
79// doing a close is generally considered an error.
                    
164
                    
165// private method to cleanup after destructor or during close.
                    
166// If the environment was created by this Db object, we need to delete it.
                    
213
                    
214DB_DESTRUCTOR(close, (u_int32_t flags), (db, flags), DB_RETOK_STD)
                    
215DB_METHOD(compact, (DbTxn *txnid, Dbt *start, Dbt *stop,
                    
344
                    
345DB_DESTRUCTOR(rename,
                    
346    (const char *file, const char *database, const char *newname,
                    
                
Value.cc https://gitlab.com/OpenSourceMirror/sourcenav | C++ | 2024 lines
                    
365			// Here we rely on the fact that Agent is derived
                    
366			// GlishObject, which has a virtual destructor.
                    
367			Unref( (GlishObject*) AgentVal() );
                    
                
cxx_env.cpp https://gitlab.com/OpenSourceMirror/sourcenav | C++ | 1217 lines
                    
269// no operations are permitted on the DbEnv (other than
                    
270// destructor).  Leaving the DbEnv handle open and not
                    
271// doing a close is generally considered an error.
                    
328
                    
329// called by destructors before the DB_ENV is destroyed.
                    
330void DbEnv::cleanup()
                    
                
NptXbmcFile.cpp https://gitlab.com/sloshedpuppie/LetsGoRetro | C++ | 546 lines
                    
61public:
                    
62    // constructors and destructor
                    
63    NPT_XbmcFileStream(NPT_XbmcFileReference file) :
                    
71protected:
                    
72    // constructors and destructors
                    
73    virtual ~NPT_XbmcFileStream() {}
                    
127public:
                    
128    // constructors and destructor
                    
129    NPT_XbmcFileInputStream(NPT_XbmcFileReference& file) :
                    
209public:
                    
210    // constructors and destructor
                    
211    NPT_XbmcFileOutputStream(NPT_XbmcFileReference& file) :
                    
254public:
                    
255    // constructors and destructor
                    
256    NPT_XbmcFile(NPT_File& delegator);
                    
                
qry_dat.cpp https://gitlab.com/sloshedpuppie/LetsGoRetro | C++ | 745 lines
                    
162
                    
163//empty destructor
                    
164field_value::~field_value(){
                    
                
DVDInputStreamPVRManager.cpp https://gitlab.com/sloshedpuppie/LetsGoRetro | C++ | 699 lines
                    
57/************************************************************************
                    
58 * Description: Class destructor
                    
59 */
                    
                
CWIID_WiiRemote.cpp https://gitlab.com/sloshedpuppie/LetsGoRetro | C++ | 776 lines
                    
139
                    
140//Destructor
                    
141CWiiRemote::~CWiiRemote()
                    
                
NptWinRtSockets.cpp https://gitlab.com/sloshedpuppie/LetsGoRetro | C++ | 664 lines
                    
39 public:
                    
40    // constructors and destructor
                    
41             NPT_WinRtTcpClientSocket();
                    
67public:
                    
68    // constructors and destructor
                    
69    NPT_WinRtSocketInputStream(StreamSocket^ socket, NPT_Timeout timeout);
                    
94public:
                    
95    // constructors and destructor
                    
96    NPT_WinRtSocketOutputStream(StreamSocket^ socket, NPT_Timeout timeout);
                    
                
NptStdcFile.cpp https://gitlab.com/sloshedpuppie/LetsGoRetro | C++ | 508 lines
                    
90public:
                    
91    // constructors and destructor
                    
92    NPT_StdcFileWrapper(FILE* file, const char* name) : m_File(file), m_Name(name) {}
                    
114public:
                    
115    // constructors and destructor
                    
116    NPT_StdcFileStream(NPT_StdcFileReference file) :
                    
124protected:
                    
125    // constructors and destructors
                    
126    virtual ~NPT_StdcFileStream() {}
                    
180public:
                    
181    // constructors and destructor
                    
182    NPT_StdcFileInputStream(NPT_StdcFileReference& file) :
                    
266public:
                    
267    // constructors and destructor
                    
268    NPT_StdcFileOutputStream(NPT_StdcFileReference& file) :
                    
                
SVGSVGElement.cpp https://gitlab.com/x33n/phantomjs | C++ | 801 lines
                    
109    // There are cases where removedFromDocument() is not called.
                    
110    // see ContainerNode::removeAllChildren, called by its destructor.
                    
111    document()->accessSVGExtensions()->removeTimeContainer(this);
                    
                
RenderLayerBacking.cpp https://gitlab.com/x33n/phantomjs | C++ | 1208 lines
                    
96
                    
97// Get the scrolling coordinator in a way that works inside RenderLayerBacking's destructor.
                    
98static ScrollingCoordinator* scrollingCoordinatorFromLayer(RenderLayer* layer)
                    
                
CookieManager.cpp https://gitlab.com/x33n/phantomjs | C++ | 661 lines
                    
102    // being used for both secure and non-secure protocols; this leak is OK since
                    
103    // there's nothing important in the hashtable destructors, and the memory will be reclaimed on exit
                    
104
                    
105    // FIXME: CookieDatabaseBackingStore is not deleted, only flushed
                    
106    // (currently the destructor is never called since this class is a
                    
107    // singleton; on exit, the db is flushed manually. This call is only here
                    
                
Frame.cpp https://gitlab.com/x33n/phantomjs | C++ | 1167 lines
                    
215
                    
216    // FIXME: We should not be doing all this work inside the destructor
                    
217
                    
                
AudioContext.cpp https://gitlab.com/x33n/phantomjs | C++ | 1017 lines
                    
205#endif
                    
206    // AudioNodes keep a reference to their context, so there should be no way to be in the destructor if there are still AudioNodes around.
                    
207    ASSERT(!m_isInitialized);
                    
                
c.cc https://gitlab.com/x33n/phantomjs | C++ | 594 lines
                    
60  void* state_;
                    
61  void (*destructor_)(void*);
                    
62  int (*compare_)(
                    
68  virtual ~leveldb_comparator_t() {
                    
69    (*destructor_)(state_);
                    
70  }
                    
86  void* state_;
                    
87  void (*destructor_)(void*);
                    
88  const char* (*name_)(void*);
                    
461  result->state_ = state;
                    
462  result->destructor_ = destructor;
                    
463  result->compare_ = compare;
                    
486  result->state_ = state;
                    
487  result->destructor_ = destructor;
                    
488  result->create_ = create_filter;
                    
                
StringPrototype.cpp https://gitlab.com/x33n/phantomjs | C++ | 1209 lines
                    
49
                    
50ASSERT_HAS_TRIVIAL_DESTRUCTOR(StringPrototype);
                    
51
                    
                
ObjectConstructor.cpp https://gitlab.com/x33n/phantomjs | C++ | 518 lines
                    
58
                    
59ASSERT_HAS_TRIVIAL_DESTRUCTOR(ObjectConstructor);
                    
60
                    
                
NumberPrototype.cpp https://gitlab.com/x33n/phantomjs | C++ | 534 lines
                    
70
                    
71ASSERT_HAS_TRIVIAL_DESTRUCTOR(NumberPrototype);
                    
72
                    
                
MathObject.cpp https://gitlab.com/x33n/phantomjs | C++ | 641 lines
                    
34
                    
35ASSERT_HAS_TRIVIAL_DESTRUCTOR(MathObject);
                    
36
                    
                
JSScope.cpp https://gitlab.com/x33n/phantomjs | C++ | 635 lines
                    
36
                    
37ASSERT_HAS_TRIVIAL_DESTRUCTOR(JSScope);
                    
38
                    
                
JSObject.cpp https://gitlab.com/x33n/phantomjs | C++ | 1388 lines
                    
67
                    
68ASSERT_HAS_TRIVIAL_DESTRUCTOR(JSObject);
                    
69ASSERT_HAS_TRIVIAL_DESTRUCTOR(JSFinalObject);
                    
                
JSONObject.cpp https://gitlab.com/x33n/phantomjs | C++ | 834 lines
                    
45
                    
46ASSERT_HAS_TRIVIAL_DESTRUCTOR(JSONObject);
                    
47
                    
                
JSArray.cpp https://gitlab.com/x33n/phantomjs | C++ | 1250 lines
                    
46
                    
47ASSERT_HAS_TRIVIAL_DESTRUCTOR(JSArray);
                    
48
                    
                
JITOpcodes.cpp https://gitlab.com/x33n/phantomjs | C++ | 1342 lines
                    
99    size_t allocationSize = JSObject::allocationSize(structure->inlineCapacity());
                    
100    MarkedAllocator* allocator = &m_vm->heap.allocatorForObjectWithoutDestructor(allocationSize);
                    
101
                    
                
Heap.cpp https://gitlab.com/x33n/phantomjs | C++ | 896 lines
                    
60_Pragma("clang diagnostic ignored \"-Wglobal-constructors\"") \
                    
61_Pragma("clang diagnostic ignored \"-Wexit-time-destructors\"") \
                    
62static type name arguments; \
                    
                
qsplitter.cpp https://gitlab.com/x33n/phantomjs | C++ | 1733 lines
                    
126/*!
                    
127    Destructor.
                    
128*/
                    
                
qundostack.cpp https://gitlab.com/x33n/phantomjs | C++ | 1179 lines
                    
108    The parent command then owns this command and will delete it in its
                    
109    destructor.
                    
110
                    
126    The parent command then owns this command and will delete it in its
                    
127    destructor.
                    
128
                    
                
qlayoutitem.cpp https://gitlab.com/x33n/phantomjs | C++ | 857 lines
                    
265/*!
                    
266    Destructor.
                    
267*/
                    
298/*!
                    
299    Destructor.
                    
300*/
                    
                
qpixmapfilter.cpp https://gitlab.com/x33n/phantomjs | C++ | 1381 lines
                    
238/*!
                    
239    Destructor of pixmap convolution filter.
                    
240
                    
                
qmlvisitor.cpp https://gitlab.com/x33n/phantomjs | C++ | 693 lines
                    
103/*!
                    
104  The destructor does nothing.
                    
105 */
                    
                
qdocindexfiles.cpp https://gitlab.com/x33n/phantomjs | C++ | 1335 lines
                    
403            meta = FunctionNode::Ctor;
                    
404        else if (element.attribute("meta") == "destructor")
                    
405            meta = FunctionNode::Dtor;
                    
                
ditaxmlgenerator.cpp https://gitlab.com/x33n/phantomjs | C++ | 1460 lines
                    
157    "cxxFunctionDefinition",
                    
158    "cxxFunctionDestructor",
                    
159    "cxxFunctionDetail",
                    
                
cppcodeparser.cpp https://gitlab.com/x33n/phantomjs | C++ | 1431 lines
                    
74/*!
                    
75  The destructor is trivial.
                    
76 */
                    
                
codeparser.cpp https://gitlab.com/x33n/phantomjs | C++ | 485 lines
                    
91/*!
                    
92  The destructor removes this code parser from the static
                    
93  list of code parsers.
                    
                
qpainterpath.cpp https://gitlab.com/x33n/phantomjs | C++ | 1677 lines
                    
80        // note - we must up-cast to QPainterPathData since QPainterPathPrivate
                    
81        // has a non-virtual destructor!
                    
82        if (d && !d->ref.deref())
                    
                
qshortcutmap.cpp https://gitlab.com/x33n/phantomjs | C++ | 707 lines
                    
147/*! \internal
                    
148    QShortcutMap destructor.
                    
149*/
                    
                
qplatformwindow.cpp https://gitlab.com/x33n/phantomjs | C++ | 645 lines
                    
66/*!
                    
67    Virtual destructor does not delete its top level window.
                    
68*/
                    
                
qplatformintegration.cpp https://gitlab.com/x33n/phantomjs | C++ | 505 lines
                    
253    where this function is never called, ensuring that the event dispatcher is
                    
254    still deleted at some point (typically in the destructor).
                    
255
                    
                
qdbusconnection.cpp https://gitlab.com/x33n/phantomjs | C++ | 1195 lines
                    
155    respectively. Those connections are opened when first used and are
                    
156    closed when the QCoreApplication destructor is run.
                    
157
                    
                
qsharedpointer.cpp https://gitlab.com/x33n/phantomjs | C++ | 1336 lines
                    
105    QScopedPointer simply holds a pointer to a heap allocated object and
                    
106    deletes it in its destructor. This class is useful when an object needs to
                    
107    be heap allocated and deleted, but no more. QScopedPointer is lightweight,
                    
208    This class is never instantiated directly: the constructors and
                    
209    destructor are private and, in C++11, deleted. Only the create() function
                    
210    may be called to return an object of this type. See below for construction
                    
247    directly. This class also provides a create() member that returns the
                    
248    pointer, and hides its constructors and destructor. With C++11, they're
                    
249    deleted.
                    
281    ExternalRefCountWithContiguousData::deleter, it simply calls the \tt T
                    
282    destructor directly.
                    
283
                    
                
qshareddata.cpp https://gitlab.com/x33n/phantomjs | C++ | 613 lines
                    
117    \e{behind the scenes} reference counter. \c EmployeeData has a default
                    
118    constructor, a copy constructor, and a destructor. Normally, trivial
                    
119    implementations of these are all that is needed in the \e {data}
                    
                
qthread_win.cpp https://gitlab.com/x33n/phantomjs | C++ | 786 lines
                    
102}
                    
103Q_DESTRUCTOR_FUNCTION(qt_free_tls)
                    
104#else // !Q_OS_WINRT
                    
133}
                    
134Q_DESTRUCTOR_FUNCTION(qt_free_tls)
                    
135#endif // Q_OS_WINRT
                    
                
qthread_unix.cpp https://gitlab.com/x33n/phantomjs | C++ | 745 lines
                    
141    // POSIX says the value in our key is set to zero before calling
                    
142    // this destructor function, so we need to set it back to the
                    
143    // right value...
                    
155    // ... but we must reset it to zero before returning so we aren't
                    
156    // called again (POSIX allows implementations to call destructor
                    
157    // functions repeatedly until all values are zero)
                    
181}
                    
182Q_DESTRUCTOR_FUNCTION(destroy_current_thread_data_key)
                    
183
                    
                
qmutex.cpp https://gitlab.com/x33n/phantomjs | C++ | 663 lines
                    
102    - Always non-recursive
                    
103    - Do not use tryLock with timeout > 0, else you can have a leak (see the ~QMutex destructor)
                    
104*/
                    
                
qlibrary.cpp https://gitlab.com/x33n/phantomjs | C++ | 1115 lines
                    
398#ifdef __GLIBC__
                    
399                // glibc has a bug in unloading from global destructors
                    
400                // see https://bugzilla.novell.com/show_bug.cgi?id=622977
                    
                
qvariant.cpp https://gitlab.com/x33n/phantomjs | C++ | 1762 lines
                    
121{
                    
122    QVariantDestructor<CoreTypesFilter> cleaner(d);
                    
123    QMetaTypeSwitcher::switcher<void>(cleaner, d->type, 0);
                    
                
qsharedmemory.cpp https://gitlab.com/x33n/phantomjs | C++ | 602 lines
                    
114  release the shared memory segment. But if that last thread or
                    
115  process crashes without running the QSharedMemory destructor, the
                    
116  shared memory segment survives the crash.
                    
171/*!
                    
172  The destructor clears the key, which forces the shared memory object
                    
173  to \l {detach()} {detach} from its underlying shared memory
                    
                
qmetatype.cpp https://gitlab.com/x33n/phantomjs | C++ | 1537 lines
                    
107    provides a public default constructor, a public copy constructor and
                    
108    a public destructor.
                    
109    It is needed to use the type \a Type as a custom type in QVariant.
                    
286    \value NeedsConstruction This type has non-trivial constructors. If the flag is not set instances can be safely initialized with memset to 0.
                    
287    \value NeedsDestruction This type has a non-trivial destructor. If the flag is not set calls to the destructor are not necessary before discarding objects.
                    
288    \value MovableType An instance of a type having this attribute can be safely moved by memcpy.
                    
313    Any class or struct that has a public default
                    
314    constructor, a public copy constructor, and a public destructor
                    
315    can be registered.
                    
430    Unlike destroy(), this function only invokes the type's
                    
431    destructor, it doesn't invoke the delete operator.
                    
432    \sa QMetaType::construct()
                    
                
qabstracteventdispatcher.cpp https://gitlab.com/x33n/phantomjs | C++ | 524 lines
                    
99{
                    
100    // this function may be called by a global destructor after
                    
101    // timerIdFreeList() has been destructed
                    
                
qglobalstatic.cpp https://gitlab.com/x33n/phantomjs | C++ | 524 lines
                    
70    Compared to Q_GLOBAL_STATIC, and assuming that \c MyType is a class or
                    
71    struct that has a constructor, a destructor, or is otherwise non-POD, the
                    
72    above has the following drawbacks:
                    
94
                    
95    \section1 Constructor and destructor
                    
96
                    
102    It is not possible to use Q_GLOBAL_STATIC with types that have protected or
                    
103    private default constructors or destructors (for Q_GLOBAL_STATIC_WITH_ARGS(),
                    
104    a protected or private constructor matching the arguments). If the type in
                    
106    issue by deriving from the type and creating public a constructor and
                    
107    destructor. If the type has them as private, a friend declaration is
                    
108    necessary before deriving.
                    
111    previously-defined \c MyOtherType which has a protected default constructor
                    
112    and/or a protected destructor (or has them as private, but that defines \c
                    
113    MyType as a friend).
                    
                
dynamic_message.cc https://gitlab.com/x33n/phantomjs | C++ | 558 lines
                    
315
                    
316  // We need to manually run the destructors for repeated fields and strings,
                    
317  // just as we ran their constructors in the the DynamicMessage constructor.
                    
                
python-proto2.cc https://gitlab.com/x33n/phantomjs | C++ | 1420 lines
                    
281  0,                                   //  tp_itemsize
                    
282  (destructor)CMessageDealloc,         //  tp_dealloc
                    
283  0,                                   //  tp_print
                    
                
demangle.cc https://gitlab.com/x33n/phantomjs | C++ | 1307 lines
                    
148  const char *out_end;      // End of output string.
                    
149  const char *prev_name;    // For constructors/destructors.
                    
150  int prev_name_length;     // For constructors/destructors.
                    
                
regexp.cc https://gitlab.com/Blueprint-Marketing/re2 | C++ | 935 lines
                    
26
                    
27// Destructor.  Assumes already cleaned up children.
                    
28// Private: use Decref() instead of delete to destroy Regexps.
                    
                
unwind-x64.cpp https://gitlab.com/Blueprint-Marketing/hhvm | C++ | 450 lines
                    
84   * Note: this doesn't work for IndirectFixup situations.  However,
                    
85   * currently IndirectFixup is only used for destructors, which
                    
86   * aren't allowed to throw, so this is ok.
                    
221   * We don't do anything during the search phase---before attempting cleanup,
                    
222   * we want all deeper frames to have run their object destructors (which can
                    
223   * have side effects like setting tl_regState) and spilled any values they
                    
                
refcount-opts.cpp https://gitlab.com/Blueprint-Marketing/hhvm | C++ | 1114 lines
                    
86Since this pass converts instructions that may (in general) re-enter the
                    
87VM---running arbitrary PHP code for a destructor---it's potentially profitable
                    
88to run it earlier than other parts of refcount opts.  For example, it can allow
                    
                
irgen-call.cpp https://gitlab.com/Blueprint-Marketing/hhvm | C++ | 1028 lines
                    
136  // This is special.  We need to move the stackpointer in case LdObjMethod
                    
137  // calls a destructor.  Otherwise it would clobber the ActRec we just pushed.
                    
138  updateMarker(env);
                    
367  // This is special. We need to move the stackpointer incase LdArrFuncCtx
                    
368  // calls a destructor. Otherwise it would clobber the ActRec we just
                    
369  // pushed.
                    
                
unwind.cpp https://gitlab.com/Blueprint-Marketing/hhvm | C++ | 582 lines
                    
176  // When throwing from a constructor, we normally want to avoid running the
                    
177  // destructor on an object that hasn't been fully constructed yet. But if
                    
178  // we're unwinding through the constructor's RetC, the constructor has
                    
192     *
                    
193     *   - If a destructor for any of these things throws a php
                    
194     *     exception, it's swallowed at the dtor boundary and we keep
                    
196     *
                    
197     *   - If the destructor for any of these things throws a fatal,
                    
198     *     it's swallowed, and we set surprise flags to throw a fatal
                    
201     *   - If the second case happened and we have to run another
                    
202     *     destructor, its enter hook will throw, but it will be
                    
203     *     swallowed again.
                    
                
fastcgi-session.cpp https://gitlab.com/Blueprint-Marketing/hhvm | C++ | 717 lines
                    
213    // readEOF will call shutdown() which may free this out from under us, we
                    
214    // could add a DestructorGuard, but we'd only end up calling shutdown()
                    
215    // ourselves. Instead we return immediately.
                    
245 * While processing FastCGI records it's possible that a socket error will
                    
246 * cause us to begin destructing, we construct a DestructorGuard and check
                    
247 * the value of m_shutdown periodically to guard against deadlock and use-
                    
250void FastCGISession::readDataAvailable(size_t len) noexcept {
                    
251  DestructorGuard dg(this);
                    
252
                    
411void FastCGISession::shutdown() noexcept {
                    
412  DestructorGuard dg(this); // close() may call destroy()
                    
413
                    
417  // We may have gotten here via close(); if not perform the close ourselves.
                    
418  // close() may destroy() us, so we have the destructor guard
                    
419  if (m_sock->good()) {
                    
                
libevent-server.cpp https://gitlab.com/Blueprint-Marketing/hhvm | C++ | 689 lines
                    
79///////////////////////////////////////////////////////////////////////////////
                    
80// constructor and destructor
                    
81
                    
                
php_ftp.cpp https://gitlab.com/Blueprint-Marketing/hhvm | C++ | 1460 lines
                    
300
                    
301static void ftp_destructor_ftpbuf(zend_rsrc_list_entry *rsrc TSRMLS_DC)
                    
302{
                    
309{
                    
310	le_ftpbuf = zend_register_list_destructors_ex(ftp_destructor_ftpbuf, NULL, le_ftpbuf_name, module_number);
                    
311	REGISTER_LONG_CONSTANT("FTP_ASCII",  FTPTYPE_ASCII, CONST_PERSISTENT | CONST_CS);
                    
                
ezc_test.cpp https://gitlab.com/Blueprint-Marketing/hhvm | C++ | 820 lines
                    
53  REGISTER_INI_ENTRIES();
                    
54  le_ezc_test_hash = zend_register_list_destructors_ex(
                    
55      ezc_hash_dtor, NULL, le_ezc_test_hash_name, module_number);
                    
                
type-variant.cpp https://gitlab.com/Blueprint-Marketing/hhvm | C++ | 1206 lines
                    
120static_assert(kDestrTableSize == 6,
                    
121              "size of g_destructors[] must be kDestrTableSize");
                    
122
                    
122
                    
123RawDestructor g_destructors[] = {
                    
124  nullptr,
                    
124  nullptr,
                    
125  (RawDestructor)getMethodPtr(&StringData::release),
                    
126  (RawDestructor)getMethodPtr(&ArrayData::release),
                    
126  (RawDestructor)getMethodPtr(&ArrayData::release),
                    
127  (RawDestructor)getMethodPtr(&ObjectData::release), // may replace at runtime
                    
128  (RawDestructor)getMethodPtr(&ResourceData::release),
                    
128  (RawDestructor)getMethodPtr(&ResourceData::release),
                    
129  (RawDestructor)getMethodPtr(&RefData::release),
                    
130};
                    
                
array-iterator.cpp https://gitlab.com/Blueprint-Marketing/hhvm | C++ | 1646 lines
                    
167    // object and is responsible for decreffing the object when the
                    
168    // ArrayIter's lifetime ends. Normally ArrayIter's destructor takes
                    
169    // care of this, but the destructor will not get invoked if an
                    
                
dce.cpp https://gitlab.com/Blueprint-Marketing/hhvm | C++ | 1026 lines
                    
165
                    
166// Returns whether decrefing a type could run a destructor.
                    
167bool couldRunDestructor(const Type& t) {
                    
168  // We could check for specialized objects to see if they don't
                    
169  // declare a user-defined destructor, but currently don't.
                    
170  return t.couldBe(TObj) || t.couldBe(TCArr) || t.couldBe(TRef);
                    
198   * Indicates that the cell is only used if it was the last reference alive.
                    
199   * For instance, a PopC will call the destructor of the top-of-stack object
                    
200   * if it was the last reference alive, and this counts as an example of
                    
371/*
                    
372 * It may be ok to remove pops on objects with destructors in some scenarios
                    
373 * (where it won't change the observable point at which a destructor runs).  We
                    
374 * could also look at the object type and see if it is known that it can't have
                    
375 * a user-defined destructor.
                    
376 *
                    
                
method_statement.cpp https://gitlab.com/Blueprint-Marketing/hhvm | C++ | 731 lines
                    
58///////////////////////////////////////////////////////////////////////////////
                    
59// constructors/destructors
                    
60
                    
                
class_scope.cpp https://gitlab.com/Blueprint-Marketing/hhvm | C++ | 1263 lines
                    
112    if (f->getName() == "__construct") setAttribute(HasConstructor);
                    
113    else if (f->getName() == "__destruct") setAttribute(HasDestructor);
                    
114    else if (f->getName() == "__get")  setAttribute(HasUnknownPropGetter);
                    
                
XWindowsScreen.cpp https://gitlab.com/thomasphillips3/synergy | C++ | 1849 lines
                    
84// we must also ensure that these objects do not use the display in
                    
85// their destructors or, if they do, we can tell them not to.  This
                    
86// is to handle unexpected disconnection of the X display, when any
                    
                
jscntxt.cpp https://gitlab.com/stefan.pataky/tinyrpg | C++ | 1394 lines
                    
102void
                    
103js_ThreadDestructorCB(void *ptr)
                    
104{
                    
                
BasicHashtable_test.cpp https://gitlab.com/infraredbg/android_system_core-mt6589 | C++ | 577 lines
                    
364
                    
365TEST_F(BasicHashtableTest, Destructor_AfterElementsAdded_DestroysThem) {
                    
366    {
                    
                
VectorImpl.cpp https://gitlab.com/infraredbg/android_system_core-mt6589 | C++ | 695 lines
                    
62        "[%p] subclasses of VectorImpl must call finish_vector()"
                    
63        " in their destructor. Leaking %d bytes.",
                    
64        this, (int)(mCount*mItemSize));
                    
                
Looper.cpp https://gitlab.com/infraredbg/android_system_core-mt6589 | C++ | 573 lines
                    
108void Looper::initTLSKey() {
                    
109    int result = pthread_key_create(& gTLSKey, threadDestructor);
                    
110    LOG_ALWAYS_FATAL_IF(result != 0, "Could not allocate TLS key.");
                    
112
                    
113void Looper::threadDestructor(void *st) {
                    
114    Looper* const self = static_cast<Looper*>(st);
                    
115    if (self != NULL) {
                    
116        self->decStrong((void*)threadDestructor);
                    
117    }
                    
123    if (looper != NULL) {
                    
124        looper->incStrong((void*)threadDestructor);
                    
125    }
                    
129    if (old != NULL) {
                    
130        old->decStrong((void*)threadDestructor);
                    
131    }
                    
                
Entity_test.cc https://gitlab.com/sortofsleepy/noise-ink-lettering | C++ | 606 lines
                    
535
                    
536TEST_CASE("TestComponentDestructorCalledWhenManagerDestroyed") {
                    
537  struct Freed {
                    
                
CSmtp.cpp https://gitlab.com/mmudel/pw.elka.tin.mailer | C++ | 987 lines
                    
32
                    
33/// DESCRIPTION: Destructor of CSmtp class.
                    
34///  RETURNS: none
                    
                
qwt_plot_scaleitem.cpp https://gitlab.com/fsgdez/apm_planner | C++ | 453 lines
                    
66
                    
67//! Destructor
                    
68QwtPlotScaleItem::~QwtPlotScaleItem()
                    
                
nortrans.cpp https://gitlab.com/goolic/WinObjC | C++ | 175 lines
                    
77/**
                    
78 * Destructor.
                    
79 */
                    
                
imgui_draw.cpp https://gitlab.com/Strider2342/PannonEngine | C++ | 1249 lines
                    
39#pragma clang diagnostic ignored "-Wfloat-equal"            // warning : comparing floating point with == or != is unsafe   // storing and comparing against same constants ok.
                    
40#pragma clang diagnostic ignored "-Wglobal-constructors"    // warning : declaration requires a global destructor           // similar to above, not sure what the exact difference it.
                    
41#pragma clang diagnostic ignored "-Wsign-conversion"        // warning : implicit conversion changes signedness             //
                    
                
imgui_demo.cpp https://gitlab.com/Strider2342/PannonEngine | C++ | 1037 lines
                    
31#pragma clang diagnostic ignored "-Wformat-security"            // warning : warning: format string is not a string literal
                    
32#pragma clang diagnostic ignored "-Wexit-time-destructors"      // warning : declaration requires an exit-time destructor       // exit-time destruction order is undefined. if MemFree() leads to users code that has been disabled before exit it might cause problems. ImGui coding style welcomes static/globals.
                    
33#if __has_warning("-Wreserved-id-macro")
                    
                
SpuGatheringCollisionTask.cpp https://gitlab.com/gasabr/flappy-test | C++ | 1281 lines
                    
128
                    
129///Make sure no destructors are called on this memory
                    
130ATTRIBUTE_ALIGNED16(struct)	CollisionTask_LocalStoreMemory
                    
                
btCollisionWorld.cpp https://gitlab.com/gasabr/flappy-test | C++ | 1350 lines
                    
44
                    
45//When the user doesn't provide dispatcher or broadphase, create basic versions (and delete them in destructor)
                    
46#include "bullet/BulletCollision//CollisionDispatch/btCollisionDispatcher.h"
                    
                
CCTextFieldTTF.cpp https://gitlab.com/gasabr/flappy-test | C++ | 711 lines
                    
55//////////////////////////////////////////////////////////////////////////
                    
56// constructor and destructor
                    
57//////////////////////////////////////////////////////////////////////////
                    
                
CCNode.cpp https://gitlab.com/gasabr/flappy-test | C++ | 2033 lines
                    
69
                    
70// MARK: Constructor, Destructor, Init
                    
71
                    
                
CollisionChecker.cpp https://gitlab.com/terlemez/simox | C++ | 763 lines
                    
70    //----------------------------------------------------------------------
                    
71    // class CollisionChecker destructor
                    
72    //----------------------------------------------------------------------
                    
                
OpenGLRenderer.cpp https://gitlab.com/AvayKumar/android_frameworks_base | C++ | 1400 lines
                    
128///////////////////////////////////////////////////////////////////////////////
                    
129// Constructors/destructor
                    
130///////////////////////////////////////////////////////////////////////////////
                    
                
Asset.cpp https://gitlab.com/AvayKumar/android_frameworks_base | C++ | 902 lines
                    
361/*
                    
362 * Destructor.  Release resources.
                    
363 */
                    
543    if (mFp != NULL) {
                    
544        // can only be NULL when called from destructor
                    
545        // (otherwise we would never return this object)
                    
                
Path.cpp https://gitlab.com/AvayKumar/android_frameworks_base | C++ | 528 lines
                    
42        if (android::uirenderer::ResourceCache::hasInstance()) {
                    
43            android::uirenderer::ResourceCache::getInstance().destructor(obj);
                    
44            return;
                    
                
test_smart_ptr.cpp https://gitlab.com/stuckyb/fastpcm | C++ | 334 lines
                    
174    // test_unique_nodelete
                    
175    // Object with a private destructor
                    
176    class MyObject4 {
                    
                
Vt102Emulation.cpp https://gitlab.com/rmstoi/meego-terminal | C++ | 1113 lines
                    
71
                    
72   - Constructor/Destructor
                    
73   - Incoming Bytes Event pipeline
                    
82/*                                                                           */
                    
83/*                       Constructor / Destructor                            */
                    
84/*                                                                           */
                    
                
Screen.cpp https://gitlab.com/rmstoi/mtermite | C++ | 1569 lines
                    
96
                    
97/*! Destructor
                    
98*/
                    
                
TOPS_UnstructuredSolver_Impl.cxx https://gitlab.com/pheinzlr/CodeVault | C++ | 571 lines
                    
148
                    
149// user defined destructor
                    
150void TOPS::UnstructuredSolver_impl::_dtor() {
                    
                
TOPS_StructuredSolver_Impl.cxx https://gitlab.com/pheinzlr/CodeVault | C++ | 704 lines
                    
273
                    
274// user defined destructor
                    
275void TOPS::StructuredSolver_impl::_dtor() {
                    
                
disk-io-mgr.cc https://gitlab.com/s9perween/Impala | C++ | 935 lines
                    
92  // Validates that all readers are cleaned up and in the inactive state.  No locks
                    
93  // are taken since this is only called from the disk IoMgr destructor.
                    
94  bool ValidateAllInactive() {
                    
                
 

Source

Language