Nektar++
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Static Public Member Functions | List of all members
Nektar::ConsistentObjectAccess< boost::shared_ptr< DataType > > Struct Template Reference

#include <ConsistentObjectAccess.hpp>

Static Public Member Functions

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

Detailed Description

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

Definition at line 71 of file ConsistentObjectAccess.hpp.

Member Function Documentation

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

Definition at line 74 of file ConsistentObjectAccess.hpp.

74 { return o.get(); }
template<typename DataType >
static const DataType& Nektar::ConsistentObjectAccess< boost::shared_ptr< DataType > >::const_reference ( const boost::shared_ptr< DataType > &  o)
inlinestatic

Definition at line 73 of file ConsistentObjectAccess.hpp.

References ASSERTL1.

73 { ASSERTL1(o, "Can't dereference null pointer."); return *o; }
#define ASSERTL1(condition, msg)
Assert Level 1 – Debugging which is used whether in FULLDEBUG or DEBUG compilation mode...
Definition: ErrorUtil.hpp:191
template<typename DataType >
static DataType* Nektar::ConsistentObjectAccess< boost::shared_ptr< DataType > >::pointer ( const boost::shared_ptr< DataType > &  o)
inlinestatic

Definition at line 76 of file ConsistentObjectAccess.hpp.

76 { return o.get(); }
template<typename DataType >
static DataType& Nektar::ConsistentObjectAccess< boost::shared_ptr< DataType > >::reference ( const boost::shared_ptr< DataType > &  o)
inlinestatic

Definition at line 75 of file ConsistentObjectAccess.hpp.

References ASSERTL1.

75 { ASSERTL1(o, "Can't dereference null pointer."); return *o; }
#define ASSERTL1(condition, msg)
Assert Level 1 – Debugging which is used whether in FULLDEBUG or DEBUG compilation mode...
Definition: ErrorUtil.hpp:191
template<typename DataType >
static bool Nektar::ConsistentObjectAccess< boost::shared_ptr< DataType > >::ReferencesObject ( const boost::shared_ptr< DataType > &  o)
inlinestatic

Definition at line 77 of file ConsistentObjectAccess.hpp.

77 { return o.get(); }