VISH  0.2
Public Types | Public Member Functions | Public Attributes
MemCore::MemVector Struct Reference

A convenience class that looks like a std::vector<>, but is actually referring to a reference-counted common chunk of data. More...

#include </home/werner/origo/vish/memcore/Chunk.hpp>

List of all members.

Public Types

Public Member Functions

Public Attributes


Detailed Description

A convenience class that looks like a std::vector<>, but is actually referring to a reference-counted common chunk of data.

It can be used like many std::vector<>'s sharing their data storage. Otherwise, nothing special here.


Constructor & Destructor Documentation

MemCore::MemVector::MemVector ( size_t  nElements,
bool  ReserveOnly = false 
) [inline]

Allocate vector by giving number of elements Resizing the vector is no problem, all shared instances will see changes immediatly.

Parameters:
ReserveOnlyTells if the vector shall be initialized with no elements, but reserved to hold the given number of elements. This is useful when new elements are added via push_back().

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