Nektar++
Static Public Member Functions | List of all members
Nektar::ConsistentObjectAccess< std::shared_ptr< DataType > > Struct Template Reference

#include <ConsistentObjectAccess.hpp>

Static Public Member Functions

static const DataType & const_reference (const std::shared_ptr< DataType > &o)
 
static const DataType * const_pointer (const std::shared_ptr< DataType > &o)
 
static DataType & reference (const std::shared_ptr< DataType > &o)
 
static DataType * pointer (const std::shared_ptr< DataType > &o)
 
static bool ReferencesObject (const std::shared_ptr< DataType > &o)
 

Detailed Description

template<typename DataType>
struct Nektar::ConsistentObjectAccess< std::shared_ptr< DataType > >

Definition at line 97 of file ConsistentObjectAccess.hpp.

Member Function Documentation

◆ const_pointer()

template<typename DataType >
static const DataType * Nektar::ConsistentObjectAccess< std::shared_ptr< DataType > >::const_pointer ( const std::shared_ptr< DataType > &  o)
inlinestatic

Definition at line 104 of file ConsistentObjectAccess.hpp.

105 {
106 return o.get();
107 }

◆ const_reference()

template<typename DataType >
static const DataType & Nektar::ConsistentObjectAccess< std::shared_ptr< DataType > >::const_reference ( const std::shared_ptr< DataType > &  o)
inlinestatic

Definition at line 99 of file ConsistentObjectAccess.hpp.

100 {
101 ASSERTL1(o, "Can't dereference null pointer.");
102 return *o;
103 }
#define ASSERTL1(condition, msg)
Assert Level 1 – Debugging which is used whether in FULLDEBUG or DEBUG compilation mode....
Definition: ErrorUtil.hpp:242

References ASSERTL1.

◆ pointer()

template<typename DataType >
static DataType * Nektar::ConsistentObjectAccess< std::shared_ptr< DataType > >::pointer ( const std::shared_ptr< DataType > &  o)
inlinestatic

Definition at line 113 of file ConsistentObjectAccess.hpp.

114 {
115 return o.get();
116 }

◆ reference()

template<typename DataType >
static DataType & Nektar::ConsistentObjectAccess< std::shared_ptr< DataType > >::reference ( const std::shared_ptr< DataType > &  o)
inlinestatic

Definition at line 108 of file ConsistentObjectAccess.hpp.

109 {
110 ASSERTL1(o, "Can't dereference null pointer.");
111 return *o;
112 }

References ASSERTL1.

◆ ReferencesObject()

template<typename DataType >
static bool Nektar::ConsistentObjectAccess< std::shared_ptr< DataType > >::ReferencesObject ( const std::shared_ptr< DataType > &  o)
inlinestatic

Definition at line 117 of file ConsistentObjectAccess.hpp.

118 {
119 return o.get();
120 }