| # Gaudi Framework, version v20r3
Generated: 24 Nov 2008

# SmartRef.h File Reference

`#include "GaudiKernel/SmartRefBase.h"`
`#include "GaudiKernel/ContainedObject.h"`
`#include <typeinfo>`

Include dependency graph for SmartRef.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

## Classes
class | SmartRef< TYPE >
| Kernel objects: SmartRef. More...
## Defines
#define | KERNEL_SMARTREF_H 1
## Functions
template<class TYPE>
bool | operator== (const SmartRef< TYPE > &ref, int)
| Friend helper to check for object existence (will load object).
template<class TYPE>
bool | operator== (int, const SmartRef< TYPE > &ref)
| Friend helper to check for object existence (will load object).
template<class TYPE>
bool | operator!= (const SmartRef< TYPE > &ref, int)
| Friend helper to check for object existence (will load object).
template<class TYPE>
bool | operator!= (int, const SmartRef< TYPE > &ref)
| Friend helper to check for object existence (will load object).

## Define Documentation

#define KERNEL_SMARTREF_H 1

Definition at line 11 of file SmartRef.h.

## Function Documentation

template<class TYPE>

bool operator!= | ( | int | ,
|  | const SmartRef< TYPE > & | ref |
| ) |  |  | `[inline]`

Friend helper to check for object existence (will load object).

Definition at line 330 of file SmartRef.h.

    00330                                                     {
    00331   const TYPE* obj = ref;
    00332   return obj != 0;
    00333 }

template<class TYPE>

bool operator!= | ( | const SmartRef< TYPE > & | ref,
|  | int |  |
| ) |  |  | `[inline]`

Friend helper to check for object existence (will load object).

Definition at line 323 of file SmartRef.h.

    00323                                                     {
    00324   const TYPE* obj = ref;
    00325   return obj != 0;
    00326 }

template<class TYPE>

bool operator== | ( | int | ,
|  | const SmartRef< TYPE > & | ref |
| ) |  |  | `[inline]`

Friend helper to check for object existence (will load object).

Definition at line 316 of file SmartRef.h.

    00316                                                     {
    00317   const TYPE* obj = ref;
    00318   return obj == 0;
    00319 }

template<class TYPE>

bool operator== | ( | const SmartRef< TYPE > & | ref,
|  | int |  |
| ) |  |  | `[inline]`

Friend helper to check for object existence (will load object).

Definition at line 309 of file SmartRef.h.

    00309                                                     {
    00310   const TYPE* obj = ref;
    00311   return obj == 0;
    00312 }