![]() |
ATLAS Offline Software
|
Base class of a container proxy. More...
#include <ProxyContainer.h>
Public Types | |
| using | element_index_t = ElementIndexType |
| using | ContainerNonConst = std::remove_cvref_t<Container> |
| using | ContainerPtr = std::conditional<isConst , const ContainerNonConst *, ContainerNonConst *>::type |
Public Member Functions | |
| template<class OtherContainer> requires (std::is_same_v<ContainerNonConst, typename OtherContainer::ContainerNonConst> || !OtherContainer::isConst) | |
| ContainerProxyBase (const ContainerProxyBase< OtherContainer, ElementIndexType > &a) | |
| ContainerProxyBase (const ContainerNonConst *container) | |
| ContainerProxyBase (ContainerNonConst *container) | |
| const ContainerNonConst & | container () const |
| return a const pointer of the container which contains the elements this proxy refers to. | |
| ContainerNonConst & | container () |
| Return a non const pointer of the container which contains the elements this proxy refers to provided the access policy permits read-write access. | |
Static Public Attributes | |
| static constexpr bool | isConst = std::is_const_v<Container> |
Protected Member Functions | |
| const ContainerNonConst * | cptr () const |
| ContainerNonConst * | ptr () |
Protected Attributes | |
| ContainerPtr | m_container |
Base class of a container proxy.
| Container | the container type this proxy refers to e.g. CellData |
| ElementIndexType | the index type to refer to an element of the container proxy e.g. unsigned int, but it could be an object with associated data e.g. an index to the parent element or on index offset for its child elements The base class provides an access controlled pointer to the container this proxy is referring to. |
Definition at line 174 of file ProxyContainer.h.
| using Utils::ContainerProxyBase< Container, ElementIndexType >::ContainerNonConst = std::remove_cvref_t<Container> |
Definition at line 177 of file ProxyContainer.h.
| using Utils::ContainerProxyBase< Container, ElementIndexType >::ContainerPtr = std::conditional<isConst , const ContainerNonConst *, ContainerNonConst *>::type |
Definition at line 178 of file ProxyContainer.h.
| using Utils::ContainerProxyBase< Container, ElementIndexType >::element_index_t = ElementIndexType |
Definition at line 176 of file ProxyContainer.h.
|
inline |
Definition at line 181 of file ProxyContainer.h.
|
inline |
Definition at line 184 of file ProxyContainer.h.
|
inline |
Definition at line 186 of file ProxyContainer.h.
|
inline |
Return a non const pointer of the container which contains the elements this proxy refers to provided the access policy permits read-write access.
Definition at line 194 of file ProxyContainer.h.
|
inline |
return a const pointer of the container which contains the elements this proxy refers to.
Definition at line 190 of file ProxyContainer.h.
|
inlineprotected |
Definition at line 198 of file ProxyContainer.h.
|
inlineprotected |
Definition at line 201 of file ProxyContainer.h.
|
staticconstexpr |
Definition at line 175 of file ProxyContainer.h.
|
protected |
Definition at line 205 of file ProxyContainer.h.