ATLAS Offline Software
Public Types | Static Public Member Functions | Public Attributes | List of all members
CxxUtils::pointer_list_base::list_block Struct Reference

A single block in the list. More...

#include <pointer_list.h>

Collaboration diagram for CxxUtils::pointer_list_base::list_block:

Public Types

typedef unsigned long ulong
 
typedef void * value_type
 The element type we store. More...
 

Static Public Member Functions

static size_t size (size_t nelt)
 Size in bytes of a block holding nelt elements (excluding the end-pointer). More...
 

Public Attributes

value_type m_data [1]
 The elements. More...
 

Detailed Description

A single block in the list.

It contains some number of pointers. The last element of the block contains a link to the next block. Blocks are aligned so that we can tell if we're looking at the last element from the low bits of an address.

Definition at line 65 of file pointer_list.h.

Member Typedef Documentation

◆ ulong

Definition at line 68 of file pointer_list.h.

◆ value_type

The element type we store.

Definition at line 71 of file pointer_list.h.

Member Function Documentation

◆ size()

static size_t CxxUtils::pointer_list_base::list_block::size ( size_t  nelt)
static

Size in bytes of a block holding nelt elements (excluding the end-pointer).

Member Data Documentation

◆ m_data

value_type CxxUtils::pointer_list_base::list_block::m_data[1]

The elements.

This structure is variable-sized; it will be allocated for the correct number of elements.

Definition at line 75 of file pointer_list.h.


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