![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
13 #ifndef ROOTUTILS_TYPE_H
14 #define ROOTUTILS_TYPE_H
22 #include "TDataType.h"
73 Type (
const std::string& typname);
107 void init (
const std::string& typname);
226 void clear (
void* dst)
const;
238 void assign (
void* dst,
size_t dst_index,
239 const void*
src,
size_t src_index)
const;
252 void assign (
void* dst,
const void*
src)
const;
264 void swap (
void*
a,
size_t a_index,
265 void*
b,
size_t b_index)
const;
273 void swap (
void*
a,
void*
b)
const;
288 void*
b,
size_t b_index,
375 #endif // not ROOTUTILS_TYPE_H
Helper for thread-safe TMethodCall. Extracted from Type.
void swapRange(void *a, size_t a_index, void *b, size_t b_index, size_t n) const
Swap a range of objects between vectors.
void init(const std::string &typname)
Initialize from a type name.
Deleter object, compatible with std::unique_ptr.
TClass * m_cls
The class of the derived type, or 0 if it's not a class type.
const TClass * getClass() const
Return the ROOT class for the described type.
void swap(void *a, size_t a_index, void *b, size_t b_index) const
Swap an object between vectors.
const std::type_info * getTypeInfo() const
Return the type_info for the described type.
const Type * m_t
The type describing this pointer.
Deleter()
Default constructor.
void operator()(void *p)
Delete an object.
void * m_defElt
Pointer to a default-constructed instance of the payload object.
void assign(void *dst, size_t dst_index, const void *src, size_t src_index) const
Copy an object within vectors.
EDataType m_type
The ROOT type code of the derived type, or kNoType_t for a class type.
Helper for making a thread-safe function call.
size_t getSize() const
Return the size in bytes of an instance of the described type.
void clear(void *dst, size_t index) const
Clear an object in a vector.
void destroy(void *p) const
Destroy an instance of the object (and free memory).
void clearRange(void *dst, size_t n) const
Clear a range of objects.
void fromString(void *p, const std::string &s) const
Initialize an object from a string.
size_t m_size
The size in bytes of an instance of the described type.
EDataType getDataType() const
Return the ROOT data type code for the described type.
const std::type_info * m_ti
The type_info for the described type.
std::unique_ptr< void, Deleter > unique_ptr
A std::unique_ptr type referencing a generic pointer.
TSMethodCall m_assign ATLAS_THREAD_SAFE
Type()
Default constructor.
void copyRange(void *dst, const void *src, size_t n) const
Copy a range of objects.
Deleter(const Type &t)
Constructor.
void * create() const
Create an instance of the object.
std::string getTypeName() const
Return the name of this type.
Type & operator=(const RootUtils::Type &other)
Assignment.
Define macros for attributes used to control the static checker.