CxxUtils::pointer_list_base::list_block Struct Reference

A single block in the list. More...

#include <pointer_list.h>

List of all members.

Public Types

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

Static Public Member Functions

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

Public Attributes

value_type m_data [1]

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.


Member Function Documentation

size_t CxxUtils::pointer_list_base::list_block::size ( size_t  nelt  )  [inline, static]

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

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

Parameters:
nelt Number of elements.

Member Data Documentation

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


The documentation for this struct was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 15 Apr 2017 for RootCore Packages by  doxygen 1.6.1