Helper functions for accessing the container data via the proxy.
More...
|
| typedef std::vector< char * > | Cont_t |
| | The container type.
|
| using | Env_t = ROOT::TCollectionProxyInfo::Environ<TEnvBuff> |
| | The Root proxy environment structure.
|
|
| static Cont_t * | cont (void *env) |
| | Fetch the container from a proxy environment.
|
| static void * | first (void *env) |
| | Return the first element of the container.
|
| static void * | next (void *env) |
| | Return a following element of the container.
|
| static void * | size (void *env) |
| | Return the size of the container.
|
| static void * | clear (void *env) |
| | Erase the container.
|
| static void * | create_env () |
| | Return a new environment structure.
|
| static void | resize (void *, size_t) |
| | Not implemented for xAOD.
|
| static void * | construct (void *, size_t) |
| | Not implemented for xAOD.
|
| static void | destruct (void *, size_t) |
| | Not implemented for xAOD.
|
| static void * | feed (void *, void *to, size_t size) |
| static void * | collect (void *, void *) |
| | Not implemented for xAOD.
|
Helper functions for accessing the container data via the proxy.
Definition at line 155 of file TDVCollectionProxy.cxx.
◆ Cont_t
◆ Env_t
◆ clear()
| void * xAOD::TDVCollectionFuncs::clear |
( |
void * | env | ) |
|
|
inlinestatic |
Erase the container.
- Parameters
-
| env | The proxy environment. |
Definition at line 261 of file TDVCollectionProxy.cxx.
261 {
262
263 cont( env )->clear();
264 return nullptr;
265 }
static Cont_t * cont(void *env)
Fetch the container from a proxy environment.
◆ collect()
| void * xAOD::TDVCollectionFuncs::collect |
( |
void * | , |
|
|
void * | ) |
|
inlinestatic |
Not implemented for xAOD.
Definition at line 315 of file TDVCollectionProxy.cxx.
315 {
316 ::Fatal( "xAOD::TDVCollectionProxy", "collect not implemented" );
317 return nullptr;
318 }
◆ construct()
| void * xAOD::TDVCollectionFuncs::construct |
( |
void * | , |
|
|
size_t | ) |
|
inlinestatic |
Not implemented for xAOD.
Definition at line 284 of file TDVCollectionProxy.cxx.
284 {
285 ::Fatal( "xAOD::TDVCollectionProxy", "construct not implemented" );
286 return nullptr;
287 }
◆ cont()
| Cont_t * xAOD::TDVCollectionFuncs::cont |
( |
void * | env | ) |
|
|
inlinestatic |
Fetch the container from a proxy environment.
- Parameters
-
| env | The proxy environment. |
Definition at line 198 of file TDVCollectionProxy.cxx.
198 {
199
203 }
ROOT::TCollectionProxyInfo::Environ< TEnvBuff > Env_t
The Root proxy environment structure.
Proxy environment buffer.
◆ create_env()
| void * xAOD::TDVCollectionFuncs::create_env |
( |
| ) |
|
|
inlinestatic |
◆ destruct()
| void xAOD::TDVCollectionFuncs::destruct |
( |
void * | , |
|
|
size_t | ) |
|
inlinestatic |
Not implemented for xAOD.
Definition at line 290 of file TDVCollectionProxy.cxx.
290 {
291 ::Fatal( "xAOD::TDVCollectionProxy", "destruct not implemented" );
292 }
◆ feed()
| void * xAOD::TDVCollectionFuncs::feed |
( |
void * | , |
|
|
void * | to, |
|
|
size_t | size ) |
|
inlinestatic |
Definition at line 295 of file TDVCollectionProxy.cxx.
296 {
297 DataVector<char> *
dv =
reinterpret_cast<DataVector<char>*
>(
to);
298
299 const std::type_info &elem_typeinfo =
dv->dvlinfo_v().elt_tinfo();
301
302 if(
mn) cout <<
"PROX: feed, typename=" << ru_type.getTypeName() <<
" typesize=" << ru_type.getSize() <<endl;
303
304
305 for(
size_t i=0;
i<
size;
i++) {
306 void *
obj = ru_type.create();
307
308 dv->dvlinfo_v().push(dv,obj);
309
310 }
311 return nullptr;
312 }
static void * size(void *env)
Return the size of the container.
std::string normalizedTypeinfoName(const std::type_info &info)
Convert a type_info to a normalized string representation (matching the names used in the root dictio...
◆ first()
| void * xAOD::TDVCollectionFuncs::first |
( |
void * | env | ) |
|
|
inlinestatic |
Return the first element of the container.
This resets the internal pointer to 0.
- Parameters
-
| env | The proxy environment. |
- Returns
- A pointer to the first element, or 0 if the container is empty.
Definition at line 211 of file TDVCollectionProxy.cxx.
211 {
218 return nullptr;
219 }
223 }
std::vector< char * > Cont_t
The container type.
◆ next()
| void * xAOD::TDVCollectionFuncs::next |
( |
void * | env | ) |
|
|
inlinestatic |
Return a following element of the container.
The internal pointer will be advanced by the value of e.idx (after which e.idx will be reset to 0). A pointer to the element referenced by this new index will be returned.
- Parameters
-
| env | The proxy environment. |
- Returns
- A pointer to the following element, or 0 if we're past the end.
Definition at line 233 of file TDVCollectionProxy.cxx.
233 {
234
238 buff.fIndex +=
e.fIdx;
240 if(
buff.fIndex >=
e.fSize ) {
241 return nullptr;
242 }
246 }
◆ resize()
| void xAOD::TDVCollectionFuncs::resize |
( |
void * | , |
|
|
size_t | ) |
|
inlinestatic |
Not implemented for xAOD.
Definition at line 279 of file TDVCollectionProxy.cxx.
279 {
280 ::Fatal( "xAOD::TDVCollectionProxy", "resize function not specified!" );
281 }
◆ size()
| void * xAOD::TDVCollectionFuncs::size |
( |
void * | env | ) |
|
|
inlinestatic |
Return the size of the container.
- Parameters
-
| env | The proxy environment. |
Definition at line 251 of file TDVCollectionProxy.cxx.
251 {
252
254 e->fSize =
cont( env )->size();
255 return &(
e->fSize );
256 }
The documentation for this class was generated from the following file: