The Vish Visualization Shell 0.3
Vish
Public Member Functions | Protected Member Functions | List of all members
MemCore::ChunkBase Class Referenceabstract

Base class for chunks of managed memory (any type possible). More...

#include <elementary/memcore/Chunk.hpp>

Inheritance diagram for MemCore::ChunkBase:
MemCore::ReferenceBase< ChunkBase > MemCore::TypedChunkBase< T >

Public Member Functions

 ChunkBase ()
 Constructor.
 
virtual const void * const_data_ptr () const =0
 Get a void pointer to the memory storage location.
 
virtual void * data_ptr ()=0
 Get a const void pointer to the memory storage location.
 
virtual size_t elements () const =0
 How many elements are stored here?
 
virtual const type_info & getType () const =0
 Return the type id for the elements stored here.
 
size_t memsize () const
 How much memory is occupied here at all by the entire chunk?
 
size_t nElements () const
 How many elements are stored here? (alias to elements() )
 
virtual int value_type_size () const =0
 How many bytes occupies one value type?
 
- Public Member Functions inherited from MemCore::ReferenceBase< ChunkBase >
auto getObjectCountID () const noexcept
 Get a unique ID for this object in the given domain.
 
bool isIdentical (const WeakPtr< ChunkBase, ChunkBase > &PossibleSelf) const noexcept
 Check if this object is identical to the one used by the given pointer.
 
void mkAutoDestructive ()
 Marks this object as being automatically destructed, e.g.
 
refcount_t refcount () const noexcept
 The strong reference count.
 
 ReferenceBase (ChunkBase *that) noexcept
 Constructor, initializes reference counter to zero.
 
const auto & self () const
 Return weak pointer to the object self.
 
refcount_t wrefcount () const noexcept
 The weak reference count.
 

Protected Member Functions

virtual ~ChunkBase ()
 Destructor.
 
- Protected Member Functions inherited from MemCore::ReferenceBase< ChunkBase >
virtual void extremeUnction ()
 A virtual function that will be called just before the object is destroyed.
 
ReferenceBaseoperator= (const ReferenceBase &R)
 Protected assignment operator (should not be called).
 
void suicide ()
 Delete this.
 
virtual ~ReferenceBase ()
 Virtual destructor.
 

Additional Inherited Members

- Public Types inherited from MemCore::ReferenceBase< ChunkBase >
using reference_domain_t = ChunkBase
 The type of the base class.
 
using SelfPtr_t = WeakPtr< ChunkBase, ChunkBase >
 Type for a pointer to this object itself.
 

Detailed Description

Base class for chunks of managed memory (any type possible).