dastrie::array< value_tmpl > Class Template Reference
[DASTrie API]


Detailed Description

template<class value_tmpl>
class dastrie::array< value_tmpl >

An unextendable array.

Parameters:
value_tmpl The element type to be stored in the array.


Public Types

typedef value_tmpl value_type
 The type that represents elements of the array.
typedef size_t size_type
 The type that represents the size of the array.

Public Member Functions

 array ()
 Constructs an array.
 array (value_type *block, size_type size, bool own=false)
 Constructs an array from an existing memory block.
 array (const array &rho)
 Constructs an array from another array instance.
virtual ~array ()
 Destructs an array.
arrayoperator= (const array &rho)
 Assigns the new array to this instance.
value_typeoperator[] (size_type i)
 Obtains a read/write access to an element in the array.
const value_typeoperator[] (size_type i) const
 Obtains a read-only access to an element in the array.
 operator bool () const
 Checks whether an array is allocated.
size_type size () const
 Reports the size of the array.
void assign (value_type *block, size_type size, bool own=false)
 Assigns a new array from an existing memory block.
void free ()
 Destroy the array.


Copyright (c) 2002-2008 by Naoaki Okazaki
Mon Nov 10 12:28:35 2008