Teuchos - Trilinos Tools Package  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Namespaces | Functions
Teuchos_ArrayConversions.hpp File Reference

Templated conversions between Array<RCP<T> > and ArrayView<Ptr<T> > More...

#include "Teuchos_Ptr.hpp"
#include "Teuchos_RCP.hpp"
#include "Teuchos_Array.hpp"
#include "Teuchos_Assert.hpp"

Go to the source code of this file.

Namespaces

 Teuchos
 The Teuchos namespace contains all of the classes, structs and enums used by Teuchos, as well as a number of utility routines.
 

Functions

template<class ArrayPtrT_in , class T_out >
void Teuchos::arrayViewPtrConv (const ArrayPtrT_in &a_in, const ArrayView< Ptr< T_out > > &a_out)
 Utility function to convert from an an input Array[View,RCP]<[const] PTR<T_in> > object to an output ArrayView<Ptr<T_out> > object. More...
 
template<class ArrayPtrT_in , class T_out >
void Teuchos::arrayViewRcpConv (const ArrayPtrT_in &a_in, const ArrayView< RCP< T_out > > &a_out)
 Utility function to convert from an input Array[View,RCP]<[const] RCP<T_in> > object to an output ArrayView<RCP<T_out> > object. More...
 
template<class T_out , class ArrayPtrT_in >
Array< Ptr< T_out > > Teuchos::arrayPtrConv (const ArrayPtrT_in &a_in)
 Utility function to convert an Array[View,RCP]<[const] PTR<T_in> > object to an Array<Ptr<T_out> > object. More...
 
template<class T_out , class ArrayPtrT_in >
Array< RCP< T_out > > Teuchos::arrayRcpConv (const ArrayPtrT_in &a_in)
 Utility function to convert any Array[View,RCP]<[const] RCP<T_in> > object to an Array<RCP<T_out> > object. More...
 
template<class T >
ArrayView< const Ptr< const T > > Teuchos::arrayConstPtrConstCast (const ArrayView< const Ptr< T > > &a_in)
 Utility function that does a reinterpret case to convert an ArrayView<const Ptr<T> > object to an ArrayView<const Ptr<const T> > object. More...
 
template<class T >
ArrayView< const RCP< const T > > Teuchos::arrayConstRcpConstCast (const ArrayView< const RCP< T > > &a_in)
 Utility function that does a reinterpret case to convert an ArrayView<const RCP<T> > object to an ArrayView<const RCP<const T> > object. More...
 

Detailed Description

Templated conversions between Array<RCP<T> > and ArrayView<Ptr<T> >

Definition in file Teuchos_ArrayConversions.hpp.