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

#include <ConsistentObjectAccess.hpp>

Static Public Member Functions

static const DataType & const_reference (DataType *o)
 
static const DataType * const_pointer (DataType *o)
 
static bool ReferencesObject (DataType *o)
 
static DataType & reference (DataType *o)
 
static DataType * pointer (DataType *o)
 

Detailed Description

template<typename DataType>
struct Nektar::ConsistentObjectAccess< DataType * >

Definition at line 59 of file ConsistentObjectAccess.hpp.

Member Function Documentation

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

Definition at line 62 of file ConsistentObjectAccess.hpp.

62 { return o; }
template<typename DataType >
static const DataType& Nektar::ConsistentObjectAccess< DataType * >::const_reference ( DataType *  o)
inlinestatic

Definition at line 61 of file ConsistentObjectAccess.hpp.

References ASSERTL1.

61 { ASSERTL1(o != 0, "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:218
template<typename DataType >
static DataType* Nektar::ConsistentObjectAccess< DataType * >::pointer ( DataType *  o)
inlinestatic

Definition at line 66 of file ConsistentObjectAccess.hpp.

66 { return o; }
template<typename DataType >
static DataType& Nektar::ConsistentObjectAccess< DataType * >::reference ( DataType *  o)
inlinestatic

Definition at line 65 of file ConsistentObjectAccess.hpp.

References ASSERTL1.

65 { ASSERTL1(o != 0, "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:218
template<typename DataType >
static bool Nektar::ConsistentObjectAccess< DataType * >::ReferencesObject ( DataType *  o)
inlinestatic

Definition at line 63 of file ConsistentObjectAccess.hpp.

63 { return o != 0; }