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 156 of file TDVCollectionProxy.cxx.
◆ Cont_t
◆ Env_t
◆ clear()
| void * TDVCollectionFuncs::clear |
( |
void * | env | ) |
|
|
inlinestatic |
Erase the container.
- Parameters
-
| env | The proxy environment. |
Definition at line 262 of file TDVCollectionProxy.cxx.
262 {
263
264 cont( env )->clear();
265 return nullptr;
266 }
static Cont_t * cont(void *env)
Fetch the container from a proxy environment.
◆ collect()
| void * TDVCollectionFuncs::collect |
( |
void * | , |
|
|
void * | ) |
|
inlinestatic |
Not implemented for xAOD.
Definition at line 316 of file TDVCollectionProxy.cxx.
316 {
317 ::Fatal( "xAOD::TDVCollectionProxy", "collect not implemented" );
318 return nullptr;
319 }
◆ construct()
| void * TDVCollectionFuncs::construct |
( |
void * | , |
|
|
size_t | ) |
|
inlinestatic |
Not implemented for xAOD.
Definition at line 285 of file TDVCollectionProxy.cxx.
285 {
286 ::Fatal( "xAOD::TDVCollectionProxy", "construct not implemented" );
287 return nullptr;
288 }
◆ cont()
| Cont_t * TDVCollectionFuncs::cont |
( |
void * | env | ) |
|
|
inlinestatic |
Fetch the container from a proxy environment.
- Parameters
-
| env | The proxy environment. |
Definition at line 199 of file TDVCollectionProxy.cxx.
199 {
200
204 }
ROOT::TCollectionProxyInfo::Environ< TEnvBuff > Env_t
The Root proxy environment structure.
Proxy environment buffer.
◆ create_env()
| void * TDVCollectionFuncs::create_env |
( |
| ) |
|
|
inlinestatic |
◆ destruct()
| void TDVCollectionFuncs::destruct |
( |
void * | , |
|
|
size_t | ) |
|
inlinestatic |
Not implemented for xAOD.
Definition at line 291 of file TDVCollectionProxy.cxx.
291 {
292 ::Fatal( "xAOD::TDVCollectionProxy", "destruct not implemented" );
293 }
◆ feed()
| void * TDVCollectionFuncs::feed |
( |
void * | , |
|
|
void * | to, |
|
|
size_t | size ) |
|
inlinestatic |
Definition at line 296 of file TDVCollectionProxy.cxx.
297 {
298 DataVector<char> *
dv =
reinterpret_cast<DataVector<char>*
>(
to);
299
300 const std::type_info &elem_typeinfo =
dv->dvlinfo_v().elt_tinfo();
302
303 if(
mn) cout <<
"PROX: feed, typename=" << ru_type.getTypeName() <<
" typesize=" << ru_type.getSize() <<endl;
304
305
306 for(
size_t i=0;
i<
size;
i++) {
307 void *
obj = ru_type.create();
308
309 dv->dvlinfo_v().push(dv,obj);
310
311 }
312 return nullptr;
313 }
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 * 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 212 of file TDVCollectionProxy.cxx.
212 {
219 return nullptr;
220 }
224 }
std::vector< char * > Cont_t
The container type.
◆ next()
| void * 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 234 of file TDVCollectionProxy.cxx.
234 {
235
239 buff.fIndex +=
e.fIdx;
241 if(
buff.fIndex >=
e.fSize ) {
242 return nullptr;
243 }
247 }
◆ resize()
| void TDVCollectionFuncs::resize |
( |
void * | , |
|
|
size_t | ) |
|
inlinestatic |
Not implemented for xAOD.
Definition at line 280 of file TDVCollectionProxy.cxx.
280 {
281 ::Fatal( "xAOD::TDVCollectionProxy", "resize function not specified!" );
282 }
◆ size()
| void * TDVCollectionFuncs::size |
( |
void * | env | ) |
|
|
inlinestatic |
Return the size of the container.
- Parameters
-
| env | The proxy environment. |
Definition at line 252 of file TDVCollectionProxy.cxx.
252 {
253
255 e->fSize =
cont( env )->size();
256 return &(
e->fSize );
257 }
The documentation for this class was generated from the following file: