Teuchos - Trilinos Tools Package
Version of the Day
Toggle main menu visibility
Loading...
Searching...
No Matches
parameterlist
src
Teuchos_DummyObjectGetter.hpp
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
12
13
#ifndef TEUCHOS_DUMMYOBJECTGETTER_HPP
14
#define TEUCHOS_DUMMYOBJECTGETTER_HPP
15
16
17
18
namespace
Teuchos
{
19
20
22
template
<
class
T>
23
class
DummyObjectGetter
{
24
25
public
:
26
28
static
RCP<T>
getDummyObject
(){
29
return
rcp
(
new
T);
30
}
31
32
};
33
34
35
}
// namespace Teuchos
36
37
38
#endif
// TEUCHOS_DUMMYOBJECTGETTER_HPP
Teuchos::DummyObjectGetter
Class for retrieving a dummy object of type T.
Definition
Teuchos_DummyObjectGetter.hpp:23
Teuchos::DummyObjectGetter::getDummyObject
static RCP< T > getDummyObject()
Retrieves a dummy object of type T.
Definition
Teuchos_DummyObjectGetter.hpp:28
Teuchos::RCP
Smart reference counting pointer class for automatic garbage collection.
Definition
Teuchos_RCPDecl.hpp:397
Teuchos
The Teuchos namespace contains all of the classes, structs and enums used by Teuchos,...
Teuchos::rcp
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
Deprecated.
Definition
Teuchos_RCPDecl.hpp:1234
Generated by
1.17.0