| # Gaudi Framework, version v21r11 |

Home |  | Generated: 30 Sep 2010

# 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 332 of file SmartRef.h.

    00332                                                     {
    00333   const TYPE* obj = ref;
    00334   return obj != 0;
    00335 }

template<class TYPE>

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

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

Definition at line 325 of file SmartRef.h.

    00325                                                     {
    00326   const TYPE* obj = ref;
    00327   return obj != 0;
    00328 }

template<class TYPE>

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

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

Definition at line 318 of file SmartRef.h.

    00318                                                     {
    00319   const TYPE* obj = ref;
    00320   return obj == 0;
    00321 }

template<class TYPE>

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

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

Definition at line 311 of file SmartRef.h.

    00311                                                     {
    00312   const TYPE* obj = ref;
    00313   return obj == 0;
    00314 }