ATLAS Offline Software
Public Types | Public Member Functions | Private Attributes | List of all members
SG::JaggedVecElt< T > Class Template Reference

Describe one element of a jagged vector. More...

#include <JaggedVecImpl.h>

Inheritance diagram for SG::JaggedVecElt< T >:
Collaboration diagram for SG::JaggedVecElt< T >:

Public Types

using index_type = uint32_t
 Type for the indices. More...
 

Public Member Functions

 JaggedVecEltBase ()=default
 Default constructor. More...
 
 JaggedVecEltBase (index_type end)
 Constructor. More...
 
index_type begin (size_t elt_ndx) const
 Return the index of the beginning of the range. More...
 
index_type end () const
 Return the index of the end of the range. More...
 
size_t size (size_t elt_ndx) const
 Return the number of items in this range. More...
 
bool operator== (const JaggedVecEltBase &other) const
 Equality test. More...
 

Private Attributes

index_type m_end = 0
 End index. More...
 

Detailed Description

template<class T>
class SG::JaggedVecElt< T >

Describe one element of a jagged vector.

Definition at line 130 of file JaggedVecImpl.h.

Member Typedef Documentation

◆ index_type

using SG::JaggedVecEltBase::index_type = uint32_t
inherited

Type for the indices.

16 bits is probably too small, 64 bits is pretty definitely too large. Use 32.

Definition at line 56 of file JaggedVecImpl.h.

Member Function Documentation

◆ begin()

index_type SG::JaggedVecEltBase::begin ( size_t  elt_ndx) const
inherited

Return the index of the beginning of the range.

Parameters
elt_ndxThe index of this element in its container.

◆ end()

index_type SG::JaggedVecEltBase::end ( ) const
inherited

Return the index of the end of the range.

◆ JaggedVecEltBase() [1/2]

template<class T >
SG::JaggedVecEltBase::JaggedVecEltBase
default

Default constructor.

Makes a null range.

◆ JaggedVecEltBase() [2/2]

template<class T >
SG::JaggedVecEltBase::JaggedVecEltBase

Constructor.

Parameters
begIndex of the start of the range.
endIndex of the end of the range.

◆ operator==()

bool SG::JaggedVecEltBase::operator== ( const JaggedVecEltBase other) const
inherited

Equality test.

Parameters
otherOther element with which to compare.

◆ size()

size_t SG::JaggedVecEltBase::size ( size_t  elt_ndx) const
inherited

Return the number of items in this range.

Parameters
elt_ndxThe index of this element in its container.

Member Data Documentation

◆ m_end

index_type SG::JaggedVecEltBase::m_end = 0
privateinherited

End index.

Definition at line 122 of file JaggedVecImpl.h.


The documentation for this class was generated from the following file: