Teuchos Package Browser (Single Doxygen Collection)
Version of the Day
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
core
src
Teuchos_Ptr.cpp
Go to the documentation of this file.
1
// @HEADER
2
// *****************************************************************************
3
// Teuchos: Common Tools Package
4
//
5
// Copyright 2004 NTESS and the Teuchos contributors.
6
// SPDX-License-Identifier: BSD-3-Clause
7
// *****************************************************************************
8
// @HEADER
9
10
#include "
Teuchos_Ptr.hpp
"
11
#include "
Teuchos_Assert.hpp
"
12
#include "
Teuchos_Exceptions.hpp
"
13
14
15
void
Teuchos::PtrPrivateUtilityPack::throw_null
(
const
std::string &type_name )
16
{
17
TEUCHOS_TEST_FOR_EXCEPTION
(
18
true
,
NullReferenceError
,
19
"Ptr<"
<<type_name<<
">::assert_not_null() : You can not"
20
" call operator->() or operator*() if get()==NULL!"
);
21
}
Teuchos::NullReferenceError
Null reference error exception class.
Definition:
Teuchos_Exceptions.hpp:44
TEUCHOS_TEST_FOR_EXCEPTION
#define TEUCHOS_TEST_FOR_EXCEPTION(throw_exception_test, Exception, msg)
Macro for throwing an exception with breakpointing to ease debugging.
Definition:
Teuchos_TestForException.hpp:146
Teuchos_Exceptions.hpp
Teuchos_Ptr.hpp
Teuchos::PtrPrivateUtilityPack::throw_null
TEUCHOSCORE_LIB_DLL_EXPORT void throw_null(const std::string &type_name)
Definition:
Teuchos_Ptr.cpp:15
Teuchos_Assert.hpp
Generated on Tue Oct 8 2024 09:21:29 for Teuchos Package Browser (Single Doxygen Collection) by
1.8.5