SG::AuxElementComplete< T > Class Template Reference

Wrapper to automatically create a private store for an element. More...

#include <AuxElementComplete.h>

Inheritance diagram for SG::AuxElementComplete< T >:
T

List of all members.

Public Member Functions

 AuxElementComplete ()
 Default constructor.
template<class U1 >
 AuxElementComplete (const U1 &u1)
 Generic constructor.
 AuxElementComplete (const AuxElementComplete &other)
 Copy constructor.

Detailed Description

template<class T>
class SG::AuxElementComplete< T >

Wrapper to automatically create a private store for an element.

A class deriving from SG::AuxElement can be given a private store by calling makePrivateStore; after that, it can have auxiliary data attached to it. Using this wrapper makes a class that will automatically create a private store when it is constructed.

  class MyClass : public SG::AuxElement { ... };
  typedef SG::AuxElementComplete<MyClass> MyClassComplete;

  MyClassComplete obj; // obj gets a private store.
  obj.auxdata<int> ("mydata") = 1;
  MyClassComplete obj2 (obj);  // aux data gets copied.

Constructor & Destructor Documentation

template<class T >
SG::AuxElementComplete< T >::AuxElementComplete (  )  [inline]

Default constructor.

A private store is created for this object.

template<class T >
template<class U1 >
SG::AuxElementComplete< T >::AuxElementComplete ( const U1 &  u1  )  [inline]

Generic constructor.

Parameters:
u1 Constructor argument.

A private store is created for this object.

template<class T >
SG::AuxElementComplete< T >::AuxElementComplete ( const AuxElementComplete< T > &  other  )  [inline]

Copy constructor.

Parameters:
other The object being copied.

A private store is created for this object.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 1 Dec 2017 for RootCore Packages by  doxygen 1.6.1