ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
SG::View Class Reference

#include <View.h>

Inheritance diagram for SG::View:
Collaboration diagram for SG::View:

Public Member Functions

 View ()=delete
 
 View (const std::string &name, const int index, const bool AllowFallThrough=true, std::string const &storeName="StoreGateSvc")
 
virtual ~View ()
 
 View (const View &)=delete
 
Viewoperator= (const View &)=delete
 
std::string viewKey (const std::string &key) const
 Construct a key as used in the parent store. More...
 
void impl (SimpleView *impl)
 
SimpleViewimpl (void)
 
const SimpleViewimpl (void) const
 
size_t viewID () const
 
std::string dump (const std::string &indent="") const
 for printing the content of the view More...
 
void linkParent (const IProxyDict *parent)
 
const std::set< const View * > & getParentLinks () const
 
void setFilter (std::vector< std::string > const &inputFilter)
 
virtual SG::DataProxydeep_proxy (const void *const pTransient) const
 
virtual SG::DataProxyproxy_exact (SG::sgkey_t sgkey) const
 
virtual SG::DataProxyproxy (const CLID &id, const std::string &key) const
 
virtual SG::DataProxyproxy (const void *const pTransient) const
 
virtual std::vector< const SG::DataProxy * > proxies () const
 
virtual StatusCode addToStore (CLID id, SG::DataProxy *proxy)
 
virtual SG::DataProxyrecordObject (SG::DataObjectSharedPtr< DataObject > obj, const std::string &key, bool allowMods, bool returnExisting)
 
virtual void boundHandle (IResetable *handle)
 
virtual void unboundHandle (IResetable *handle)
 
virtual bool tryELRemap (sgkey_t sgkey_in, size_t index_in, sgkey_t &sgkey_out, size_t &index_out)
 
virtual const std::string & name () const
 
virtual IStringPool::sgkey_t stringToKey (const std::string &str, CLID clid)
 
virtual const std::string * keyToString (IStringPool::sgkey_t key) const
 
virtual const std::string * keyToString (IStringPool::sgkey_t key, CLID &clid) const
 
virtual void registerKey (IStringPool::sgkey_t key, const std::string &str, CLID clid)
 
void setROI (const ElementLink< TrigRoiDescriptorCollection > &roi)
 
const ElementLink< TrigRoiDescriptorCollection > & getROI () const
 

Private Attributes

SimpleViewm_implementation
 
size_t m_index
 

Detailed Description

Definition at line 25 of file View.h.

Constructor & Destructor Documentation

◆ View() [1/3]

SG::View::View ( )
delete

◆ View() [2/3]

View::View ( const std::string &  name,
const int  index,
const bool  AllowFallThrough = true,
std::string const storeName = "StoreGateSvc" 
)

Definition at line 9 of file View.cxx.

9  {
10 
11  std::string fullName = name;
12  if ( index == -1 ) {
13  m_index = 0;
14  }
15  else {
16  m_index = index;
17  fullName += '_';
19  }
20 
21 #ifdef ATHVIEWS_DEBUG
22  m_implementation = new DebugView( fullName, AllowFallThrough, storeName );
23 #else
24  m_implementation = new SimpleView( fullName, AllowFallThrough, storeName );
25 #endif
26 }

◆ ~View()

View::~View ( )
virtual

Definition at line 28 of file View.cxx.

28  {
29  delete m_implementation;
30 }

◆ View() [3/3]

SG::View::View ( const View )
delete

Member Function Documentation

◆ addToStore()

virtual StatusCode SG::View::addToStore ( CLID  id,
SG::DataProxy proxy 
)
inlinevirtual

Definition at line 100 of file View.h.

100  {
101  return m_implementation->addToStore(id, proxy);
102  }

◆ boundHandle()

virtual void SG::View::boundHandle ( IResetable handle)
inlinevirtual

Definition at line 119 of file View.h.

119  {
120  return m_implementation->boundHandle(handle);
121  }

◆ deep_proxy()

virtual SG::DataProxy* SG::View::deep_proxy ( const void *const  pTransient) const
inlinevirtual

Definition at line 78 of file View.h.

78  {
79  return m_implementation->proxy (pTransient);
80  }

◆ dump()

std::string SG::View::dump ( const std::string &  indent = "") const
inline

for printing the content of the view

Warning
- expensive call

Definition at line 58 of file View.h.

58  {
59  return m_implementation->dump( indent );
60  }

◆ getParentLinks()

const std::set< const View* >& SG::View::getParentLinks ( ) const
inline

Definition at line 70 of file View.h.

70  {
72  }

◆ getROI()

const ElementLink<TrigRoiDescriptorCollection>& SG::View::getROI ( ) const
inline

Definition at line 141 of file View.h.

141 { return m_implementation->getROI(); };

◆ impl() [1/3]

void SG::View::impl ( SimpleView impl)
inline

Definition at line 48 of file View.h.

◆ impl() [2/3]

SimpleView* SG::View::impl ( void  )
inline

Definition at line 49 of file View.h.

49 { return m_implementation; }

◆ impl() [3/3]

const SimpleView* SG::View::impl ( void  ) const
inline

Definition at line 50 of file View.h.

50 { return m_implementation; }

◆ keyToString() [1/2]

virtual const std::string* SG::View::keyToString ( IStringPool::sgkey_t  key) const
inlinevirtual

Definition at line 136 of file View.h.

136 { return m_implementation->keyToString( key ); }

◆ keyToString() [2/2]

virtual const std::string* SG::View::keyToString ( IStringPool::sgkey_t  key,
CLID clid 
) const
inlinevirtual

Definition at line 137 of file View.h.

137 { return m_implementation->keyToString( key, clid ); }

◆ linkParent()

void SG::View::linkParent ( const IProxyDict parent)
inline

Definition at line 66 of file View.h.

66  {
68  }

◆ name()

virtual const std::string& SG::View::name ( ) const
inlinevirtual

Definition at line 132 of file View.h.

132 { return m_implementation->name(); }

◆ operator=()

View& SG::View::operator= ( const View )
delete

◆ proxies()

virtual std::vector<const SG::DataProxy*> SG::View::proxies ( ) const
inlinevirtual

Definition at line 95 of file View.h.

95  {
96  return m_implementation->proxies();
97  }

◆ proxy() [1/2]

virtual SG::DataProxy* SG::View::proxy ( const CLID id,
const std::string &  key 
) const
inlinevirtual

Definition at line 86 of file View.h.

86  {
87  return m_implementation->proxy(id, key);
88  }

◆ proxy() [2/2]

virtual SG::DataProxy* SG::View::proxy ( const void *const  pTransient) const
inlinevirtual

Definition at line 90 of file View.h.

90  {
91  return m_implementation->proxy(pTransient);
92  }

◆ proxy_exact()

virtual SG::DataProxy* SG::View::proxy_exact ( SG::sgkey_t  sgkey) const
inlinevirtual

Definition at line 82 of file View.h.

82  {
84  }

◆ recordObject()

virtual SG::DataProxy* SG::View::recordObject ( SG::DataObjectSharedPtr< DataObject >  obj,
const std::string &  key,
bool  allowMods,
bool  returnExisting 
)
inlinevirtual

Definition at line 110 of file View.h.

113  {
114  return m_implementation->recordObject( obj, key, allowMods, returnExisting );
115  }

◆ registerKey()

virtual void SG::View::registerKey ( IStringPool::sgkey_t  key,
const std::string &  str,
CLID  clid 
)
inlinevirtual

Definition at line 138 of file View.h.

138 { m_implementation->registerKey( key, str, clid ); }

◆ setFilter()

void SG::View::setFilter ( std::vector< std::string > const inputFilter)
inline

Definition at line 74 of file View.h.

74  {
75  m_implementation->setFilter( inputFilter );
76  }

◆ setROI()

void SG::View::setROI ( const ElementLink< TrigRoiDescriptorCollection > &  roi)
inline

Definition at line 140 of file View.h.

140 { m_implementation->setROI(roi); };

◆ stringToKey()

virtual IStringPool::sgkey_t SG::View::stringToKey ( const std::string &  str,
CLID  clid 
)
inlinevirtual

Definition at line 135 of file View.h.

135 { return m_implementation->stringToKey( str, clid ); }

◆ tryELRemap()

virtual bool SG::View::tryELRemap ( sgkey_t  sgkey_in,
size_t  index_in,
sgkey_t sgkey_out,
size_t &  index_out 
)
inlinevirtual

Definition at line 127 of file View.h.

128  {
129  return m_implementation->tryELRemap(sgkey_in, index_in, sgkey_out, index_out);
130  }

◆ unboundHandle()

virtual void SG::View::unboundHandle ( IResetable handle)
inlinevirtual

Definition at line 123 of file View.h.

123  {
124  return m_implementation->unboundHandle(handle);
125  }

◆ viewID()

size_t SG::View::viewID ( ) const
inline

Definition at line 52 of file View.h.

52 { return m_index; }

◆ viewKey()

std::string SG::View::viewKey ( const std::string &  key) const
inline

Construct a key as used in the parent store.

key The key as used in the view.

Definition at line 37 of file View.h.

38  {
39  return m_implementation->viewKey (key);
40  }

Member Data Documentation

◆ m_implementation

SimpleView* SG::View::m_implementation
private

Definition at line 148 of file View.h.

◆ m_index

size_t SG::View::m_index
private

Definition at line 150 of file View.h.


The documentation for this class was generated from the following files:
common.sgkey
def sgkey(tool)
Definition: common.py:1028
SimpleView::addToStore
virtual StatusCode addToStore(CLID id, SG::DataProxy *proxy)
Add a new proxy to the store.
Definition: SimpleView.cxx:146
SimpleView::tryELRemap
virtual bool tryELRemap(sgkey_t sgkey_in, size_t index_in, sgkey_t &sgkey_out, size_t &index_out)
Test to see if the target of an ElementLink has moved.
Definition: SimpleView.cxx:162
index
Definition: index.py:1
SimpleView::stringToKey
virtual IStringPool::sgkey_t stringToKey(const std::string &str, CLID clid)
Definition: SimpleView.cxx:210
WriteCellNoiseToCool.fullName
fullName
Definition: WriteCellNoiseToCool.py:461
SimpleView::unboundHandle
virtual void unboundHandle(IResetable *handle)
Tell the store that a handle has been unbound from a proxy.
Definition: SimpleView.cxx:199
SG::View::impl
SimpleView * impl(void)
Definition: View.h:49
SimpleView::dump
std::string dump(const std::string &indent="") const
Definition: SimpleView.cxx:237
SimpleView::boundHandle
virtual void boundHandle(IResetable *handle)
Tell the store that a handle has been bound to a proxy.
Definition: SimpleView.cxx:189
geometry_dat_to_json.indent
indent
Definition: geometry_dat_to_json.py:36
SimpleView::proxies
virtual std::vector< const SG::DataProxy * > proxies() const
Return the list of all current proxies in store.
Definition: SimpleView.cxx:130
SimpleView::registerKey
virtual void registerKey(IStringPool::sgkey_t key, const std::string &str, CLID clid)
Definition: SimpleView.cxx:224
SimpleView::proxy
virtual SG::DataProxy * proxy(const CLID &id, const std::string &key) const
Get proxy with given id and key.
Definition: SimpleView.cxx:70
SimpleView::getParentLinks
virtual const std::set< const SG::View * > & getParentLinks() const
returns the links to the previously used views
Definition: SimpleView.h:57
SimpleView
Very simple pass-through implementation of IProxyDict.
Definition: SimpleView.h:35
test_pyathena.parent
parent
Definition: test_pyathena.py:15
SG::View::proxy
virtual SG::DataProxy * proxy(const CLID &id, const std::string &key) const
Definition: View.h:86
SimpleView::getROI
const ElementLink< TrigRoiDescriptorCollection > & getROI() const
Definition: SimpleView.cxx:233
DebugView
Very simple pass-through implementation of IProxyDict.
Definition: DebugView.h:29
SimpleView::proxy_exact
virtual SG::DataProxy * proxy_exact(SG::sgkey_t sgkey) const
Get proxy given a hashed key+clid.
Definition: SimpleView.cxx:51
ActsTrk::to_string
std::string to_string(const DetectorType &type)
Definition: GeometryDefs.h:34
SimpleView::viewKey
std::string viewKey(const std::string &key) const
Construct a key as used in the parent store.
Definition: SimpleView.cxx:27
SimpleView::recordObject
virtual SG::DataProxy * recordObject(SG::DataObjectSharedPtr< DataObject > obj, const std::string &key, bool allowMods, bool returnExisting)
Record an object in the store.
Definition: SimpleView.cxx:179
SimpleView::keyToString
virtual const std::string * keyToString(IStringPool::sgkey_t key) const
Definition: SimpleView.cxx:214
SimpleView::name
virtual const std::string & name() const
Definition: SimpleView.cxx:204
DeMoScan.index
string index
Definition: DeMoScan.py:364
SG::View::name
virtual const std::string & name() const
Definition: View.h:132
SimpleView::setFilter
void setFilter(std::vector< std::string > const &inputFilter)
Set a filtering rule for anything loaded via fallthrough.
Definition: SimpleView.h:63
SimpleView::setROI
void setROI(const ElementLink< TrigRoiDescriptorCollection > &roi)
Definition: SimpleView.cxx:229
SimpleView::linkParent
virtual void linkParent(const IProxyDict *parent)
links to the previously used views through these parent views additional data objects become availabl...
Definition: SimpleView.cxx:33
str
Definition: BTagTrackIpAccessor.cxx:11
SG::View::m_implementation
SimpleView * m_implementation
Definition: View.h:141
python.PyAthena.obj
obj
Definition: PyAthena.py:132
SG::View::m_index
size_t m_index
Definition: View.h:150
mapkey::key
key
Definition: TElectronEfficiencyCorrectionTool.cxx:37