[vector] Rename
This commit is contained in:
parent
ba38378fd4
commit
690d9eb83d
|
@ -31,13 +31,13 @@
|
||||||
#include "hb.hh"
|
#include "hb.hh"
|
||||||
|
|
||||||
|
|
||||||
template <typename Type, unsigned int StaticSize=8>
|
template <typename Type, unsigned int PreallocedCount=8>
|
||||||
struct hb_vector_t
|
struct hb_vector_t
|
||||||
{
|
{
|
||||||
typedef Type ItemType;
|
typedef Type ItemType;
|
||||||
enum { item_size = sizeof (Type) };
|
enum { item_size = sizeof (Type) };
|
||||||
|
|
||||||
HB_NO_COPY_ASSIGN_TEMPLATE2 (hb_vector_t, Type, StaticSize);
|
HB_NO_COPY_ASSIGN_TEMPLATE2 (hb_vector_t, Type, PreallocedCount);
|
||||||
inline hb_vector_t (void) { init (); }
|
inline hb_vector_t (void) { init (); }
|
||||||
inline ~hb_vector_t (void) { fini (); }
|
inline ~hb_vector_t (void) { fini (); }
|
||||||
|
|
||||||
|
@ -45,7 +45,7 @@ struct hb_vector_t
|
||||||
private:
|
private:
|
||||||
unsigned int allocated; /* == 0 means allocation failed. */
|
unsigned int allocated; /* == 0 means allocation failed. */
|
||||||
Type *arrayZ_;
|
Type *arrayZ_;
|
||||||
Type static_array[StaticSize];
|
Type static_array[PreallocedCount];
|
||||||
public:
|
public:
|
||||||
|
|
||||||
void init (void)
|
void init (void)
|
||||||
|
|
Loading…
Reference in New Issue